class Google::Apis::CloudassetV1p5beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes
The relationship attributes which include `type`, `source_resource_type`, ` target_resource_type
` and `action`.
Attributes
action[RW]
The detail of the relationship, e.g. `contains`, `attaches` Corresponds to the JSON property `action` @return [String]
source_resource_type[RW]
The source asset type. Example: `compute.googleapis.com/Instance` Corresponds to the JSON property `sourceResourceType` @return [String]
target_resource_type[RW]
The target asset type. Example: `compute.googleapis.com/Disk` Corresponds to the JSON property `targetResourceType` @return [String]
type[RW]
The unique identifier of the relationship type. Example: ` INSTANCE_TO_INSTANCEGROUP` Corresponds to the JSON property `type` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/cloudasset_v1p5beta1/classes.rb, line 615 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/cloudasset_v1p5beta1/classes.rb, line 620 def update!(**args) @action = args[:action] if args.key?(:action) @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type) @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type) @type = args[:type] if args.key?(:type) end