oci 2.3.6 → 2.3.7

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -10
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +2 -2
  5. data/lib/oci/audit/audit_client.rb +11 -9
  6. data/lib/oci/base_signer.rb +13 -13
  7. data/lib/oci/container_engine/container_engine_client.rb +43 -39
  8. data/lib/oci/container_engine/models/node_error.rb +1 -1
  9. data/lib/oci/container_engine/models/work_request_error.rb +1 -1
  10. data/lib/oci/core/blockstorage_client.rb +421 -75
  11. data/lib/oci/core/compute_client.rb +77 -75
  12. data/lib/oci/core/compute_client_composite_operations.rb +40 -0
  13. data/lib/oci/core/core.rb +4 -0
  14. data/lib/oci/core/models/boot_volume.rb +18 -4
  15. data/lib/oci/core/models/boot_volume_kms_key.rb +152 -0
  16. data/lib/oci/core/models/create_boot_volume_details.rb +15 -1
  17. data/lib/oci/core/models/create_image_details.rb +2 -0
  18. data/lib/oci/core/models/create_volume_details.rb +15 -1
  19. data/lib/oci/core/models/fast_connect_provider_service.rb +1 -1
  20. data/lib/oci/core/models/image.rb +2 -0
  21. data/lib/oci/core/models/instance.rb +2 -0
  22. data/lib/oci/core/models/instance_source_via_image_details.rb +18 -4
  23. data/lib/oci/core/models/launch_options.rb +2 -0
  24. data/lib/oci/core/models/update_boot_volume_kms_key_details.rb +154 -0
  25. data/lib/oci/core/models/update_volume_kms_key_details.rb +154 -0
  26. data/lib/oci/core/models/volume.rb +15 -1
  27. data/lib/oci/core/models/volume_kms_key.rb +152 -0
  28. data/lib/oci/core/virtual_network_client.rb +233 -231
  29. data/lib/oci/core/virtual_network_client_composite_operations.rb +80 -0
  30. data/lib/oci/database/database_client.rb +123 -121
  31. data/lib/oci/database/database_client_composite_operations.rb +399 -0
  32. data/lib/oci/database/models/patch.rb +1 -1
  33. data/lib/oci/database/models/patch_summary.rb +1 -1
  34. data/lib/oci/dns/dns_client.rb +38 -36
  35. data/lib/oci/email/email_client.rb +21 -19
  36. data/lib/oci/email/models/sender.rb +1 -1
  37. data/lib/oci/email/models/suppression.rb +1 -1
  38. data/lib/oci/file_storage/file_storage_client.rb +49 -47
  39. data/lib/oci/identity/identity_client.rb +151 -149
  40. data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
  41. data/lib/oci/key_management/key_management.rb +40 -0
  42. data/lib/oci/key_management/kms_crypto_client.rb +258 -0
  43. data/lib/oci/key_management/kms_crypto_client_composite_operations.rb +24 -0
  44. data/lib/oci/key_management/kms_management_client.rb +716 -0
  45. data/lib/oci/key_management/kms_management_client_composite_operations.rb +181 -0
  46. data/lib/oci/key_management/kms_vault_client.rb +533 -0
  47. data/lib/oci/key_management/kms_vault_client_composite_operations.rb +182 -0
  48. data/lib/oci/key_management/models/create_key_details.rb +180 -0
  49. data/lib/oci/key_management/models/create_vault_details.rb +194 -0
  50. data/lib/oci/key_management/models/decrypt_data_details.rb +177 -0
  51. data/lib/oci/key_management/models/decrypted_data.rb +160 -0
  52. data/lib/oci/key_management/models/encrypt_data_details.rb +177 -0
  53. data/lib/oci/key_management/models/encrypted_data.rb +146 -0
  54. data/lib/oci/key_management/models/generate_key_details.rb +195 -0
  55. data/lib/oci/key_management/models/generated_key.rb +177 -0
  56. data/lib/oci/key_management/models/key.rb +318 -0
  57. data/lib/oci/key_management/models/key_shape.rb +178 -0
  58. data/lib/oci/key_management/models/key_summary.rb +287 -0
  59. data/lib/oci/key_management/models/key_version.rb +205 -0
  60. data/lib/oci/key_management/models/key_version_summary.rb +205 -0
  61. data/lib/oci/key_management/models/schedule_vault_deletion_details.rb +153 -0
  62. data/lib/oci/key_management/models/update_key_details.rb +152 -0
  63. data/lib/oci/key_management/models/update_vault_details.rb +152 -0
  64. data/lib/oci/key_management/models/vault.rb +350 -0
  65. data/lib/oci/key_management/models/vault_summary.rb +334 -0
  66. data/lib/oci/key_management/util.rb +2 -0
  67. data/lib/oci/load_balancer/load_balancer_client.rb +89 -87
  68. data/lib/oci/object_storage/models/bucket.rb +18 -4
  69. data/lib/oci/object_storage/models/create_bucket_details.rb +18 -4
  70. data/lib/oci/object_storage/models/multipart_upload.rb +1 -1
  71. data/lib/oci/object_storage/models/preauthenticated_request.rb +1 -1
  72. data/lib/oci/object_storage/models/update_bucket_details.rb +22 -4
  73. data/lib/oci/object_storage/object_storage_client.rb +63 -58
  74. data/lib/oci/resource_search/resource_search_client.rb +11 -9
  75. data/lib/oci/version.rb +1 -1
  76. metadata +32 -2
@@ -88,6 +88,10 @@ module OCI
88
88
  # @return [Hash<String, Hash<String, Object>>]
89
89
  attr_accessor :defined_tags
90
90
 
91
+ # The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key
92
+ # @return [String]
93
+ attr_accessor :kms_key_id
94
+
91
95
  # Attribute mapping from ruby-style variable name to JSON key.
92
96
  def self.attribute_map
93
97
  {
@@ -102,7 +106,8 @@ module OCI
102
106
  'public_access_type': :'publicAccessType',
103
107
  'storage_tier': :'storageTier',
104
108
  'freeform_tags': :'freeformTags',
105
- 'defined_tags': :'definedTags'
109
+ 'defined_tags': :'definedTags',
110
+ 'kms_key_id': :'kmsKeyId'
106
111
  # rubocop:enable Style/SymbolLiteral
107
112
  }
108
113
  end
@@ -121,7 +126,8 @@ module OCI
121
126
  'public_access_type': :'String',
122
127
  'storage_tier': :'String',
123
128
  'freeform_tags': :'Hash<String, String>',
124
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
129
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
130
+ 'kms_key_id': :'String'
125
131
  # rubocop:enable Style/SymbolLiteral
126
132
  }
127
133
  end
@@ -143,6 +149,7 @@ module OCI
143
149
  # @option attributes [String] :storage_tier The value to assign to the {#storage_tier} property
144
150
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
145
151
  # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
152
+ # @option attributes [String] :kms_key_id The value to assign to the {#kms_key_id} property
146
153
  def initialize(attributes = {})
147
154
  return unless attributes.is_a?(Hash)
148
155
 
@@ -198,6 +205,12 @@ module OCI
198
205
  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
199
206
 
200
207
  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
208
+
209
+ self.kms_key_id = attributes[:'kmsKeyId'] if attributes[:'kmsKeyId']
210
+
211
+ raise 'You cannot provide both :kmsKeyId and :kms_key_id' if attributes.key?(:'kmsKeyId') && attributes.key?(:'kms_key_id')
212
+
213
+ self.kms_key_id = attributes[:'kms_key_id'] if attributes[:'kms_key_id']
201
214
  end
202
215
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
203
216
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -250,7 +263,8 @@ module OCI
250
263
  public_access_type == other.public_access_type &&
251
264
  storage_tier == other.storage_tier &&
252
265
  freeform_tags == other.freeform_tags &&
253
- defined_tags == other.defined_tags
266
+ defined_tags == other.defined_tags &&
267
+ kms_key_id == other.kms_key_id
254
268
  end
255
269
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
256
270
 
@@ -266,7 +280,7 @@ module OCI
266
280
  # Calculates hash code according to all attributes.
267
281
  # @return [Fixnum] Hash code
268
282
  def hash
269
- [namespace, name, compartment_id, metadata, created_by, time_created, etag, public_access_type, storage_tier, freeform_tags, defined_tags].hash
283
+ [namespace, name, compartment_id, metadata, created_by, time_created, etag, public_access_type, storage_tier, freeform_tags, defined_tags, kms_key_id].hash
270
284
  end
271
285
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
272
286
 
@@ -66,6 +66,10 @@ module OCI
66
66
  # @return [Hash<String, Hash<String, Object>>]
67
67
  attr_accessor :defined_tags
68
68
 
69
+ # The OCID of a KMS key id used to call KMS to generate data key, decrypt the encrypted data key
70
+ # @return [String]
71
+ attr_accessor :kms_key_id
72
+
69
73
  # Attribute mapping from ruby-style variable name to JSON key.
70
74
  def self.attribute_map
71
75
  {
@@ -76,7 +80,8 @@ module OCI
76
80
  'public_access_type': :'publicAccessType',
77
81
  'storage_tier': :'storageTier',
78
82
  'freeform_tags': :'freeformTags',
79
- 'defined_tags': :'definedTags'
83
+ 'defined_tags': :'definedTags',
84
+ 'kms_key_id': :'kmsKeyId'
80
85
  # rubocop:enable Style/SymbolLiteral
81
86
  }
82
87
  end
@@ -91,7 +96,8 @@ module OCI
91
96
  'public_access_type': :'String',
92
97
  'storage_tier': :'String',
93
98
  'freeform_tags': :'Hash<String, String>',
94
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
99
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
100
+ 'kms_key_id': :'String'
95
101
  # rubocop:enable Style/SymbolLiteral
96
102
  }
97
103
  end
@@ -109,6 +115,7 @@ module OCI
109
115
  # @option attributes [String] :storage_tier The value to assign to the {#storage_tier} property
110
116
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
111
117
  # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
118
+ # @option attributes [String] :kms_key_id The value to assign to the {#kms_key_id} property
112
119
  def initialize(attributes = {})
113
120
  return unless attributes.is_a?(Hash)
114
121
 
@@ -148,6 +155,12 @@ module OCI
148
155
  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
149
156
 
150
157
  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
158
+
159
+ self.kms_key_id = attributes[:'kmsKeyId'] if attributes[:'kmsKeyId']
160
+
161
+ raise 'You cannot provide both :kmsKeyId and :kms_key_id' if attributes.key?(:'kmsKeyId') && attributes.key?(:'kms_key_id')
162
+
163
+ self.kms_key_id = attributes[:'kms_key_id'] if attributes[:'kms_key_id']
151
164
  end
152
165
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
153
166
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -184,7 +197,8 @@ module OCI
184
197
  public_access_type == other.public_access_type &&
185
198
  storage_tier == other.storage_tier &&
186
199
  freeform_tags == other.freeform_tags &&
187
- defined_tags == other.defined_tags
200
+ defined_tags == other.defined_tags &&
201
+ kms_key_id == other.kms_key_id
188
202
  end
189
203
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
190
204
 
@@ -200,7 +214,7 @@ module OCI
200
214
  # Calculates hash code according to all attributes.
201
215
  # @return [Fixnum] Hash code
202
216
  def hash
203
- [name, compartment_id, metadata, public_access_type, storage_tier, freeform_tags, defined_tags].hash
217
+ [name, compartment_id, metadata, public_access_type, storage_tier, freeform_tags, defined_tags, kms_key_id].hash
204
218
  end
205
219
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
206
220
 
@@ -8,7 +8,7 @@ module OCI
8
8
  # objects that are too large for a single upload operation. With multipart uploads, individual parts of an object can be
9
9
  # uploaded in parallel to reduce the amount of time you spend uploading. Multipart uploads can also minimize the impact
10
10
  # of network failures by letting you retry a failed part upload instead of requiring you to retry an entire object upload.
11
- # See [Managing Multipart Uploads](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingmultipartuploads.htm).
11
+ # See [Using Multipart Uploads](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/usingmultipartuploads.htm).
12
12
  #
13
13
  # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
14
14
  # talk to an administrator. If you're an administrator who needs to write policies to give users access, see
@@ -7,7 +7,7 @@ require 'logger'
7
7
  module OCI
8
8
  # Pre-authenticated requests provide a way to let users access a bucket or an object without having their own credentials.
9
9
  # When you create a pre-authenticated request, a unique URL is generated. Users in your organization, partners, or third
10
- # parties can use this URL to access the targets identified in the pre-authenticated request. See [Managing Access to Buckets and Objects](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm).
10
+ # parties can use this URL to access the targets identified in the pre-authenticated request. See [Using Pre-Authenticated Requests](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm).
11
11
  #
12
12
  # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator.
13
13
  # If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
@@ -55,6 +55,14 @@ module OCI
55
55
  # @return [Hash<String, Hash<String, Object>>]
56
56
  attr_accessor :defined_tags
57
57
 
58
+ # A KMS key OCID that will be associated with the given bucket. If it is empty the Update operation will
59
+ # actually remove the KMS key, if there is one, from the given bucket. Please note, the old kms key should
60
+ # still be enbaled in KMS otherwise all the objects in the bucket encrypted with the old KMS key will no
61
+ # longer accessible.
62
+ #
63
+ # @return [String]
64
+ attr_accessor :kms_key_id
65
+
58
66
  # Attribute mapping from ruby-style variable name to JSON key.
59
67
  def self.attribute_map
60
68
  {
@@ -65,7 +73,8 @@ module OCI
65
73
  'metadata': :'metadata',
66
74
  'public_access_type': :'publicAccessType',
67
75
  'freeform_tags': :'freeformTags',
68
- 'defined_tags': :'definedTags'
76
+ 'defined_tags': :'definedTags',
77
+ 'kms_key_id': :'kmsKeyId'
69
78
  # rubocop:enable Style/SymbolLiteral
70
79
  }
71
80
  end
@@ -80,7 +89,8 @@ module OCI
80
89
  'metadata': :'Hash<String, String>',
81
90
  'public_access_type': :'String',
82
91
  'freeform_tags': :'Hash<String, String>',
83
- 'defined_tags': :'Hash<String, Hash<String, Object>>'
92
+ 'defined_tags': :'Hash<String, Hash<String, Object>>',
93
+ 'kms_key_id': :'String'
84
94
  # rubocop:enable Style/SymbolLiteral
85
95
  }
86
96
  end
@@ -98,6 +108,7 @@ module OCI
98
108
  # @option attributes [String] :public_access_type The value to assign to the {#public_access_type} property
99
109
  # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
100
110
  # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
111
+ # @option attributes [String] :kms_key_id The value to assign to the {#kms_key_id} property
101
112
  def initialize(attributes = {})
102
113
  return unless attributes.is_a?(Hash)
103
114
 
@@ -133,6 +144,12 @@ module OCI
133
144
  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
134
145
 
135
146
  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
147
+
148
+ self.kms_key_id = attributes[:'kmsKeyId'] if attributes[:'kmsKeyId']
149
+
150
+ raise 'You cannot provide both :kmsKeyId and :kms_key_id' if attributes.key?(:'kmsKeyId') && attributes.key?(:'kms_key_id')
151
+
152
+ self.kms_key_id = attributes[:'kms_key_id'] if attributes[:'kms_key_id']
136
153
  end
137
154
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
138
155
  # rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
@@ -160,7 +177,8 @@ module OCI
160
177
  metadata == other.metadata &&
161
178
  public_access_type == other.public_access_type &&
162
179
  freeform_tags == other.freeform_tags &&
163
- defined_tags == other.defined_tags
180
+ defined_tags == other.defined_tags &&
181
+ kms_key_id == other.kms_key_id
164
182
  end
165
183
  # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
166
184
 
@@ -176,7 +194,7 @@ module OCI
176
194
  # Calculates hash code according to all attributes.
177
195
  # @return [Fixnum] Hash code
178
196
  def hash
179
- [namespace, compartment_id, name, metadata, public_access_type, freeform_tags, defined_tags].hash
197
+ [namespace, compartment_id, name, metadata, public_access_type, freeform_tags, defined_tags, kms_key_id].hash
180
198
  end
181
199
  # rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
182
200
 
@@ -29,10 +29,12 @@ module OCI
29
29
 
30
30
 
31
31
  # Creates a new ObjectStorageClient.
32
- # If a config is not specified, then the global OCI.config will be used.
32
+ # Notes:
33
+ # If a config is not specified, then the global OCI.config will be used.
34
+ # This client is not thread-safe
33
35
  #
34
- # A region must be specified in either the config or the region parameter. If specified
35
- # in both, then the region parameter will be used.
36
+ # A region must be specified in either the config or the region parameter. If specified in both,
37
+ # then the region parameter will be used.
36
38
  #
37
39
  # @param [Config] config A Config object.
38
40
  # @param [String] region A region used to determine the service endpoint. This will usually
@@ -135,8 +137,8 @@ module OCI
135
137
 
136
138
  # Header Params
137
139
  header_params = {}
138
- header_params['accept'] = 'application/json'
139
- header_params['content-type'] = 'application/json'
140
+ header_params[:accept] = 'application/json'
141
+ header_params[:'content-type'] = 'application/json'
140
142
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
141
143
  # rubocop:enable Style/NegatedIf
142
144
 
@@ -209,8 +211,8 @@ module OCI
209
211
 
210
212
  # Header Params
211
213
  header_params = {}
212
- header_params['accept'] = 'application/json'
213
- header_params['content-type'] = 'application/json'
214
+ header_params[:accept] = 'application/json'
215
+ header_params[:'content-type'] = 'application/json'
214
216
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
215
217
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
216
218
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -241,7 +243,8 @@ module OCI
241
243
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
242
244
 
243
245
 
244
- # Creates a bucket in the given namespace with a bucket name and optional user-defined metadata.
246
+ # Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering confidential
247
+ # information in bucket names.
245
248
  #
246
249
  # @param [String] namespace_name The top-level namespace used for the request.
247
250
  # @param [OCI::ObjectStorage::Models::CreateBucketDetails] create_bucket_details Request object for creating a bucket.
@@ -266,8 +269,8 @@ module OCI
266
269
 
267
270
  # Header Params
268
271
  header_params = {}
269
- header_params['accept'] = 'application/json'
270
- header_params['content-type'] = 'application/json'
272
+ header_params[:accept] = 'application/json'
273
+ header_params[:'content-type'] = 'application/json'
271
274
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
272
275
  # rubocop:enable Style/NegatedIf
273
276
 
@@ -333,8 +336,8 @@ module OCI
333
336
 
334
337
  # Header Params
335
338
  header_params = {}
336
- header_params['accept'] = 'application/json'
337
- header_params['content-type'] = 'application/json'
339
+ header_params[:accept] = 'application/json'
340
+ header_params[:'content-type'] = 'application/json'
338
341
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
339
342
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
340
343
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -396,8 +399,8 @@ module OCI
396
399
 
397
400
  # Header Params
398
401
  header_params = {}
399
- header_params['accept'] = 'application/json'
400
- header_params['content-type'] = 'application/json'
402
+ header_params[:accept] = 'application/json'
403
+ header_params[:'content-type'] = 'application/json'
401
404
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
402
405
  # rubocop:enable Style/NegatedIf
403
406
 
@@ -458,8 +461,8 @@ module OCI
458
461
 
459
462
  # Header Params
460
463
  header_params = {}
461
- header_params['accept'] = 'application/json'
462
- header_params['content-type'] = 'application/json'
464
+ header_params[:accept] = 'application/json'
465
+ header_params[:'content-type'] = 'application/json'
463
466
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
464
467
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
465
468
  # rubocop:enable Style/NegatedIf
@@ -525,8 +528,8 @@ module OCI
525
528
 
526
529
  # Header Params
527
530
  header_params = {}
528
- header_params['accept'] = 'application/json'
529
- header_params['content-type'] = 'application/json'
531
+ header_params[:accept] = 'application/json'
532
+ header_params[:'content-type'] = 'application/json'
530
533
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
531
534
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
532
535
  # rubocop:enable Style/NegatedIf
@@ -588,8 +591,8 @@ module OCI
588
591
 
589
592
  # Header Params
590
593
  header_params = {}
591
- header_params['accept'] = 'application/json'
592
- header_params['content-type'] = 'application/json'
594
+ header_params[:accept] = 'application/json'
595
+ header_params[:'content-type'] = 'application/json'
593
596
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
594
597
  # rubocop:enable Style/NegatedIf
595
598
 
@@ -652,8 +655,8 @@ module OCI
652
655
 
653
656
  # Header Params
654
657
  header_params = {}
655
- header_params['accept'] = 'application/json'
656
- header_params['content-type'] = 'application/json'
658
+ header_params[:accept] = 'application/json'
659
+ header_params[:'content-type'] = 'application/json'
657
660
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
658
661
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
659
662
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -706,8 +709,8 @@ module OCI
706
709
 
707
710
  # Header Params
708
711
  header_params = {}
709
- header_params['accept'] = 'application/json'
710
- header_params['content-type'] = 'application/json'
712
+ header_params[:accept] = 'application/json'
713
+ header_params[:'content-type'] = 'application/json'
711
714
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
712
715
  # rubocop:enable Style/NegatedIf
713
716
 
@@ -763,8 +766,8 @@ module OCI
763
766
 
764
767
  # Header Params
765
768
  header_params = {}
766
- header_params['accept'] = 'application/json'
767
- header_params['content-type'] = 'application/json'
769
+ header_params[:accept] = 'application/json'
770
+ header_params[:'content-type'] = 'application/json'
768
771
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
769
772
  # rubocop:enable Style/NegatedIf
770
773
 
@@ -838,8 +841,10 @@ module OCI
838
841
 
839
842
  # Header Params
840
843
  header_params = {}
841
- header_params['accept'] = 'application/json'
842
- header_params['content-type'] = 'application/json'
844
+ header_params[:accept] = opts[:accept] if opts[:accept]
845
+ header_params[:accept] ||= 'application/json'
846
+ header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding]
847
+ header_params[:'content-type'] = 'application/json'
843
848
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
844
849
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
845
850
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -946,8 +951,8 @@ module OCI
946
951
 
947
952
  # Header Params
948
953
  header_params = {}
949
- header_params['accept'] = 'application/json'
950
- header_params['content-type'] = 'application/json'
954
+ header_params[:accept] = 'application/json'
955
+ header_params[:'content-type'] = 'application/json'
951
956
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
952
957
  # rubocop:enable Style/NegatedIf
953
958
 
@@ -1011,8 +1016,8 @@ module OCI
1011
1016
 
1012
1017
  # Header Params
1013
1018
  header_params = {}
1014
- header_params['accept'] = 'application/json'
1015
- header_params['content-type'] = 'application/json'
1019
+ header_params[:accept] = 'application/json'
1020
+ header_params[:'content-type'] = 'application/json'
1016
1021
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1017
1022
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
1018
1023
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -1082,8 +1087,8 @@ module OCI
1082
1087
 
1083
1088
  # Header Params
1084
1089
  header_params = {}
1085
- header_params['accept'] = 'application/json'
1086
- header_params['content-type'] = 'application/json'
1090
+ header_params[:accept] = 'application/json'
1091
+ header_params[:'content-type'] = 'application/json'
1087
1092
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1088
1093
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
1089
1094
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -1165,8 +1170,8 @@ module OCI
1165
1170
 
1166
1171
  # Header Params
1167
1172
  header_params = {}
1168
- header_params['accept'] = 'application/json'
1169
- header_params['content-type'] = 'application/json'
1173
+ header_params[:accept] = 'application/json'
1174
+ header_params[:'content-type'] = 'application/json'
1170
1175
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1171
1176
  # rubocop:enable Style/NegatedIf
1172
1177
 
@@ -1236,8 +1241,8 @@ module OCI
1236
1241
 
1237
1242
  # Header Params
1238
1243
  header_params = {}
1239
- header_params['accept'] = 'application/json'
1240
- header_params['content-type'] = 'application/json'
1244
+ header_params[:accept] = 'application/json'
1245
+ header_params[:'content-type'] = 'application/json'
1241
1246
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1242
1247
  # rubocop:enable Style/NegatedIf
1243
1248
 
@@ -1299,8 +1304,8 @@ module OCI
1299
1304
 
1300
1305
  # Header Params
1301
1306
  header_params = {}
1302
- header_params['accept'] = 'application/json'
1303
- header_params['content-type'] = 'application/json'
1307
+ header_params[:accept] = 'application/json'
1308
+ header_params[:'content-type'] = 'application/json'
1304
1309
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1305
1310
  # rubocop:enable Style/NegatedIf
1306
1311
 
@@ -1383,8 +1388,8 @@ module OCI
1383
1388
 
1384
1389
  # Header Params
1385
1390
  header_params = {}
1386
- header_params['accept'] = 'application/json'
1387
- header_params['content-type'] = 'application/json'
1391
+ header_params[:accept] = 'application/json'
1392
+ header_params[:'content-type'] = 'application/json'
1388
1393
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1389
1394
  # rubocop:enable Style/NegatedIf
1390
1395
 
@@ -1448,8 +1453,8 @@ module OCI
1448
1453
 
1449
1454
  # Header Params
1450
1455
  header_params = {}
1451
- header_params['accept'] = 'application/json'
1452
- header_params['content-type'] = 'application/json'
1456
+ header_params[:accept] = 'application/json'
1457
+ header_params[:'content-type'] = 'application/json'
1453
1458
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1454
1459
  # rubocop:enable Style/NegatedIf
1455
1460
 
@@ -1479,7 +1484,7 @@ module OCI
1479
1484
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1480
1485
 
1481
1486
 
1482
- # Creates a new object or overwrites an existing one.
1487
+ # Creates a new object or overwrites an existing one. See [Special Instructions for Object Storage PUT](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut) for request signature requirements.
1483
1488
  #
1484
1489
  # @param [String] namespace_name The top-level namespace used for the request.
1485
1490
  # @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
@@ -1528,7 +1533,7 @@ module OCI
1528
1533
 
1529
1534
  # Header Params
1530
1535
  header_params = {}
1531
- header_params['accept'] = 'application/json'
1536
+ header_params[:accept] = 'application/json'
1532
1537
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1533
1538
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
1534
1539
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
@@ -1545,7 +1550,7 @@ module OCI
1545
1550
  header_params["opc-meta-#{key}".to_sym] = value
1546
1551
  end
1547
1552
  end
1548
- header_params['content-type'] ||= 'application/octet-stream'
1553
+ header_params[:'content-type'] ||= 'application/octet-stream'
1549
1554
 
1550
1555
  post_body = @api_client.object_to_http_body(put_object_body)
1551
1556
 
@@ -1602,8 +1607,8 @@ module OCI
1602
1607
 
1603
1608
  # Header Params
1604
1609
  header_params = {}
1605
- header_params['accept'] = 'application/json'
1606
- header_params['content-type'] = 'application/json'
1610
+ header_params[:accept] = 'application/json'
1611
+ header_params[:'content-type'] = 'application/json'
1607
1612
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1608
1613
  # rubocop:enable Style/NegatedIf
1609
1614
 
@@ -1663,8 +1668,8 @@ module OCI
1663
1668
 
1664
1669
  # Header Params
1665
1670
  header_params = {}
1666
- header_params['accept'] = 'application/json'
1667
- header_params['content-type'] = 'application/json'
1671
+ header_params[:accept] = 'application/json'
1672
+ header_params[:'content-type'] = 'application/json'
1668
1673
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1669
1674
  # rubocop:enable Style/NegatedIf
1670
1675
 
@@ -1726,8 +1731,8 @@ module OCI
1726
1731
 
1727
1732
  # Header Params
1728
1733
  header_params = {}
1729
- header_params['accept'] = 'application/json'
1730
- header_params['content-type'] = 'application/json'
1734
+ header_params[:accept] = 'application/json'
1735
+ header_params[:'content-type'] = 'application/json'
1731
1736
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1732
1737
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1733
1738
  # rubocop:enable Style/NegatedIf
@@ -1786,8 +1791,8 @@ module OCI
1786
1791
 
1787
1792
  # Header Params
1788
1793
  header_params = {}
1789
- header_params['accept'] = 'application/json'
1790
- header_params['content-type'] = 'application/json'
1794
+ header_params[:accept] = 'application/json'
1795
+ header_params[:'content-type'] = 'application/json'
1791
1796
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1792
1797
  # rubocop:enable Style/NegatedIf
1793
1798
 
@@ -1817,7 +1822,7 @@ module OCI
1817
1822
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1818
1823
 
1819
1824
 
1820
- # Uploads a single part of a multipart upload.
1825
+ # Uploads a single part of a multipart upload. See [Special Instructions for Object Storage PUT](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut) for request signature requirements.
1821
1826
  #
1822
1827
  # @param [String] namespace_name The top-level namespace used for the request.
1823
1828
  # @param [String] bucket_name The name of the bucket. Avoid entering confidential information.
@@ -1867,7 +1872,7 @@ module OCI
1867
1872
 
1868
1873
  # Header Params
1869
1874
  header_params = {}
1870
- header_params['accept'] = 'application/json'
1875
+ header_params[:accept] = 'application/json'
1871
1876
  header_params[:'opc-client-request-id'] = opts[:opc_client_request_id] if opts[:opc_client_request_id]
1872
1877
  header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1873
1878
  header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
@@ -1875,7 +1880,7 @@ module OCI
1875
1880
  header_params[:'content-length'] = opts[:content_length] if opts[:content_length]
1876
1881
  header_params[:'content-md5'] = opts[:content_md5] if opts[:content_md5]
1877
1882
  # rubocop:enable Style/NegatedIf
1878
- header_params['content-type'] ||= 'application/octet-stream'
1883
+ header_params[:'content-type'] ||= 'application/octet-stream'
1879
1884
 
1880
1885
  post_body = @api_client.object_to_http_body(upload_part_body)
1881
1886