Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelationshipAttributes
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1p7beta1RelationshipAttributes
- 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 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) ⇒ GoogleCloudAssetV1p7beta1RelationshipAttributes
constructor
A new instance of GoogleCloudAssetV1p7beta1RelationshipAttributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1p7beta1RelationshipAttributes
Returns a new instance of GoogleCloudAssetV1p7beta1RelationshipAttributes.
1591 1592 1593 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1591 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
1573 1574 1575 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1573 def action @action end |
#source_resource_type ⇒ String
The source asset type. Example: compute.googleapis.com/Instance
Corresponds to the JSON property sourceResourceType
1578 1579 1580 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1578 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
1583 1584 1585 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1583 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
1589 1590 1591 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1589 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1596 1597 1598 1599 1600 1601 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1596 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 |