Class: Google::Apis::BackupdrV1::AliasIpRange

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 alias IP range attached to an instance's network interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AliasIpRange

Returns a new instance of AliasIpRange.



162
163
164
# File 'lib/google/apis/backupdr_v1/classes.rb', line 162

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

Instance Attribute Details

#ip_cidr_rangeString

Optional. The IP alias ranges to allocate for this interface. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/backupdr_v1/classes.rb', line 153

def ip_cidr_range
  @ip_cidr_range
end

#subnetwork_range_nameString

Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used. Corresponds to the JSON property subnetworkRangeName

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/backupdr_v1/classes.rb', line 160

def subnetwork_range_name
  @subnetwork_range_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
170
# File 'lib/google/apis/backupdr_v1/classes.rb', line 167

def update!(**args)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @subnetwork_range_name = args[:subnetwork_range_name] if args.key?(:subnetwork_range_name)
end