class Google::Apis::ComputeV1::UsableSubnetwork
Subnetwork
which the current user has compute.subnetworks.use permission on.
Attributes
- Output Only
-
The external IPv6 address range that is assigned to this
subnetwork. Corresponds to the JSON property `externalIpv6Prefix` @return [String]
- Output Only
-
The internal IPv6 address range that is assigned to this
subnetwork. Corresponds to the JSON property `internalIpv6Prefix` @return [String]
The range of internal addresses that are owned by this subnetwork. Corresponds to the JSON property `ipCidrRange` @return [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. Corresponds to the JSON property `ipv6AccessType` @return [String]
Network
URL. Corresponds to the JSON property `network` @return [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. Corresponds to the JSON property `purpose` @return [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. Corresponds to the JSON property `role` @return [String]
Secondary IP ranges. Corresponds to the JSON property `secondaryIpRanges` @return [Array<Google::Apis::ComputeV1::UsableSubnetworkSecondaryRange>]
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. Corresponds to the JSON property `stackType` @return [String]
Subnetwork
URL. Corresponds to the JSON property `subnetwork` @return [String]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 39521 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 39526 def update!(**args) @external_ipv6_prefix = args[:external_ipv6_prefix] if args.key?(:external_ipv6_prefix) @internal_ipv6_prefix = args[:internal_ipv6_prefix] if args.key?(:internal_ipv6_prefix) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @ipv6_access_type = args[:ipv6_access_type] if args.key?(:ipv6_access_type) @network = args[:network] if args.key?(:network) @purpose = args[:purpose] if args.key?(:purpose) @role = args[:role] if args.key?(:role) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @stack_type = args[:stack_type] if args.key?(:stack_type) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end