Class: Google::Apis::BackupdrV1::AccessConfig
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::AccessConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_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
-
#external_ipv6 ⇒ String
Optional.
-
#external_ipv6_prefix_length ⇒ Fixnum
Optional.
-
#name ⇒ String
Optional.
-
#nat_ip ⇒ String
Optional.
-
#network_tier ⇒ String
Optional.
-
#public_ptr_domain_name ⇒ String
Optional.
-
#set_public_ptr ⇒ Boolean
(also: #set_public_ptr?)
Optional.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessConfig
constructor
A new instance of AccessConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessConfig
Returns a new instance of AccessConfig.
129 130 131 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#external_ipv6 ⇒ String
Optional. The external IPv6 address of this access configuration.
Corresponds to the JSON property externalIpv6
88 89 90 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 88 def external_ipv6 @external_ipv6 end |
#external_ipv6_prefix_length ⇒ Fixnum
Optional. The prefix length of the external IPv6 range.
Corresponds to the JSON property externalIpv6PrefixLength
93 94 95 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 93 def external_ipv6_prefix_length @external_ipv6_prefix_length end |
#name ⇒ String
Optional. The name of this access configuration.
Corresponds to the JSON property name
98 99 100 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 98 def name @name end |
#nat_ip ⇒ String
Optional. The external IP address of this access configuration.
Corresponds to the JSON property natIP
103 104 105 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 103 def nat_ip @nat_ip end |
#network_tier ⇒ String
Optional. This signifies the networking tier used for configuring this access
Corresponds to the JSON property networkTier
108 109 110 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 108 def network_tier @network_tier end |
#public_ptr_domain_name ⇒ String
Optional. The DNS domain name for the public PTR record.
Corresponds to the JSON property publicPtrDomainName
113 114 115 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 113 def public_ptr_domain_name @public_ptr_domain_name end |
#set_public_ptr ⇒ Boolean Also known as: set_public_ptr?
Optional. 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
119 120 121 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 119 def set_public_ptr @set_public_ptr end |
#type ⇒ String
Optional. In accessConfigs (IPv4), the default and only option is
ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is
DIRECT_IPV6.
Corresponds to the JSON property type
127 128 129 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 127 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
134 135 136 137 138 139 140 141 142 143 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 134 def update!(**args) @external_ipv6 = args[:external_ipv6] if args.key?(:external_ipv6) @external_ipv6_prefix_length = args[:external_ipv6_prefix_length] if args.key?(:external_ipv6_prefix_length) @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_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 |