class Google::Apis::ComputeV1::AccessConfig

An access configuration attached to an instance's network interface.

Attributes

kind[RW]
Output Only

Type of the resource. Always compute#accessConfig for access

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

name[RW]

Name of this access configuration. 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]

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 generated/google/apis/compute_v1/classes.rb, line 54
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_v1/classes.rb, line 59
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @nat_ip = args[:nat_ip] if args.key?(:nat_ip)
  @type = args[:type] if args.key?(:type)
end