Class: Google::Apis::CloudassetV1::RelatedAssets
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::RelatedAssets
- 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
DEPRECATED. This message only presents for the purpose of backward-
compatibility. The server will never populate this message in responses. The
detailed related assets with the relationship_type
.
Instance Attribute Summary collapse
-
#assets ⇒ Array<Google::Apis::CloudassetV1::RelatedAsset>
The peer resources of the relationship.
-
#relationship_attributes ⇒ Google::Apis::CloudassetV1::RelationshipAttributes
DEPRECATED.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RelatedAssets
constructor
A new instance of RelatedAssets.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RelatedAssets
Returns a new instance of RelatedAssets.
5160 5161 5162 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assets ⇒ Array<Google::Apis::CloudassetV1::RelatedAsset>
The peer resources of the relationship.
Corresponds to the JSON property assets
5150 5151 5152 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5150 def assets @assets end |
#relationship_attributes ⇒ Google::Apis::CloudassetV1::RelationshipAttributes
DEPRECATED. This message only presents for the purpose of backward-
compatibility. The server will never populate this message in responses. The
relationship attributes which include type
, source_resource_type
,
target_resource_type
and action
.
Corresponds to the JSON property relationshipAttributes
5158 5159 5160 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5158 def relationship_attributes @relationship_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5165 5166 5167 5168 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5165 def update!(**args) @assets = args[:assets] if args.key?(:assets) @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes) end |