class Google::Apis::CloudassetV1p1beta1::StandardResourceMetadata

The standard metadata of a cloud resource.

Attributes

additional_attributes[RW]

Additional searchable attributes of this resource. Informational only. The exact set of attributes is subject to change. For example: project id, DNS name etc. Corresponds to the JSON property `additionalAttributes` @return [Array<String>]

asset_type[RW]

The type of this resource. For example: “compute.googleapis.com/Disk”. Corresponds to the JSON property `assetType` @return [String]

description[RW]

One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes. Corresponds to the JSON property `description` @return [String]

display_name[RW]

The display name of this resource. Corresponds to the JSON property `displayName` @return [String]

labels[RW]

Labels associated with this resource. See [Labelling and grouping GCP resources](cloud.google.com/blog/products/gcp/labelling-and-grouping- your-google-cloud-platform-resources) for more information. Corresponds to the JSON property `labels` @return [Hash<String,String>]

location[RW]

Location can be “global”, regional like “us-east1”, or zonal like “us-west1-b”. Corresponds to the JSON property `location` @return [String]

name[RW]

The full resource name. For example: `//compute.googleapis.com/projects/ my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https:// cloud.google.com/apis/design/resource_names#full_resource_name) for more information. Corresponds to the JSON property `name` @return [String]

network_tags[RW]

Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See [Labelling GCP resources]( lcloud.google.com/blog/products/gcp/labelling-and-grouping-your-google- cloud-platform-resources) for more information. Corresponds to the JSON property `networkTags` @return [Array<String>]

project[RW]

The project that this resource belongs to, in the form of `projects/` project_number“. Corresponds to the JSON property `project` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudasset_v1p1beta1/classes.rb, line 1994
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudasset_v1p1beta1/classes.rb, line 1999
def update!(**args)
  @additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
  @asset_type = args[:asset_type] if args.key?(:asset_type)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @network_tags = args[:network_tags] if args.key?(:network_tags)
  @project = args[:project] if args.key?(:project)
end