Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::Disk (v0.1.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::AllocationPolicy::Disk.

A new persistent disk.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image

def image() -> ::String
Returns
  • (::String) — Name of a public or custom image used as the data source.

#image=

def image=(value) -> ::String
Parameter
  • value (::String) — Name of a public or custom image used as the data source.
Returns
  • (::String) — Name of a public or custom image used as the data source.

#size_gb

def size_gb() -> ::Integer
Returns
  • (::Integer) — Disk size in GB. This field is ignored if data_source is disk or image.

#size_gb=

def size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — Disk size in GB. This field is ignored if data_source is disk or image.
Returns
  • (::Integer) — Disk size in GB. This field is ignored if data_source is disk or image.

#snapshot

def snapshot() -> ::String
Returns
  • (::String) — Name of a snapshot used as the data source.

#snapshot=

def snapshot=(value) -> ::String
Parameter
  • value (::String) — Name of a snapshot used as the data source.
Returns
  • (::String) — Name of a snapshot used as the data source.

#type

def type() -> ::String
Returns
  • (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced".

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced".
Returns
  • (::String) — Disk type as shown in gcloud compute disk-types list For example, "pd-ssd", "pd-standard", "pd-balanced".