Class: Google::Apis::ManagerV1beta2::AccessConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb

Overview

A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccessConfig

Returns a new instance of AccessConfig



46
47
48
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 46

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

Instance Attribute Details

#nameString

Name of this access configuration. Corresponds to the JSON property name

Returns:

  • (String)


33
34
35
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 33

def name
  @name
end

#nat_ipString

An external IP address associated with this instance. Corresponds to the JSON property natIp

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 38

def nat_ip
  @nat_ip
end

#typeString

Type of this access configuration file. (Currently only ONE_TO_ONE_NAT is legal.) Corresponds to the JSON property type

Returns:

  • (String)


44
45
46
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 44

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



51
52
53
54
55
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 51

def update!(**args)
  @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