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.



5111
5112
5113
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5111

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

Instance Attribute Details

#architectureGoogle::Apis::MigrationcenterV1alpha1::MachineArchitectureDetails

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



5054
5055
5056
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5054

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)


5059
5060
5061
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5059

def core_count
  @core_count
end

#create_timeString

Machine creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


5064
5065
5066
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5064

def create_time
  @create_time
end

#disk_partitionsGoogle::Apis::MigrationcenterV1alpha1::DiskPartitionDetails

Disk partition details. Corresponds to the JSON property diskPartitions



5069
5070
5071
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5069

def disk_partitions
  @disk_partitions
end

#disksGoogle::Apis::MigrationcenterV1alpha1::MachineDiskDetails

Details of machine disks. Corresponds to the JSON property disks



5074
5075
5076
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5074

def disks
  @disks
end

#guest_osGoogle::Apis::MigrationcenterV1alpha1::GuestOsDetails

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



5079
5080
5081
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5079

def guest_os
  @guest_os
end

#machine_nameString

Machine name. Corresponds to the JSON property machineName

Returns:

  • (String)


5084
5085
5086
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5084

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)


5089
5090
5091
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5089

def memory_mb
  @memory_mb
end

#networkGoogle::Apis::MigrationcenterV1alpha1::MachineNetworkDetails

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



5094
5095
5096
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5094

def network
  @network
end

#platformGoogle::Apis::MigrationcenterV1alpha1::PlatformDetails

Information about the platform. Corresponds to the JSON property platform



5099
5100
5101
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5099

def platform
  @platform
end

#power_stateString

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

Returns:

  • (String)


5104
5105
5106
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5104

def power_state
  @power_state
end

#uuidString

Machine unique identifier. Corresponds to the JSON property uuid

Returns:

  • (String)


5109
5110
5111
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5109

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5116

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