Class: IBM::Cloud::SDK::VPC::VPNGATEWAY::PeerCIDRs
- Inherits:
-
BaseCollection
- Object
- BaseVPC
- BaseCollection
- 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 inherited from BaseVPC
#connection, #endpoint, #logger
Instance Method Summary collapse
-
#initialize(parent) ⇒ PeerCIDRs
constructor
A new instance of PeerCIDRs.
- #instance(cidr_prefix, prefix_length) ⇒ Object
Methods inherited from BaseCollection
#all, #count, #create, #data, #fetch, #has_count?, #params
Methods inherited from BaseVPC
#adhoc, #delete, #get, #patch, #post, #put, #url
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 |