Compute Engine v1 API - Class UsableSubnetwork (2.10.0)

public sealed class UsableSubnetwork : IMessage<UsableSubnetwork>, IEquatable<UsableSubnetwork>, IDeepCloneable<UsableSubnetwork>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class UsableSubnetwork.

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

Inheritance

object > UsableSubnetwork

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

UsableSubnetwork()

public UsableSubnetwork()

UsableSubnetwork(UsableSubnetwork)

public UsableSubnetwork(UsableSubnetwork other)
Parameter
NameDescription
otherUsableSubnetwork

Properties

ExternalIpv6Prefix

public string ExternalIpv6Prefix { get; set; }

[Output Only] The external IPv6 address range that is assigned to this subnetwork.

Property Value
TypeDescription
string

HasExternalIpv6Prefix

public bool HasExternalIpv6Prefix { get; }

Gets whether the "external_ipv6_prefix" field is set

Property Value
TypeDescription
bool

HasInternalIpv6Prefix

public bool HasInternalIpv6Prefix { get; }

Gets whether the "internal_ipv6_prefix" field is set

Property Value
TypeDescription
bool

HasIpCidrRange

public bool HasIpCidrRange { get; }

Gets whether the "ip_cidr_range" field is set

Property Value
TypeDescription
bool

HasIpv6AccessType

public bool HasIpv6AccessType { get; }

Gets whether the "ipv6_access_type" field is set

Property Value
TypeDescription
bool

HasNetwork

public bool HasNetwork { get; }

Gets whether the "network" field is set

Property Value
TypeDescription
bool

HasPurpose

public bool HasPurpose { get; }

Gets whether the "purpose" field is set

Property Value
TypeDescription
bool

HasRole

public bool HasRole { get; }

Gets whether the "role" field is set

Property Value
TypeDescription
bool

HasStackType

public bool HasStackType { get; }

Gets whether the "stack_type" field is set

Property Value
TypeDescription
bool

HasSubnetwork

public bool HasSubnetwork { get; }

Gets whether the "subnetwork" field is set

Property Value
TypeDescription
bool

InternalIpv6Prefix

public string InternalIpv6Prefix { get; set; }

[Output Only] The internal IPv6 address range that is assigned to this subnetwork.

Property Value
TypeDescription
string

IpCidrRange

public string IpCidrRange { get; set; }

The range of internal addresses that are owned by this subnetwork.

Property Value
TypeDescription
string

Ipv6AccessType

public string Ipv6AccessType { get; set; }

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.

Property Value
TypeDescription
string

Network

public string Network { get; set; }

Network URL.

Property Value
TypeDescription
string

Purpose

public string Purpose { get; set; }

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.

Property Value
TypeDescription
string

Role

public string Role { get; set; }

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.

Property Value
TypeDescription
string

SecondaryIpRanges

public RepeatedField<UsableSubnetworkSecondaryRange> SecondaryIpRanges { get; }

Secondary IP ranges.

Property Value
TypeDescription
RepeatedFieldUsableSubnetworkSecondaryRange

StackType

public string StackType { get; set; }

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.

Property Value
TypeDescription
string

Subnetwork

public string Subnetwork { get; set; }

Subnetwork URL.

Property Value
TypeDescription
string