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 +4 -4
- data/README.md +1 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +2 -1
- data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/add_http_response_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/extend_http_request_header_value_rule.rb +1 -1
- data/lib/oci/load_balancer/models/extend_http_response_header_value_rule.rb +1 -1
- data/lib/oci/load_balancer/models/health_check_result.rb +1 -1
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/remove_http_response_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/rule_set.rb +2 -1
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +3 -3
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e07690d4ff0f9e72d74c53eedda24a2a3690599385a110bf7335d12442d1317
|
4
|
+
data.tar.gz: a628577d1e9a0bd181b3ea20f909be45fd4946477b230c51b83da9198cb7561f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c47194b610299986bf8f5ae5252ffc14fff8b2f9e2d39f9353a9844b80398bd42350ddc12eb89ca646d2c36d3c434f4cd0c1c5e07cb136561ca2acec3f8eb081
|
7
|
+
data.tar.gz: f0e716aec224b6372b15509eb41a67e97c152f09fae8e50420285e87963585b12edebed7602b34077d26149f6d6831e2043352c355c5a04f57e47cf36244969f
|
data/README.md
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
-
#
|
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
|
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
|
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 =>
|
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
|
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
|
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
|
|
data/lib/oci/regions.rb
CHANGED
@@ -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,
|
data/lib/oci/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|