Class: Google::Apis::MigrationcenterV1alpha1::Relation
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::Relation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Message representing a relation between 2 resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#dst_asset ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#src_asset ⇒ String
Output only.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Relation
constructor
A new instance of Relation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Relation
Returns a new instance of Relation.
5565 5566 5567 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5565 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the relation was created.
Corresponds to the JSON property createTime
5543 5544 5545 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5543 def create_time @create_time end |
#dst_asset ⇒ String
Output only. The destination asset name in the relation.
Corresponds to the JSON property dstAsset
5548 5549 5550 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5548 def dst_asset @dst_asset end |
#name ⇒ String
Output only. Identifier. The identifier of the relation.
Corresponds to the JSON property name
5553 5554 5555 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5553 def name @name end |
#src_asset ⇒ String
Output only. The source asset name in the relation.
Corresponds to the JSON property srcAsset
5558 5559 5560 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5558 def src_asset @src_asset end |
#type ⇒ String
Optional. The type of the relation.
Corresponds to the JSON property type
5563 5564 5565 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5563 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5570 5571 5572 5573 5574 5575 5576 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5570 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @dst_asset = args[:dst_asset] if args.key?(:dst_asset) @name = args[:name] if args.key?(:name) @src_asset = args[:src_asset] if args.key?(:src_asset) @type = args[:type] if args.key?(:type) end |