Class: Google::Apis::CloudassetV1::AttachedResource
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::AttachedResource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.
Instance Attribute Summary collapse
-
#asset_type ⇒ String
The type of this attached resource.
-
#versioned_resources ⇒ Array<Google::Apis::CloudassetV1::VersionedResource>
Versioned resource representations of this attached resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttachedResource
constructor
A new instance of AttachedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttachedResource
Returns a new instance of AttachedResource.
365 366 367 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 365 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_type ⇒ String
The type of this attached resource. Example: osconfig.googleapis.com/
Inventory You can find the supported attached asset types of each resource in
this table: https://cloud.google.com/asset-inventory/docs/supported-asset-
types#searchable_asset_types
Corresponds to the JSON property assetType
356 357 358 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 356 def asset_type @asset_type end |
#versioned_resources ⇒ Array<Google::Apis::CloudassetV1::VersionedResource>
Versioned resource representations of this attached resource. This is repeated
because there could be multiple versions of the attached resource
representations during version migration.
Corresponds to the JSON property versionedResources
363 364 365 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 363 def versioned_resources @versioned_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
370 371 372 373 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 370 def update!(**args) @asset_type = args[:asset_type] if args.key?(:asset_type) @versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources) end |