Class: IBM::Cloud::SDK::VPC::VPNGATEWAY::PeerCIDRs

Inherits:
IBM::Cloud::SDK::VPC::VPCCollection show all
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

#endpoint

Attributes inherited from IBM::Cloud::SDKHTTP::BaseCollection

#connection, #endpoint, #logger, #token

Instance Method Summary collapse

Methods inherited from IBM::Cloud::SDK::VPC::VPCCollection

#count, #has_count?, #params

Methods included from IBM::Cloud::SDK::VPC::VpcHTTP

#metadata

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