Class UsableSubnetwork (1.13.0)

UsableSubnetwork(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
external_ipv6_prefix str
[Output Only] The external IPv6 address range that is assigned to this subnetwork. This field is a member of oneof_ _external_ipv6_prefix.
internal_ipv6_prefix str
[Output Only] The internal IPv6 address range that is assigned to this subnetwork. This field is a member of oneof_ _internal_ipv6_prefix.
ip_cidr_range str
The range of internal addresses that are owned by this subnetwork. This field is a member of oneof_ _ip_cidr_range.
ipv6_access_type str
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. This field is a member of oneof_ _ipv6_access_type.
network str
Network URL. This field is a member of oneof_ _network.
purpose str
The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. Check the Purpose enum for the list of possible values. This field is a member of oneof_ _purpose.
role str
The role of subnetwork. Currently, this field is only used when purpose = 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. This field is a member of oneof_ _role.
secondary_ip_ranges MutableSequence[google.cloud.compute_v1.types.UsableSubnetworkSecondaryRange]
Secondary IP ranges.
stack_type str
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. This field is a member of oneof_ _stack_type.
subnetwork str
Subnetwork URL. This field is a member of oneof_ _subnetwork.

Classes

Ipv6AccessType

Ipv6AccessType(value)

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.

Values: UNDEFINED_IPV6_ACCESS_TYPE (0): A value indicating that the enum field is not set. EXTERNAL (35607499): VMs on this subnet will be assigned IPv6 addresses that are accessible via the Internet, as well as the VPC network. INTERNAL (279295677): VMs on this subnet will be assigned IPv6 addresses that are only accessible over the VPC network.

Purpose

Purpose(value)

The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.

Values: UNDEFINED_PURPOSE (0): A value indicating that the enum field is not set. INTERNAL_HTTPS_LOAD_BALANCER (248748889): Subnet reserved for Internal HTTP(S) Load Balancing. PRIVATE (403485027): Regular user created or automatically created subnet. PRIVATE_RFC_1918 (254902107): Regular user created or automatically created subnet. PRIVATE_SERVICE_CONNECT (48134724): Subnetworks created for Private Service Connect in the producer network. REGIONAL_MANAGED_PROXY (153049966): Subnetwork used for Regional Internal/External HTTP(S) Load Balancing.

Role

Role(value)

The role of subnetwork. Currently, this field is only used when purpose = 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.

Values: UNDEFINED_ROLE (0): A value indicating that the enum field is not set. ACTIVE (314733318): The ACTIVE subnet that is currently used. BACKUP (341010882): The BACKUP subnet that could be promoted to ACTIVE.

StackType

StackType(value)

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.

Values: UNDEFINED_STACK_TYPE (0): A value indicating that the enum field is not set. IPV4_IPV6 (22197249): New VMs in this subnet can have both IPv4 and IPv6 addresses. IPV4_ONLY (22373798): New VMs in this subnet will only be assigned IPv4 addresses.