Class: Google::Apis::CloudassetV1::RelatedAssets

Inherits:
Object
  • Object
show all
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

The detailed related assets with the relationship_type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelatedAssets

Returns a new instance of RelatedAssets.



3814
3815
3816
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3814

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

Instance Attribute Details

#assetsArray<Google::Apis::CloudassetV1::RelatedAsset>

The peer resources of the relationship. Corresponds to the JSON property assets



3806
3807
3808
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3806

def assets
  @assets
end

#relationship_attributesGoogle::Apis::CloudassetV1::RelationshipAttributes

The relationship attributes which include type, source_resource_type, target_resource_type and action. Corresponds to the JSON property relationshipAttributes



3812
3813
3814
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3812

def relationship_attributes
  @relationship_attributes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3819
3820
3821
3822
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3819

def update!(**args)
  @assets = args[:assets] if args.key?(:assets)
  @relationship_attributes = args[:relationship_attributes] if args.key?(:relationship_attributes)
end