class Google::Apis::ComputeV1::AccessConfig

An access configuration attached to an instance's network interface. Only one access config per instance is supported.

Attributes

external_ipv6[RW]
Output Only

The first IPv6 address of the external IPv6 range associated

with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically. Corresponds to the JSON property `externalIpv6` @return [String]

external_ipv6_prefix_length[RW]
Output Only

The prefix length of the external IPv6 range.

Corresponds to the JSON property `externalIpv6PrefixLength` @return [Fixnum]

kind[RW]
Output Only

Type of the resource. Always compute#accessConfig for access

configs. Corresponds to the JSON property `kind` @return [String]

name[RW]

The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. Corresponds to the JSON property `name` @return [String]

nat_ip[RW]

An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance. Corresponds to the JSON property `natIP` @return [String]

network_tier[RW]

This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP. Corresponds to the JSON property `networkTier` @return [String]

public_ptr_domain_name[RW]

The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled. Corresponds to the JSON property `publicPtrDomainName` @return [String]

set_public_ptr[RW]

Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. Corresponds to the JSON property `setPublicPtr` @return [Boolean]

set_public_ptr?[RW]

Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. Corresponds to the JSON property `setPublicPtr` @return [Boolean]

type[RW]

The type of configuration. The default and only option is ONE_TO_ONE_NAT. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 530
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 535
def update!(**args)
  @external_ipv6 = args[:external_ipv6] if args.key?(:external_ipv6)
  @external_ipv6_prefix_length = args[:external_ipv6_prefix_length] if args.key?(:external_ipv6_prefix_length)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @nat_ip = args[:nat_ip] if args.key?(:nat_ip)
  @network_tier = args[:network_tier] if args.key?(:network_tier)
  @public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name)
  @set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr)
  @type = args[:type] if args.key?(:type)
end