Class: Google::Apis::BatchV1::InstanceStatus

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

Overview

VM instance status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceStatus

Returns a new instance of InstanceStatus.



970
971
972
# File 'lib/google/apis/batch_v1/classes.rb', line 970

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

Instance Attribute Details

#boot_diskGoogle::Apis::BatchV1::Disk

A new persistent disk or a local ssd. A VM can only have one local SSD setting but multiple local SSD partitions. https://cloud.google.com/compute/docs/disks# pdspecs. https://cloud.google.com/compute/docs/disks#localssds. Corresponds to the JSON property bootDisk



953
954
955
# File 'lib/google/apis/batch_v1/classes.rb', line 953

def boot_disk
  @boot_disk
end

#machine_typeString

The Compute Engine machine type. Corresponds to the JSON property machineType

Returns:

  • (String)


958
959
960
# File 'lib/google/apis/batch_v1/classes.rb', line 958

def machine_type
  @machine_type
end

#provisioning_modelString

The VM instance provisioning model. Corresponds to the JSON property provisioningModel

Returns:

  • (String)


963
964
965
# File 'lib/google/apis/batch_v1/classes.rb', line 963

def provisioning_model
  @provisioning_model
end

#task_packFixnum

The max number of tasks can be assigned to this instance type. Corresponds to the JSON property taskPack

Returns:

  • (Fixnum)


968
969
970
# File 'lib/google/apis/batch_v1/classes.rb', line 968

def task_pack
  @task_pack
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



975
976
977
978
979
980
# File 'lib/google/apis/batch_v1/classes.rb', line 975

def update!(**args)
  @boot_disk = args[:boot_disk] if args.key?(:boot_disk)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
  @task_pack = args[:task_pack] if args.key?(:task_pack)
end