Batch V1 API - Class Google::Cloud::Batch::V1::AllocationPolicy::LocationPolicy (v0.2.0)

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allowed_locations

def allowed_locations() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of allowed location names represented by internal URLs, First location in the list must be a region. for example, ["regions/us-central1"] allow VMs in region us-central1, ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone us-central1-a.

#allowed_locations=

def allowed_locations=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of allowed location names represented by internal URLs, First location in the list must be a region. for example, ["regions/us-central1"] allow VMs in region us-central1, ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone us-central1-a.
Returns
  • (::Array<::String>) — A list of allowed location names represented by internal URLs, First location in the list must be a region. for example, ["regions/us-central1"] allow VMs in region us-central1, ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone us-central1-a.