oci 2.5.5 → 2.5.6
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/api_client.rb +2 -2
- data/lib/oci/auth/federation_client.rb +2 -2
- data/lib/oci/email/email_client.rb +10 -0
- data/lib/oci/email/models/sender_summary.rb +15 -1
- data/lib/oci/email/models/suppression_summary.rb +15 -1
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +2 -2
- data/lib/oci/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e0a6561b3c4f995f4f142e0d82b5af4ebe09b462c940c9ea01620747f44cb98
|
4
|
+
data.tar.gz: 3ffb00221f305c5b4567e95499b668029047a4383c9f4ddb0d110259c41b68e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01745efe5a63d40b0344d52db9dfe0025dc7231bc37ae9bd87ee85405b2ec3fae6199589afc6fe3837b91e1195b1eca74fc656ea7169da81722bdb8749fd7f6
|
7
|
+
data.tar.gz: f95613a6d102cb8fcd2fbd1fc6d4525df50084121c7d53198168adfaa07520375760fabab4737779dc8f4d7adfb25759fabb9c02629992babe02822d2333b2dc
|
data/README.md
CHANGED
data/lib/oci/api_client.rb
CHANGED
@@ -361,7 +361,7 @@ module OCI
|
|
361
361
|
response.body
|
362
362
|
end
|
363
363
|
end
|
364
|
-
rescue StandardError =>
|
364
|
+
rescue StandardError => e
|
365
365
|
# Unfortunately, catching StandardError is the surest way to capture all the errors originating from Net::HTTP
|
366
366
|
code_from_response = if !response_ref.nil?
|
367
367
|
response_ref.code.to_i
|
@@ -370,7 +370,7 @@ module OCI
|
|
370
370
|
end
|
371
371
|
|
372
372
|
raise Errors::NetworkError.new(
|
373
|
-
|
373
|
+
e.message,
|
374
374
|
code_from_response,
|
375
375
|
request_made: request,
|
376
376
|
response_received: response_ref
|
@@ -134,8 +134,8 @@ module OCI
|
|
134
134
|
raise "No token received in the response from auth service: #{raw_body}" unless parsed_response.key?('token')
|
135
135
|
|
136
136
|
@security_token = OCI::Auth::SecurityTokenContainer.new(parsed_response['token'])
|
137
|
-
rescue JSON::ParserError =>
|
138
|
-
raise "Unable to parse response from Auth Service [#{
|
137
|
+
rescue JSON::ParserError => e
|
138
|
+
raise "Unable to parse response from Auth Service [#{e}]: #{raw_body}"
|
139
139
|
end
|
140
140
|
|
141
141
|
@security_token.security_token
|
@@ -225,6 +225,10 @@ module OCI
|
|
225
225
|
# @param [Hash] opts the optional parameters
|
226
226
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
227
227
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
228
|
+
# @option opts [String] :if_match Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
|
229
|
+
# parameter to the value of the etag from a previous get, create, or update response for that resource. The resource
|
230
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
231
|
+
#
|
228
232
|
# @option opts [String] :opc_request_id The request ID for tracing from the system
|
229
233
|
# @return [Response] A Response object with data of type nil
|
230
234
|
def delete_sender(sender_id, opts = {})
|
@@ -244,6 +248,7 @@ module OCI
|
|
244
248
|
header_params = {}
|
245
249
|
header_params[:accept] = 'application/json'
|
246
250
|
header_params[:'content-type'] = 'application/json'
|
251
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
247
252
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
248
253
|
# rubocop:enable Style/NegatedIf
|
249
254
|
|
@@ -640,6 +645,10 @@ module OCI
|
|
640
645
|
# @param [Hash] opts the optional parameters
|
641
646
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
642
647
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
648
|
+
# @option opts [String] :if_match Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
|
649
|
+
# parameter to the value of the etag from a previous get, create, or update response for that resource. The resource
|
650
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
651
|
+
#
|
643
652
|
# @option opts [String] :opc_request_id The request ID for tracing from the system
|
644
653
|
# @return [Response] A Response object with data of type {OCI::Email::Models::Sender Sender}
|
645
654
|
def update_sender(sender_id, update_sender_details, opts = {})
|
@@ -660,6 +669,7 @@ module OCI
|
|
660
669
|
header_params = {}
|
661
670
|
header_params[:accept] = 'application/json'
|
662
671
|
header_params[:'content-type'] = 'application/json'
|
672
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
663
673
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
664
674
|
# rubocop:enable Style/NegatedIf
|
665
675
|
|
@@ -15,6 +15,10 @@ module OCI
|
|
15
15
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
16
16
|
].freeze
|
17
17
|
|
18
|
+
# The OCID for the compartment.
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :compartment_id
|
21
|
+
|
18
22
|
# The email address of the sender.
|
19
23
|
# @return [String]
|
20
24
|
attr_accessor :email_address
|
@@ -51,6 +55,7 @@ module OCI
|
|
51
55
|
def self.attribute_map
|
52
56
|
{
|
53
57
|
# rubocop:disable Style/SymbolLiteral
|
58
|
+
'compartment_id': :'compartmentId',
|
54
59
|
'email_address': :'emailAddress',
|
55
60
|
'id': :'id',
|
56
61
|
'lifecycle_state': :'lifecycleState',
|
@@ -65,6 +70,7 @@ module OCI
|
|
65
70
|
def self.swagger_types
|
66
71
|
{
|
67
72
|
# rubocop:disable Style/SymbolLiteral
|
73
|
+
'compartment_id': :'String',
|
68
74
|
'email_address': :'String',
|
69
75
|
'id': :'String',
|
70
76
|
'lifecycle_state': :'String',
|
@@ -81,6 +87,7 @@ module OCI
|
|
81
87
|
|
82
88
|
# Initializes the object
|
83
89
|
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
84
91
|
# @option attributes [String] :email_address The value to assign to the {#email_address} property
|
85
92
|
# @option attributes [String] :id The value to assign to the {#id} property
|
86
93
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
@@ -93,6 +100,12 @@ module OCI
|
|
93
100
|
# convert string to symbol for hash key
|
94
101
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
95
102
|
|
103
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
104
|
+
|
105
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
106
|
+
|
107
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
108
|
+
|
96
109
|
self.email_address = attributes[:'emailAddress'] if attributes[:'emailAddress']
|
97
110
|
|
98
111
|
raise 'You cannot provide both :emailAddress and :email_address' if attributes.key?(:'emailAddress') && attributes.key?(:'email_address')
|
@@ -152,6 +165,7 @@ module OCI
|
|
152
165
|
return true if equal?(other)
|
153
166
|
|
154
167
|
self.class == other.class &&
|
168
|
+
compartment_id == other.compartment_id &&
|
155
169
|
email_address == other.email_address &&
|
156
170
|
id == other.id &&
|
157
171
|
lifecycle_state == other.lifecycle_state &&
|
@@ -173,7 +187,7 @@ module OCI
|
|
173
187
|
# Calculates hash code according to all attributes.
|
174
188
|
# @return [Fixnum] Hash code
|
175
189
|
def hash
|
176
|
-
[email_address, id, lifecycle_state, time_created, freeform_tags, defined_tags].hash
|
190
|
+
[compartment_id, email_address, id, lifecycle_state, time_created, freeform_tags, defined_tags].hash
|
177
191
|
end
|
178
192
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
179
193
|
|
@@ -17,6 +17,10 @@ module OCI
|
|
17
17
|
REASON_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
18
18
|
].freeze
|
19
19
|
|
20
|
+
# The OCID for the compartment.
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :compartment_id
|
23
|
+
|
20
24
|
# The email address of the suppression.
|
21
25
|
# @return [String]
|
22
26
|
attr_accessor :email_address
|
@@ -40,6 +44,7 @@ module OCI
|
|
40
44
|
def self.attribute_map
|
41
45
|
{
|
42
46
|
# rubocop:disable Style/SymbolLiteral
|
47
|
+
'compartment_id': :'compartmentId',
|
43
48
|
'email_address': :'emailAddress',
|
44
49
|
'id': :'id',
|
45
50
|
'reason': :'reason',
|
@@ -52,6 +57,7 @@ module OCI
|
|
52
57
|
def self.swagger_types
|
53
58
|
{
|
54
59
|
# rubocop:disable Style/SymbolLiteral
|
60
|
+
'compartment_id': :'String',
|
55
61
|
'email_address': :'String',
|
56
62
|
'id': :'String',
|
57
63
|
'reason': :'String',
|
@@ -66,6 +72,7 @@ module OCI
|
|
66
72
|
|
67
73
|
# Initializes the object
|
68
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
69
76
|
# @option attributes [String] :email_address The value to assign to the {#email_address} property
|
70
77
|
# @option attributes [String] :id The value to assign to the {#id} property
|
71
78
|
# @option attributes [String] :reason The value to assign to the {#reason} property
|
@@ -76,6 +83,12 @@ module OCI
|
|
76
83
|
# convert string to symbol for hash key
|
77
84
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
85
|
|
86
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
87
|
+
|
88
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
89
|
+
|
90
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
91
|
+
|
79
92
|
self.email_address = attributes[:'emailAddress'] if attributes[:'emailAddress']
|
80
93
|
|
81
94
|
raise 'You cannot provide both :emailAddress and :email_address' if attributes.key?(:'emailAddress') && attributes.key?(:'email_address')
|
@@ -119,6 +132,7 @@ module OCI
|
|
119
132
|
return true if equal?(other)
|
120
133
|
|
121
134
|
self.class == other.class &&
|
135
|
+
compartment_id == other.compartment_id &&
|
122
136
|
email_address == other.email_address &&
|
123
137
|
id == other.id &&
|
124
138
|
reason == other.reason &&
|
@@ -138,7 +152,7 @@ module OCI
|
|
138
152
|
# Calculates hash code according to all attributes.
|
139
153
|
# @return [Fixnum] Hash code
|
140
154
|
def hash
|
141
|
-
[email_address, id, reason, time_created].hash
|
155
|
+
[compartment_id, email_address, id, reason, time_created].hash
|
142
156
|
end
|
143
157
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
144
158
|
|
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.6
|
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-
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -136,22 +136,22 @@ dependencies:
|
|
136
136
|
name: rubocop
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
|
-
- - "~>"
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
142
139
|
- - ">="
|
143
140
|
- !ruby/object:Gem::Version
|
144
141
|
version: '0.55'
|
142
|
+
- - "<="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 0.67.1
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0'
|
152
149
|
- - ">="
|
153
150
|
- !ruby/object:Gem::Version
|
154
151
|
version: '0.55'
|
152
|
+
- - "<="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.67.1
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: mocha
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|