Class: Google::Apis::ComputeBeta::AliasIpRange
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AliasIpRange
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
An alias IP range attached to an instance's network interface.
Instance Attribute Summary collapse
-
#ip_cidr_range ⇒ String
The IP alias ranges to allocate for this interface.
-
#subnetwork_range_name ⇒ String
The name of a subnetwork secondary IP range from which to allocate an IP alias range.
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.
1095 1096 1097 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1095 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_cidr_range ⇒ String
The IP alias ranges to allocate for this interface. This IP CIDR range must
belong to the specified subnetwork and cannot contain IP addresses reserved by
system or used by other network interfaces. This range may be a single IP
address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string
(such as 10.1.2.0/24).
Corresponds to the JSON property ipCidrRange
1087 1088 1089 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1087 def ip_cidr_range @ip_cidr_range end |
#subnetwork_range_name ⇒ String
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
1093 1094 1095 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1093 def subnetwork_range_name @subnetwork_range_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1100 1101 1102 1103 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1100 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 |