Class: IBM::Cloud::SDK::Vpc
Overview
Container that encapsulates the VPC API.
Instance Attribute Summary collapse
Instance Method Summary
collapse
#metadata
#adhoc, #delete, #get, #metadata, #patch, #post, #put, #unchecked_response, #url
Constructor Details
#initialize(region, connection, token, logger: nil) ⇒ Vpc
Create an API Client object for the VPC IaaS service
39
40
41
42
43
44
45
|
# 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
|
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
47
48
49
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 47
def connection
@connection
end
|
#logger ⇒ Object
Returns the value of attribute logger.
47
48
49
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 47
def logger
@logger
end
|
#region ⇒ Object
Returns the value of attribute region.
48
49
50
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 48
def region
@region
end
|
#token ⇒ Object
Returns the value of attribute token.
47
48
49
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 47
def token
@token
end
|
Instance Method Details
#endpoint ⇒ Object
51
52
53
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 51
def endpoint
"https://#{region.sub(/-\d$/, '')}.iaas.cloud.ibm.com/v1"
end
|
#floating_ips ⇒ Object
Entry point to the Floating IPs API.
56
57
58
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 56
def floating_ips
VPC::FloatingIPs.new(self)
end
|
#flowlog_collectors ⇒ Object
#ike_policies ⇒ Object
64
65
66
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 64
def ike_policies
VPC::IKEPolicies.new(self)
end
|
#images ⇒ Object
68
69
70
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 68
def images
VPC::Images.new(self)
end
|
#instance_profiles ⇒ Object
#instances ⇒ Object
76
77
78
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 76
def instances
VPC::Instances.new(self)
end
|
#ipsec_policies ⇒ Object
80
81
82
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 80
def ipsec_policies
VPC::IPSecPolicies.new(self)
end
|
#keys ⇒ Object
84
85
86
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 84
def keys
VPC::Keys.new(self)
end
|
#load_balancers ⇒ Object
88
89
90
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 88
def load_balancers
VPC::LoadBalancers.new(self)
end
|
#network_acls ⇒ Object
92
93
94
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 92
def network_acls
VPC::NetworkACLs.new(self)
end
|
#operating_systems ⇒ Object
#public_gateways ⇒ Object
100
101
102
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 100
def public_gateways
VPC::PublicGateways.new(self)
end
|
#regions ⇒ Object
104
105
106
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 104
def regions
VPC::Regions.new(self)
end
|
#security_groups ⇒ Object
108
109
110
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 108
def security_groups
VPC::SecurityGroups.new(self)
end
|
#subnets ⇒ Object
112
113
114
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 112
def subnets
VPC::Subnets.new(self)
end
|
#volumes ⇒ Object
120
121
122
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 120
def volumes
VPC::Volumes.new(self)
end
|
#volumes_profiles ⇒ Object
116
117
118
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 116
def volumes_profiles
VPC::VolumeProfiles.new(self)
end
|
#vpcs ⇒ Object
124
125
126
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 124
def vpcs
VPC::Vpcs.new(self)
end
|
#vpn_gateways ⇒ Object
128
129
130
|
# File 'lib/ibm/cloud/sdk/vpc.rb', line 128
def vpn_gateways
VPC::VPNGateways.new(self)
end
|