Class: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

Represents a secondary IP range of a subnetwork.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SubnetworkSecondaryRange

Returns a new instance of SubnetworkSecondaryRange.



33109
33110
33111
# File 'generated/google/apis/compute_alpha/classes.rb', line 33109

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

Instance Attribute Details

#ip_cidr_rangeString

The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


33093
33094
33095
# File 'generated/google/apis/compute_alpha/classes.rb', line 33093

def ip_cidr_range
  @ip_cidr_range
end

#range_nameString

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. 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

Returns:

  • (String)


33100
33101
33102
# File 'generated/google/apis/compute_alpha/classes.rb', line 33100

def range_name
  @range_name
end

#range_typeString

The type of IP CIDR range to associate with this subnetwork secondary range. The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be set to NON_RFC_1918. Corresponds to the JSON property rangeType

Returns:

  • (String)


33107
33108
33109
# File 'generated/google/apis/compute_alpha/classes.rb', line 33107

def range_type
  @range_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33114
33115
33116
33117
33118
# File 'generated/google/apis/compute_alpha/classes.rb', line 33114

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