oci 2.5.7 → 2.5.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a89fff46226939dfb081a9b59a4de735bab9daaa2be5cb2ceae2d2f40e68363
4
- data.tar.gz: 474a06d08dfbb1aac34f4a2101c5abc5868b0278004e044cd2dfa012e683225b
3
+ metadata.gz: 8e07690d4ff0f9e72d74c53eedda24a2a3690599385a110bf7335d12442d1317
4
+ data.tar.gz: a628577d1e9a0bd181b3ea20f909be45fd4946477b230c51b83da9198cb7561f
5
5
  SHA512:
6
- metadata.gz: 3a30b430c21a11ce67bacb2caa277eda869785ae91b9d804d89f3da8a839ad5e6ee3413ba5209037b4b6c5a2769509b5a6946a117afbab02a50eaa7b134d4f3a
7
- data.tar.gz: 2c959a9500b0365d931d3c2bffe37d4810acc06404f3ce95ef840e8d6802ebaae7435466d89ebd9cbaf3a86b46d18a42d583ce85c3dcf2d61f82e6f5cb59a42f
6
+ metadata.gz: c47194b610299986bf8f5ae5252ffc14fff8b2f9e2d39f9353a9844b80398bd42350ddc12eb89ca646d2c36d3c434f4cd0c1c5e07cb136561ca2acec3f8eb081
7
+ data.tar.gz: f0e716aec224b6372b15509eb41a67e97c152f09fae8e50420285e87963585b12edebed7602b34077d26149f6d6831e2043352c355c5a04f57e47cf36244969f
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.5.7**
2
+ **Version 2.5.8**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -591,7 +591,8 @@ module OCI
591
591
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
592
592
 
593
593
 
594
- # Creates a new rule set associated with the specified load balancer.
594
+ # Creates a new rule set associated with the specified load balancer. For more information, see
595
+ # [Managing Rule Sets](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm).
595
596
  #
596
597
  # @param [String] load_balancer_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer.
597
598
  # @param [OCI::LoadBalancer::Models::CreateRuleSetDetails] create_rule_set_details The configuration details for the rule set to create.
@@ -6,7 +6,7 @@ require_relative 'rule'
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
8
  # An object that represents the action of adding a header to a request.
9
- # This rule applies only to HTTP or HTTP2 listeners.
9
+ # This rule applies only to HTTP listeners.
10
10
  #
11
11
  # **NOTES:**
12
12
  #
@@ -6,7 +6,7 @@ require_relative 'rule'
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
8
  # An object that represents the action of adding a header to a response.
9
- # This rule applies only to HTTP or HTTP2 listeners.
9
+ # This rule applies only to HTTP listeners.
10
10
  #
11
11
  # **NOTES:**
12
12
  #
@@ -5,7 +5,7 @@ require_relative 'rule'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # An object that represents the action of modifying a request header value. This rule applies only to HTTP or HTTP2 listeners.
8
+ # An object that represents the action of modifying a request header value. This rule applies only to HTTP listeners.
9
9
  #
10
10
  # This rule adds a prefix, a suffix, or both to the header value.
11
11
  #
@@ -5,7 +5,7 @@ require_relative 'rule'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # An object that represents the action of modifying a response header value. This rule applies only to HTTP or HTTP2 listeners.
8
+ # An object that represents the action of modifying a response header value. This rule applies only to HTTP listeners.
9
9
  #
10
10
  # This rule adds a prefix, a suffix, or both to the header value.
11
11
  #
@@ -26,7 +26,7 @@ module OCI
26
26
  attr_accessor :subnet_id
27
27
 
28
28
  # **[Required]** The IP address of the health check status report provider. This identifier helps you differentiate same-subnet
29
- # (private) load balancers that report health check status.
29
+ # load balancers that report health check status.
30
30
  #
31
31
  # Example: `10.0.0.7`
32
32
  #
@@ -5,7 +5,7 @@ require_relative 'rule'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # An object that represents the action of removing a header from a request. This rule applies only to HTTP or HTTP2 listeners.
8
+ # An object that represents the action of removing a header from a request. This rule applies only to HTTP listeners.
9
9
  #
10
10
  # If the same header appears more than once in the request, the load balancer removes all occurances of the specified header.
11
11
  #
@@ -5,7 +5,7 @@ require_relative 'rule'
5
5
 
6
6
  # rubocop:disable Lint/UnneededCopDisableDirective
7
7
  module OCI
8
- # An object that represents the action of removing a header from a response. This rule applies only to HTTP or HTTP2 listeners.
8
+ # An object that represents the action of removing a header from a response. This rule applies only to HTTP listeners.
9
9
  #
10
10
  # If the same header appears more than once in the response, the load balancer removes all occurances of the specified header.
11
11
  #
@@ -5,7 +5,8 @@ require 'date'
5
5
  # rubocop:disable Lint/UnneededCopDisableDirective
6
6
  module OCI
7
7
  # A named set of rules associated with a load balancer. Rules are objects that represent actions to apply to a listener,
8
- # such as adding, altering, or removing HTTP headers.
8
+ # such as adding, altering, or removing HTTP headers. For more information, see
9
+ # [Managing Rule Sets](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm).
9
10
  #
10
11
  class LoadBalancer::Models::RuleSet # rubocop:disable Metrics/LineLength
11
12
  # **[Required]** The name for this set of rules. It must be unique and it cannot be changed. Avoid entering
@@ -518,16 +518,16 @@ module OCI
518
518
 
519
519
  # Use full jitter on networking errors (as hopefully they are short-lived/intermittent)
520
520
  sleep(get_full_jitter_sleep_time_millis(attempt) / 1000.0)
521
- rescue OCI::Errors::ServiceError => svc_err
521
+ rescue OCI::Errors::ServiceError => e
522
522
  raise if try >= @max_attempts # Short-circuit if we're already on our last attempt
523
523
 
524
524
  # For internal server errors, use full jitter as it's hopefully intermittent
525
- sleep(get_full_jitter_sleep_time_millis(attempt) / 1000.0) if svc_err.status >= 500 || svc_err.status == -1
525
+ sleep(get_full_jitter_sleep_time_millis(attempt) / 1000.0) if e.status >= 500 || e.status == -1
526
526
 
527
527
  # For throttles and consistency errors, use equal jitter as this guarantees some sleep time
528
528
  # between attempts (full jitter doesn't because we get a value across the range 0 to something, i.e.
529
529
  # it is possible to get a very small sleep time)
530
- if svc_err.status == 429 || (svc_err.status == 409 && svc_err.code == 'ConcurrentObjectUpdate')
530
+ if e.status == 429 || (e.status == 409 && e.code == 'ConcurrentObjectUpdate')
531
531
  sleep(get_equal_jitter_sleep_time_millis(attempt) / 1000.0)
532
532
  end
533
533
 
@@ -6,6 +6,7 @@ module OCI
6
6
  # Module defining available regions and helper methods to get value service endpoints
7
7
  module Regions
8
8
  REGION_ENUM = [
9
+ REGION_AP_TOKYO_1 = 'ap-tokyo-1'.freeze,
9
10
  REGION_CA_TORONTO_1 = 'ca-toronto-1'.freeze,
10
11
  REGION_US_PHOENIX_1 = 'us-phoenix-1'.freeze,
11
12
  REGION_US_ASHBURN_1 = 'us-ashburn-1'.freeze,
@@ -19,6 +20,7 @@ module OCI
19
20
  ].freeze
20
21
 
21
22
  REGION_SHORT_NAMES_TO_LONG_NAMES = {
23
+ 'nrt': REGION_AP_TOKYO_1,
22
24
  'yyz': REGION_CA_TORONTO_1,
23
25
  'phx': REGION_US_PHOENIX_1,
24
26
  'iad': REGION_US_ASHBURN_1,
@@ -28,6 +30,7 @@ module OCI
28
30
 
29
31
  # --- Start of region realm mapping ---
30
32
  REGION_REALM_MAPPING = {
33
+ 'ap-tokyo-1': 'oc1'.freeze,
31
34
  'ca-toronto-1': 'oc1'.freeze,
32
35
  'us-phoenix-1': 'oc1'.freeze,
33
36
  'us-ashburn-1': 'oc1'.freeze,
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  module OCI
4
- VERSION = '2.5.7'.freeze
4
+ VERSION = '2.5.8'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oci
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.7
4
+ version: 2.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oracle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-15 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json