Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::Subnetwork.
Represents a Subnetwork resource.
A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allow_subnet_cidr_routes_overlap
def allow_subnet_cidr_routes_overlap() -> ::Boolean-
(::Boolean) — Whether this subnetwork's ranges can conflict with existing custom routes.
Setting this to true allows this subnetwork's primary and secondary ranges
to overlap with (and contain) custom routes that have already been
configured on the corresponding network.
For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true.
Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true.
Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature.
The default value is false and applies to all existing subnetworks and automatically created subnetworks.
#allow_subnet_cidr_routes_overlap=
def allow_subnet_cidr_routes_overlap=(value) -> ::Boolean-
value (::Boolean) — Whether this subnetwork's ranges can conflict with existing custom routes.
Setting this to true allows this subnetwork's primary and secondary ranges
to overlap with (and contain) custom routes that have already been
configured on the corresponding network.
For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true.
Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true.
Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature.
The default value is false and applies to all existing subnetworks and automatically created subnetworks.
-
(::Boolean) — Whether this subnetwork's ranges can conflict with existing custom routes.
Setting this to true allows this subnetwork's primary and secondary ranges
to overlap with (and contain) custom routes that have already been
configured on the corresponding network.
For example if a static route has range 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if allow_conflicting_routes=true.
Overlapping is only allowed on subnetwork operations; routes whose ranges conflict with this subnetwork's ranges won't be allowed unless route.allow_conflicting_subnetworks is set to true.
Typically packets destined to IPs within the subnetwork (which may contain private/sensitive data) are prevented from leaving the virtual network. Setting this field to true will disable this feature.
The default value is false and applies to all existing subnetworks and automatically created subnetworks.
#creation_timestamp
def creation_timestamp() -> ::String- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String- value (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#description
def description() -> ::String- (::String) — An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
#description=
def description=(value) -> ::String- value (::String) — An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
- (::String) — An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.
#enable_flow_logs
def enable_flow_logs() -> ::Boolean- (::Boolean) — 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 toREGIONAL_MANAGED_PROXY. It is recommended to uselogConfig.enable field instead.
#enable_flow_logs=
def enable_flow_logs=(value) -> ::Boolean- value (::Boolean) — 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 toREGIONAL_MANAGED_PROXY. It is recommended to uselogConfig.enable field instead.
- (::Boolean) — 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 toREGIONAL_MANAGED_PROXY. It is recommended to uselogConfig.enable field instead.
#external_ipv6_prefix
def external_ipv6_prefix() -> ::String- (::String) — The external IPv6 address range that is owned by this subnetwork.
#external_ipv6_prefix=
def external_ipv6_prefix=(value) -> ::String- value (::String) — The external IPv6 address range that is owned by this subnetwork.
- (::String) — The external IPv6 address range that is owned by this subnetwork.
#fingerprint
def fingerprint() -> ::String-
(::String) — 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.
#fingerprint=
def fingerprint=(value) -> ::String-
value (::String) — 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.
-
(::String) — 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.
#gateway_address
def gateway_address() -> ::String- (::String) — Output only. [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
#gateway_address=
def gateway_address=(value) -> ::String- value (::String) — Output only. [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
- (::String) — Output only. [Output Only] The gateway address for default routes to reach destination addresses outside this subnetwork.
#id
def id() -> ::Integer- (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer- value (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
- (::Integer) — Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#internal_ipv6_prefix
def internal_ipv6_prefix() -> ::String- (::String) — The internal IPv6 address range that is owned by this subnetwork.
#internal_ipv6_prefix=
def internal_ipv6_prefix=(value) -> ::String- value (::String) — The internal IPv6 address range that is owned by this subnetwork.
- (::String) — The internal IPv6 address range that is owned by this subnetwork.
#ip_cidr_range
def ip_cidr_range() -> ::String- (::String) — 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 theValid ranges list. The range can be expanded after creation usingexpandIpCidrRange.
#ip_cidr_range=
def ip_cidr_range=(value) -> ::String- value (::String) — 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 theValid ranges list. The range can be expanded after creation usingexpandIpCidrRange.
- (::String) — 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 theValid ranges list. The range can be expanded after creation usingexpandIpCidrRange.
#ip_collection
def ip_collection() -> ::String-
(::String) —
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode.
Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only subnetwork with external access using BYOIP:
- Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - Partial URL, as in
- projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - regions/region/publicDelegatedPrefixes/sub-pdp-name
#ip_collection=
def ip_collection=(value) -> ::String-
value (::String) —
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode.
Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only subnetwork with external access using BYOIP:
- Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - Partial URL, as in
- projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - regions/region/publicDelegatedPrefixes/sub-pdp-name
-
(::String) —
Reference to the source of IP, like a PublicDelegatedPrefix (PDP) for BYOIP. The PDP must be a sub-PDP in EXTERNAL_IPV6_SUBNETWORK_CREATION or INTERNAL_IPV6_SUBNETWORK_CREATION mode.
Use one of the following formats to specify a sub-PDP when creating a dual stack or IPv6-only subnetwork with external access using BYOIP:
- Full resource URL, as inhttps://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - Partial URL, as in
- projects/projectId/regions/region/publicDelegatedPrefixes/sub-pdp-name - regions/region/publicDelegatedPrefixes/sub-pdp-name
#ipv6_access_type
def ipv6_access_type() -> ::String- (::String) — 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.
#ipv6_access_type=
def ipv6_access_type=(value) -> ::String- value (::String) — 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.
- (::String) — 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.
#ipv6_cidr_range
def ipv6_cidr_range() -> ::String- (::String) — Output only. [Output Only] This field is for internal use.
#ipv6_cidr_range=
def ipv6_cidr_range=(value) -> ::String- value (::String) — Output only. [Output Only] This field is for internal use.
- (::String) — Output only. [Output Only] This field is for internal use.
#ipv6_gce_endpoint
def ipv6_gce_endpoint() -> ::String-
(::String) —
Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the following:
- VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix and cannot be used to create NetLb.
- VM_AND_FR: The subnetwork can be used for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP Pool directly. Check the Ipv6GceEndpoint enum for the list of possible values.
#ipv6_gce_endpoint=
def ipv6_gce_endpoint=(value) -> ::String-
value (::String) —
Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the following:
- VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix and cannot be used to create NetLb.
- VM_AND_FR: The subnetwork can be used for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP Pool directly. Check the Ipv6GceEndpoint enum for the list of possible values.
-
(::String) —
Output only. [Output Only] Possible endpoints of this subnetwork. It can be one of the following:
- VM_ONLY: The subnetwork can be used for creating instances and IPv6 addresses with VM endpoint type. Such a subnetwork gets external IPv6 ranges from a public delegated prefix and cannot be used to create NetLb.
- VM_AND_FR: The subnetwork can be used for creating both VM instances and Forwarding Rules. It can also be used to reserve IPv6 addresses with both VM and FR endpoint types. Such a subnetwork gets its IPv6 range from Google IP Pool directly. Check the Ipv6GceEndpoint enum for the list of possible values.
#kind
def kind() -> ::String- (::String) — Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
#kind=
def kind=(value) -> ::String- value (::String) — Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
- (::String) — Output only. [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources.
#log_config
def log_config() -> ::Google::Cloud::Compute::V1::SubnetworkLogConfig- (::Google::Cloud::Compute::V1::SubnetworkLogConfig) — This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
#log_config=
def log_config=(value) -> ::Google::Cloud::Compute::V1::SubnetworkLogConfig- value (::Google::Cloud::Compute::V1::SubnetworkLogConfig) — This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
- (::Google::Cloud::Compute::V1::SubnetworkLogConfig) — This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging.
#name
def name() -> ::String-
(::String) — The name of the resource, provided by the client when initially creating
the resource. The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?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.
#name=
def name=(value) -> ::String-
value (::String) — The name of the resource, provided by the client when initially creating
the resource. The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?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.
-
(::String) — The name of the resource, provided by the client when initially creating
the resource. The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?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.
#network
def network() -> ::String- (::String) — 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.
#network=
def network=(value) -> ::String- value (::String) — 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.
- (::String) — 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.
#params
def params() -> ::Google::Cloud::Compute::V1::SubnetworkParams- (::Google::Cloud::Compute::V1::SubnetworkParams) — Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
#params=
def params=(value) -> ::Google::Cloud::Compute::V1::SubnetworkParams- value (::Google::Cloud::Compute::V1::SubnetworkParams) — Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
- (::Google::Cloud::Compute::V1::SubnetworkParams) — Input only. [Input Only] Additional params passed with the request, but not persisted as part of resource payload.
#private_ip_google_access
def private_ip_google_access() -> ::Boolean- (::Boolean) — 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.
#private_ip_google_access=
def private_ip_google_access=(value) -> ::Boolean- value (::Boolean) — 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.
- (::Boolean) — 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.
#private_ipv6_google_access
def private_ipv6_google_access() -> ::String-
(::String) — This field is for internal use.
This field can be both set at resource creation time and updated usingpatch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
#private_ipv6_google_access=
def private_ipv6_google_access=(value) -> ::String-
value (::String) — This field is for internal use.
This field can be both set at resource creation time and updated usingpatch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
-
(::String) — This field is for internal use.
This field can be both set at resource creation time and updated usingpatch. Check the PrivateIpv6GoogleAccess enum for the list of possible values.
#purpose
def purpose() -> ::String- (::String) — Check the Purpose enum for the list of possible values.
#purpose=
def purpose=(value) -> ::String- value (::String) — Check the Purpose enum for the list of possible values.
- (::String) — Check the Purpose enum for the list of possible values.
#region
def region() -> ::String- (::String) — URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
#region=
def region=(value) -> ::String- value (::String) — URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
- (::String) — URL of the region where the Subnetwork resides. This field can be set only at resource creation time.
#reserved_internal_range
def reserved_internal_range() -> ::String- (::String) — The URL of the reserved internal range.
#reserved_internal_range=
def reserved_internal_range=(value) -> ::String- value (::String) — The URL of the reserved internal range.
- (::String) — The URL of the reserved internal range.
#resolve_subnet_mask
def resolve_subnet_mask() -> ::String- (::String) — Configures subnet mask resolution for this subnetwork. Check the ResolveSubnetMask enum for the list of possible values.
#resolve_subnet_mask=
def resolve_subnet_mask=(value) -> ::String- value (::String) — Configures subnet mask resolution for this subnetwork. Check the ResolveSubnetMask enum for the list of possible values.
- (::String) — Configures subnet mask resolution for this subnetwork. Check the ResolveSubnetMask enum for the list of possible values.
#role
def role() -> ::String- (::String) — The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE 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.
#role=
def role=(value) -> ::String- value (::String) — The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE 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.
- (::String) — The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE 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.
#secondary_ip_ranges
def secondary_ip_ranges() -> ::Array<::Google::Cloud::Compute::V1::SubnetworkSecondaryRange>- (::Array<::Google::Cloud::Compute::V1::SubnetworkSecondaryRange>) — 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 apatch request. Supports both IPv4 and IPv6 ranges.
#secondary_ip_ranges=
def secondary_ip_ranges=(value) -> ::Array<::Google::Cloud::Compute::V1::SubnetworkSecondaryRange>- value (::Array<::Google::Cloud::Compute::V1::SubnetworkSecondaryRange>) — 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 apatch request. Supports both IPv4 and IPv6 ranges.
- (::Array<::Google::Cloud::Compute::V1::SubnetworkSecondaryRange>) — 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 apatch request. Supports both IPv4 and IPv6 ranges.
#self_link
def self_link() -> ::String- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String- value (::String) — [Output Only] Server-defined URL for the resource.
- (::String) — [Output Only] Server-defined URL for the resource.
#stack_type
def stack_type() -> ::String-
(::String) — The stack type for the subnet. If set to IPV4_ONLY, new VMs
in the subnet are assigned IPv4 addresses only. If set toIPV4_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 usingpatch. Check the StackType enum for the list of possible values.
#stack_type=
def stack_type=(value) -> ::String-
value (::String) — The stack type for the subnet. If set to IPV4_ONLY, new VMs
in the subnet are assigned IPv4 addresses only. If set toIPV4_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 usingpatch. Check the StackType enum for the list of possible values.
-
(::String) — The stack type for the subnet. If set to IPV4_ONLY, new VMs
in the subnet are assigned IPv4 addresses only. If set toIPV4_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 usingpatch. Check the StackType enum for the list of possible values.
#state
def state() -> ::String- (::String) — Output only. [Output Only] The state of the subnetwork, which can be one of the following values:READY: Subnetwork is created and ready to useDRAINING: 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 ofREADY Check the State enum for the list of possible values.
#state=
def state=(value) -> ::String- value (::String) — Output only. [Output Only] The state of the subnetwork, which can be one of the following values:READY: Subnetwork is created and ready to useDRAINING: 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 ofREADY Check the State enum for the list of possible values.
- (::String) — Output only. [Output Only] The state of the subnetwork, which can be one of the following values:READY: Subnetwork is created and ready to useDRAINING: 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 ofREADY Check the State enum for the list of possible values.
#system_reserved_external_ipv6_ranges
def system_reserved_external_ipv6_ranges() -> ::Array<::String>- (::Array<::String>) — Output only. [Output Only] The array of external IPv6 network ranges reserved from the subnetwork's external IPv6 range for system use.
#system_reserved_external_ipv6_ranges=
def system_reserved_external_ipv6_ranges=(value) -> ::Array<::String>- value (::Array<::String>) — Output only. [Output Only] The array of external IPv6 network ranges reserved from the subnetwork's external IPv6 range for system use.
- (::Array<::String>) — Output only. [Output Only] The array of external IPv6 network ranges reserved from the subnetwork's external IPv6 range for system use.
#system_reserved_internal_ipv6_ranges
def system_reserved_internal_ipv6_ranges() -> ::Array<::String>- (::Array<::String>) — Output only. [Output Only] The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use.
#system_reserved_internal_ipv6_ranges=
def system_reserved_internal_ipv6_ranges=(value) -> ::Array<::String>- value (::Array<::String>) — Output only. [Output Only] The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use.
- (::Array<::String>) — Output only. [Output Only] The array of internal IPv6 network ranges reserved from the subnetwork's internal IPv6 range for system use.
#utilization_details
def utilization_details() -> ::Google::Cloud::Compute::V1::SubnetworkUtilizationDetails- (::Google::Cloud::Compute::V1::SubnetworkUtilizationDetails) — Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the total number of allocated and free IPs in each range.
#utilization_details=
def utilization_details=(value) -> ::Google::Cloud::Compute::V1::SubnetworkUtilizationDetails- value (::Google::Cloud::Compute::V1::SubnetworkUtilizationDetails) — Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the total number of allocated and free IPs in each range.
- (::Google::Cloud::Compute::V1::SubnetworkUtilizationDetails) — Output only. [Output Only] The current IP utilization of all subnetwork ranges. Contains the total number of allocated and free IPs in each range.