Class: Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAssets
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAssets
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1p5beta1/classes.rb,
lib/google/apis/cloudasset_v1p5beta1/representations.rb,
lib/google/apis/cloudasset_v1p5beta1/representations.rb
Overview
The detailed related assets with the relationship_type
.
Instance Attribute Summary collapse
-
#assets ⇒ Array<Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAsset>
The peer resources of the relationship.
-
#relationship_attributes ⇒ Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes
The relationship attributes which include
type
,source_resource_type
,target_resource_type
andaction
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1p7beta1RelatedAssets
constructor
A new instance of GoogleCloudAssetV1p7beta1RelatedAssets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1p7beta1RelatedAssets
Returns a new instance of GoogleCloudAssetV1p7beta1RelatedAssets.
610 611 612 |
# File 'lib/google/apis/cloudasset_v1p5beta1/classes.rb', line 610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assets ⇒ Array<Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelatedAsset>
The peer resources of the relationship.
Corresponds to the JSON property assets
602 603 604 |
# File 'lib/google/apis/cloudasset_v1p5beta1/classes.rb', line 602 def assets @assets end |
#relationship_attributes ⇒ Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes
The relationship attributes which include type
, source_resource_type
,
target_resource_type
and action
.
Corresponds to the JSON property relationshipAttributes
608 609 610 |
# File 'lib/google/apis/cloudasset_v1p5beta1/classes.rb', line 608 def relationship_attributes @relationship_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
615 616 617 618 |
# File 'lib/google/apis/cloudasset_v1p5beta1/classes.rb', line 615 def update!(**args) @assets = args[:assets] if args.key?(:assets) @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes) end |