Class: Google::Apis::ComputeBeta::AccessConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AccessConfig
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/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.
-
#public_ptr_domain_name ⇒ String
The DNS domain name for the public PTR record.
-
#set_public_ptr ⇒ Boolean
(also: #set_public_ptr?)
Specifies whether a public DNS ?PTR? record should be created to map the external IP address of the instance to a DNS domain name.
-
#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
494 495 496 |
# File 'generated/google/apis/compute_beta/classes.rb', line 494 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
458 459 460 |
# File 'generated/google/apis/compute_beta/classes.rb', line 458 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
465 466 467 |
# File 'generated/google/apis/compute_beta/classes.rb', line 465 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
474 475 476 |
# File 'generated/google/apis/compute_beta/classes.rb', line 474 def nat_ip @nat_ip end |
#public_ptr_domain_name ⇒ String
The DNS domain name for the public PTR record. This field can only be set when
the set_public_ptr field is enabled.
Corresponds to the JSON property publicPtrDomainName
480 481 482 |
# File 'generated/google/apis/compute_beta/classes.rb', line 480 def public_ptr_domain_name @public_ptr_domain_name end |
#set_public_ptr ⇒ Boolean Also known as: set_public_ptr?
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
486 487 488 |
# File 'generated/google/apis/compute_beta/classes.rb', line 486 def set_public_ptr @set_public_ptr end |
#type ⇒ String
The type of configuration. The default and only option is ONE_TO_ONE_NAT.
Corresponds to the JSON property type
492 493 494 |
# File 'generated/google/apis/compute_beta/classes.rb', line 492 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
499 500 501 502 503 504 505 506 |
# File 'generated/google/apis/compute_beta/classes.rb', line 499 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) @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 |