Class: Google::Apis::BackupdrV1::AccessConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_ipv6String

Optional. The external IPv6 address of this access configuration. Corresponds to the JSON property externalIpv6

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/backupdr_v1/classes.rb', line 88

def external_ipv6
  @external_ipv6
end

#external_ipv6_prefix_lengthFixnum

Optional. The prefix length of the external IPv6 range. Corresponds to the JSON property externalIpv6PrefixLength

Returns:

  • (Fixnum)


93
94
95
# File 'lib/google/apis/backupdr_v1/classes.rb', line 93

def external_ipv6_prefix_length
  @external_ipv6_prefix_length
end

#nameString

Optional. The name of this access configuration. Corresponds to the JSON property name

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/backupdr_v1/classes.rb', line 98

def name
  @name
end

#nat_ipString

Optional. The external IP address of this access configuration. Corresponds to the JSON property natIP

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/backupdr_v1/classes.rb', line 103

def nat_ip
  @nat_ip
end

#network_tierString

Optional. This signifies the networking tier used for configuring this access Corresponds to the JSON property networkTier

Returns:

  • (String)


108
109
110
# File 'lib/google/apis/backupdr_v1/classes.rb', line 108

def network_tier
  @network_tier
end

#public_ptr_domain_nameString

Optional. The DNS domain name for the public PTR record. Corresponds to the JSON property publicPtrDomainName

Returns:

  • (String)


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_ptrBoolean 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

Returns:

  • (Boolean)


119
120
121
# File 'lib/google/apis/backupdr_v1/classes.rb', line 119

def set_public_ptr
  @set_public_ptr
end

#typeString

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

Returns:

  • (String)


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