Class: Google::Apis::ComputeV1::AccessConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::AccessConfig
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Overview
An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Instance Attribute Summary collapse
-
#kind ⇒ String
[Output Only] Type of the resource.
-
#name ⇒ String
The name of this access configuration.
-
#nat_ip ⇒ String
An external IP address associated with this instance.
-
#type ⇒ String
The type of configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessConfig
constructor
A new instance of AccessConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccessConfig
Returns a new instance of AccessConfig
57 58 59 |
# File 'generated/google/apis/compute_v1/classes.rb', line 57 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
[Output Only] Type of the resource. Always compute#accessConfig for access
configs.
Corresponds to the JSON property kind
34 35 36 |
# File 'generated/google/apis/compute_v1/classes.rb', line 34 def kind @kind end |
#name ⇒ String
The name of this access configuration. The default and recommended name is
External NAT but you can use any arbitrary string you would like. For example,
My external IP or Network Access.
Corresponds to the JSON property name
41 42 43 |
# File 'generated/google/apis/compute_v1/classes.rb', line 41 def name @name end |
#nat_ip ⇒ String
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
50 51 52 |
# File 'generated/google/apis/compute_v1/classes.rb', line 50 def nat_ip @nat_ip end |
#type ⇒ String
The type of configuration. The default and only option is ONE_TO_ONE_NAT.
Corresponds to the JSON property type
55 56 57 |
# File 'generated/google/apis/compute_v1/classes.rb', line 55 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
62 63 64 65 66 67 |
# File 'generated/google/apis/compute_v1/classes.rb', line 62 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 |