Class: Google::Apis::ComputeAlpha::AccessConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccessConfig

Returns a new instance of AccessConfig



528
529
530
# File 'generated/google/apis/compute_alpha/classes.rb', line 528

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

[Output Only] Type of the resource. Always compute#accessConfig for access configs. Corresponds to the JSON property kind

Returns:

  • (String)


469
470
471
# File 'generated/google/apis/compute_alpha/classes.rb', line 469

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


476
477
478
# File 'generated/google/apis/compute_alpha/classes.rb', line 476

def name
  @name
end

#nat_ipString

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

Returns:

  • (String)


485
486
487
# File 'generated/google/apis/compute_alpha/classes.rb', line 485

def nat_ip
  @nat_ip
end

#network_tierString

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

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/compute_alpha/classes.rb', line 496

def network_tier
  @network_tier
end

#public_dns_nameString

[Output Only] The public DNS domain name for the instance. Corresponds to the JSON property publicDnsName

Returns:

  • (String)


501
502
503
# File 'generated/google/apis/compute_alpha/classes.rb', line 501

def public_dns_name
  @public_dns_name
end

#public_ptr_domain_nameString

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

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/compute_alpha/classes.rb', line 507

def public_ptr_domain_name
  @public_ptr_domain_name
end

#set_public_dnsBoolean Also known as: set_public_dns?

Specifies whether a public DNS ?A? record should be created for the external IP address of this access configuration. Corresponds to the JSON property setPublicDns

Returns:

  • (Boolean)


513
514
515
# File 'generated/google/apis/compute_alpha/classes.rb', line 513

def set_public_dns
  @set_public_dns
end

#set_public_ptrBoolean 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

Returns:

  • (Boolean)


520
521
522
# File 'generated/google/apis/compute_alpha/classes.rb', line 520

def set_public_ptr
  @set_public_ptr
end

#typeString

The type of configuration. The default and only option is ONE_TO_ONE_NAT. Corresponds to the JSON property type

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/compute_alpha/classes.rb', line 526

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



533
534
535
536
537
538
539
540
541
542
543
# File 'generated/google/apis/compute_alpha/classes.rb', line 533

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)
  @network_tier = args[:network_tier] if args.key?(:network_tier)
  @public_dns_name = args[:public_dns_name] if args.key?(:public_dns_name)
  @public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name)
  @set_public_dns = args[:set_public_dns] if args.key?(:set_public_dns)
  @set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr)
  @type = args[:type] if args.key?(:type)
end