Class: Google::Apis::MigrationcenterV1alpha1::MachineDetails

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

Details of a machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineDetails

Returns a new instance of MachineDetails.



5368
5369
5370
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5368

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

Instance Attribute Details

#architectureGoogle::Apis::MigrationcenterV1alpha1::MachineArchitectureDetails

Details of the machine architecture. Corresponds to the JSON property architecture



5311
5312
5313
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5311

def architecture
  @architecture
end

#core_countFixnum

Number of logical CPU cores in the machine. Must be non-negative. Corresponds to the JSON property coreCount

Returns:

  • (Fixnum)


5316
5317
5318
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5316

def core_count
  @core_count
end

#create_timeString

Machine creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


5321
5322
5323
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5321

def create_time
  @create_time
end

#disk_partitionsGoogle::Apis::MigrationcenterV1alpha1::DiskPartitionDetails

Disk partition details. Corresponds to the JSON property diskPartitions



5326
5327
5328
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5326

def disk_partitions
  @disk_partitions
end

#disksGoogle::Apis::MigrationcenterV1alpha1::MachineDiskDetails

Details of machine disks. Corresponds to the JSON property disks



5331
5332
5333
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5331

def disks
  @disks
end

#guest_osGoogle::Apis::MigrationcenterV1alpha1::GuestOsDetails

Information from Guest-level collections. Corresponds to the JSON property guestOs



5336
5337
5338
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5336

def guest_os
  @guest_os
end

#machine_nameString

Machine name. Corresponds to the JSON property machineName

Returns:

  • (String)


5341
5342
5343
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5341

def machine_name
  @machine_name
end

#memory_mbFixnum

The amount of memory in the machine. Must be non-negative. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


5346
5347
5348
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5346

def memory_mb
  @memory_mb
end

#networkGoogle::Apis::MigrationcenterV1alpha1::MachineNetworkDetails

Details of network adapters and settings. Corresponds to the JSON property network



5351
5352
5353
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5351

def network
  @network
end

#platformGoogle::Apis::MigrationcenterV1alpha1::PlatformDetails

Information about the platform. Corresponds to the JSON property platform



5356
5357
5358
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5356

def platform
  @platform
end

#power_stateString

Power state of the machine. Corresponds to the JSON property powerState

Returns:

  • (String)


5361
5362
5363
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5361

def power_state
  @power_state
end

#uuidString

Machine unique identifier. Corresponds to the JSON property uuid

Returns:

  • (String)


5366
5367
5368
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5366

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5373

def update!(**args)
  @architecture = args[:architecture] if args.key?(:architecture)
  @core_count = args[:core_count] if args.key?(:core_count)
  @create_time = args[:create_time] if args.key?(:create_time)
  @disk_partitions = args[:disk_partitions] if args.key?(:disk_partitions)
  @disks = args[:disks] if args.key?(:disks)
  @guest_os = args[:guest_os] if args.key?(:guest_os)
  @machine_name = args[:machine_name] if args.key?(:machine_name)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @network = args[:network] if args.key?(:network)
  @platform = args[:platform] if args.key?(:platform)
  @power_state = args[:power_state] if args.key?(:power_state)
  @uuid = args[:uuid] if args.key?(:uuid)
end