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
@@ -4,17 +4,6 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::UpdateBackendDetails
|
7
|
-
# The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
8
|
-
# proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
9
|
-
# as a server weighted '1'.
|
10
|
-
# For more information on load balancing policies, see
|
11
|
-
# [How Load Balancing Policies Work](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm).
|
12
|
-
#
|
13
|
-
# Example: `3`
|
14
|
-
#
|
15
|
-
# @return [Integer]
|
16
|
-
attr_accessor :weight
|
17
|
-
|
18
7
|
# Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
19
8
|
# traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
20
9
|
#
|
@@ -39,6 +28,17 @@ module OracleBMC
|
|
39
28
|
# @return [BOOLEAN]
|
40
29
|
attr_accessor :offline
|
41
30
|
|
31
|
+
# The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
32
|
+
# proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
33
|
+
# as a server weighted '1'.
|
34
|
+
# For more information on load balancing policies, see
|
35
|
+
# [How Load Balancing Policies Work](https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Reference/lbpolicies.htm).
|
36
|
+
#
|
37
|
+
# Example: `3`
|
38
|
+
#
|
39
|
+
# @return [Integer]
|
40
|
+
attr_accessor :weight
|
41
|
+
|
42
42
|
|
43
43
|
# Initializes the object
|
44
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -49,10 +49,6 @@ module OracleBMC
|
|
49
49
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
50
|
|
51
51
|
|
52
|
-
if attributes[:'weight']
|
53
|
-
self.weight = attributes[:'weight']
|
54
|
-
end
|
55
|
-
|
56
52
|
if attributes[:'backup']
|
57
53
|
self.backup = attributes[:'backup']
|
58
54
|
else
|
@@ -71,6 +67,10 @@ module OracleBMC
|
|
71
67
|
self.offline = false
|
72
68
|
end
|
73
69
|
|
70
|
+
if attributes[:'weight']
|
71
|
+
self.weight = attributes[:'weight']
|
72
|
+
end
|
73
|
+
|
74
74
|
end
|
75
75
|
|
76
76
|
# Checks equality by comparing each attribute.
|
@@ -78,10 +78,10 @@ module OracleBMC
|
|
78
78
|
def ==(other_object)
|
79
79
|
return true if self.equal?(other_object)
|
80
80
|
self.class == other_object.class &&
|
81
|
-
weight == other_object.weight &&
|
82
81
|
backup == other_object.backup &&
|
83
82
|
drain == other_object.drain &&
|
84
|
-
offline == other_object.offline
|
83
|
+
offline == other_object.offline &&
|
84
|
+
weight == other_object.weight
|
85
85
|
end
|
86
86
|
|
87
87
|
# @see the `==` method
|
@@ -93,7 +93,7 @@ module OracleBMC
|
|
93
93
|
# Calculates hash code according to all attributes.
|
94
94
|
# @return [Fixnum] Hash code
|
95
95
|
def hash
|
96
|
-
[
|
96
|
+
[backup, drain, offline, weight].hash
|
97
97
|
end
|
98
98
|
|
99
99
|
# Builds the object from hash
|
@@ -159,20 +159,20 @@ module OracleBMC
|
|
159
159
|
# Attribute mapping from ruby-style variable name to JSON key.
|
160
160
|
def self.attribute_map
|
161
161
|
{
|
162
|
-
:'weight' => :'weight',
|
163
162
|
:'backup' => :'backup',
|
164
163
|
:'drain' => :'drain',
|
165
|
-
:'offline' => :'offline'
|
164
|
+
:'offline' => :'offline',
|
165
|
+
:'weight' => :'weight'
|
166
166
|
}
|
167
167
|
end
|
168
168
|
|
169
169
|
# Attribute type mapping.
|
170
170
|
def self.swagger_types
|
171
171
|
{
|
172
|
-
:'weight' => :'Integer',
|
173
172
|
:'backup' => :'BOOLEAN',
|
174
173
|
:'drain' => :'BOOLEAN',
|
175
|
-
:'offline' => :'BOOLEAN'
|
174
|
+
:'offline' => :'BOOLEAN',
|
175
|
+
:'weight' => :'Integer'
|
176
176
|
}
|
177
177
|
end
|
178
178
|
end
|
@@ -4,6 +4,12 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::UpdateBackendSetDetails
|
7
|
+
# @return [Array<OracleBMC::LoadBalancer::Models::BackendDetails>]
|
8
|
+
attr_accessor :backends
|
9
|
+
|
10
|
+
# @return [OracleBMC::LoadBalancer::Models::HealthCheckerDetails]
|
11
|
+
attr_accessor :health_checker
|
12
|
+
|
7
13
|
# The load balancer policy for the backend set. The default load balancing policy is 'ROUND_ROBIN'
|
8
14
|
# To get a list of available policies, use the {#list_policies list_policies}
|
9
15
|
# operation.
|
@@ -13,12 +19,6 @@ module OracleBMC
|
|
13
19
|
# @return [String]
|
14
20
|
attr_accessor :policy
|
15
21
|
|
16
|
-
# @return [Array<OracleBMC::LoadBalancer::Models::BackendDetails>]
|
17
|
-
attr_accessor :backends
|
18
|
-
|
19
|
-
# @return [OracleBMC::LoadBalancer::Models::HealthCheckerDetails]
|
20
|
-
attr_accessor :health_checker
|
21
|
-
|
22
22
|
# @return [OracleBMC::LoadBalancer::Models::SSLConfigurationDetails]
|
23
23
|
attr_accessor :ssl_configuration
|
24
24
|
|
@@ -32,10 +32,6 @@ module OracleBMC
|
|
32
32
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
33
33
|
|
34
34
|
|
35
|
-
if attributes[:'policy']
|
36
|
-
self.policy = attributes[:'policy']
|
37
|
-
end
|
38
|
-
|
39
35
|
if attributes[:'backends']
|
40
36
|
self.backends = attributes[:'backends']
|
41
37
|
end
|
@@ -44,6 +40,10 @@ module OracleBMC
|
|
44
40
|
self.health_checker = attributes[:'healthChecker']
|
45
41
|
end
|
46
42
|
|
43
|
+
if attributes[:'policy']
|
44
|
+
self.policy = attributes[:'policy']
|
45
|
+
end
|
46
|
+
|
47
47
|
if attributes[:'sslConfiguration']
|
48
48
|
self.ssl_configuration = attributes[:'sslConfiguration']
|
49
49
|
end
|
@@ -55,9 +55,9 @@ module OracleBMC
|
|
55
55
|
def ==(other_object)
|
56
56
|
return true if self.equal?(other_object)
|
57
57
|
self.class == other_object.class &&
|
58
|
-
policy == other_object.policy &&
|
59
58
|
backends == other_object.backends &&
|
60
59
|
health_checker == other_object.health_checker &&
|
60
|
+
policy == other_object.policy &&
|
61
61
|
ssl_configuration == other_object.ssl_configuration
|
62
62
|
end
|
63
63
|
|
@@ -70,7 +70,7 @@ module OracleBMC
|
|
70
70
|
# Calculates hash code according to all attributes.
|
71
71
|
# @return [Fixnum] Hash code
|
72
72
|
def hash
|
73
|
-
[
|
73
|
+
[backends, health_checker, policy, ssl_configuration].hash
|
74
74
|
end
|
75
75
|
|
76
76
|
# Builds the object from hash
|
@@ -136,9 +136,9 @@ module OracleBMC
|
|
136
136
|
# Attribute mapping from ruby-style variable name to JSON key.
|
137
137
|
def self.attribute_map
|
138
138
|
{
|
139
|
-
:'policy' => :'policy',
|
140
139
|
:'backends' => :'backends',
|
141
140
|
:'health_checker' => :'healthChecker',
|
141
|
+
:'policy' => :'policy',
|
142
142
|
:'ssl_configuration' => :'sslConfiguration'
|
143
143
|
}
|
144
144
|
end
|
@@ -146,9 +146,9 @@ module OracleBMC
|
|
146
146
|
# Attribute type mapping.
|
147
147
|
def self.swagger_types
|
148
148
|
{
|
149
|
-
:'policy' => :'String',
|
150
149
|
:'backends' => :'Array<OracleBMC::LoadBalancer::Models::BackendDetails>',
|
151
150
|
:'health_checker' => :'OracleBMC::LoadBalancer::Models::HealthCheckerDetails',
|
151
|
+
:'policy' => :'String',
|
152
152
|
:'ssl_configuration' => :'OracleBMC::LoadBalancer::Models::SSLConfigurationDetails'
|
153
153
|
}
|
154
154
|
end
|
@@ -4,6 +4,20 @@ require 'date'
|
|
4
4
|
|
5
5
|
module OracleBMC
|
6
6
|
class LoadBalancer::Models::UpdateHealthCheckerDetails
|
7
|
+
# The interval between health checks, in milliseconds.
|
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.
|
15
|
+
#
|
16
|
+
# Example: `8080`
|
17
|
+
#
|
18
|
+
# @return [Integer]
|
19
|
+
attr_accessor :port
|
20
|
+
|
7
21
|
# The protocol the health check must use; either HTTP or TCP.
|
8
22
|
#
|
9
23
|
# Example: `HTTP`
|
@@ -11,19 +25,19 @@ module OracleBMC
|
|
11
25
|
# @return [String]
|
12
26
|
attr_accessor :protocol
|
13
27
|
|
14
|
-
#
|
28
|
+
# A regular expression for parsing the response body from the backend server.
|
15
29
|
#
|
16
|
-
# Example:
|
30
|
+
# Example: `^(500|40[1348])$`
|
17
31
|
#
|
18
32
|
# @return [String]
|
19
|
-
attr_accessor :
|
33
|
+
attr_accessor :response_body_regex
|
20
34
|
|
21
|
-
# The
|
35
|
+
# The number of retries to attempt before a backend server is considered \"unhealthy\".
|
22
36
|
#
|
23
|
-
# Example: `
|
37
|
+
# Example: `3`
|
24
38
|
#
|
25
39
|
# @return [Integer]
|
26
|
-
attr_accessor :
|
40
|
+
attr_accessor :retries
|
27
41
|
|
28
42
|
# The status code a healthy backend server should return.
|
29
43
|
#
|
@@ -32,13 +46,6 @@ module OracleBMC
|
|
32
46
|
# @return [Integer]
|
33
47
|
attr_accessor :return_code
|
34
48
|
|
35
|
-
# The number of retries to attempt before a backend server is considered \"unhealthy\".
|
36
|
-
#
|
37
|
-
# Example: `3`
|
38
|
-
#
|
39
|
-
# @return [Integer]
|
40
|
-
attr_accessor :retries
|
41
|
-
|
42
49
|
# The maximum timeout in milliseconds before a retry.
|
43
50
|
#
|
44
51
|
# Example: `6000`
|
@@ -46,19 +53,12 @@ module OracleBMC
|
|
46
53
|
# @return [Integer]
|
47
54
|
attr_accessor :timeout_in_millis
|
48
55
|
|
49
|
-
# The
|
50
|
-
#
|
51
|
-
# Example: `30000`
|
52
|
-
#
|
53
|
-
# @return [Integer]
|
54
|
-
attr_accessor :interval_in_millis
|
55
|
-
|
56
|
-
# A regular expression for parsing the response body from the backend server.
|
56
|
+
# The path against which to run the health check.
|
57
57
|
#
|
58
|
-
# Example:
|
58
|
+
# Example: `/healthcheck`
|
59
59
|
#
|
60
60
|
# @return [String]
|
61
|
-
attr_accessor :
|
61
|
+
attr_accessor :url_path
|
62
62
|
|
63
63
|
|
64
64
|
# Initializes the object
|
@@ -70,36 +70,36 @@ module OracleBMC
|
|
70
70
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
71
71
|
|
72
72
|
|
73
|
-
if attributes[:'
|
74
|
-
self.
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes[:'urlPath']
|
78
|
-
self.url_path = attributes[:'urlPath']
|
73
|
+
if attributes[:'intervalInMillis']
|
74
|
+
self.interval_in_millis = attributes[:'intervalInMillis']
|
79
75
|
end
|
80
76
|
|
81
77
|
if attributes[:'port']
|
82
78
|
self.port = attributes[:'port']
|
83
79
|
end
|
84
80
|
|
85
|
-
if attributes[:'
|
86
|
-
self.
|
81
|
+
if attributes[:'protocol']
|
82
|
+
self.protocol = attributes[:'protocol']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes[:'responseBodyRegex']
|
86
|
+
self.response_body_regex = attributes[:'responseBodyRegex']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes[:'retries']
|
90
90
|
self.retries = attributes[:'retries']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes[:'
|
94
|
-
self.
|
93
|
+
if attributes[:'returnCode']
|
94
|
+
self.return_code = attributes[:'returnCode']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes[:'
|
98
|
-
self.
|
97
|
+
if attributes[:'timeoutInMillis']
|
98
|
+
self.timeout_in_millis = attributes[:'timeoutInMillis']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes[:'
|
102
|
-
self.
|
101
|
+
if attributes[:'urlPath']
|
102
|
+
self.url_path = attributes[:'urlPath']
|
103
103
|
end
|
104
104
|
|
105
105
|
end
|
@@ -109,14 +109,14 @@ module OracleBMC
|
|
109
109
|
def ==(other_object)
|
110
110
|
return true if self.equal?(other_object)
|
111
111
|
self.class == other_object.class &&
|
112
|
-
|
113
|
-
url_path == other_object.url_path &&
|
112
|
+
interval_in_millis == other_object.interval_in_millis &&
|
114
113
|
port == other_object.port &&
|
115
|
-
|
114
|
+
protocol == other_object.protocol &&
|
115
|
+
response_body_regex == other_object.response_body_regex &&
|
116
116
|
retries == other_object.retries &&
|
117
|
+
return_code == other_object.return_code &&
|
117
118
|
timeout_in_millis == other_object.timeout_in_millis &&
|
118
|
-
|
119
|
-
response_body_regex == other_object.response_body_regex
|
119
|
+
url_path == other_object.url_path
|
120
120
|
end
|
121
121
|
|
122
122
|
# @see the `==` method
|
@@ -128,7 +128,7 @@ module OracleBMC
|
|
128
128
|
# Calculates hash code according to all attributes.
|
129
129
|
# @return [Fixnum] Hash code
|
130
130
|
def hash
|
131
|
-
[
|
131
|
+
[interval_in_millis, port, protocol, response_body_regex, retries, return_code, timeout_in_millis, url_path].hash
|
132
132
|
end
|
133
133
|
|
134
134
|
# Builds the object from hash
|
@@ -194,28 +194,28 @@ module OracleBMC
|
|
194
194
|
# Attribute mapping from ruby-style variable name to JSON key.
|
195
195
|
def self.attribute_map
|
196
196
|
{
|
197
|
-
:'
|
198
|
-
:'url_path' => :'urlPath',
|
197
|
+
:'interval_in_millis' => :'intervalInMillis',
|
199
198
|
:'port' => :'port',
|
200
|
-
:'
|
199
|
+
:'protocol' => :'protocol',
|
200
|
+
:'response_body_regex' => :'responseBodyRegex',
|
201
201
|
:'retries' => :'retries',
|
202
|
+
:'return_code' => :'returnCode',
|
202
203
|
:'timeout_in_millis' => :'timeoutInMillis',
|
203
|
-
:'
|
204
|
-
:'response_body_regex' => :'responseBodyRegex'
|
204
|
+
:'url_path' => :'urlPath'
|
205
205
|
}
|
206
206
|
end
|
207
207
|
|
208
208
|
# Attribute type mapping.
|
209
209
|
def self.swagger_types
|
210
210
|
{
|
211
|
-
:'
|
212
|
-
:'url_path' => :'String',
|
211
|
+
:'interval_in_millis' => :'Integer',
|
213
212
|
:'port' => :'Integer',
|
214
|
-
:'
|
213
|
+
:'protocol' => :'String',
|
214
|
+
:'response_body_regex' => :'String',
|
215
215
|
:'retries' => :'Integer',
|
216
|
+
:'return_code' => :'Integer',
|
216
217
|
:'timeout_in_millis' => :'Integer',
|
217
|
-
:'
|
218
|
-
:'response_body_regex' => :'String'
|
218
|
+
:'url_path' => :'String'
|
219
219
|
}
|
220
220
|
end
|
221
221
|
end
|
@@ -8,26 +8,25 @@ module OracleBMC
|
|
8
8
|
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED',
|
9
9
|
LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS',
|
10
10
|
LIFECYCLE_STATE_FAILED = 'FAILED',
|
11
|
-
LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'
|
11
|
+
LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED',
|
12
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
13
|
+
|
14
|
+
# @return [Array<OracleBMC::LoadBalancer::Models::WorkRequestError>]
|
15
|
+
attr_accessor :error_details
|
12
16
|
|
13
17
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request.
|
14
18
|
# @return [String]
|
15
19
|
attr_accessor :id
|
16
20
|
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :lifecycle_state
|
23
|
+
|
17
24
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request
|
18
25
|
# is associated.
|
19
26
|
#
|
20
27
|
# @return [String]
|
21
28
|
attr_accessor :load_balancer_id
|
22
29
|
|
23
|
-
# The type of action the work request represents.
|
24
|
-
#
|
25
|
-
# @return [String]
|
26
|
-
attr_accessor :type
|
27
|
-
|
28
|
-
# @return [String]
|
29
|
-
attr_accessor :lifecycle_state
|
30
|
-
|
31
30
|
# A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure.
|
32
31
|
# Possible data elements include:
|
33
32
|
#
|
@@ -54,8 +53,10 @@ module OracleBMC
|
|
54
53
|
# @return [DateTime]
|
55
54
|
attr_accessor :time_finished
|
56
55
|
|
57
|
-
#
|
58
|
-
|
56
|
+
# The type of action the work request represents.
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :type
|
59
60
|
|
60
61
|
|
61
62
|
# Initializes the object
|
@@ -67,22 +68,22 @@ module OracleBMC
|
|
67
68
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
69
|
|
69
70
|
|
70
|
-
if attributes[:'
|
71
|
-
self.
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes[:'loadBalancerId']
|
75
|
-
self.load_balancer_id = attributes[:'loadBalancerId']
|
71
|
+
if attributes[:'errorDetails']
|
72
|
+
self.error_details = attributes[:'errorDetails']
|
76
73
|
end
|
77
74
|
|
78
|
-
if attributes[:'
|
79
|
-
self.
|
75
|
+
if attributes[:'id']
|
76
|
+
self.id = attributes[:'id']
|
80
77
|
end
|
81
78
|
|
82
79
|
if attributes[:'lifecycleState']
|
83
80
|
self.lifecycle_state = attributes[:'lifecycleState']
|
84
81
|
end
|
85
82
|
|
83
|
+
if attributes[:'loadBalancerId']
|
84
|
+
self.load_balancer_id = attributes[:'loadBalancerId']
|
85
|
+
end
|
86
|
+
|
86
87
|
if attributes[:'message']
|
87
88
|
self.message = attributes[:'message']
|
88
89
|
end
|
@@ -95,8 +96,8 @@ module OracleBMC
|
|
95
96
|
self.time_finished = attributes[:'timeFinished']
|
96
97
|
end
|
97
98
|
|
98
|
-
if attributes[:'
|
99
|
-
self.
|
99
|
+
if attributes[:'type']
|
100
|
+
self.type = attributes[:'type']
|
100
101
|
end
|
101
102
|
|
102
103
|
end
|
@@ -105,9 +106,10 @@ module OracleBMC
|
|
105
106
|
# @param [Object] lifecycle_state Object to be assigned
|
106
107
|
def lifecycle_state=(lifecycle_state)
|
107
108
|
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
108
|
-
|
109
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
110
|
+
else
|
111
|
+
@lifecycle_state = lifecycle_state
|
109
112
|
end
|
110
|
-
@lifecycle_state = lifecycle_state
|
111
113
|
end
|
112
114
|
|
113
115
|
# Checks equality by comparing each attribute.
|
@@ -115,14 +117,14 @@ module OracleBMC
|
|
115
117
|
def ==(other_object)
|
116
118
|
return true if self.equal?(other_object)
|
117
119
|
self.class == other_object.class &&
|
120
|
+
error_details == other_object.error_details &&
|
118
121
|
id == other_object.id &&
|
119
|
-
load_balancer_id == other_object.load_balancer_id &&
|
120
|
-
type == other_object.type &&
|
121
122
|
lifecycle_state == other_object.lifecycle_state &&
|
123
|
+
load_balancer_id == other_object.load_balancer_id &&
|
122
124
|
message == other_object.message &&
|
123
125
|
time_accepted == other_object.time_accepted &&
|
124
126
|
time_finished == other_object.time_finished &&
|
125
|
-
|
127
|
+
type == other_object.type
|
126
128
|
end
|
127
129
|
|
128
130
|
# @see the `==` method
|
@@ -134,7 +136,7 @@ module OracleBMC
|
|
134
136
|
# Calculates hash code according to all attributes.
|
135
137
|
# @return [Fixnum] Hash code
|
136
138
|
def hash
|
137
|
-
[
|
139
|
+
[error_details, id, lifecycle_state, load_balancer_id, message, time_accepted, time_finished, type].hash
|
138
140
|
end
|
139
141
|
|
140
142
|
# Builds the object from hash
|
@@ -200,28 +202,28 @@ module OracleBMC
|
|
200
202
|
# Attribute mapping from ruby-style variable name to JSON key.
|
201
203
|
def self.attribute_map
|
202
204
|
{
|
205
|
+
:'error_details' => :'errorDetails',
|
203
206
|
:'id' => :'id',
|
204
|
-
:'load_balancer_id' => :'loadBalancerId',
|
205
|
-
:'type' => :'type',
|
206
207
|
:'lifecycle_state' => :'lifecycleState',
|
208
|
+
:'load_balancer_id' => :'loadBalancerId',
|
207
209
|
:'message' => :'message',
|
208
210
|
:'time_accepted' => :'timeAccepted',
|
209
211
|
:'time_finished' => :'timeFinished',
|
210
|
-
:'
|
212
|
+
:'type' => :'type'
|
211
213
|
}
|
212
214
|
end
|
213
215
|
|
214
216
|
# Attribute type mapping.
|
215
217
|
def self.swagger_types
|
216
218
|
{
|
219
|
+
:'error_details' => :'Array<OracleBMC::LoadBalancer::Models::WorkRequestError>',
|
217
220
|
:'id' => :'String',
|
218
|
-
:'load_balancer_id' => :'String',
|
219
|
-
:'type' => :'String',
|
220
221
|
:'lifecycle_state' => :'String',
|
222
|
+
:'load_balancer_id' => :'String',
|
221
223
|
:'message' => :'String',
|
222
224
|
:'time_accepted' => :'DateTime',
|
223
225
|
:'time_finished' => :'DateTime',
|
224
|
-
:'
|
226
|
+
:'type' => :'String'
|
225
227
|
}
|
226
228
|
end
|
227
229
|
end
|