Class: Google::Apis::MigrationcenterV1::MachineDetails

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

Details of a machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineDetails

Returns a new instance of MachineDetails.



2566
2567
2568
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2566

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

Instance Attribute Details

#architectureGoogle::Apis::MigrationcenterV1::MachineArchitectureDetails

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



2514
2515
2516
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2514

def architecture
  @architecture
end

#core_countFixnum

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

Returns:

  • (Fixnum)


2519
2520
2521
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2519

def core_count
  @core_count
end

#create_timeString

Machine creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


2524
2525
2526
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2524

def create_time
  @create_time
end

#disksGoogle::Apis::MigrationcenterV1::MachineDiskDetails

Details of machine disks. Corresponds to the JSON property disks



2529
2530
2531
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2529

def disks
  @disks
end

#guest_osGoogle::Apis::MigrationcenterV1::GuestOsDetails

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



2534
2535
2536
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2534

def guest_os
  @guest_os
end

#machine_nameString

Machine name. Corresponds to the JSON property machineName

Returns:

  • (String)


2539
2540
2541
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2539

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)


2544
2545
2546
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2544

def memory_mb
  @memory_mb
end

#networkGoogle::Apis::MigrationcenterV1::MachineNetworkDetails

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



2549
2550
2551
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2549

def network
  @network
end

#platformGoogle::Apis::MigrationcenterV1::PlatformDetails

Information about the platform. Corresponds to the JSON property platform



2554
2555
2556
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2554

def platform
  @platform
end

#power_stateString

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

Returns:

  • (String)


2559
2560
2561
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2559

def power_state
  @power_state
end

#uuidString

Machine unique identifier. Corresponds to the JSON property uuid

Returns:

  • (String)


2564
2565
2566
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2564

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2571

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)
  @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