Class: Google::Apis::CloudassetV1::RelationshipAttributes
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::RelationshipAttributes
- 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
relationship attributes which include type
, source_resource_type
,
target_resource_type
and action
.
Instance Attribute Summary collapse
-
#action ⇒ String
The detail of the relationship, e.g.
-
#source_resource_type ⇒ String
The source asset type.
-
#target_resource_type ⇒ String
The target asset type.
-
#type ⇒ String
The unique identifier of the relationship type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RelationshipAttributes
constructor
A new instance of RelationshipAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RelationshipAttributes
Returns a new instance of RelationshipAttributes.
5257 5258 5259 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5257 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
The detail of the relationship, e.g. contains
, attaches
Corresponds to the JSON property action
5239 5240 5241 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5239 def action @action end |
#source_resource_type ⇒ String
The source asset type. Example: compute.googleapis.com/Instance
Corresponds to the JSON property sourceResourceType
5244 5245 5246 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5244 def source_resource_type @source_resource_type end |
#target_resource_type ⇒ String
The target asset type. Example: compute.googleapis.com/Disk
Corresponds to the JSON property targetResourceType
5249 5250 5251 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5249 def target_resource_type @target_resource_type end |
#type ⇒ String
The unique identifier of the relationship type. Example:
INSTANCE_TO_INSTANCEGROUP
Corresponds to the JSON property type
5255 5256 5257 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5255 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5262 5263 5264 5265 5266 5267 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5262 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 |