Class: Google::Apis::MigrationcenterV1::GenericPlatformDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

Generic platform details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenericPlatformDetails

Returns a new instance of GenericPlatformDetails.



1527
1528
1529
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1527

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

Instance Attribute Details

#locationString

Free text representation of the machine location. The format of this field should not be relied on. Different VMs in the same location may have different string values for this field. Corresponds to the JSON property location

Returns:

  • (String)


1525
1526
1527
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1525

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1532
1533
1534
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1532

def update!(**args)
  @location = args[:location] if args.key?(:location)
end