- 1.58.0 (latest)
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public interface SubnetworkOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCreationTimestamp()
public abstract String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
String |
The creationTimestamp. |
getCreationTimestampBytes()
public abstract ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for creationTimestamp. |
getDescription()
public abstract String getDescription()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public abstract ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getEnableFlowLogs()
public abstract boolean getEnableFlowLogs()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable_flow_logs = 151544420;
Returns | |
---|---|
Type | Description |
boolean |
The enableFlowLogs. |
getExternalIpv6Prefix()
public abstract String getExternalIpv6Prefix()
The external IPv6 address range that is owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Returns | |
---|---|
Type | Description |
String |
The externalIpv6Prefix. |
getExternalIpv6PrefixBytes()
public abstract ByteString getExternalIpv6PrefixBytes()
The external IPv6 address range that is owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for externalIpv6Prefix. |
getFingerprint()
public abstract String getFingerprint()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Returns | |
---|---|
Type | Description |
String |
The fingerprint. |
getFingerprintBytes()
public abstract ByteString getFingerprintBytes()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for fingerprint. |
getGatewayAddress()
public abstract String getGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Returns | |
---|---|
Type | Description |
String |
The gatewayAddress. |
getGatewayAddressBytes()
public abstract ByteString getGatewayAddressBytes()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for gatewayAddress. |
getId()
public abstract long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
long |
The id. |
getInternalIpv6Prefix()
public abstract String getInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Returns | |
---|---|
Type | Description |
String |
The internalIpv6Prefix. |
getInternalIpv6PrefixBytes()
public abstract ByteString getInternalIpv6PrefixBytes()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for internalIpv6Prefix. |
getIpCidrRange()
public abstract String getIpCidrRange()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Returns | |
---|---|
Type | Description |
String |
The ipCidrRange. |
getIpCidrRangeBytes()
public abstract ByteString getIpCidrRangeBytes()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for ipCidrRange. |
getIpv6AccessType()
public abstract String getIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Returns | |
---|---|
Type | Description |
String |
The ipv6AccessType. |
getIpv6AccessTypeBytes()
public abstract ByteString getIpv6AccessTypeBytes()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for ipv6AccessType. |
getIpv6CidrRange()
public abstract String getIpv6CidrRange()
[Output Only] This field is for internal use.
optional string ipv6_cidr_range = 273141258;
Returns | |
---|---|
Type | Description |
String |
The ipv6CidrRange. |
getIpv6CidrRangeBytes()
public abstract ByteString getIpv6CidrRangeBytes()
[Output Only] This field is for internal use.
optional string ipv6_cidr_range = 273141258;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for ipv6CidrRange. |
getKind()
public abstract String getKind()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
String |
The kind. |
getKindBytes()
public abstract ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for kind. |
getLogConfig()
public abstract SubnetworkLogConfig getLogConfig()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Returns | |
---|---|
Type | Description |
SubnetworkLogConfig |
The logConfig. |
getLogConfigOrBuilder()
public abstract SubnetworkLogConfigOrBuilder getLogConfigOrBuilder()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Returns | |
---|---|
Type | Description |
SubnetworkLogConfigOrBuilder |
getName()
public abstract String getName()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getNetwork()
public abstract String getNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Returns | |
---|---|
Type | Description |
String |
The network. |
getNetworkBytes()
public abstract ByteString getNetworkBytes()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for network. |
getPrivateIpGoogleAccess()
public abstract boolean getPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Returns | |
---|---|
Type | Description |
boolean |
The privateIpGoogleAccess. |
getPrivateIpv6GoogleAccess()
public abstract String getPrivateIpv6GoogleAccess()
This field is for internal use. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Returns | |
---|---|
Type | Description |
String |
The privateIpv6GoogleAccess. |
getPrivateIpv6GoogleAccessBytes()
public abstract ByteString getPrivateIpv6GoogleAccessBytes()
This field is for internal use. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for privateIpv6GoogleAccess. |
getPurpose()
public abstract String getPurpose()
The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Returns | |
---|---|
Type | Description |
String |
The purpose. |
getPurposeBytes()
public abstract ByteString getPurposeBytes()
The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for purpose. |
getRegion()
public abstract String getRegion()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
String |
The region. |
getRegionBytes()
public abstract ByteString getRegionBytes()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for region. |
getReservedInternalRange()
public abstract String getReservedInternalRange()
The URL of the reserved internal range.
optional string reserved_internal_range = 286248754;
Returns | |
---|---|
Type | Description |
String |
The reservedInternalRange. |
getReservedInternalRangeBytes()
public abstract ByteString getReservedInternalRangeBytes()
The URL of the reserved internal range.
optional string reserved_internal_range = 286248754;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for reservedInternalRange. |
getRole()
public abstract String getRole()
The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Returns | |
---|---|
Type | Description |
String |
The role. |
getRoleBytes()
public abstract ByteString getRoleBytes()
The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for role. |
getSecondaryIpRanges(int index)
public abstract SubnetworkSecondaryRange getSecondaryIpRanges(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SubnetworkSecondaryRange |
getSecondaryIpRangesCount()
public abstract int getSecondaryIpRangesCount()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Returns | |
---|---|
Type | Description |
int |
getSecondaryIpRangesList()
public abstract List<SubnetworkSecondaryRange> getSecondaryIpRangesList()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Returns | |
---|---|
Type | Description |
List<SubnetworkSecondaryRange> |
getSecondaryIpRangesOrBuilder(int index)
public abstract SubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SubnetworkSecondaryRangeOrBuilder |
getSecondaryIpRangesOrBuilderList()
public abstract List<? extends SubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request.
repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.compute.v1.SubnetworkSecondaryRangeOrBuilder> |
getSelfLink()
public abstract String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public abstract ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for selfLink. |
getStackType()
public abstract String getStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Returns | |
---|---|
Type | Description |
String |
The stackType. |
getStackTypeBytes()
public abstract ByteString getStackTypeBytes()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for stackType. |
getState()
public abstract String getState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Returns | |
---|---|
Type | Description |
String |
The state. |
getStateBytes()
public abstract ByteString getStateBytes()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for state. |
hasCreationTimestamp()
public abstract boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
boolean |
Whether the creationTimestamp field is set. |
hasDescription()
public abstract boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
boolean |
Whether the description field is set. |
hasEnableFlowLogs()
public abstract boolean hasEnableFlowLogs()
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.
optional bool enable_flow_logs = 151544420;
Returns | |
---|---|
Type | Description |
boolean |
Whether the enableFlowLogs field is set. |
hasExternalIpv6Prefix()
public abstract boolean hasExternalIpv6Prefix()
The external IPv6 address range that is owned by this subnetwork.
optional string external_ipv6_prefix = 139299190;
Returns | |
---|---|
Type | Description |
boolean |
Whether the externalIpv6Prefix field is set. |
hasFingerprint()
public abstract boolean hasFingerprint()
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork.
optional string fingerprint = 234678500;
Returns | |
---|---|
Type | Description |
boolean |
Whether the fingerprint field is set. |
hasGatewayAddress()
public abstract boolean hasGatewayAddress()
[Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
optional string gateway_address = 459867385;
Returns | |
---|---|
Type | Description |
boolean |
Whether the gatewayAddress field is set. |
hasId()
public abstract boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
boolean |
Whether the id field is set. |
hasInternalIpv6Prefix()
public abstract boolean hasInternalIpv6Prefix()
[Output Only] The internal IPv6 address range that is assigned to this subnetwork.
optional string internal_ipv6_prefix = 506270056;
Returns | |
---|---|
Type | Description |
boolean |
Whether the internalIpv6Prefix field is set. |
hasIpCidrRange()
public abstract boolean hasIpCidrRange()
The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange.
optional string ip_cidr_range = 98117322;
Returns | |
---|---|
Type | Description |
boolean |
Whether the ipCidrRange field is set. |
hasIpv6AccessType()
public abstract boolean hasIpv6AccessType()
The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation or the first time the subnet is updated into IPV4_IPV6 dual stack. Check the Ipv6AccessType enum for the list of possible values.
optional string ipv6_access_type = 504658653;
Returns | |
---|---|
Type | Description |
boolean |
Whether the ipv6AccessType field is set. |
hasIpv6CidrRange()
public abstract boolean hasIpv6CidrRange()
[Output Only] This field is for internal use.
optional string ipv6_cidr_range = 273141258;
Returns | |
---|---|
Type | Description |
boolean |
Whether the ipv6CidrRange field is set. |
hasKind()
public abstract boolean hasKind()
[Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
boolean |
Whether the kind field is set. |
hasLogConfig()
public abstract boolean hasLogConfig()
This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
optional .google.cloud.compute.v1.SubnetworkLogConfig log_config = 351299741;
Returns | |
---|---|
Type | Description |
boolean |
Whether the logConfig field is set. |
hasName()
public abstract boolean hasName()
The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;
Returns | |
---|---|
Type | Description |
boolean |
Whether the name field is set. |
hasNetwork()
public abstract boolean hasNetwork()
The URL of the network to which this subnetwork belongs, provided by the client when initially creating the subnetwork. This field can be set only at resource creation time.
optional string network = 232872494;
Returns | |
---|---|
Type | Description |
boolean |
Whether the network field is set. |
hasPrivateIpGoogleAccess()
public abstract boolean hasPrivateIpGoogleAccess()
Whether the VMs in this subnet can access Google services without assigned external IP addresses. This field can be both set at resource creation time and updated using setPrivateIpGoogleAccess.
optional bool private_ip_google_access = 421491790;
Returns | |
---|---|
Type | Description |
boolean |
Whether the privateIpGoogleAccess field is set. |
hasPrivateIpv6GoogleAccess()
public abstract boolean hasPrivateIpv6GoogleAccess()
This field is for internal use. This field can be both set at resource creation time and updated using patch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
optional string private_ipv6_google_access = 48277006;
Returns | |
---|---|
Type | Description |
boolean |
Whether the privateIpv6GoogleAccess field is set. |
hasPurpose()
public abstract boolean hasPurpose()
The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values.
optional string purpose = 316407070;
Returns | |
---|---|
Type | Description |
boolean |
Whether the purpose field is set. |
hasRegion()
public abstract boolean hasRegion()
URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
optional string region = 138946292;
Returns | |
---|---|
Type | Description |
boolean |
Whether the region field is set. |
hasReservedInternalRange()
public abstract boolean hasReservedInternalRange()
The URL of the reserved internal range.
optional string reserved_internal_range = 286248754;
Returns | |
---|---|
Type | Description |
boolean |
Whether the reservedInternalRange field is set. |
hasRole()
public abstract boolean hasRole()
The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. Check the Role enum for the list of possible values.
optional string role = 3506294;
Returns | |
---|---|
Type | Description |
boolean |
Whether the role field is set. |
hasSelfLink()
public abstract boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
boolean |
Whether the selfLink field is set. |
hasStackType()
public abstract boolean hasStackType()
The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;
Returns | |
---|---|
Type | Description |
boolean |
Whether the stackType field is set. |
hasState()
public abstract boolean hasState()
[Output Only] The state of the subnetwork, which can be one of the following values: READY: Subnetwork is created and ready to use DRAINING: only applicable to subnetworks that have the purpose set to INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load balancer are being drained. A subnetwork that is draining cannot be used or modified until it reaches a status of READY Check the State enum for the list of possible values.
optional string state = 109757585;
Returns | |
---|---|
Type | Description |
boolean |
Whether the state field is set. |