Class: Google::Apis::ServicenetworkingV1::SecondaryIpRangeSpec
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::SecondaryIpRangeSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Instance Attribute Summary collapse
-
#ip_prefix_length ⇒ Fixnum
Required.
-
#outside_allocation_public_ip_range ⇒ String
Optional.
-
#range_name ⇒ String
Required.
-
#requested_address ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecondaryIpRangeSpec
constructor
A new instance of SecondaryIpRangeSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecondaryIpRangeSpec
Returns a new instance of SecondaryIpRangeSpec.
3499 3500 3501 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ip_prefix_length ⇒ Fixnum
Required. The prefix length of the secondary IP range. Use CIDR range notation,
such as 30 to provision a secondary IP range with an x.x.x.x/30 CIDR
range. The IP address range is drawn from a pool of available ranges in the
service consumer's allocated range.
Corresponds to the JSON property ipPrefixLength
3475 3476 3477 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3475 def ip_prefix_length @ip_prefix_length end |
#outside_allocation_public_ip_range ⇒ String
Optional. Enable outside allocation using public IP addresses. Any public IP
range may be specified. If this field is provided, we will not use customer
reserved ranges for this secondary IP range.
Corresponds to the JSON property outsideAllocationPublicIpRange
3482 3483 3484 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3482 def outside_allocation_public_ip_range @outside_allocation_public_ip_range end |
#range_name ⇒ String
Required. A name for the secondary IP range. The name must be 1-63 characters
long, and comply with RFC1035. The name must be unique within the subnetwork.
Corresponds to the JSON property rangeName
3488 3489 3490 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3488 def range_name @range_name end |
#requested_address ⇒ String
Optional. The starting address of a range. The address must be a valid IPv4
address in the x.x.x.x format. This value combined with the IP prefix range is
the CIDR range for the secondary IP range. The range must be within the
allocated range that is assigned to the private connection. If the CIDR range
isn't available, the call fails.
Corresponds to the JSON property requestedAddress
3497 3498 3499 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3497 def requested_address @requested_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3504 3505 3506 3507 3508 3509 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 3504 def update!(**args) @ip_prefix_length = args[:ip_prefix_length] if args.key?(:ip_prefix_length) @outside_allocation_public_ip_range = args[:outside_allocation_public_ip_range] if args.key?(:outside_allocation_public_ip_range) @range_name = args[:range_name] if args.key?(:range_name) @requested_address = args[:requested_address] if args.key?(:requested_address) end |