Class: Google::Apis::BackupdrV1::AliasIpRange
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::AliasIpRange
- 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
-
#ip_cidr_range ⇒ String
Optional.
-
#subnetwork_range_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AliasIpRange
constructor
A new instance of AliasIpRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AliasIpRange
Returns a new instance of AliasIpRange.
206 207 208 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 206 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_cidr_range ⇒ String
Optional. The IP alias ranges to allocate for this interface.
Corresponds to the JSON property ipCidrRange
197 198 199 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 197 def ip_cidr_range @ip_cidr_range end |
#subnetwork_range_name ⇒ String
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
204 205 206 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 204 def subnetwork_range_name @subnetwork_range_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
211 212 213 214 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 211 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 |