Class: Google::Apis::ManagerV1beta2::AccessConfig
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::AccessConfig
- 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
-
#name ⇒ String
Name of this access configuration.
-
#nat_ip ⇒ String
An external IP address associated with this instance.
-
#type ⇒ String
Type of this access configuration file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessConfig
constructor
A new instance of AccessConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#name ⇒ String
Name of this access configuration.
Corresponds to the JSON property name
33 34 35 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 33 def name @name end |
#nat_ip ⇒ String
An external IP address associated with this instance.
Corresponds to the JSON property natIp
38 39 40 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 38 def nat_ip @nat_ip end |
#type ⇒ String
Type of this access configuration file. (Currently only ONE_TO_ONE_NAT is
legal.)
Corresponds to the JSON property type
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 |