Class: Google::Apis::BatchV1::InstanceStatus
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::InstanceStatus
- 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
-
#boot_disk ⇒ Google::Apis::BatchV1::Disk
A new persistent disk or a local ssd.
-
#machine_type ⇒ String
The Compute Engine machine type.
-
#provisioning_model ⇒ String
The VM instance provisioning model.
-
#task_pack ⇒ Fixnum
The max number of tasks can be assigned to this instance type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceStatus
constructor
A new instance of InstanceStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceStatus
Returns a new instance of InstanceStatus.
1190 1191 1192 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1190 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk ⇒ Google::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. See https://cloud.google.com/compute/docs/
disks#pdspecs and https://cloud.google.com/compute/docs/disks#localssds.
Corresponds to the JSON property bootDisk
1173 1174 1175 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1173 def boot_disk @boot_disk end |
#machine_type ⇒ String
The Compute Engine machine type.
Corresponds to the JSON property machineType
1178 1179 1180 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1178 def machine_type @machine_type end |
#provisioning_model ⇒ String
The VM instance provisioning model.
Corresponds to the JSON property provisioningModel
1183 1184 1185 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1183 def provisioning_model @provisioning_model end |
#task_pack ⇒ Fixnum
The max number of tasks can be assigned to this instance type.
Corresponds to the JSON property taskPack
1188 1189 1190 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1188 def task_pack @task_pack end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1195 1196 1197 1198 1199 1200 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1195 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 |