Class: Google::Apis::CloudassetV1p1beta1::StandardResourceMetadata

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1p1beta1/classes.rb,
lib/google/apis/cloudasset_v1p1beta1/representations.rb,
lib/google/apis/cloudasset_v1p1beta1/representations.rb

Overview

The standard metadata of a cloud resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StandardResourceMetadata

Returns a new instance of StandardResourceMetadata.



1950
1951
1952
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1950

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_attributesArray<String>

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

Returns:

  • (Array<String>)


1898
1899
1900
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1898

def additional_attributes
  @additional_attributes
end

#asset_typeString

The type of this resource. For example: "compute.googleapis.com/Disk". Corresponds to the JSON property assetType

Returns:

  • (String)


1903
1904
1905
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1903

def asset_type
  @asset_type
end

#descriptionString

One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes. Corresponds to the JSON property description

Returns:

  • (String)


1909
1910
1911
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1909

def description
  @description
end

#display_nameString

The display name of this resource. Corresponds to the JSON property displayName

Returns:

  • (String)


1914
1915
1916
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1914

def display_name
  @display_name
end

#labelsHash<String,String>

Labels associated with this resource. See Labelling and grouping GCP resources for more information. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1921
1922
1923
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1921

def labels
  @labels
end

#locationString

Location can be "global", regional like "us-east1", or zonal like "us-west1-b". Corresponds to the JSON property location

Returns:

  • (String)


1926
1927
1928
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1926

def location
  @location
end

#nameString

The full resource name. For example: //compute.googleapis.com/projects/ my_project_123/zones/zone1/instances/instance1. See Resource Names for more information. Corresponds to the JSON property name

Returns:

  • (String)


1934
1935
1936
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1934

def name
  @name
end

#network_tagsArray<String>

Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See Labelling GCP resources for more information. Corresponds to the JSON property networkTags

Returns:

  • (Array<String>)


1942
1943
1944
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1942

def network_tags
  @network_tags
end

#projectString

The project that this resource belongs to, in the form of projects/ project_number`. Corresponds to the JSON propertyproject`

Returns:

  • (String)


1948
1949
1950
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1948

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1955

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