oraclebmc 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -6,7 +6,8 @@ module OracleBMC
|
|
6
6
|
class LoadBalancer::Models::WorkRequestError
|
7
7
|
|
8
8
|
ERROR_CODE_ENUM = [ERROR_CODE_BAD_INPUT = 'BAD_INPUT',
|
9
|
-
ERROR_CODE_INTERNAL_ERROR = 'INTERNAL_ERROR'
|
9
|
+
ERROR_CODE_INTERNAL_ERROR = 'INTERNAL_ERROR',
|
10
|
+
ERROR_CODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
10
11
|
|
11
12
|
# @return [String]
|
12
13
|
attr_accessor :error_code
|
@@ -39,9 +40,10 @@ module OracleBMC
|
|
39
40
|
# @param [Object] error_code Object to be assigned
|
40
41
|
def error_code=(error_code)
|
41
42
|
if error_code && !ERROR_CODE_ENUM.include?(error_code)
|
42
|
-
|
43
|
+
@error_code = ERROR_CODE_UNKNOWN_ENUM_VALUE
|
44
|
+
else
|
45
|
+
@error_code = error_code
|
43
46
|
end
|
44
|
-
@error_code = error_code
|
45
47
|
end
|
46
48
|
|
47
49
|
# Checks equality by comparing each attribute.
|
data/lib/oraclebmc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oraclebmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oracle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -34,22 +34,22 @@ dependencies:
|
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.4'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 1.4.6
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.0.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.4'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 1.4.6
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 3.0.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: inifile
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|