oraclebmc 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/oraclebmc/core/models/console_history.rb +5 -3
- data/lib/oraclebmc/core/models/dhcp_dns_option.rb +5 -3
- data/lib/oraclebmc/core/models/dhcp_options.rb +5 -3
- data/lib/oraclebmc/core/models/drg.rb +5 -3
- data/lib/oraclebmc/core/models/drg_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/image.rb +5 -3
- data/lib/oraclebmc/core/models/instance.rb +5 -3
- data/lib/oraclebmc/core/models/internet_gateway.rb +5 -3
- data/lib/oraclebmc/core/models/ip_sec_connection.rb +5 -3
- data/lib/oraclebmc/core/models/route_table.rb +5 -3
- data/lib/oraclebmc/core/models/security_list.rb +5 -3
- data/lib/oraclebmc/core/models/subnet.rb +5 -3
- data/lib/oraclebmc/core/models/tunnel_status.rb +5 -3
- data/lib/oraclebmc/core/models/vcn.rb +5 -3
- data/lib/oraclebmc/core/models/vnic.rb +5 -3
- data/lib/oraclebmc/core/models/vnic_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/volume.rb +5 -3
- data/lib/oraclebmc/core/models/volume_attachment.rb +5 -3
- data/lib/oraclebmc/core/models/volume_backup.rb +5 -3
- data/lib/oraclebmc/identity/models/api_key.rb +5 -3
- data/lib/oraclebmc/identity/models/compartment.rb +5 -3
- data/lib/oraclebmc/identity/models/group.rb +5 -3
- data/lib/oraclebmc/identity/models/policy.rb +5 -3
- data/lib/oraclebmc/identity/models/swift_password.rb +5 -3
- data/lib/oraclebmc/identity/models/ui_password.rb +5 -3
- data/lib/oraclebmc/identity/models/user.rb +5 -3
- data/lib/oraclebmc/identity/models/user_group_membership.rb +5 -3
- data/lib/oraclebmc/load_balancer/load_balancer_client.rb +70 -0
- data/lib/oraclebmc/load_balancer/models/backend.rb +62 -62
- data/lib/oraclebmc/load_balancer/models/backend_details.rb +49 -49
- data/lib/oraclebmc/load_balancer/models/backend_set.rb +21 -21
- data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +14 -14
- data/lib/oraclebmc/load_balancer/models/certificate.rb +26 -26
- data/lib/oraclebmc/load_balancer/models/certificate_details.rb +40 -40
- data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +49 -49
- data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +21 -21
- data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +40 -40
- data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +32 -32
- data/lib/oraclebmc/load_balancer/models/health_checker.rb +54 -54
- data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +54 -54
- data/lib/oraclebmc/load_balancer/models/listener.rb +12 -12
- data/lib/oraclebmc/load_balancer/models/load_balancer.rb +61 -59
- data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +18 -18
- data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +22 -22
- data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +14 -14
- data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +53 -53
- data/lib/oraclebmc/load_balancer/models/work_request.rb +35 -33
- data/lib/oraclebmc/load_balancer/models/work_request_error.rb +5 -3
- data/lib/oraclebmc/version.rb +1 -1
- metadata +8 -8
@@ -8,6 +8,13 @@ module OracleBMC
|
|
8
8
|
# @return [String]
|
9
9
|
attr_accessor :default_backend_set_name
|
10
10
|
|
11
|
+
# A friendly name for the listener. It must be unique and it cannot be changed.
|
12
|
+
#
|
13
|
+
# Example: `My listener`
|
14
|
+
#
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :name
|
17
|
+
|
11
18
|
# The communication port for the listener.
|
12
19
|
#
|
13
20
|
# Example: `80`
|
@@ -27,13 +34,6 @@ module OracleBMC
|
|
27
34
|
# @return [OracleBMC::LoadBalancer::Models::SSLConfigurationDetails]
|
28
35
|
attr_accessor :ssl_configuration
|
29
36
|
|
30
|
-
# A friendly name for the listener. It must be unique and it cannot be changed.
|
31
|
-
#
|
32
|
-
# Example: `My listener`
|
33
|
-
#
|
34
|
-
# @return [String]
|
35
|
-
attr_accessor :name
|
36
|
-
|
37
37
|
|
38
38
|
# Initializes the object
|
39
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -48,6 +48,10 @@ module OracleBMC
|
|
48
48
|
self.default_backend_set_name = attributes[:'defaultBackendSetName']
|
49
49
|
end
|
50
50
|
|
51
|
+
if attributes[:'name']
|
52
|
+
self.name = attributes[:'name']
|
53
|
+
end
|
54
|
+
|
51
55
|
if attributes[:'port']
|
52
56
|
self.port = attributes[:'port']
|
53
57
|
end
|
@@ -60,10 +64,6 @@ module OracleBMC
|
|
60
64
|
self.ssl_configuration = attributes[:'sslConfiguration']
|
61
65
|
end
|
62
66
|
|
63
|
-
if attributes[:'name']
|
64
|
-
self.name = attributes[:'name']
|
65
|
-
end
|
66
|
-
|
67
67
|
end
|
68
68
|
|
69
69
|
# Checks equality by comparing each attribute.
|
@@ -72,10 +72,10 @@ module OracleBMC
|
|
72
72
|
return true if self.equal?(other_object)
|
73
73
|
self.class == other_object.class &&
|
74
74
|
default_backend_set_name == other_object.default_backend_set_name &&
|
75
|
+
name == other_object.name &&
|
75
76
|
port == other_object.port &&
|
76
77
|
protocol == other_object.protocol &&
|
77
|
-
ssl_configuration == other_object.ssl_configuration
|
78
|
-
name == other_object.name
|
78
|
+
ssl_configuration == other_object.ssl_configuration
|
79
79
|
end
|
80
80
|
|
81
81
|
# @see the `==` method
|
@@ -87,7 +87,7 @@ module OracleBMC
|
|
87
87
|
# Calculates hash code according to all attributes.
|
88
88
|
# @return [Fixnum] Hash code
|
89
89
|
def hash
|
90
|
-
[default_backend_set_name, port, protocol, ssl_configuration
|
90
|
+
[default_backend_set_name, name, port, protocol, ssl_configuration].hash
|
91
91
|
end
|
92
92
|
|
93
93
|
# Builds the object from hash
|
@@ -154,10 +154,10 @@ module OracleBMC
|
|
154
154
|
def self.attribute_map
|
155
155
|
{
|
156
156
|
:'default_backend_set_name' => :'defaultBackendSetName',
|
157
|
+
:'name' => :'name',
|
157
158
|
:'port' => :'port',
|
158
159
|
:'protocol' => :'protocol',
|
159
|
-
:'ssl_configuration' => :'sslConfiguration'
|
160
|
-
:'name' => :'name'
|
160
|
+
:'ssl_configuration' => :'sslConfiguration'
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
@@ -165,10 +165,10 @@ module OracleBMC
|
|
165
165
|
def self.swagger_types
|
166
166
|
{
|
167
167
|
:'default_backend_set_name' => :'String',
|
168
|
+
:'name' => :'String',
|
168
169
|
:'port' => :'Integer',
|
169
170
|
:'protocol' => :'String',
|
170
|
-
:'ssl_configuration' => :'OracleBMC::LoadBalancer::Models::SSLConfigurationDetails'
|
171
|
-
:'name' => :'String'
|
171
|
+
:'ssl_configuration' => :'OracleBMC::LoadBalancer::Models::SSLConfigurationDetails'
|
172
172
|
}
|
173
173
|
end
|
174
174
|
end
|
@@ -4,6 +4,12 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::CreateLoadBalancerDetails
|
7
|
+
# @return [Hash<String, OracleBMC::LoadBalancer::Models::BackendSetDetails>]
|
8
|
+
attr_accessor :backend_sets
|
9
|
+
|
10
|
+
# @return [Hash<String, OracleBMC::LoadBalancer::Models::CertificateDetails>]
|
11
|
+
attr_accessor :certificates
|
12
|
+
|
7
13
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the load balancer.
|
8
14
|
# @return [String]
|
9
15
|
attr_accessor :compartment_id
|
@@ -15,6 +21,9 @@ module OracleBMC
|
|
15
21
|
# @return [String]
|
16
22
|
attr_accessor :display_name
|
17
23
|
|
24
|
+
# @return [Hash<String, OracleBMC::LoadBalancer::Models::ListenerDetails>]
|
25
|
+
attr_accessor :listeners
|
26
|
+
|
18
27
|
# A template that determines the total pre-provisioned bandwidth (ingress plus egress).
|
19
28
|
# To get a list of available shapes, use the {#list_shapes list_shapes}
|
20
29
|
# operation.
|
@@ -24,19 +33,10 @@ module OracleBMC
|
|
24
33
|
# @return [String]
|
25
34
|
attr_accessor :shape_name
|
26
35
|
|
27
|
-
# @return [Hash<String, OracleBMC::LoadBalancer::Models::ListenerDetails>]
|
28
|
-
attr_accessor :listeners
|
29
|
-
|
30
|
-
# @return [Hash<String, OracleBMC::LoadBalancer::Models::BackendSetDetails>]
|
31
|
-
attr_accessor :backend_sets
|
32
|
-
|
33
36
|
# An array of subnet [OCIDs](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm).
|
34
37
|
# @return [Array<String>]
|
35
38
|
attr_accessor :subnet_ids
|
36
39
|
|
37
|
-
# @return [Hash<String, OracleBMC::LoadBalancer::Models::CertificateDetails>]
|
38
|
-
attr_accessor :certificates
|
39
|
-
|
40
40
|
|
41
41
|
# Initializes the object
|
42
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -47,6 +47,14 @@ module OracleBMC
|
|
47
47
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
48
|
|
49
49
|
|
50
|
+
if attributes[:'backendSets']
|
51
|
+
self.backend_sets = attributes[:'backendSets']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'certificates']
|
55
|
+
self.certificates = attributes[:'certificates']
|
56
|
+
end
|
57
|
+
|
50
58
|
if attributes[:'compartmentId']
|
51
59
|
self.compartment_id = attributes[:'compartmentId']
|
52
60
|
end
|
@@ -55,26 +63,18 @@ module OracleBMC
|
|
55
63
|
self.display_name = attributes[:'displayName']
|
56
64
|
end
|
57
65
|
|
58
|
-
if attributes[:'shapeName']
|
59
|
-
self.shape_name = attributes[:'shapeName']
|
60
|
-
end
|
61
|
-
|
62
66
|
if attributes[:'listeners']
|
63
67
|
self.listeners = attributes[:'listeners']
|
64
68
|
end
|
65
69
|
|
66
|
-
if attributes[:'
|
67
|
-
self.
|
70
|
+
if attributes[:'shapeName']
|
71
|
+
self.shape_name = attributes[:'shapeName']
|
68
72
|
end
|
69
73
|
|
70
74
|
if attributes[:'subnetIds']
|
71
75
|
self.subnet_ids = attributes[:'subnetIds']
|
72
76
|
end
|
73
77
|
|
74
|
-
if attributes[:'certificates']
|
75
|
-
self.certificates = attributes[:'certificates']
|
76
|
-
end
|
77
|
-
|
78
78
|
end
|
79
79
|
|
80
80
|
# Checks equality by comparing each attribute.
|
@@ -82,13 +82,13 @@ module OracleBMC
|
|
82
82
|
def ==(other_object)
|
83
83
|
return true if self.equal?(other_object)
|
84
84
|
self.class == other_object.class &&
|
85
|
+
backend_sets == other_object.backend_sets &&
|
86
|
+
certificates == other_object.certificates &&
|
85
87
|
compartment_id == other_object.compartment_id &&
|
86
88
|
display_name == other_object.display_name &&
|
87
|
-
shape_name == other_object.shape_name &&
|
88
89
|
listeners == other_object.listeners &&
|
89
|
-
|
90
|
-
subnet_ids == other_object.subnet_ids
|
91
|
-
certificates == other_object.certificates
|
90
|
+
shape_name == other_object.shape_name &&
|
91
|
+
subnet_ids == other_object.subnet_ids
|
92
92
|
end
|
93
93
|
|
94
94
|
# @see the `==` method
|
@@ -100,7 +100,7 @@ module OracleBMC
|
|
100
100
|
# Calculates hash code according to all attributes.
|
101
101
|
# @return [Fixnum] Hash code
|
102
102
|
def hash
|
103
|
-
[compartment_id, display_name,
|
103
|
+
[backend_sets, certificates, compartment_id, display_name, listeners, shape_name, subnet_ids].hash
|
104
104
|
end
|
105
105
|
|
106
106
|
# Builds the object from hash
|
@@ -166,26 +166,26 @@ module OracleBMC
|
|
166
166
|
# Attribute mapping from ruby-style variable name to JSON key.
|
167
167
|
def self.attribute_map
|
168
168
|
{
|
169
|
+
:'backend_sets' => :'backendSets',
|
170
|
+
:'certificates' => :'certificates',
|
169
171
|
:'compartment_id' => :'compartmentId',
|
170
172
|
:'display_name' => :'displayName',
|
171
|
-
:'shape_name' => :'shapeName',
|
172
173
|
:'listeners' => :'listeners',
|
173
|
-
:'
|
174
|
-
:'subnet_ids' => :'subnetIds'
|
175
|
-
:'certificates' => :'certificates'
|
174
|
+
:'shape_name' => :'shapeName',
|
175
|
+
:'subnet_ids' => :'subnetIds'
|
176
176
|
}
|
177
177
|
end
|
178
178
|
|
179
179
|
# Attribute type mapping.
|
180
180
|
def self.swagger_types
|
181
181
|
{
|
182
|
+
:'backend_sets' => :'Hash<String, OracleBMC::LoadBalancer::Models::BackendSetDetails>',
|
183
|
+
:'certificates' => :'Hash<String, OracleBMC::LoadBalancer::Models::CertificateDetails>',
|
182
184
|
:'compartment_id' => :'String',
|
183
185
|
:'display_name' => :'String',
|
184
|
-
:'shape_name' => :'String',
|
185
186
|
:'listeners' => :'Hash<String, OracleBMC::LoadBalancer::Models::ListenerDetails>',
|
186
|
-
:'
|
187
|
-
:'subnet_ids' => :'Array<String>'
|
188
|
-
:'certificates' => :'Hash<String, OracleBMC::LoadBalancer::Models::CertificateDetails>'
|
187
|
+
:'shape_name' => :'String',
|
188
|
+
:'subnet_ids' => :'Array<String>'
|
189
189
|
}
|
190
190
|
end
|
191
191
|
end
|
@@ -4,6 +4,21 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::HealthChecker
|
7
|
+
# The interval between health checks, in milliseconds. The default is 10000 (10 seconds).
|
8
|
+
#
|
9
|
+
# Example: `30000`
|
10
|
+
#
|
11
|
+
# @return [Integer]
|
12
|
+
attr_accessor :interval_in_millis
|
13
|
+
|
14
|
+
# The backend server port against which to run the health check. If the port is not specified, the load balancer uses the
|
15
|
+
# port information from the `Backend` object.
|
16
|
+
#
|
17
|
+
# Example: `8080`
|
18
|
+
#
|
19
|
+
# @return [Integer]
|
20
|
+
attr_accessor :port
|
21
|
+
|
7
22
|
# The protocol the health check must use; either HTTP or TCP.
|
8
23
|
#
|
9
24
|
# Example: `HTTP`
|
@@ -11,20 +26,19 @@ module OracleBMC
|
|
11
26
|
# @return [String]
|
12
27
|
attr_accessor :protocol
|
13
28
|
|
14
|
-
#
|
29
|
+
# A regular expression for parsing the response body from the backend server.
|
15
30
|
#
|
16
|
-
# Example:
|
31
|
+
# Example: `^(500|40[1348])$`
|
17
32
|
#
|
18
33
|
# @return [String]
|
19
|
-
attr_accessor :
|
34
|
+
attr_accessor :response_body_regex
|
20
35
|
|
21
|
-
# The
|
22
|
-
# port information from the `Backend` object.
|
36
|
+
# The number of retries to attempt before a backend server is considered \"unhealthy\". Defaults to 3.
|
23
37
|
#
|
24
|
-
# Example: `
|
38
|
+
# Example: `3`
|
25
39
|
#
|
26
40
|
# @return [Integer]
|
27
|
-
attr_accessor :
|
41
|
+
attr_accessor :retries
|
28
42
|
|
29
43
|
# The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol,
|
30
44
|
# you can use common HTTP status codes such as \"200\".
|
@@ -34,13 +48,6 @@ module OracleBMC
|
|
34
48
|
# @return [Integer]
|
35
49
|
attr_accessor :return_code
|
36
50
|
|
37
|
-
# The number of retries to attempt before a backend server is considered \"unhealthy\". Defaults to 3.
|
38
|
-
#
|
39
|
-
# Example: `3`
|
40
|
-
#
|
41
|
-
# @return [Integer]
|
42
|
-
attr_accessor :retries
|
43
|
-
|
44
51
|
# The maximum timeout before a retry, in milliseconds. Defaults to 3000 (3 seconds).
|
45
52
|
#
|
46
53
|
# Example: `6000`
|
@@ -48,19 +55,12 @@ module OracleBMC
|
|
48
55
|
# @return [Integer]
|
49
56
|
attr_accessor :timeout_in_millis
|
50
57
|
|
51
|
-
# The
|
52
|
-
#
|
53
|
-
# Example: `30000`
|
54
|
-
#
|
55
|
-
# @return [Integer]
|
56
|
-
attr_accessor :interval_in_millis
|
57
|
-
|
58
|
-
# A regular expression for parsing the response body from the backend server.
|
58
|
+
# The path against which to run the health check.
|
59
59
|
#
|
60
|
-
# Example:
|
60
|
+
# Example: `/healthcheck`
|
61
61
|
#
|
62
62
|
# @return [String]
|
63
|
-
attr_accessor :
|
63
|
+
attr_accessor :url_path
|
64
64
|
|
65
65
|
|
66
66
|
# Initializes the object
|
@@ -72,36 +72,36 @@ module OracleBMC
|
|
72
72
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
73
73
|
|
74
74
|
|
75
|
-
if attributes[:'
|
76
|
-
self.
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes[:'urlPath']
|
80
|
-
self.url_path = attributes[:'urlPath']
|
75
|
+
if attributes[:'intervalInMillis']
|
76
|
+
self.interval_in_millis = attributes[:'intervalInMillis']
|
81
77
|
end
|
82
78
|
|
83
79
|
if attributes[:'port']
|
84
80
|
self.port = attributes[:'port']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes[:'
|
88
|
-
self.
|
83
|
+
if attributes[:'protocol']
|
84
|
+
self.protocol = attributes[:'protocol']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes[:'responseBodyRegex']
|
88
|
+
self.response_body_regex = attributes[:'responseBodyRegex']
|
89
89
|
end
|
90
90
|
|
91
91
|
if attributes[:'retries']
|
92
92
|
self.retries = attributes[:'retries']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes[:'
|
96
|
-
self.
|
95
|
+
if attributes[:'returnCode']
|
96
|
+
self.return_code = attributes[:'returnCode']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes[:'
|
100
|
-
self.
|
99
|
+
if attributes[:'timeoutInMillis']
|
100
|
+
self.timeout_in_millis = attributes[:'timeoutInMillis']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes[:'
|
104
|
-
self.
|
103
|
+
if attributes[:'urlPath']
|
104
|
+
self.url_path = attributes[:'urlPath']
|
105
105
|
end
|
106
106
|
|
107
107
|
end
|
@@ -111,14 +111,14 @@ module OracleBMC
|
|
111
111
|
def ==(other_object)
|
112
112
|
return true if self.equal?(other_object)
|
113
113
|
self.class == other_object.class &&
|
114
|
-
|
115
|
-
url_path == other_object.url_path &&
|
114
|
+
interval_in_millis == other_object.interval_in_millis &&
|
116
115
|
port == other_object.port &&
|
117
|
-
|
116
|
+
protocol == other_object.protocol &&
|
117
|
+
response_body_regex == other_object.response_body_regex &&
|
118
118
|
retries == other_object.retries &&
|
119
|
+
return_code == other_object.return_code &&
|
119
120
|
timeout_in_millis == other_object.timeout_in_millis &&
|
120
|
-
|
121
|
-
response_body_regex == other_object.response_body_regex
|
121
|
+
url_path == other_object.url_path
|
122
122
|
end
|
123
123
|
|
124
124
|
# @see the `==` method
|
@@ -130,7 +130,7 @@ module OracleBMC
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Fixnum] Hash code
|
132
132
|
def hash
|
133
|
-
[
|
133
|
+
[interval_in_millis, port, protocol, response_body_regex, retries, return_code, timeout_in_millis, url_path].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
@@ -196,28 +196,28 @@ module OracleBMC
|
|
196
196
|
# Attribute mapping from ruby-style variable name to JSON key.
|
197
197
|
def self.attribute_map
|
198
198
|
{
|
199
|
-
:'
|
200
|
-
:'url_path' => :'urlPath',
|
199
|
+
:'interval_in_millis' => :'intervalInMillis',
|
201
200
|
:'port' => :'port',
|
202
|
-
:'
|
201
|
+
:'protocol' => :'protocol',
|
202
|
+
:'response_body_regex' => :'responseBodyRegex',
|
203
203
|
:'retries' => :'retries',
|
204
|
+
:'return_code' => :'returnCode',
|
204
205
|
:'timeout_in_millis' => :'timeoutInMillis',
|
205
|
-
:'
|
206
|
-
:'response_body_regex' => :'responseBodyRegex'
|
206
|
+
:'url_path' => :'urlPath'
|
207
207
|
}
|
208
208
|
end
|
209
209
|
|
210
210
|
# Attribute type mapping.
|
211
211
|
def self.swagger_types
|
212
212
|
{
|
213
|
-
:'
|
214
|
-
:'url_path' => :'String',
|
213
|
+
:'interval_in_millis' => :'Integer',
|
215
214
|
:'port' => :'Integer',
|
216
|
-
:'
|
215
|
+
:'protocol' => :'String',
|
216
|
+
:'response_body_regex' => :'String',
|
217
217
|
:'retries' => :'Integer',
|
218
|
+
:'return_code' => :'Integer',
|
218
219
|
:'timeout_in_millis' => :'Integer',
|
219
|
-
:'
|
220
|
-
:'response_body_regex' => :'String'
|
220
|
+
:'url_path' => :'String'
|
221
221
|
}
|
222
222
|
end
|
223
223
|
end
|
@@ -4,19 +4,12 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::HealthCheckerDetails
|
7
|
-
# The
|
8
|
-
#
|
9
|
-
# Example: `HTTP`
|
10
|
-
#
|
11
|
-
# @return [String]
|
12
|
-
attr_accessor :protocol
|
13
|
-
|
14
|
-
# The path against which to run the health check.
|
7
|
+
# The interval between health checks, in milliseconds.
|
15
8
|
#
|
16
|
-
# Example:
|
9
|
+
# Example: `30000`
|
17
10
|
#
|
18
|
-
# @return [
|
19
|
-
attr_accessor :
|
11
|
+
# @return [Integer]
|
12
|
+
attr_accessor :interval_in_millis
|
20
13
|
|
21
14
|
# The backend server port against which to run the health check. If the port is not specified, the load balancer uses the
|
22
15
|
# port information from the `Backend` object.
|
@@ -26,12 +19,19 @@ module OracleBMC
|
|
26
19
|
# @return [Integer]
|
27
20
|
attr_accessor :port
|
28
21
|
|
29
|
-
# The
|
22
|
+
# The protocol the health check must use; either HTTP or TCP.
|
30
23
|
#
|
31
|
-
# Example: `
|
24
|
+
# Example: `HTTP`
|
32
25
|
#
|
33
|
-
# @return [
|
34
|
-
attr_accessor :
|
26
|
+
# @return [String]
|
27
|
+
attr_accessor :protocol
|
28
|
+
|
29
|
+
# A regular expression for parsing the response body from the backend server.
|
30
|
+
#
|
31
|
+
# Example: `^(500|40[1348])$`
|
32
|
+
#
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :response_body_regex
|
35
35
|
|
36
36
|
# The number of retries to attempt before a backend server is considered \"unhealthy\".
|
37
37
|
#
|
@@ -40,26 +40,26 @@ module OracleBMC
|
|
40
40
|
# @return [Integer]
|
41
41
|
attr_accessor :retries
|
42
42
|
|
43
|
-
# The
|
43
|
+
# The status code a healthy backend server should return.
|
44
44
|
#
|
45
|
-
# Example: `
|
45
|
+
# Example: `200`
|
46
46
|
#
|
47
47
|
# @return [Integer]
|
48
|
-
attr_accessor :
|
48
|
+
attr_accessor :return_code
|
49
49
|
|
50
|
-
# The
|
50
|
+
# The maximum timeout in milliseconds before a retry.
|
51
51
|
#
|
52
|
-
# Example: `
|
52
|
+
# Example: `6000`
|
53
53
|
#
|
54
54
|
# @return [Integer]
|
55
|
-
attr_accessor :
|
55
|
+
attr_accessor :timeout_in_millis
|
56
56
|
|
57
|
-
#
|
57
|
+
# The path against which to run the health check.
|
58
58
|
#
|
59
|
-
# Example:
|
59
|
+
# Example: `/healthcheck`
|
60
60
|
#
|
61
61
|
# @return [String]
|
62
|
-
attr_accessor :
|
62
|
+
attr_accessor :url_path
|
63
63
|
|
64
64
|
|
65
65
|
# Initializes the object
|
@@ -71,36 +71,36 @@ module OracleBMC
|
|
71
71
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
72
72
|
|
73
73
|
|
74
|
-
if attributes[:'
|
75
|
-
self.
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes[:'urlPath']
|
79
|
-
self.url_path = attributes[:'urlPath']
|
74
|
+
if attributes[:'intervalInMillis']
|
75
|
+
self.interval_in_millis = attributes[:'intervalInMillis']
|
80
76
|
end
|
81
77
|
|
82
78
|
if attributes[:'port']
|
83
79
|
self.port = attributes[:'port']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes[:'
|
87
|
-
self.
|
82
|
+
if attributes[:'protocol']
|
83
|
+
self.protocol = attributes[:'protocol']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'responseBodyRegex']
|
87
|
+
self.response_body_regex = attributes[:'responseBodyRegex']
|
88
88
|
end
|
89
89
|
|
90
90
|
if attributes[:'retries']
|
91
91
|
self.retries = attributes[:'retries']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes[:'
|
95
|
-
self.
|
94
|
+
if attributes[:'returnCode']
|
95
|
+
self.return_code = attributes[:'returnCode']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes[:'
|
99
|
-
self.
|
98
|
+
if attributes[:'timeoutInMillis']
|
99
|
+
self.timeout_in_millis = attributes[:'timeoutInMillis']
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes[:'
|
103
|
-
self.
|
102
|
+
if attributes[:'urlPath']
|
103
|
+
self.url_path = attributes[:'urlPath']
|
104
104
|
end
|
105
105
|
|
106
106
|
end
|
@@ -110,14 +110,14 @@ module OracleBMC
|
|
110
110
|
def ==(other_object)
|
111
111
|
return true if self.equal?(other_object)
|
112
112
|
self.class == other_object.class &&
|
113
|
-
|
114
|
-
url_path == other_object.url_path &&
|
113
|
+
interval_in_millis == other_object.interval_in_millis &&
|
115
114
|
port == other_object.port &&
|
116
|
-
|
115
|
+
protocol == other_object.protocol &&
|
116
|
+
response_body_regex == other_object.response_body_regex &&
|
117
117
|
retries == other_object.retries &&
|
118
|
+
return_code == other_object.return_code &&
|
118
119
|
timeout_in_millis == other_object.timeout_in_millis &&
|
119
|
-
|
120
|
-
response_body_regex == other_object.response_body_regex
|
120
|
+
url_path == other_object.url_path
|
121
121
|
end
|
122
122
|
|
123
123
|
# @see the `==` method
|
@@ -129,7 +129,7 @@ module OracleBMC
|
|
129
129
|
# Calculates hash code according to all attributes.
|
130
130
|
# @return [Fixnum] Hash code
|
131
131
|
def hash
|
132
|
-
[
|
132
|
+
[interval_in_millis, port, protocol, response_body_regex, retries, return_code, timeout_in_millis, url_path].hash
|
133
133
|
end
|
134
134
|
|
135
135
|
# Builds the object from hash
|
@@ -195,28 +195,28 @@ module OracleBMC
|
|
195
195
|
# Attribute mapping from ruby-style variable name to JSON key.
|
196
196
|
def self.attribute_map
|
197
197
|
{
|
198
|
-
:'
|
199
|
-
:'url_path' => :'urlPath',
|
198
|
+
:'interval_in_millis' => :'intervalInMillis',
|
200
199
|
:'port' => :'port',
|
201
|
-
:'
|
200
|
+
:'protocol' => :'protocol',
|
201
|
+
:'response_body_regex' => :'responseBodyRegex',
|
202
202
|
:'retries' => :'retries',
|
203
|
+
:'return_code' => :'returnCode',
|
203
204
|
:'timeout_in_millis' => :'timeoutInMillis',
|
204
|
-
:'
|
205
|
-
:'response_body_regex' => :'responseBodyRegex'
|
205
|
+
:'url_path' => :'urlPath'
|
206
206
|
}
|
207
207
|
end
|
208
208
|
|
209
209
|
# Attribute type mapping.
|
210
210
|
def self.swagger_types
|
211
211
|
{
|
212
|
-
:'
|
213
|
-
:'url_path' => :'String',
|
212
|
+
:'interval_in_millis' => :'Integer',
|
214
213
|
:'port' => :'Integer',
|
215
|
-
:'
|
214
|
+
:'protocol' => :'String',
|
215
|
+
:'response_body_regex' => :'String',
|
216
216
|
:'retries' => :'Integer',
|
217
|
+
:'return_code' => :'Integer',
|
217
218
|
:'timeout_in_millis' => :'Integer',
|
218
|
-
:'
|
219
|
-
:'response_body_regex' => :'String'
|
219
|
+
:'url_path' => :'String'
|
220
220
|
}
|
221
221
|
end
|
222
222
|
end
|