oraclebmc 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -2
  3. data/lib/oraclebmc/core/models/console_history.rb +5 -3
  4. data/lib/oraclebmc/core/models/dhcp_dns_option.rb +5 -3
  5. data/lib/oraclebmc/core/models/dhcp_options.rb +5 -3
  6. data/lib/oraclebmc/core/models/drg.rb +5 -3
  7. data/lib/oraclebmc/core/models/drg_attachment.rb +5 -3
  8. data/lib/oraclebmc/core/models/image.rb +5 -3
  9. data/lib/oraclebmc/core/models/instance.rb +5 -3
  10. data/lib/oraclebmc/core/models/internet_gateway.rb +5 -3
  11. data/lib/oraclebmc/core/models/ip_sec_connection.rb +5 -3
  12. data/lib/oraclebmc/core/models/route_table.rb +5 -3
  13. data/lib/oraclebmc/core/models/security_list.rb +5 -3
  14. data/lib/oraclebmc/core/models/subnet.rb +5 -3
  15. data/lib/oraclebmc/core/models/tunnel_status.rb +5 -3
  16. data/lib/oraclebmc/core/models/vcn.rb +5 -3
  17. data/lib/oraclebmc/core/models/vnic.rb +5 -3
  18. data/lib/oraclebmc/core/models/vnic_attachment.rb +5 -3
  19. data/lib/oraclebmc/core/models/volume.rb +5 -3
  20. data/lib/oraclebmc/core/models/volume_attachment.rb +5 -3
  21. data/lib/oraclebmc/core/models/volume_backup.rb +5 -3
  22. data/lib/oraclebmc/identity/models/api_key.rb +5 -3
  23. data/lib/oraclebmc/identity/models/compartment.rb +5 -3
  24. data/lib/oraclebmc/identity/models/group.rb +5 -3
  25. data/lib/oraclebmc/identity/models/policy.rb +5 -3
  26. data/lib/oraclebmc/identity/models/swift_password.rb +5 -3
  27. data/lib/oraclebmc/identity/models/ui_password.rb +5 -3
  28. data/lib/oraclebmc/identity/models/user.rb +5 -3
  29. data/lib/oraclebmc/identity/models/user_group_membership.rb +5 -3
  30. data/lib/oraclebmc/load_balancer/load_balancer_client.rb +70 -0
  31. data/lib/oraclebmc/load_balancer/models/backend.rb +62 -62
  32. data/lib/oraclebmc/load_balancer/models/backend_details.rb +49 -49
  33. data/lib/oraclebmc/load_balancer/models/backend_set.rb +21 -21
  34. data/lib/oraclebmc/load_balancer/models/backend_set_details.rb +14 -14
  35. data/lib/oraclebmc/load_balancer/models/certificate.rb +26 -26
  36. data/lib/oraclebmc/load_balancer/models/certificate_details.rb +40 -40
  37. data/lib/oraclebmc/load_balancer/models/create_backend_details.rb +49 -49
  38. data/lib/oraclebmc/load_balancer/models/create_backend_set_details.rb +21 -21
  39. data/lib/oraclebmc/load_balancer/models/create_certificate_details.rb +40 -40
  40. data/lib/oraclebmc/load_balancer/models/create_listener_details.rb +18 -18
  41. data/lib/oraclebmc/load_balancer/models/create_load_balancer_details.rb +32 -32
  42. data/lib/oraclebmc/load_balancer/models/health_checker.rb +54 -54
  43. data/lib/oraclebmc/load_balancer/models/health_checker_details.rb +54 -54
  44. data/lib/oraclebmc/load_balancer/models/listener.rb +12 -12
  45. data/lib/oraclebmc/load_balancer/models/load_balancer.rb +61 -59
  46. data/lib/oraclebmc/load_balancer/models/ssl_configuration.rb +18 -18
  47. data/lib/oraclebmc/load_balancer/models/ssl_configuration_details.rb +18 -18
  48. data/lib/oraclebmc/load_balancer/models/update_backend_details.rb +22 -22
  49. data/lib/oraclebmc/load_balancer/models/update_backend_set_details.rb +14 -14
  50. data/lib/oraclebmc/load_balancer/models/update_health_checker_details.rb +53 -53
  51. data/lib/oraclebmc/load_balancer/models/work_request.rb +35 -33
  52. data/lib/oraclebmc/load_balancer/models/work_request_error.rb +5 -3
  53. data/lib/oraclebmc/version.rb +1 -1
  54. 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
- fail "Invalid value for 'error_code': this must be one of the values in ERROR_CODE_ENUM."
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.
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OracleBMC
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
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.0
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-06 00:00:00.000000000 Z
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