Class: IBM::Cloud::SDK::VPC::VPNGATEWAY::PeerCIDRs
- Inherits:
-
IBM::Cloud::SDK::VPC::VPCCollection
- Object
- IBM::Cloud::SDKHTTP::BaseCollection
- IBM::Cloud::SDK::VPC::VPCCollection
- IBM::Cloud::SDK::VPC::VPNGATEWAY::PeerCIDRs
- Defined in:
- lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb
Overview
A list of Connection
Instance Attribute Summary
Attributes included from IBM::Cloud::SDKHTTP::BaseHTTPMixin
Attributes inherited from IBM::Cloud::SDKHTTP::BaseCollection
#connection, #endpoint, #logger, #token
Instance Method Summary collapse
-
#initialize(parent) ⇒ PeerCIDRs
constructor
A new instance of PeerCIDRs.
- #instance(cidr_prefix, prefix_length) ⇒ Object
Methods inherited from IBM::Cloud::SDK::VPC::VPCCollection
Methods included from IBM::Cloud::SDK::VPC::VpcHTTP
Methods included from IBM::Cloud::SDKHTTP::BaseHTTPMixin
#adhoc, #delete, #get, #metadata, #patch, #post, #put, #unchecked_response, #url
Methods inherited from IBM::Cloud::SDKHTTP::BaseCollection
#all, #create, #data, #fetch, #params, #reset_params
Constructor Details
#initialize(parent) ⇒ PeerCIDRs
Returns a new instance of PeerCIDRs.
11 12 13 14 15 |
# File 'lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb', line 11 def initialize(parent) @array_key = 'peer_cidrs' @instance = Connection super(parent, @array_key) end |
Instance Method Details
#instance(cidr_prefix, prefix_length) ⇒ Object
17 18 19 |
# File 'lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb', line 17 def instance(cidr_prefix, prefix_length) super(self, "#{cidr_prefix}/#{prefix_length}") end |