oraclebmc 1.2.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.md → README_BMCS.md} +21 -26
- data/lib/oraclebmc.rb +1 -19
- metadata +16 -259
- data/lib/oraclebmc/api_client.rb +0 -306
- data/lib/oraclebmc/config.rb +0 -80
- data/lib/oraclebmc/config_file_loader.rb +0 -85
- data/lib/oraclebmc/core/blockstorage_client.rb +0 -460
- data/lib/oraclebmc/core/compute_client.rb +0 -1267
- data/lib/oraclebmc/core/core.rb +0 -112
- data/lib/oraclebmc/core/models/attach_i_scsi_volume_details.rb +0 -137
- data/lib/oraclebmc/core/models/attach_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/attach_volume_details.rb +0 -165
- data/lib/oraclebmc/core/models/capture_console_history_details.rb +0 -120
- data/lib/oraclebmc/core/models/console_history.rb +0 -213
- data/lib/oraclebmc/core/models/cpe.rb +0 -169
- data/lib/oraclebmc/core/models/create_cpe_details.rb +0 -145
- data/lib/oraclebmc/core/models/create_cross_connect_details.rb +0 -204
- data/lib/oraclebmc/core/models/create_cross_connect_group_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_dhcp_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_drg_attachment_details.rb +0 -142
- data/lib/oraclebmc/core/models/create_drg_details.rb +0 -131
- data/lib/oraclebmc/core/models/create_image_details.rb +0 -159
- data/lib/oraclebmc/core/models/create_internet_gateway_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_ip_sec_connection_details.rb +0 -168
- data/lib/oraclebmc/core/models/create_private_ip_details.rb +0 -173
- data/lib/oraclebmc/core/models/create_route_table_details.rb +0 -153
- data/lib/oraclebmc/core/models/create_security_list_details.rb +0 -164
- data/lib/oraclebmc/core/models/create_subnet_details.rb +0 -257
- data/lib/oraclebmc/core/models/create_vcn_details.rb +0 -171
- data/lib/oraclebmc/core/models/create_virtual_circuit_details.rb +0 -260
- data/lib/oraclebmc/core/models/create_vnic_details.rb +0 -214
- data/lib/oraclebmc/core/models/create_volume_backup_details.rb +0 -133
- data/lib/oraclebmc/core/models/create_volume_details.rb +0 -170
- data/lib/oraclebmc/core/models/cross_connect.rb +0 -235
- data/lib/oraclebmc/core/models/cross_connect_group.rb +0 -187
- data/lib/oraclebmc/core/models/cross_connect_location.rb +0 -134
- data/lib/oraclebmc/core/models/cross_connect_mapping.rb +0 -190
- data/lib/oraclebmc/core/models/cross_connect_port_speed_shape.rb +0 -137
- data/lib/oraclebmc/core/models/cross_connect_status.rb +0 -200
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +0 -171
- data/lib/oraclebmc/core/models/dhcp_option.rb +0 -135
- data/lib/oraclebmc/core/models/dhcp_options.rb +0 -208
- data/lib/oraclebmc/core/models/dhcp_search_domain_option.rb +0 -141
- data/lib/oraclebmc/core/models/drg.rb +0 -186
- data/lib/oraclebmc/core/models/drg_attachment.rb +0 -208
- data/lib/oraclebmc/core/models/egress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/export_image_details.rb +0 -134
- data/lib/oraclebmc/core/models/export_image_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/export_image_via_object_storage_uri_details.rb +0 -130
- data/lib/oraclebmc/core/models/fast_connect_provider_service.rb +0 -145
- data/lib/oraclebmc/core/models/i_scsi_volume_attachment.rb +0 -212
- data/lib/oraclebmc/core/models/icmp_options.rb +0 -131
- data/lib/oraclebmc/core/models/image.rb +0 -245
- data/lib/oraclebmc/core/models/image_source_details.rb +0 -134
- data/lib/oraclebmc/core/models/image_source_via_object_storage_tuple_details.rb +0 -150
- data/lib/oraclebmc/core/models/image_source_via_object_storage_uri_details.rb +0 -128
- data/lib/oraclebmc/core/models/ingress_security_rule.rb +0 -198
- data/lib/oraclebmc/core/models/instance.rb +0 -307
- data/lib/oraclebmc/core/models/instance_credentials.rb +0 -131
- data/lib/oraclebmc/core/models/internet_gateway.rb +0 -210
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +0 -223
- data/lib/oraclebmc/core/models/ip_sec_connection_device_config.rb +0 -153
- data/lib/oraclebmc/core/models/ip_sec_connection_device_status.rb +0 -156
- data/lib/oraclebmc/core/models/launch_instance_details.rb +0 -336
- data/lib/oraclebmc/core/models/letter_of_authority.rb +0 -194
- data/lib/oraclebmc/core/models/port_range.rb +0 -133
- data/lib/oraclebmc/core/models/private_ip.rb +0 -248
- data/lib/oraclebmc/core/models/route_rule.rb +0 -135
- data/lib/oraclebmc/core/models/route_table.rb +0 -208
- data/lib/oraclebmc/core/models/security_list.rb +0 -219
- data/lib/oraclebmc/core/models/shape.rb +0 -122
- data/lib/oraclebmc/core/models/subnet.rb +0 -351
- data/lib/oraclebmc/core/models/tcp_options.rb +0 -135
- data/lib/oraclebmc/core/models/tunnel_config.rb +0 -151
- data/lib/oraclebmc/core/models/tunnel_status.rb +0 -178
- data/lib/oraclebmc/core/models/udp_options.rb +0 -135
- data/lib/oraclebmc/core/models/update_cpe_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_cross_connect_details.rb +0 -138
- data/lib/oraclebmc/core/models/update_cross_connect_group_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_dhcp_details.rb +0 -132
- data/lib/oraclebmc/core/models/update_drg_attachment_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_drg_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_image_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_instance_details.rb +0 -124
- data/lib/oraclebmc/core/models/update_internet_gateway_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_ip_sec_connection_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_private_ip_details.rb +0 -157
- data/lib/oraclebmc/core/models/update_route_table_details.rb +0 -133
- data/lib/oraclebmc/core/models/update_security_list_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_subnet_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_vcn_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_virtual_circuit_details.rb +0 -240
- data/lib/oraclebmc/core/models/update_vnic_details.rb +0 -144
- data/lib/oraclebmc/core/models/update_volume_backup_details.rb +0 -122
- data/lib/oraclebmc/core/models/update_volume_details.rb +0 -122
- data/lib/oraclebmc/core/models/vcn.rb +0 -276
- data/lib/oraclebmc/core/models/virtual_circuit.rb +0 -395
- data/lib/oraclebmc/core/models/virtual_circuit_bandwidth_shape.rb +0 -137
- data/lib/oraclebmc/core/models/vnic.rb +0 -287
- data/lib/oraclebmc/core/models/vnic_attachment.rb +0 -250
- data/lib/oraclebmc/core/models/volume.rb +0 -210
- data/lib/oraclebmc/core/models/volume_attachment.rb +0 -246
- data/lib/oraclebmc/core/models/volume_backup.rb +0 -235
- data/lib/oraclebmc/core/util.rb +0 -1
- data/lib/oraclebmc/core/virtual_network_client.rb +0 -3419
- data/lib/oraclebmc/errors.rb +0 -80
- data/lib/oraclebmc/global_context.rb +0 -21
- data/lib/oraclebmc/identity/identity.rb +0 -51
- data/lib/oraclebmc/identity/identity_client.rb +0 -1983
- data/lib/oraclebmc/identity/models/add_user_to_group_details.rb +0 -131
- data/lib/oraclebmc/identity/models/api_key.rb +0 -211
- data/lib/oraclebmc/identity/models/availability_domain.rb +0 -131
- data/lib/oraclebmc/identity/models/compartment.rb +0 -211
- data/lib/oraclebmc/identity/models/create_api_key_details.rb +0 -120
- data/lib/oraclebmc/identity/models/create_compartment_details.rb +0 -145
- data/lib/oraclebmc/identity/models/create_group_details.rb +0 -144
- data/lib/oraclebmc/identity/models/create_identity_provider_details.rb +0 -212
- data/lib/oraclebmc/identity/models/create_idp_group_mapping_details.rb +0 -133
- data/lib/oraclebmc/identity/models/create_policy_details.rb +0 -173
- data/lib/oraclebmc/identity/models/create_region_subscription_details.rb +0 -127
- data/lib/oraclebmc/identity/models/create_saml2_identity_provider_details.rb +0 -154
- data/lib/oraclebmc/identity/models/create_swift_password_details.rb +0 -121
- data/lib/oraclebmc/identity/models/create_user_details.rb +0 -144
- data/lib/oraclebmc/identity/models/group.rb +0 -211
- data/lib/oraclebmc/identity/models/identity_provider.rb +0 -256
- data/lib/oraclebmc/identity/models/idp_group_mapping.rb +0 -220
- data/lib/oraclebmc/identity/models/policy.rb +0 -237
- data/lib/oraclebmc/identity/models/region.rb +0 -141
- data/lib/oraclebmc/identity/models/region_subscription.rb +0 -178
- data/lib/oraclebmc/identity/models/saml2_identity_provider.rb +0 -180
- data/lib/oraclebmc/identity/models/swift_password.rb +0 -226
- data/lib/oraclebmc/identity/models/tenancy.rb +0 -158
- data/lib/oraclebmc/identity/models/ui_password.rb +0 -187
- data/lib/oraclebmc/identity/models/update_compartment_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_group_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_identity_provider_details.rb +0 -160
- data/lib/oraclebmc/identity/models/update_idp_group_mapping_details.rb +0 -131
- data/lib/oraclebmc/identity/models/update_policy_details.rb +0 -148
- data/lib/oraclebmc/identity/models/update_saml2_identity_provider_details.rb +0 -145
- data/lib/oraclebmc/identity/models/update_state_details.rb +0 -121
- data/lib/oraclebmc/identity/models/update_swift_password_details.rb +0 -120
- data/lib/oraclebmc/identity/models/update_user_details.rb +0 -120
- data/lib/oraclebmc/identity/models/user.rb +0 -217
- data/lib/oraclebmc/identity/models/user_group_membership.rb +0 -209
- data/lib/oraclebmc/identity/util.rb +0 -1
- data/lib/oraclebmc/internal/internal.rb +0 -11
- data/lib/oraclebmc/internal/util.rb +0 -69
- data/lib/oraclebmc/load_balancer/load_balancer.rb +0 -46
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +0 -1281
- data/lib/oraclebmc/load_balancer/models/backend.rb +0 -220
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +0 -179
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/certificate.rb +0 -167
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +0 -206
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +0 -203
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +0 -219
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +0 -223
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +0 -222
- data/lib/oraclebmc/load_balancer/models/ip_address.rb +0 -139
- data/lib/oraclebmc/load_balancer/models/listener.rb +0 -174
- data/lib/oraclebmc/load_balancer/models/listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +0 -280
- data/lib/oraclebmc/load_balancer/models/load_balancer_policy.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_protocol.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/load_balancer_shape.rb +0 -120
- data/lib/oraclebmc/load_balancer/models/session_persistence_configuration_details.rb +0 -141
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +0 -153
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +0 -178
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +0 -165
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +0 -221
- data/lib/oraclebmc/load_balancer/models/update_listener_details.rb +0 -160
- data/lib/oraclebmc/load_balancer/models/update_load_balancer_details.rb +0 -123
- data/lib/oraclebmc/load_balancer/models/work_request.rb +0 -229
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +0 -145
- data/lib/oraclebmc/load_balancer/util.rb +0 -55
- data/lib/oraclebmc/regions.rb +0 -41
- data/lib/oraclebmc/response.rb +0 -86
- data/lib/oraclebmc/signer.rb +0 -119
- data/lib/oraclebmc/version.rb +0 -5
- data/lib/oraclebmc/waiter.rb +0 -111
@@ -1,209 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
module OracleBMC
|
6
|
-
class Identity::Models::UserGroupMembership
|
7
|
-
|
8
|
-
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
|
9
|
-
LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
|
10
|
-
LIFECYCLE_STATE_INACTIVE = 'INACTIVE',
|
11
|
-
LIFECYCLE_STATE_DELETING = 'DELETING',
|
12
|
-
LIFECYCLE_STATE_DELETED = 'DELETED',
|
13
|
-
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
14
|
-
|
15
|
-
# The OCID of the membership.
|
16
|
-
# @return [String]
|
17
|
-
attr_accessor :id
|
18
|
-
|
19
|
-
# The OCID of the tenancy containing the user, group, and membership object.
|
20
|
-
# @return [String]
|
21
|
-
attr_accessor :compartment_id
|
22
|
-
|
23
|
-
# The OCID of the group.
|
24
|
-
# @return [String]
|
25
|
-
attr_accessor :group_id
|
26
|
-
|
27
|
-
# The OCID of the user.
|
28
|
-
# @return [String]
|
29
|
-
attr_accessor :user_id
|
30
|
-
|
31
|
-
# Date and time the membership was created, in the format defined by RFC3339.
|
32
|
-
#
|
33
|
-
# Example: `2016-08-25T21:10:29.600Z`
|
34
|
-
#
|
35
|
-
# @return [DateTime]
|
36
|
-
attr_accessor :time_created
|
37
|
-
|
38
|
-
# The membership's current state. After creating a membership object, make sure its `lifecycleState` changes
|
39
|
-
# from CREATING to ACTIVE before using it.
|
40
|
-
#
|
41
|
-
# @return [String]
|
42
|
-
attr_accessor :lifecycle_state
|
43
|
-
|
44
|
-
# The detailed status of INACTIVE lifecycleState.
|
45
|
-
# @return [Integer]
|
46
|
-
attr_accessor :inactive_status
|
47
|
-
|
48
|
-
|
49
|
-
# Initializes the object
|
50
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
-
def initialize(attributes = {})
|
52
|
-
return unless attributes.is_a?(Hash)
|
53
|
-
|
54
|
-
# convert string to symbol for hash key
|
55
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
-
|
57
|
-
if attributes[:'id']
|
58
|
-
self.id = attributes[:'id']
|
59
|
-
end
|
60
|
-
|
61
|
-
if attributes[:'compartmentId']
|
62
|
-
self.compartment_id = attributes[:'compartmentId']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes[:'groupId']
|
66
|
-
self.group_id = attributes[:'groupId']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes[:'userId']
|
70
|
-
self.user_id = attributes[:'userId']
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes[:'timeCreated']
|
74
|
-
self.time_created = attributes[:'timeCreated']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes[:'lifecycleState']
|
78
|
-
self.lifecycle_state = attributes[:'lifecycleState']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes[:'inactiveStatus']
|
82
|
-
self.inactive_status = attributes[:'inactiveStatus']
|
83
|
-
end
|
84
|
-
|
85
|
-
end
|
86
|
-
|
87
|
-
# Custom attribute writer method checking allowed values (enum).
|
88
|
-
# @param [Object] lifecycle_state Object to be assigned
|
89
|
-
def lifecycle_state=(lifecycle_state)
|
90
|
-
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
91
|
-
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
92
|
-
else
|
93
|
-
@lifecycle_state = lifecycle_state
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
# Checks equality by comparing each attribute.
|
98
|
-
# @param [Object] other_object to be compared
|
99
|
-
def ==(other_object)
|
100
|
-
return true if self.equal?(other_object)
|
101
|
-
self.class == other_object.class &&
|
102
|
-
id == other_object.id &&
|
103
|
-
compartment_id == other_object.compartment_id &&
|
104
|
-
group_id == other_object.group_id &&
|
105
|
-
user_id == other_object.user_id &&
|
106
|
-
time_created == other_object.time_created &&
|
107
|
-
lifecycle_state == other_object.lifecycle_state &&
|
108
|
-
inactive_status == other_object.inactive_status
|
109
|
-
end
|
110
|
-
|
111
|
-
# @see the `==` method
|
112
|
-
# @param [Object] other_object to be compared
|
113
|
-
def eql?(other_object)
|
114
|
-
self == other_object
|
115
|
-
end
|
116
|
-
|
117
|
-
# Calculates hash code according to all attributes.
|
118
|
-
# @return [Fixnum] Hash code
|
119
|
-
def hash
|
120
|
-
[id, compartment_id, group_id, user_id, time_created, lifecycle_state, inactive_status].hash
|
121
|
-
end
|
122
|
-
|
123
|
-
# Builds the object from hash
|
124
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
-
# @return [Object] Returns the model itself
|
126
|
-
def build_from_hash(attributes)
|
127
|
-
return nil unless attributes.is_a?(Hash)
|
128
|
-
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
if type =~ /^Array<(.*)>/i
|
130
|
-
# check to ensure the input is an array given that the the attribute
|
131
|
-
# is documented as an array but the input is not
|
132
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OracleBMC::Internal::Util.convert_to_type($1, v) } )
|
134
|
-
end
|
135
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
|
-
self.send("#{key}=", OracleBMC::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
137
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
138
|
-
end
|
139
|
-
|
140
|
-
self
|
141
|
-
end
|
142
|
-
|
143
|
-
# Returns the string representation of the object
|
144
|
-
# @return [String] String presentation of the object
|
145
|
-
def to_s
|
146
|
-
to_hash.to_s
|
147
|
-
end
|
148
|
-
|
149
|
-
# Returns the object in the form of hash
|
150
|
-
# @return [Hash] Returns the object in the form of hash
|
151
|
-
def to_hash
|
152
|
-
hash = {}
|
153
|
-
self.class.attribute_map.each_pair do |attr, param|
|
154
|
-
value = self.send(attr)
|
155
|
-
next if value.nil?
|
156
|
-
hash[param] = _to_hash(value)
|
157
|
-
end
|
158
|
-
hash
|
159
|
-
end
|
160
|
-
|
161
|
-
private
|
162
|
-
|
163
|
-
# Outputs non-array value in the form of hash
|
164
|
-
# For object, use to_hash. Otherwise, just return the value
|
165
|
-
# @param [Object] value Any valid value
|
166
|
-
# @return [Hash] Returns the value in the form of hash
|
167
|
-
def _to_hash(value)
|
168
|
-
if value.is_a?(Array)
|
169
|
-
value.compact.map{ |v| _to_hash(v) }
|
170
|
-
elsif value.is_a?(Hash)
|
171
|
-
{}.tap do |hash|
|
172
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
173
|
-
end
|
174
|
-
elsif value.respond_to? :to_hash
|
175
|
-
value.to_hash
|
176
|
-
else
|
177
|
-
value
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
184
|
-
def self.attribute_map
|
185
|
-
{
|
186
|
-
:'id' => :'id',
|
187
|
-
:'compartment_id' => :'compartmentId',
|
188
|
-
:'group_id' => :'groupId',
|
189
|
-
:'user_id' => :'userId',
|
190
|
-
:'time_created' => :'timeCreated',
|
191
|
-
:'lifecycle_state' => :'lifecycleState',
|
192
|
-
:'inactive_status' => :'inactiveStatus'
|
193
|
-
}
|
194
|
-
end
|
195
|
-
|
196
|
-
# Attribute type mapping.
|
197
|
-
def self.swagger_types
|
198
|
-
{
|
199
|
-
:'id' => :'String',
|
200
|
-
:'compartment_id' => :'String',
|
201
|
-
:'group_id' => :'String',
|
202
|
-
:'user_id' => :'String',
|
203
|
-
:'time_created' => :'DateTime',
|
204
|
-
:'lifecycle_state' => :'String',
|
205
|
-
:'inactive_status' => :'Integer'
|
206
|
-
}
|
207
|
-
end
|
208
|
-
end
|
209
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
module OracleBMC
|
4
|
-
|
5
|
-
# Contains internal modules and class that are not meant for public use.
|
6
|
-
module Internal
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
# Require models
|
11
|
-
require 'oraclebmc/internal/util'
|
@@ -1,69 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
module OracleBMC::Internal
|
4
|
-
|
5
|
-
# Utility methods for internal use only.
|
6
|
-
module Util
|
7
|
-
|
8
|
-
# Convert data to the given type. This is part of the conversion from strings representing
|
9
|
-
# json, where the data that is passed in should already have been converted using JSON.parse.
|
10
|
-
# That will give us arrays and hashes, but will not set the correct data types.
|
11
|
-
#
|
12
|
-
# @param [String] type Type that the data should be converted to
|
13
|
-
# @param [String] data Data in string, array or hash of strings, or raw object format.
|
14
|
-
# @return [Mixed] Data in the specified type
|
15
|
-
def self.convert_to_type(type, data)
|
16
|
-
return nil if data.nil?
|
17
|
-
|
18
|
-
case type.downcase.to_sym
|
19
|
-
when :datetime
|
20
|
-
DateTime.parse(data)
|
21
|
-
when :date
|
22
|
-
Date.parse(data)
|
23
|
-
when :string
|
24
|
-
data.to_s
|
25
|
-
when :integer
|
26
|
-
data.to_i
|
27
|
-
when :float
|
28
|
-
data.to_f
|
29
|
-
when :boolean
|
30
|
-
if data.to_s =~ /^(true|yes|1)$/i
|
31
|
-
true
|
32
|
-
else
|
33
|
-
false
|
34
|
-
end
|
35
|
-
when :object
|
36
|
-
# generic object, return directly
|
37
|
-
data
|
38
|
-
else
|
39
|
-
# The remaining cases might need to match a specific model class, so don't ignore case.
|
40
|
-
case type.to_sym
|
41
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
42
|
-
inner_type = Regexp.last_match[:inner_type]
|
43
|
-
data.map { |v| convert_to_type(inner_type, v) }
|
44
|
-
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
45
|
-
k_type = Regexp.last_match[:k_type]
|
46
|
-
v_type = Regexp.last_match[:v_type]
|
47
|
-
{}.tap do |hash|
|
48
|
-
data.each do |k, v|
|
49
|
-
hash[convert_to_type(k_type, k)] = convert_to_type(v_type, v)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
else
|
53
|
-
# Type must be a model.
|
54
|
-
type = OracleBMC.const_get(type.to_s)
|
55
|
-
|
56
|
-
if defined? type.get_subtype
|
57
|
-
# The return type may be an abstract type, in which case
|
58
|
-
# we need to use the discriminator value to get the correct subtype.
|
59
|
-
type = OracleBMC.const_get(type.get_subtype(data))
|
60
|
-
end
|
61
|
-
|
62
|
-
type.new.tap do |model|
|
63
|
-
model.build_from_hash data
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
module OracleBMC
|
4
|
-
module LoadBalancer
|
5
|
-
module Models
|
6
|
-
end
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
# Require models
|
11
|
-
require 'oraclebmc/load_balancer/models/backend'
|
12
|
-
require 'oraclebmc/load_balancer/models/backend_details'
|
13
|
-
require 'oraclebmc/load_balancer/models/backend_set'
|
14
|
-
require 'oraclebmc/load_balancer/models/backend_set_details'
|
15
|
-
require 'oraclebmc/load_balancer/models/certificate'
|
16
|
-
require 'oraclebmc/load_balancer/models/certificate_details'
|
17
|
-
require 'oraclebmc/load_balancer/models/create_backend_details'
|
18
|
-
require 'oraclebmc/load_balancer/models/create_backend_set_details'
|
19
|
-
require 'oraclebmc/load_balancer/models/create_certificate_details'
|
20
|
-
require 'oraclebmc/load_balancer/models/create_listener_details'
|
21
|
-
require 'oraclebmc/load_balancer/models/create_load_balancer_details'
|
22
|
-
require 'oraclebmc/load_balancer/models/health_checker'
|
23
|
-
require 'oraclebmc/load_balancer/models/health_checker_details'
|
24
|
-
require 'oraclebmc/load_balancer/models/ip_address'
|
25
|
-
require 'oraclebmc/load_balancer/models/listener'
|
26
|
-
require 'oraclebmc/load_balancer/models/listener_details'
|
27
|
-
require 'oraclebmc/load_balancer/models/load_balancer'
|
28
|
-
require 'oraclebmc/load_balancer/models/load_balancer_policy'
|
29
|
-
require 'oraclebmc/load_balancer/models/load_balancer_protocol'
|
30
|
-
require 'oraclebmc/load_balancer/models/load_balancer_shape'
|
31
|
-
require 'oraclebmc/load_balancer/models/ssl_configuration'
|
32
|
-
require 'oraclebmc/load_balancer/models/ssl_configuration_details'
|
33
|
-
require 'oraclebmc/load_balancer/models/session_persistence_configuration_details'
|
34
|
-
require 'oraclebmc/load_balancer/models/update_backend_details'
|
35
|
-
require 'oraclebmc/load_balancer/models/update_backend_set_details'
|
36
|
-
require 'oraclebmc/load_balancer/models/update_health_checker_details'
|
37
|
-
require 'oraclebmc/load_balancer/models/update_listener_details'
|
38
|
-
require 'oraclebmc/load_balancer/models/update_load_balancer_details'
|
39
|
-
require 'oraclebmc/load_balancer/models/work_request'
|
40
|
-
require 'oraclebmc/load_balancer/models/work_request_error'
|
41
|
-
|
42
|
-
# Require generated clients
|
43
|
-
require 'oraclebmc/load_balancer/load_balancer_client'
|
44
|
-
|
45
|
-
# Require service utilities
|
46
|
-
require 'oraclebmc/load_balancer/util'
|
@@ -1,1281 +0,0 @@
|
|
1
|
-
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
-
|
3
|
-
require "uri"
|
4
|
-
require "logger"
|
5
|
-
|
6
|
-
module OracleBMC
|
7
|
-
|
8
|
-
class LoadBalancer::LoadBalancerClient
|
9
|
-
|
10
|
-
# Client used to make HTTP requests.
|
11
|
-
# @return [OracleBMC::ApiClient]
|
12
|
-
attr_reader :api_client
|
13
|
-
|
14
|
-
# Fully qualified endpoint URL
|
15
|
-
# @return [String]
|
16
|
-
attr_reader :endpoint
|
17
|
-
|
18
|
-
# The region, which will usually correspond to a value in {OracleBMC::Regions::REGION_ENUM}.
|
19
|
-
# @return [String]
|
20
|
-
attr_accessor :region
|
21
|
-
|
22
|
-
# Creates a new LoadBalancerClient.
|
23
|
-
# If a config is not specified, then the global OracleBMC.config will be used.
|
24
|
-
#
|
25
|
-
# A region must be specified in either the config or the region parameter. If specified
|
26
|
-
# in both, then the region parameter will be used.
|
27
|
-
#
|
28
|
-
# @param [Config] config A Config object.
|
29
|
-
# @param [String] region A region used to determine the service endpoint. This will usually
|
30
|
-
# correspond to a value in {OracleBMC::Regions::REGION_ENUM}, but may be an arbitrary string.
|
31
|
-
#
|
32
|
-
def initialize(config:nil, region:nil)
|
33
|
-
config ||= OracleBMC.config
|
34
|
-
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase)
|
35
|
-
@api_client = ApiClient.new(config, signer)
|
36
|
-
|
37
|
-
region ||= config.region
|
38
|
-
self.region = region
|
39
|
-
end
|
40
|
-
|
41
|
-
# Set the region that will be used to determine the service endpoint.
|
42
|
-
# This will usually correspond to a value in {OracleBMC::Regions::REGION_ENUM},
|
43
|
-
# but may be an arbitrary string.
|
44
|
-
def region=(r)
|
45
|
-
@region = r
|
46
|
-
|
47
|
-
fail 'A region must be specified.' unless @region
|
48
|
-
|
49
|
-
@endpoint = OracleBMC::Regions.get_service_endpoint(@region, :LoadBalancerClient) + '/20170115'
|
50
|
-
logger.info "LoadBalancerClient endpoint set to '#{endpoint}'." if logger
|
51
|
-
end
|
52
|
-
|
53
|
-
# @return [Logger] The logger for this client. May be nil.
|
54
|
-
def logger
|
55
|
-
@api_client.config.logger
|
56
|
-
end
|
57
|
-
|
58
|
-
|
59
|
-
# Adds a backend server to a backend set.
|
60
|
-
# @param [CreateBackendDetails] create_backend_details The details to add a backend server to a backend set.
|
61
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers.
|
62
|
-
# @param [String] backend_set_name The name of the backend set to add the backend server to.
|
63
|
-
#
|
64
|
-
# Example: `My backend set`
|
65
|
-
#
|
66
|
-
# @param [Hash] opts the optional parameters
|
67
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
68
|
-
# particular request, please provide the request ID.
|
69
|
-
# (default to )
|
70
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
71
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
72
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
73
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
74
|
-
# may be rejected).
|
75
|
-
#
|
76
|
-
# @return [Response] A Response object with data of type nil
|
77
|
-
def create_backend(create_backend_details, load_balancer_id, backend_set_name, opts = {})
|
78
|
-
logger.debug "Calling operation LoadBalancerClient#create_backend." if logger
|
79
|
-
|
80
|
-
fail "Missing the required parameter 'create_backend_details' when calling create_backend." if create_backend_details.nil?
|
81
|
-
fail "Missing the required parameter 'load_balancer_id' when calling create_backend." if load_balancer_id.nil?
|
82
|
-
fail "Missing the required parameter 'backend_set_name' when calling create_backend." if backend_set_name.nil?
|
83
|
-
|
84
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
85
|
-
|
86
|
-
# Query Params
|
87
|
-
query_params = {}
|
88
|
-
|
89
|
-
# Header Params
|
90
|
-
header_params = {}
|
91
|
-
header_params['accept'] = 'application/json'
|
92
|
-
header_params['content-type'] = 'application/json'
|
93
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
94
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
95
|
-
|
96
|
-
post_body = @api_client.object_to_http_body(create_backend_details)
|
97
|
-
|
98
|
-
return @api_client.call_api(
|
99
|
-
:POST,
|
100
|
-
path,
|
101
|
-
endpoint,
|
102
|
-
:header_params => header_params,
|
103
|
-
:query_params => query_params,
|
104
|
-
:body => post_body)
|
105
|
-
end
|
106
|
-
|
107
|
-
# Adds a backend set to a load balancer.
|
108
|
-
# @param [CreateBackendSetDetails] create_backend_set_details The details for adding a backend set.
|
109
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set.
|
110
|
-
# @param [Hash] opts the optional parameters
|
111
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
112
|
-
# particular request, please provide the request ID.
|
113
|
-
# (default to )
|
114
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
115
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
116
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
117
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
118
|
-
# may be rejected).
|
119
|
-
#
|
120
|
-
# @return [Response] A Response object with data of type nil
|
121
|
-
def create_backend_set(create_backend_set_details, load_balancer_id, opts = {})
|
122
|
-
logger.debug "Calling operation LoadBalancerClient#create_backend_set." if logger
|
123
|
-
|
124
|
-
fail "Missing the required parameter 'create_backend_set_details' when calling create_backend_set." if create_backend_set_details.nil?
|
125
|
-
fail "Missing the required parameter 'load_balancer_id' when calling create_backend_set." if load_balancer_id.nil?
|
126
|
-
|
127
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
|
128
|
-
|
129
|
-
# Query Params
|
130
|
-
query_params = {}
|
131
|
-
|
132
|
-
# Header Params
|
133
|
-
header_params = {}
|
134
|
-
header_params['accept'] = 'application/json'
|
135
|
-
header_params['content-type'] = 'application/json'
|
136
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
137
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
138
|
-
|
139
|
-
post_body = @api_client.object_to_http_body(create_backend_set_details)
|
140
|
-
|
141
|
-
return @api_client.call_api(
|
142
|
-
:POST,
|
143
|
-
path,
|
144
|
-
endpoint,
|
145
|
-
:header_params => header_params,
|
146
|
-
:query_params => query_params,
|
147
|
-
:body => post_body)
|
148
|
-
end
|
149
|
-
|
150
|
-
# Creates an asynchronous request to add an SSL certificate.
|
151
|
-
# @param [CreateCertificateDetails] create_certificate_details The details of the certificate to add.
|
152
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the certificate.
|
153
|
-
# @param [Hash] opts the optional parameters
|
154
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
155
|
-
# particular request, please provide the request ID.
|
156
|
-
# (default to )
|
157
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
158
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
159
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
160
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
161
|
-
# may be rejected).
|
162
|
-
#
|
163
|
-
# @return [Response] A Response object with data of type nil
|
164
|
-
def create_certificate(create_certificate_details, load_balancer_id, opts = {})
|
165
|
-
logger.debug "Calling operation LoadBalancerClient#create_certificate." if logger
|
166
|
-
|
167
|
-
fail "Missing the required parameter 'create_certificate_details' when calling create_certificate." if create_certificate_details.nil?
|
168
|
-
fail "Missing the required parameter 'load_balancer_id' when calling create_certificate." if load_balancer_id.nil?
|
169
|
-
|
170
|
-
path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
|
171
|
-
|
172
|
-
# Query Params
|
173
|
-
query_params = {}
|
174
|
-
|
175
|
-
# Header Params
|
176
|
-
header_params = {}
|
177
|
-
header_params['accept'] = 'application/json'
|
178
|
-
header_params['content-type'] = 'application/json'
|
179
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
180
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
181
|
-
|
182
|
-
post_body = @api_client.object_to_http_body(create_certificate_details)
|
183
|
-
|
184
|
-
return @api_client.call_api(
|
185
|
-
:POST,
|
186
|
-
path,
|
187
|
-
endpoint,
|
188
|
-
:header_params => header_params,
|
189
|
-
:query_params => query_params,
|
190
|
-
:body => post_body)
|
191
|
-
end
|
192
|
-
|
193
|
-
# Adds a listener to a load balancer.
|
194
|
-
# @param [CreateListenerDetails] create_listener_details Details to add a listener.
|
195
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener.
|
196
|
-
# @param [Hash] opts the optional parameters
|
197
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
198
|
-
# particular request, please provide the request ID.
|
199
|
-
# (default to )
|
200
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
201
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
202
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
203
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
204
|
-
# may be rejected).
|
205
|
-
#
|
206
|
-
# @return [Response] A Response object with data of type nil
|
207
|
-
def create_listener(create_listener_details, load_balancer_id, opts = {})
|
208
|
-
logger.debug "Calling operation LoadBalancerClient#create_listener." if logger
|
209
|
-
|
210
|
-
fail "Missing the required parameter 'create_listener_details' when calling create_listener." if create_listener_details.nil?
|
211
|
-
fail "Missing the required parameter 'load_balancer_id' when calling create_listener." if load_balancer_id.nil?
|
212
|
-
|
213
|
-
path = "/loadBalancers/{loadBalancerId}/listeners".sub('{loadBalancerId}', load_balancer_id.to_s)
|
214
|
-
|
215
|
-
# Query Params
|
216
|
-
query_params = {}
|
217
|
-
|
218
|
-
# Header Params
|
219
|
-
header_params = {}
|
220
|
-
header_params['accept'] = 'application/json'
|
221
|
-
header_params['content-type'] = 'application/json'
|
222
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
223
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
224
|
-
|
225
|
-
post_body = @api_client.object_to_http_body(create_listener_details)
|
226
|
-
|
227
|
-
return @api_client.call_api(
|
228
|
-
:POST,
|
229
|
-
path,
|
230
|
-
endpoint,
|
231
|
-
:header_params => header_params,
|
232
|
-
:query_params => query_params,
|
233
|
-
:body => post_body)
|
234
|
-
end
|
235
|
-
|
236
|
-
# Creates a new load balancer in the specified compartment. For general information about load balancers,
|
237
|
-
# see [Overview of the Load Balancing Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Concepts/balanceoverview.htm).
|
238
|
-
#
|
239
|
-
# For the purposes of access control, you must provide the OCID of the compartment where you want
|
240
|
-
# the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN
|
241
|
-
# or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN.
|
242
|
-
# For information about access control and compartments, see
|
243
|
-
# [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
|
244
|
-
#
|
245
|
-
# You must specify a display name for the load balancer. It does not have to be unique, and you can change it.
|
246
|
-
#
|
247
|
-
# For information about Availability Domains, see
|
248
|
-
# [Regions and Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
|
249
|
-
# To get a list of Availability Domains, use the `ListAvailabilityDomains` operation
|
250
|
-
# in the Identity and Access Management Service API.
|
251
|
-
#
|
252
|
-
# All Oracle Bare Metal Cloud Services resources, including load balancers, get an Oracle-assigned,
|
253
|
-
# unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID
|
254
|
-
# in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type,
|
255
|
-
# or by viewing the resource in the Console. Fore more information, see
|
256
|
-
# [Resource Identifiers](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
257
|
-
#
|
258
|
-
# After you send your request, the new object's state will temporarily be PROVISIONING. Before using the
|
259
|
-
# object, first make sure its state has changed to RUNNING.
|
260
|
-
#
|
261
|
-
# When you create a load balancer, the system assigns an IP address.
|
262
|
-
# To get the IP address, use the {#get_load_balancer get_load_balancer} operation.
|
263
|
-
#
|
264
|
-
# @param [CreateLoadBalancerDetails] create_load_balancer_details The configuration details for creating a load balancer.
|
265
|
-
# @param [Hash] opts the optional parameters
|
266
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
267
|
-
# particular request, please provide the request ID.
|
268
|
-
# (default to )
|
269
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
270
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
271
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
272
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
273
|
-
# may be rejected).
|
274
|
-
#
|
275
|
-
# @return [Response] A Response object with data of type nil
|
276
|
-
def create_load_balancer(create_load_balancer_details, opts = {})
|
277
|
-
logger.debug "Calling operation LoadBalancerClient#create_load_balancer." if logger
|
278
|
-
|
279
|
-
fail "Missing the required parameter 'create_load_balancer_details' when calling create_load_balancer." if create_load_balancer_details.nil?
|
280
|
-
|
281
|
-
path = "/loadBalancers"
|
282
|
-
|
283
|
-
# Query Params
|
284
|
-
query_params = {}
|
285
|
-
|
286
|
-
# Header Params
|
287
|
-
header_params = {}
|
288
|
-
header_params['accept'] = 'application/json'
|
289
|
-
header_params['content-type'] = 'application/json'
|
290
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
291
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
292
|
-
|
293
|
-
post_body = @api_client.object_to_http_body(create_load_balancer_details)
|
294
|
-
|
295
|
-
return @api_client.call_api(
|
296
|
-
:POST,
|
297
|
-
path,
|
298
|
-
endpoint,
|
299
|
-
:header_params => header_params,
|
300
|
-
:query_params => query_params,
|
301
|
-
:body => post_body)
|
302
|
-
end
|
303
|
-
|
304
|
-
# Removes a backend server from a given load balancer and backend set.
|
305
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
306
|
-
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
307
|
-
#
|
308
|
-
# Example: `My backend set`
|
309
|
-
#
|
310
|
-
# @param [String] backend_name The name of the backend server to remove.
|
311
|
-
#
|
312
|
-
# Example: `My backend server`
|
313
|
-
#
|
314
|
-
# @param [Hash] opts the optional parameters
|
315
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
316
|
-
# particular request, please provide the request ID.
|
317
|
-
# (default to )
|
318
|
-
# @return [Response] A Response object with data of type nil
|
319
|
-
def delete_backend(load_balancer_id, backend_set_name, backend_name, opts = {})
|
320
|
-
logger.debug "Calling operation LoadBalancerClient#delete_backend." if logger
|
321
|
-
|
322
|
-
fail "Missing the required parameter 'load_balancer_id' when calling delete_backend." if load_balancer_id.nil?
|
323
|
-
fail "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
|
324
|
-
fail "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
|
325
|
-
|
326
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
|
327
|
-
|
328
|
-
# Query Params
|
329
|
-
query_params = {}
|
330
|
-
|
331
|
-
# Header Params
|
332
|
-
header_params = {}
|
333
|
-
header_params['accept'] = 'application/json'
|
334
|
-
header_params['content-type'] = 'application/json'
|
335
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
336
|
-
|
337
|
-
post_body = nil
|
338
|
-
|
339
|
-
return @api_client.call_api(
|
340
|
-
:DELETE,
|
341
|
-
path,
|
342
|
-
endpoint,
|
343
|
-
:header_params => header_params,
|
344
|
-
:query_params => query_params,
|
345
|
-
:body => post_body)
|
346
|
-
end
|
347
|
-
|
348
|
-
# Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer.
|
349
|
-
#
|
350
|
-
# Before you can delete a backend set, you must remove it from any active listeners.
|
351
|
-
#
|
352
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set.
|
353
|
-
# @param [String] backend_set_name The name of the backend set to delete.
|
354
|
-
#
|
355
|
-
# Example: `My backend set`
|
356
|
-
#
|
357
|
-
# @param [Hash] opts the optional parameters
|
358
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
359
|
-
# particular request, please provide the request ID.
|
360
|
-
# (default to )
|
361
|
-
# @return [Response] A Response object with data of type nil
|
362
|
-
def delete_backend_set(load_balancer_id, backend_set_name, opts = {})
|
363
|
-
logger.debug "Calling operation LoadBalancerClient#delete_backend_set." if logger
|
364
|
-
|
365
|
-
fail "Missing the required parameter 'load_balancer_id' when calling delete_backend_set." if load_balancer_id.nil?
|
366
|
-
fail "Missing the required parameter 'backend_set_name' when calling delete_backend_set." if backend_set_name.nil?
|
367
|
-
|
368
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
369
|
-
|
370
|
-
# Query Params
|
371
|
-
query_params = {}
|
372
|
-
|
373
|
-
# Header Params
|
374
|
-
header_params = {}
|
375
|
-
header_params['accept'] = 'application/json'
|
376
|
-
header_params['content-type'] = 'application/json'
|
377
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
378
|
-
|
379
|
-
post_body = nil
|
380
|
-
|
381
|
-
return @api_client.call_api(
|
382
|
-
:DELETE,
|
383
|
-
path,
|
384
|
-
endpoint,
|
385
|
-
:header_params => header_params,
|
386
|
-
:query_params => query_params,
|
387
|
-
:body => post_body)
|
388
|
-
end
|
389
|
-
|
390
|
-
# Deletes an SSL certificate from a load balancer.
|
391
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate to be deleted.
|
392
|
-
# @param [String] certificate_name The name of the certificate to delete.
|
393
|
-
#
|
394
|
-
# Example: `My certificate`
|
395
|
-
#
|
396
|
-
# @param [Hash] opts the optional parameters
|
397
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
398
|
-
# particular request, please provide the request ID.
|
399
|
-
# (default to )
|
400
|
-
# @return [Response] A Response object with data of type nil
|
401
|
-
def delete_certificate(load_balancer_id, certificate_name, opts = {})
|
402
|
-
logger.debug "Calling operation LoadBalancerClient#delete_certificate." if logger
|
403
|
-
|
404
|
-
fail "Missing the required parameter 'load_balancer_id' when calling delete_certificate." if load_balancer_id.nil?
|
405
|
-
fail "Missing the required parameter 'certificate_name' when calling delete_certificate." if certificate_name.nil?
|
406
|
-
|
407
|
-
path = "/loadBalancers/{loadBalancerId}/certificates/{certificateName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{certificateName}', certificate_name.to_s)
|
408
|
-
|
409
|
-
# Query Params
|
410
|
-
query_params = {}
|
411
|
-
|
412
|
-
# Header Params
|
413
|
-
header_params = {}
|
414
|
-
header_params['accept'] = 'application/json'
|
415
|
-
header_params['content-type'] = 'application/json'
|
416
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
417
|
-
|
418
|
-
post_body = nil
|
419
|
-
|
420
|
-
return @api_client.call_api(
|
421
|
-
:DELETE,
|
422
|
-
path,
|
423
|
-
endpoint,
|
424
|
-
:header_params => header_params,
|
425
|
-
:query_params => query_params,
|
426
|
-
:body => post_body)
|
427
|
-
end
|
428
|
-
|
429
|
-
# Deletes a listener from a load balancer.
|
430
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete.
|
431
|
-
# @param [String] listener_name The name of the listener to delete.
|
432
|
-
#
|
433
|
-
# Example: `My listener`
|
434
|
-
#
|
435
|
-
# @param [Hash] opts the optional parameters
|
436
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
437
|
-
# particular request, please provide the request ID.
|
438
|
-
# (default to )
|
439
|
-
# @return [Response] A Response object with data of type nil
|
440
|
-
def delete_listener(load_balancer_id, listener_name, opts = {})
|
441
|
-
logger.debug "Calling operation LoadBalancerClient#delete_listener." if logger
|
442
|
-
|
443
|
-
fail "Missing the required parameter 'load_balancer_id' when calling delete_listener." if load_balancer_id.nil?
|
444
|
-
fail "Missing the required parameter 'listener_name' when calling delete_listener." if listener_name.nil?
|
445
|
-
|
446
|
-
path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
|
447
|
-
|
448
|
-
# Query Params
|
449
|
-
query_params = {}
|
450
|
-
|
451
|
-
# Header Params
|
452
|
-
header_params = {}
|
453
|
-
header_params['accept'] = 'application/json'
|
454
|
-
header_params['content-type'] = 'application/json'
|
455
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
456
|
-
|
457
|
-
post_body = nil
|
458
|
-
|
459
|
-
return @api_client.call_api(
|
460
|
-
:DELETE,
|
461
|
-
path,
|
462
|
-
endpoint,
|
463
|
-
:header_params => header_params,
|
464
|
-
:query_params => query_params,
|
465
|
-
:body => post_body)
|
466
|
-
end
|
467
|
-
|
468
|
-
# Stops a load balancer and removes it from service.
|
469
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete.
|
470
|
-
# @param [Hash] opts the optional parameters
|
471
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
472
|
-
# particular request, please provide the request ID.
|
473
|
-
# (default to )
|
474
|
-
# @return [Response] A Response object with data of type nil
|
475
|
-
def delete_load_balancer(load_balancer_id, opts = {})
|
476
|
-
logger.debug "Calling operation LoadBalancerClient#delete_load_balancer." if logger
|
477
|
-
|
478
|
-
fail "Missing the required parameter 'load_balancer_id' when calling delete_load_balancer." if load_balancer_id.nil?
|
479
|
-
|
480
|
-
path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
|
481
|
-
|
482
|
-
# Query Params
|
483
|
-
query_params = {}
|
484
|
-
|
485
|
-
# Header Params
|
486
|
-
header_params = {}
|
487
|
-
header_params['accept'] = 'application/json'
|
488
|
-
header_params['content-type'] = 'application/json'
|
489
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
490
|
-
|
491
|
-
post_body = nil
|
492
|
-
|
493
|
-
return @api_client.call_api(
|
494
|
-
:DELETE,
|
495
|
-
path,
|
496
|
-
endpoint,
|
497
|
-
:header_params => header_params,
|
498
|
-
:query_params => query_params,
|
499
|
-
:body => post_body)
|
500
|
-
end
|
501
|
-
|
502
|
-
# Gets the specified backend server's configuration information.
|
503
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
504
|
-
# @param [String] backend_set_name The name of the backend set that includes the backend server.
|
505
|
-
#
|
506
|
-
# Example: `My backend set`
|
507
|
-
#
|
508
|
-
# @param [String] backend_name The name of the backend server to retrieve.
|
509
|
-
#
|
510
|
-
# Example: `My backend server`
|
511
|
-
#
|
512
|
-
# @param [Hash] opts the optional parameters
|
513
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
514
|
-
# particular request, please provide the request ID.
|
515
|
-
# (default to )
|
516
|
-
# @return [Response] A Response object with data of type OracleBMC::LoadBalancer::Models::Backend
|
517
|
-
def get_backend(load_balancer_id, backend_set_name, backend_name, opts = {})
|
518
|
-
logger.debug "Calling operation LoadBalancerClient#get_backend." if logger
|
519
|
-
|
520
|
-
fail "Missing the required parameter 'load_balancer_id' when calling get_backend." if load_balancer_id.nil?
|
521
|
-
fail "Missing the required parameter 'backend_set_name' when calling get_backend." if backend_set_name.nil?
|
522
|
-
fail "Missing the required parameter 'backend_name' when calling get_backend." if backend_name.nil?
|
523
|
-
|
524
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
|
525
|
-
|
526
|
-
# Query Params
|
527
|
-
query_params = {}
|
528
|
-
|
529
|
-
# Header Params
|
530
|
-
header_params = {}
|
531
|
-
header_params['accept'] = 'application/json'
|
532
|
-
header_params['content-type'] = 'application/json'
|
533
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
534
|
-
|
535
|
-
post_body = nil
|
536
|
-
|
537
|
-
return @api_client.call_api(
|
538
|
-
:GET,
|
539
|
-
path,
|
540
|
-
endpoint,
|
541
|
-
:header_params => header_params,
|
542
|
-
:query_params => query_params,
|
543
|
-
:body => post_body,
|
544
|
-
:return_type => 'OracleBMC::LoadBalancer::Models::Backend')
|
545
|
-
end
|
546
|
-
|
547
|
-
# Gets the specified backend set's configuration information.
|
548
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the specified load balancer.
|
549
|
-
# @param [String] backend_set_name The name of the backend set to retrieve.
|
550
|
-
#
|
551
|
-
# Example: `My backend set`
|
552
|
-
#
|
553
|
-
# @param [Hash] opts the optional parameters
|
554
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
555
|
-
# particular request, please provide the request ID.
|
556
|
-
# (default to )
|
557
|
-
# @return [Response] A Response object with data of type OracleBMC::LoadBalancer::Models::BackendSet
|
558
|
-
def get_backend_set(load_balancer_id, backend_set_name, opts = {})
|
559
|
-
logger.debug "Calling operation LoadBalancerClient#get_backend_set." if logger
|
560
|
-
|
561
|
-
fail "Missing the required parameter 'load_balancer_id' when calling get_backend_set." if load_balancer_id.nil?
|
562
|
-
fail "Missing the required parameter 'backend_set_name' when calling get_backend_set." if backend_set_name.nil?
|
563
|
-
|
564
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
565
|
-
|
566
|
-
# Query Params
|
567
|
-
query_params = {}
|
568
|
-
|
569
|
-
# Header Params
|
570
|
-
header_params = {}
|
571
|
-
header_params['accept'] = 'application/json'
|
572
|
-
header_params['content-type'] = 'application/json'
|
573
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
574
|
-
|
575
|
-
post_body = nil
|
576
|
-
|
577
|
-
return @api_client.call_api(
|
578
|
-
:GET,
|
579
|
-
path,
|
580
|
-
endpoint,
|
581
|
-
:header_params => header_params,
|
582
|
-
:query_params => query_params,
|
583
|
-
:body => post_body,
|
584
|
-
:return_type => 'OracleBMC::LoadBalancer::Models::BackendSet')
|
585
|
-
end
|
586
|
-
|
587
|
-
# Gets the health check policy information for a given load balancer and backend set.
|
588
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved.
|
589
|
-
# @param [String] backend_set_name The name of the backend associated with the health check policy to be retrieved.
|
590
|
-
#
|
591
|
-
# Example: `My backend set`
|
592
|
-
#
|
593
|
-
# @param [Hash] opts the optional parameters
|
594
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
595
|
-
# particular request, please provide the request ID.
|
596
|
-
# (default to )
|
597
|
-
# @return [Response] A Response object with data of type OracleBMC::LoadBalancer::Models::HealthChecker
|
598
|
-
def get_health_checker(load_balancer_id, backend_set_name, opts = {})
|
599
|
-
logger.debug "Calling operation LoadBalancerClient#get_health_checker." if logger
|
600
|
-
|
601
|
-
fail "Missing the required parameter 'load_balancer_id' when calling get_health_checker." if load_balancer_id.nil?
|
602
|
-
fail "Missing the required parameter 'backend_set_name' when calling get_health_checker." if backend_set_name.nil?
|
603
|
-
|
604
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
605
|
-
|
606
|
-
# Query Params
|
607
|
-
query_params = {}
|
608
|
-
|
609
|
-
# Header Params
|
610
|
-
header_params = {}
|
611
|
-
header_params['accept'] = 'application/json'
|
612
|
-
header_params['content-type'] = 'application/json'
|
613
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
614
|
-
|
615
|
-
post_body = nil
|
616
|
-
|
617
|
-
return @api_client.call_api(
|
618
|
-
:GET,
|
619
|
-
path,
|
620
|
-
endpoint,
|
621
|
-
:header_params => header_params,
|
622
|
-
:query_params => query_params,
|
623
|
-
:body => post_body,
|
624
|
-
:return_type => 'OracleBMC::LoadBalancer::Models::HealthChecker')
|
625
|
-
end
|
626
|
-
|
627
|
-
# Gets the specified load balancer's configuration information.
|
628
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve.
|
629
|
-
# @param [Hash] opts the optional parameters
|
630
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
631
|
-
# particular request, please provide the request ID.
|
632
|
-
# (default to )
|
633
|
-
# @return [Response] A Response object with data of type OracleBMC::LoadBalancer::Models::LoadBalancer
|
634
|
-
def get_load_balancer(load_balancer_id, opts = {})
|
635
|
-
logger.debug "Calling operation LoadBalancerClient#get_load_balancer." if logger
|
636
|
-
|
637
|
-
fail "Missing the required parameter 'load_balancer_id' when calling get_load_balancer." if load_balancer_id.nil?
|
638
|
-
|
639
|
-
path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
|
640
|
-
|
641
|
-
# Query Params
|
642
|
-
query_params = {}
|
643
|
-
|
644
|
-
# Header Params
|
645
|
-
header_params = {}
|
646
|
-
header_params['accept'] = 'application/json'
|
647
|
-
header_params['content-type'] = 'application/json'
|
648
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
649
|
-
|
650
|
-
post_body = nil
|
651
|
-
|
652
|
-
return @api_client.call_api(
|
653
|
-
:GET,
|
654
|
-
path,
|
655
|
-
endpoint,
|
656
|
-
:header_params => header_params,
|
657
|
-
:query_params => query_params,
|
658
|
-
:body => post_body,
|
659
|
-
:return_type => 'OracleBMC::LoadBalancer::Models::LoadBalancer')
|
660
|
-
end
|
661
|
-
|
662
|
-
# Gets the details of a work request.
|
663
|
-
# @param [String] work_request_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve.
|
664
|
-
# @param [Hash] opts the optional parameters
|
665
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
666
|
-
# particular request, please provide the request ID.
|
667
|
-
# (default to )
|
668
|
-
# @return [Response] A Response object with data of type OracleBMC::LoadBalancer::Models::WorkRequest
|
669
|
-
def get_work_request(work_request_id, opts = {})
|
670
|
-
logger.debug "Calling operation LoadBalancerClient#get_work_request." if logger
|
671
|
-
|
672
|
-
fail "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
673
|
-
|
674
|
-
path = "/loadBalancerWorkRequests/{workRequestId}".sub('{workRequestId}', work_request_id.to_s)
|
675
|
-
|
676
|
-
# Query Params
|
677
|
-
query_params = {}
|
678
|
-
|
679
|
-
# Header Params
|
680
|
-
header_params = {}
|
681
|
-
header_params['accept'] = 'application/json'
|
682
|
-
header_params['content-type'] = 'application/json'
|
683
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
684
|
-
|
685
|
-
post_body = nil
|
686
|
-
|
687
|
-
return @api_client.call_api(
|
688
|
-
:GET,
|
689
|
-
path,
|
690
|
-
endpoint,
|
691
|
-
:header_params => header_params,
|
692
|
-
:query_params => query_params,
|
693
|
-
:body => post_body,
|
694
|
-
:return_type => 'OracleBMC::LoadBalancer::Models::WorkRequest')
|
695
|
-
end
|
696
|
-
|
697
|
-
# Lists all backend sets associated with a given load balancer.
|
698
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve.
|
699
|
-
# @param [Hash] opts the optional parameters
|
700
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
701
|
-
# particular request, please provide the request ID.
|
702
|
-
# (default to )
|
703
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::BackendSet>
|
704
|
-
def list_backend_sets(load_balancer_id, opts = {})
|
705
|
-
logger.debug "Calling operation LoadBalancerClient#list_backend_sets." if logger
|
706
|
-
|
707
|
-
fail "Missing the required parameter 'load_balancer_id' when calling list_backend_sets." if load_balancer_id.nil?
|
708
|
-
|
709
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
|
710
|
-
|
711
|
-
# Query Params
|
712
|
-
query_params = {}
|
713
|
-
|
714
|
-
# Header Params
|
715
|
-
header_params = {}
|
716
|
-
header_params['accept'] = 'application/json'
|
717
|
-
header_params['content-type'] = 'application/json'
|
718
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
719
|
-
|
720
|
-
post_body = nil
|
721
|
-
|
722
|
-
return @api_client.call_api(
|
723
|
-
:GET,
|
724
|
-
path,
|
725
|
-
endpoint,
|
726
|
-
:header_params => header_params,
|
727
|
-
:query_params => query_params,
|
728
|
-
:body => post_body,
|
729
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::BackendSet>')
|
730
|
-
end
|
731
|
-
|
732
|
-
# Lists the backend servers for a given load balancer and backend set.
|
733
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers.
|
734
|
-
# @param [String] backend_set_name The name of the backend set associated with the backend servers.
|
735
|
-
#
|
736
|
-
# Example: `My backend set`
|
737
|
-
#
|
738
|
-
# @param [Hash] opts the optional parameters
|
739
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
740
|
-
# particular request, please provide the request ID.
|
741
|
-
# (default to )
|
742
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::Backend>
|
743
|
-
def list_backends(load_balancer_id, backend_set_name, opts = {})
|
744
|
-
logger.debug "Calling operation LoadBalancerClient#list_backends." if logger
|
745
|
-
|
746
|
-
fail "Missing the required parameter 'load_balancer_id' when calling list_backends." if load_balancer_id.nil?
|
747
|
-
fail "Missing the required parameter 'backend_set_name' when calling list_backends." if backend_set_name.nil?
|
748
|
-
|
749
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
750
|
-
|
751
|
-
# Query Params
|
752
|
-
query_params = {}
|
753
|
-
|
754
|
-
# Header Params
|
755
|
-
header_params = {}
|
756
|
-
header_params['accept'] = 'application/json'
|
757
|
-
header_params['content-type'] = 'application/json'
|
758
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
759
|
-
|
760
|
-
post_body = nil
|
761
|
-
|
762
|
-
return @api_client.call_api(
|
763
|
-
:GET,
|
764
|
-
path,
|
765
|
-
endpoint,
|
766
|
-
:header_params => header_params,
|
767
|
-
:query_params => query_params,
|
768
|
-
:body => post_body,
|
769
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::Backend>')
|
770
|
-
end
|
771
|
-
|
772
|
-
# Lists all SSL certificates associated with a given load balancer.
|
773
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificates to be listed.
|
774
|
-
# @param [Hash] opts the optional parameters
|
775
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
776
|
-
# particular request, please provide the request ID.
|
777
|
-
# (default to )
|
778
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::Certificate>
|
779
|
-
def list_certificates(load_balancer_id, opts = {})
|
780
|
-
logger.debug "Calling operation LoadBalancerClient#list_certificates." if logger
|
781
|
-
|
782
|
-
fail "Missing the required parameter 'load_balancer_id' when calling list_certificates." if load_balancer_id.nil?
|
783
|
-
|
784
|
-
path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
|
785
|
-
|
786
|
-
# Query Params
|
787
|
-
query_params = {}
|
788
|
-
|
789
|
-
# Header Params
|
790
|
-
header_params = {}
|
791
|
-
header_params['accept'] = 'application/json'
|
792
|
-
header_params['content-type'] = 'application/json'
|
793
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
794
|
-
|
795
|
-
post_body = nil
|
796
|
-
|
797
|
-
return @api_client.call_api(
|
798
|
-
:GET,
|
799
|
-
path,
|
800
|
-
endpoint,
|
801
|
-
:header_params => header_params,
|
802
|
-
:query_params => query_params,
|
803
|
-
:body => post_body,
|
804
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::Certificate>')
|
805
|
-
end
|
806
|
-
|
807
|
-
# Lists all load balancers in the specified compartment.
|
808
|
-
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list.
|
809
|
-
# @param [Hash] opts the optional parameters
|
810
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
811
|
-
# particular request, please provide the request ID.
|
812
|
-
# (default to )
|
813
|
-
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
814
|
-
#
|
815
|
-
# Example: `500`
|
816
|
-
# (default to 10)
|
817
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
818
|
-
#
|
819
|
-
# Example: `3`
|
820
|
-
#
|
821
|
-
# @option opts [String] :detail The level of detail to return for each result. Can be `full` or `simple`.
|
822
|
-
#
|
823
|
-
# Example: `full`
|
824
|
-
# (default to full)
|
825
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::LoadBalancer>
|
826
|
-
def list_load_balancers(compartment_id, opts = {})
|
827
|
-
logger.debug "Calling operation LoadBalancerClient#list_load_balancers." if logger
|
828
|
-
|
829
|
-
fail "Missing the required parameter 'compartment_id' when calling list_load_balancers." if compartment_id.nil?
|
830
|
-
|
831
|
-
path = "/loadBalancers"
|
832
|
-
|
833
|
-
# Query Params
|
834
|
-
query_params = {}
|
835
|
-
query_params[:'compartmentId'] = compartment_id
|
836
|
-
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
837
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
838
|
-
query_params[:'detail'] = opts[:'detail'] if opts[:'detail']
|
839
|
-
|
840
|
-
# Header Params
|
841
|
-
header_params = {}
|
842
|
-
header_params['accept'] = 'application/json'
|
843
|
-
header_params['content-type'] = 'application/json'
|
844
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
845
|
-
|
846
|
-
post_body = nil
|
847
|
-
|
848
|
-
return @api_client.call_api(
|
849
|
-
:GET,
|
850
|
-
path,
|
851
|
-
endpoint,
|
852
|
-
:header_params => header_params,
|
853
|
-
:query_params => query_params,
|
854
|
-
:body => post_body,
|
855
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::LoadBalancer>')
|
856
|
-
end
|
857
|
-
|
858
|
-
# Lists the available load balancer policies.
|
859
|
-
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list.
|
860
|
-
# @param [Hash] opts the optional parameters
|
861
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
862
|
-
# particular request, please provide the request ID.
|
863
|
-
# (default to )
|
864
|
-
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
865
|
-
#
|
866
|
-
# Example: `500`
|
867
|
-
# (default to 16)
|
868
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
869
|
-
#
|
870
|
-
# Example: `3`
|
871
|
-
#
|
872
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::LoadBalancerPolicy>
|
873
|
-
def list_policies(compartment_id, opts = {})
|
874
|
-
logger.debug "Calling operation LoadBalancerClient#list_policies." if logger
|
875
|
-
|
876
|
-
fail "Missing the required parameter 'compartment_id' when calling list_policies." if compartment_id.nil?
|
877
|
-
|
878
|
-
path = "/loadBalancerPolicies"
|
879
|
-
|
880
|
-
# Query Params
|
881
|
-
query_params = {}
|
882
|
-
query_params[:'compartmentId'] = compartment_id
|
883
|
-
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
884
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
885
|
-
|
886
|
-
# Header Params
|
887
|
-
header_params = {}
|
888
|
-
header_params['accept'] = 'application/json'
|
889
|
-
header_params['content-type'] = 'application/json'
|
890
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
891
|
-
|
892
|
-
post_body = nil
|
893
|
-
|
894
|
-
return @api_client.call_api(
|
895
|
-
:GET,
|
896
|
-
path,
|
897
|
-
endpoint,
|
898
|
-
:header_params => header_params,
|
899
|
-
:query_params => query_params,
|
900
|
-
:body => post_body,
|
901
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::LoadBalancerPolicy>')
|
902
|
-
end
|
903
|
-
|
904
|
-
# Lists all supported traffic protocols.
|
905
|
-
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer protocols to list.
|
906
|
-
# @param [Hash] opts the optional parameters
|
907
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
908
|
-
# particular request, please provide the request ID.
|
909
|
-
# (default to )
|
910
|
-
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
911
|
-
#
|
912
|
-
# Example: `500`
|
913
|
-
# (default to 16)
|
914
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
915
|
-
#
|
916
|
-
# Example: `3`
|
917
|
-
#
|
918
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::LoadBalancerProtocol>
|
919
|
-
def list_protocols(compartment_id, opts = {})
|
920
|
-
logger.debug "Calling operation LoadBalancerClient#list_protocols." if logger
|
921
|
-
|
922
|
-
fail "Missing the required parameter 'compartment_id' when calling list_protocols." if compartment_id.nil?
|
923
|
-
|
924
|
-
path = "/loadBalancerProtocols"
|
925
|
-
|
926
|
-
# Query Params
|
927
|
-
query_params = {}
|
928
|
-
query_params[:'compartmentId'] = compartment_id
|
929
|
-
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
930
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
931
|
-
|
932
|
-
# Header Params
|
933
|
-
header_params = {}
|
934
|
-
header_params['accept'] = 'application/json'
|
935
|
-
header_params['content-type'] = 'application/json'
|
936
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
937
|
-
|
938
|
-
post_body = nil
|
939
|
-
|
940
|
-
return @api_client.call_api(
|
941
|
-
:GET,
|
942
|
-
path,
|
943
|
-
endpoint,
|
944
|
-
:header_params => header_params,
|
945
|
-
:query_params => query_params,
|
946
|
-
:body => post_body,
|
947
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::LoadBalancerProtocol>')
|
948
|
-
end
|
949
|
-
|
950
|
-
# Lists the valid load balancer shapes.
|
951
|
-
# @param [String] compartment_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list.
|
952
|
-
# @param [Hash] opts the optional parameters
|
953
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
954
|
-
# particular request, please provide the request ID.
|
955
|
-
# (default to )
|
956
|
-
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
957
|
-
#
|
958
|
-
# Example: `500`
|
959
|
-
# (default to 16)
|
960
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
961
|
-
#
|
962
|
-
# Example: `3`
|
963
|
-
#
|
964
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::LoadBalancerShape>
|
965
|
-
def list_shapes(compartment_id, opts = {})
|
966
|
-
logger.debug "Calling operation LoadBalancerClient#list_shapes." if logger
|
967
|
-
|
968
|
-
fail "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
|
969
|
-
|
970
|
-
path = "/loadBalancerShapes"
|
971
|
-
|
972
|
-
# Query Params
|
973
|
-
query_params = {}
|
974
|
-
query_params[:'compartmentId'] = compartment_id
|
975
|
-
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
976
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
977
|
-
|
978
|
-
# Header Params
|
979
|
-
header_params = {}
|
980
|
-
header_params['accept'] = 'application/json'
|
981
|
-
header_params['content-type'] = 'application/json'
|
982
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
983
|
-
|
984
|
-
post_body = nil
|
985
|
-
|
986
|
-
return @api_client.call_api(
|
987
|
-
:GET,
|
988
|
-
path,
|
989
|
-
endpoint,
|
990
|
-
:header_params => header_params,
|
991
|
-
:query_params => query_params,
|
992
|
-
:body => post_body,
|
993
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::LoadBalancerShape>')
|
994
|
-
end
|
995
|
-
|
996
|
-
# Lists the work requests for a given load balancer.
|
997
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve.
|
998
|
-
# @param [Hash] opts the optional parameters
|
999
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1000
|
-
# particular request, please provide the request ID.
|
1001
|
-
# (default to )
|
1002
|
-
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
1003
|
-
#
|
1004
|
-
# Example: `500`
|
1005
|
-
# (default to 100)
|
1006
|
-
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1007
|
-
#
|
1008
|
-
# Example: `3`
|
1009
|
-
#
|
1010
|
-
# @return [Response] A Response object with data of type Array<OracleBMC::LoadBalancer::Models::WorkRequest>
|
1011
|
-
def list_work_requests(load_balancer_id, opts = {})
|
1012
|
-
logger.debug "Calling operation LoadBalancerClient#list_work_requests." if logger
|
1013
|
-
|
1014
|
-
fail "Missing the required parameter 'load_balancer_id' when calling list_work_requests." if load_balancer_id.nil?
|
1015
|
-
|
1016
|
-
path = "/loadBalancers/{loadBalancerId}/workRequests".sub('{loadBalancerId}', load_balancer_id.to_s)
|
1017
|
-
|
1018
|
-
# Query Params
|
1019
|
-
query_params = {}
|
1020
|
-
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
1021
|
-
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
1022
|
-
|
1023
|
-
# Header Params
|
1024
|
-
header_params = {}
|
1025
|
-
header_params['accept'] = 'application/json'
|
1026
|
-
header_params['content-type'] = 'application/json'
|
1027
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1028
|
-
|
1029
|
-
post_body = nil
|
1030
|
-
|
1031
|
-
return @api_client.call_api(
|
1032
|
-
:GET,
|
1033
|
-
path,
|
1034
|
-
endpoint,
|
1035
|
-
:header_params => header_params,
|
1036
|
-
:query_params => query_params,
|
1037
|
-
:body => post_body,
|
1038
|
-
:return_type => 'Array<OracleBMC::LoadBalancer::Models::WorkRequest>')
|
1039
|
-
end
|
1040
|
-
|
1041
|
-
# Updates the configuration of a backend server within the specified backend set.
|
1042
|
-
# @param [UpdateBackendDetails] update_backend_details Details for updating a backend server.
|
1043
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server.
|
1044
|
-
# @param [String] backend_set_name The name of the backend set associated with the backend server.
|
1045
|
-
#
|
1046
|
-
# Example: `My backend set`
|
1047
|
-
#
|
1048
|
-
# @param [String] backend_name The name of the backend server to update.
|
1049
|
-
#
|
1050
|
-
# Example: `My backend server`
|
1051
|
-
#
|
1052
|
-
# @param [Hash] opts the optional parameters
|
1053
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1054
|
-
# particular request, please provide the request ID.
|
1055
|
-
# (default to )
|
1056
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1057
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1058
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
1059
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1060
|
-
# may be rejected).
|
1061
|
-
#
|
1062
|
-
# @return [Response] A Response object with data of type nil
|
1063
|
-
def update_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, opts = {})
|
1064
|
-
logger.debug "Calling operation LoadBalancerClient#update_backend." if logger
|
1065
|
-
|
1066
|
-
fail "Missing the required parameter 'update_backend_details' when calling update_backend." if update_backend_details.nil?
|
1067
|
-
fail "Missing the required parameter 'load_balancer_id' when calling update_backend." if load_balancer_id.nil?
|
1068
|
-
fail "Missing the required parameter 'backend_set_name' when calling update_backend." if backend_set_name.nil?
|
1069
|
-
fail "Missing the required parameter 'backend_name' when calling update_backend." if backend_name.nil?
|
1070
|
-
|
1071
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
|
1072
|
-
|
1073
|
-
# Query Params
|
1074
|
-
query_params = {}
|
1075
|
-
|
1076
|
-
# Header Params
|
1077
|
-
header_params = {}
|
1078
|
-
header_params['accept'] = 'application/json'
|
1079
|
-
header_params['content-type'] = 'application/json'
|
1080
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1081
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
1082
|
-
|
1083
|
-
post_body = @api_client.object_to_http_body(update_backend_details)
|
1084
|
-
|
1085
|
-
return @api_client.call_api(
|
1086
|
-
:PUT,
|
1087
|
-
path,
|
1088
|
-
endpoint,
|
1089
|
-
:header_params => header_params,
|
1090
|
-
:query_params => query_params,
|
1091
|
-
:body => post_body)
|
1092
|
-
end
|
1093
|
-
|
1094
|
-
# Updates a backend set.
|
1095
|
-
# @param [UpdateBackendSetDetails] update_backend_set_details The details to update a backend set.
|
1096
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set.
|
1097
|
-
# @param [String] backend_set_name The name of the backend set to update.
|
1098
|
-
#
|
1099
|
-
# Example: `My backend set`
|
1100
|
-
#
|
1101
|
-
# @param [Hash] opts the optional parameters
|
1102
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1103
|
-
# particular request, please provide the request ID.
|
1104
|
-
# (default to )
|
1105
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1106
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1107
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
1108
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1109
|
-
# may be rejected).
|
1110
|
-
#
|
1111
|
-
# @return [Response] A Response object with data of type nil
|
1112
|
-
def update_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, opts = {})
|
1113
|
-
logger.debug "Calling operation LoadBalancerClient#update_backend_set." if logger
|
1114
|
-
|
1115
|
-
fail "Missing the required parameter 'update_backend_set_details' when calling update_backend_set." if update_backend_set_details.nil?
|
1116
|
-
fail "Missing the required parameter 'load_balancer_id' when calling update_backend_set." if load_balancer_id.nil?
|
1117
|
-
fail "Missing the required parameter 'backend_set_name' when calling update_backend_set." if backend_set_name.nil?
|
1118
|
-
|
1119
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
1120
|
-
|
1121
|
-
# Query Params
|
1122
|
-
query_params = {}
|
1123
|
-
|
1124
|
-
# Header Params
|
1125
|
-
header_params = {}
|
1126
|
-
header_params['accept'] = 'application/json'
|
1127
|
-
header_params['content-type'] = 'application/json'
|
1128
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1129
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
1130
|
-
|
1131
|
-
post_body = @api_client.object_to_http_body(update_backend_set_details)
|
1132
|
-
|
1133
|
-
return @api_client.call_api(
|
1134
|
-
:PUT,
|
1135
|
-
path,
|
1136
|
-
endpoint,
|
1137
|
-
:header_params => header_params,
|
1138
|
-
:query_params => query_params,
|
1139
|
-
:body => post_body)
|
1140
|
-
end
|
1141
|
-
|
1142
|
-
# Updates the health check policy for a given load balancer and backend set.
|
1143
|
-
# @param [UpdateHealthCheckerDetails] health_checker The health check policy configuration details.
|
1144
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated.
|
1145
|
-
# @param [String] backend_set_name The name of the backend set associated with the health check policy to be retrieved.
|
1146
|
-
#
|
1147
|
-
# Example: `My backend set`
|
1148
|
-
#
|
1149
|
-
# @param [Hash] opts the optional parameters
|
1150
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1151
|
-
# particular request, please provide the request ID.
|
1152
|
-
# (default to )
|
1153
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1154
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1155
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
1156
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1157
|
-
# may be rejected).
|
1158
|
-
#
|
1159
|
-
# @return [Response] A Response object with data of type nil
|
1160
|
-
def update_health_checker(health_checker, load_balancer_id, backend_set_name, opts = {})
|
1161
|
-
logger.debug "Calling operation LoadBalancerClient#update_health_checker." if logger
|
1162
|
-
|
1163
|
-
fail "Missing the required parameter 'health_checker' when calling update_health_checker." if health_checker.nil?
|
1164
|
-
fail "Missing the required parameter 'load_balancer_id' when calling update_health_checker." if load_balancer_id.nil?
|
1165
|
-
fail "Missing the required parameter 'backend_set_name' when calling update_health_checker." if backend_set_name.nil?
|
1166
|
-
|
1167
|
-
path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
|
1168
|
-
|
1169
|
-
# Query Params
|
1170
|
-
query_params = {}
|
1171
|
-
|
1172
|
-
# Header Params
|
1173
|
-
header_params = {}
|
1174
|
-
header_params['accept'] = 'application/json'
|
1175
|
-
header_params['content-type'] = 'application/json'
|
1176
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1177
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
1178
|
-
|
1179
|
-
post_body = @api_client.object_to_http_body(health_checker)
|
1180
|
-
|
1181
|
-
return @api_client.call_api(
|
1182
|
-
:PUT,
|
1183
|
-
path,
|
1184
|
-
endpoint,
|
1185
|
-
:header_params => header_params,
|
1186
|
-
:query_params => query_params,
|
1187
|
-
:body => post_body)
|
1188
|
-
end
|
1189
|
-
|
1190
|
-
# Updates a listener for a given load balancer.
|
1191
|
-
# @param [UpdateListenerDetails] update_listener_details Details to update a listener.
|
1192
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update.
|
1193
|
-
# @param [String] listener_name The name of the listener to update.
|
1194
|
-
#
|
1195
|
-
# Example: `My listener`
|
1196
|
-
#
|
1197
|
-
# @param [Hash] opts the optional parameters
|
1198
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1199
|
-
# particular request, please provide the request ID.
|
1200
|
-
# (default to )
|
1201
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1202
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1203
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
1204
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1205
|
-
# may be rejected).
|
1206
|
-
#
|
1207
|
-
# @return [Response] A Response object with data of type nil
|
1208
|
-
def update_listener(update_listener_details, load_balancer_id, listener_name, opts = {})
|
1209
|
-
logger.debug "Calling operation LoadBalancerClient#update_listener." if logger
|
1210
|
-
|
1211
|
-
fail "Missing the required parameter 'update_listener_details' when calling update_listener." if update_listener_details.nil?
|
1212
|
-
fail "Missing the required parameter 'load_balancer_id' when calling update_listener." if load_balancer_id.nil?
|
1213
|
-
fail "Missing the required parameter 'listener_name' when calling update_listener." if listener_name.nil?
|
1214
|
-
|
1215
|
-
path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
|
1216
|
-
|
1217
|
-
# Query Params
|
1218
|
-
query_params = {}
|
1219
|
-
|
1220
|
-
# Header Params
|
1221
|
-
header_params = {}
|
1222
|
-
header_params['accept'] = 'application/json'
|
1223
|
-
header_params['content-type'] = 'application/json'
|
1224
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1225
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
1226
|
-
|
1227
|
-
post_body = @api_client.object_to_http_body(update_listener_details)
|
1228
|
-
|
1229
|
-
return @api_client.call_api(
|
1230
|
-
:PUT,
|
1231
|
-
path,
|
1232
|
-
endpoint,
|
1233
|
-
:header_params => header_params,
|
1234
|
-
:query_params => query_params,
|
1235
|
-
:body => post_body)
|
1236
|
-
end
|
1237
|
-
|
1238
|
-
# Updates a load balancer's configuration.
|
1239
|
-
# @param [UpdateLoadBalancerDetails] update_load_balancer_details The details for updating a load balancer's configuration.
|
1240
|
-
# @param [String] load_balancer_id The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer to update.
|
1241
|
-
# @param [Hash] opts the optional parameters
|
1242
|
-
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1243
|
-
# particular request, please provide the request ID.
|
1244
|
-
# (default to )
|
1245
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1246
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1247
|
-
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
1248
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1249
|
-
# may be rejected).
|
1250
|
-
#
|
1251
|
-
# @return [Response] A Response object with data of type nil
|
1252
|
-
def update_load_balancer(update_load_balancer_details, load_balancer_id, opts = {})
|
1253
|
-
logger.debug "Calling operation LoadBalancerClient#update_load_balancer." if logger
|
1254
|
-
|
1255
|
-
fail "Missing the required parameter 'update_load_balancer_details' when calling update_load_balancer." if update_load_balancer_details.nil?
|
1256
|
-
fail "Missing the required parameter 'load_balancer_id' when calling update_load_balancer." if load_balancer_id.nil?
|
1257
|
-
|
1258
|
-
path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
|
1259
|
-
|
1260
|
-
# Query Params
|
1261
|
-
query_params = {}
|
1262
|
-
|
1263
|
-
# Header Params
|
1264
|
-
header_params = {}
|
1265
|
-
header_params['accept'] = 'application/json'
|
1266
|
-
header_params['content-type'] = 'application/json'
|
1267
|
-
header_params[:'opc-request-id'] = opts[:'opc_request_id'] if opts[:'opc_request_id']
|
1268
|
-
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
1269
|
-
|
1270
|
-
post_body = @api_client.object_to_http_body(update_load_balancer_details)
|
1271
|
-
|
1272
|
-
return @api_client.call_api(
|
1273
|
-
:PUT,
|
1274
|
-
path,
|
1275
|
-
endpoint,
|
1276
|
-
:header_params => header_params,
|
1277
|
-
:query_params => query_params,
|
1278
|
-
:body => post_body)
|
1279
|
-
end
|
1280
|
-
end
|
1281
|
-
end
|