Class: Google::Apis::MigrationcenterV1alpha1::Relation

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Relation

Returns a new instance of Relation.



6536
6537
6538
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6536

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the relation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


6514
6515
6516
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6514

def create_time
  @create_time
end

#dst_assetString

Output only. The destination asset name in the relation. Corresponds to the JSON property dstAsset

Returns:

  • (String)


6519
6520
6521
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6519

def dst_asset
  @dst_asset
end

#nameString

Output only. Identifier. The identifier of the relation. Corresponds to the JSON property name

Returns:

  • (String)


6524
6525
6526
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6524

def name
  @name
end

#src_assetString

Output only. The source asset name in the relation. Corresponds to the JSON property srcAsset

Returns:

  • (String)


6529
6530
6531
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6529

def src_asset
  @src_asset
end

#typeString

Optional. The type of the relation. Corresponds to the JSON property type

Returns:

  • (String)


6534
6535
6536
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6534

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6541
6542
6543
6544
6545
6546
6547
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6541

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