Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::UsableSubnetwork (v1.6.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::UsableSubnetwork.

Subnetwork which the current user has compute.subnetworks.use permission on.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#external_ipv6_prefix

def external_ipv6_prefix() -> ::String
Returns
  • (::String) — [Output Only] The external IPv6 address range that is assigned to this subnetwork.

#external_ipv6_prefix=

def external_ipv6_prefix=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The external IPv6 address range that is assigned to this subnetwork.
Returns
  • (::String) — [Output Only] The external IPv6 address range that is assigned to this subnetwork.

#internal_ipv6_prefix

def internal_ipv6_prefix() -> ::String
Returns
  • (::String) — [Output Only] The internal IPv6 address range that is assigned to this subnetwork.

#internal_ipv6_prefix=

def internal_ipv6_prefix=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The internal IPv6 address range that is assigned to this subnetwork.
Returns
  • (::String) — [Output Only] The internal IPv6 address range that is assigned to this subnetwork.

#ip_cidr_range

def ip_cidr_range() -> ::String
Returns
  • (::String) — The range of internal addresses that are owned by this subnetwork.

#ip_cidr_range=

def ip_cidr_range=(value) -> ::String
Parameter
  • value (::String) — The range of internal addresses that are owned by this subnetwork.
Returns
  • (::String) — The range of internal addresses that are owned by this subnetwork.

#ipv6_access_type

def ipv6_access_type() -> ::String
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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.

#network

def network() -> ::String
Returns
  • (::String) — Network URL.

#network=

def network=(value) -> ::String
Parameter
  • value (::String) — Network URL.
Returns
  • (::String) — Network URL.

#purpose

def purpose() -> ::String
Returns
  • (::String) — The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.

#purpose=

def purpose=(value) -> ::String
Parameter
  • value (::String) — The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.
Returns
  • (::String) — The purpose of the resource. This field can be either PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE_RFC_1918. The enableFlowLogs field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. Check the Purpose enum for the list of possible values.

#role

def role() -> ::String
Returns
  • (::String) — The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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
Parameter
  • value (::String) — The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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.
Returns
  • (::String) — The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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::UsableSubnetworkSecondaryRange>
Returns

#secondary_ip_ranges=

def secondary_ip_ranges=(value) -> ::Array<::Google::Cloud::Compute::V1::UsableSubnetworkSecondaryRange>
Parameter
Returns

#stack_type

def stack_type() -> ::String
Returns
  • (::String) — 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.

#stack_type=

def stack_type=(value) -> ::String
Parameter
  • 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 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.
Returns
  • (::String) — 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.

#subnetwork

def subnetwork() -> ::String
Returns
  • (::String) — Subnetwork URL.

#subnetwork=

def subnetwork=(value) -> ::String
Parameter
  • value (::String) — Subnetwork URL.
Returns
  • (::String) — Subnetwork URL.