Package com.google.cloud.compute.v1
Interface LocationPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LocationPolicy,LocationPolicy.Builder
@Generated
public interface LocationPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLocations(String key) Location configurations mapped by location name.Deprecated.intLocation configurations mapped by location name.Location configurations mapped by location name.getLocationsOrDefault(String key, LocationPolicyLocation defaultValue) Location configurations mapped by location name.Location configurations mapped by location name.Strategy for distributing VMs across zones in a region.com.google.protobuf.ByteStringStrategy for distributing VMs across zones in a region.getZones(int index) The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.intThe bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.getZonesOrBuilder(int index) The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.List<? extends LocationPolicyZoneConfigurationOrBuilder>The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.booleanStrategy for distributing VMs across zones in a region.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLocationsCount
int getLocationsCount()Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert operation doesn't create instances in an AI zone, even if an AI zone is available in the specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454; -
containsLocations
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert operation doesn't create instances in an AI zone, even if an AI zone is available in the specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454; -
getLocations
Deprecated.UsegetLocationsMap()instead. -
getLocationsMap
Map<String,LocationPolicyLocation> getLocationsMap()Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert operation doesn't create instances in an AI zone, even if an AI zone is available in the specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454; -
getLocationsOrDefault
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert operation doesn't create instances in an AI zone, even if an AI zone is available in the specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454; -
getLocationsOrThrow
Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a. The bulkInsert operation doesn't create instances in an AI zone, even if an AI zone is available in the specified region. For example, if you set a DENY preference for us-central1-a, Compute Engine will consider us-central1-b and us-central1-c for instance creation, but not us-central1-ai1a. Also, you can't use the locations[] configuration to allow instance creation in an AI zone. To include an AI zone in bulkInsert operations, use the locationPolicy.zones[] field.
map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454; -
hasTargetShape
boolean hasTargetShape()Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;- Returns:
- Whether the targetShape field is set.
-
getTargetShape
String getTargetShape()Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;- Returns:
- The targetShape.
-
getTargetShapeBytes
com.google.protobuf.ByteString getTargetShapeBytes()Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;- Returns:
- The bytes for targetShape.
-
getZonesList
List<LocationPolicyZoneConfiguration> getZonesList()The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.
repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319; -
getZones
The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.
repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319; -
getZonesCount
int getZonesCount()The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.
repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319; -
getZonesOrBuilderList
List<? extends LocationPolicyZoneConfigurationOrBuilder> getZonesOrBuilderList()The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.
repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319; -
getZonesOrBuilder
The bulkInsert operation applies any preferences set in the locations field to the specific zones listed in the zones field if the same zones are specified in both fields.
repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;
-