class IBM::Cloud::SDK::Vpc
Container that encapsulates the VPC
API.
Attributes
connection[R]
logger[R]
region[RW]
token[R]
Public Class Methods
new(region, connection, token, logger: nil)
click to toggle source
Create an API Client object for the VPC
IaaS service
@param region [String] the IBM
Power Cloud
instance region @param connection [IBM::Cloud::SDK::VPC::Connection] A connection object. @param logger [Logger] An instance of an instanciated logger.
# File lib/ibm/cloud/sdk/vpc.rb, line 39 def initialize(region, connection, token, logger: nil) @region = region @token = token @connection = connection @logger = logger || Logger.new($stdout, level: :warn) end
Public Instance Methods
endpoint()
click to toggle source
The Region API endpoint.
# File lib/ibm/cloud/sdk/vpc.rb, line 51 def endpoint "https://#{region.sub(/-\d$/, '')}.iaas.cloud.ibm.com/v1" end
floating_ips()
click to toggle source
Entry point to the Floating IPs API.
# File lib/ibm/cloud/sdk/vpc.rb, line 56 def floating_ips VPC::FloatingIPs.new(self) end
flowlog_collectors()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 60 def flowlog_collectors VPC::FlowLogCollectors.new(self) end
ike_policies()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 64 def ike_policies VPC::IKEPolicies.new(self) end
images()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 68 def images VPC::Images.new(self) end
instance_profiles()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 72 def instance_profiles VPC::InstanceProfiles.new(self) end
instances()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 76 def instances VPC::Instances.new(self) end
ipsec_policies()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 80 def ipsec_policies VPC::IPSecPolicies.new(self) end
keys()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 84 def keys VPC::Keys.new(self) end
load_balancers()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 88 def load_balancers VPC::LoadBalancers.new(self) end
network_acls()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 92 def network_acls VPC::NetworkACLs.new(self) end
operating_systems()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 96 def operating_systems VPC::OperatingSystems.new(self) end
public_gateways()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 100 def public_gateways VPC::PublicGateways.new(self) end
regions()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 104 def regions VPC::Regions.new(self) end
security_groups()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 108 def security_groups VPC::SecurityGroups.new(self) end
subnets()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 112 def subnets VPC::Subnets.new(self) end
volumes()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 120 def volumes VPC::Volumes.new(self) end
volumes_profiles()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 116 def volumes_profiles VPC::VolumeProfiles.new(self) end
vpcs()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 124 def vpcs VPC::Vpcs.new(self) end
vpn_gateways()
click to toggle source
# File lib/ibm/cloud/sdk/vpc.rb, line 128 def vpn_gateways VPC::VPNGateways.new(self) end