oci 2.0.9 → 2.1.0
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 +179 -10
- data/lib/oci.rb +1 -0
- data/lib/oci/api_client.rb +186 -64
- data/lib/oci/api_client_proxy_settings.rb +71 -0
- data/lib/oci/audit/audit_client.rb +6 -4
- data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +18 -4
- data/lib/oci/core/compute_client.rb +27 -4
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/connect_remote_peering_connections_details.rb +149 -0
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +165 -0
- data/lib/oci/core/models/peer_region_for_remote_peering.rb +125 -0
- data/lib/oci/core/models/remote_peering_connection.rb +362 -0
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +129 -0
- data/lib/oci/core/virtual_network_client.rb +334 -4
- data/lib/oci/database/database_client.rb +41 -4
- data/lib/oci/database/models/db_system.rb +1 -1
- data/lib/oci/database/models/db_system_shape_summary.rb +74 -2
- data/lib/oci/database/models/db_system_summary.rb +1 -1
- data/lib/oci/dns/dns_client.rb +32 -4
- data/lib/oci/email/email_client.rb +10 -4
- data/lib/oci/errors.rb +115 -19
- data/lib/oci/file_storage/file_storage_client.rb +18 -4
- data/lib/oci/global_context.rb +2 -2
- data/lib/oci/identity/identity_client.rb +68 -4
- data/lib/oci/identity/models/create_region_subscription_details.rb +1 -0
- data/lib/oci/identity/models/region.rb +2 -0
- data/lib/oci/identity/models/region_subscription.rb +2 -0
- data/lib/oci/identity/models/tenancy.rb +3 -1
- data/lib/oci/internal/util.rb +5 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +59 -4
- data/lib/oci/object_storage/object_storage_client.rb +62 -4
- data/lib/oci/regions.rb +4 -2
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -146,6 +148,7 @@ module OCI
|
|
146
148
|
logger.debug "Calling operation EmailClient#delete_sender." if logger
|
147
149
|
|
148
150
|
raise "Missing the required parameter 'sender_id' when calling delete_sender." if sender_id.nil?
|
151
|
+
raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util::blank_string?(sender_id)
|
149
152
|
|
150
153
|
path = "/senders/{senderId}".sub('{senderId}', sender_id.to_s)
|
151
154
|
|
@@ -178,6 +181,7 @@ module OCI
|
|
178
181
|
logger.debug "Calling operation EmailClient#delete_suppression." if logger
|
179
182
|
|
180
183
|
raise "Missing the required parameter 'suppression_id' when calling delete_suppression." if suppression_id.nil?
|
184
|
+
raise "Parameter value for 'suppression_id' must not be blank" if OCI::Internal::Util::blank_string?(suppression_id)
|
181
185
|
|
182
186
|
path = "/suppressions/{suppressionId}".sub('{suppressionId}', suppression_id.to_s)
|
183
187
|
|
@@ -208,6 +212,7 @@ module OCI
|
|
208
212
|
logger.debug "Calling operation EmailClient#get_sender." if logger
|
209
213
|
|
210
214
|
raise "Missing the required parameter 'sender_id' when calling get_sender." if sender_id.nil?
|
215
|
+
raise "Parameter value for 'sender_id' must not be blank" if OCI::Internal::Util::blank_string?(sender_id)
|
211
216
|
|
212
217
|
path = "/senders/{senderId}".sub('{senderId}', sender_id.to_s)
|
213
218
|
|
@@ -241,6 +246,7 @@ module OCI
|
|
241
246
|
logger.debug "Calling operation EmailClient#get_suppression." if logger
|
242
247
|
|
243
248
|
raise "Missing the required parameter 'suppression_id' when calling get_suppression." if suppression_id.nil?
|
249
|
+
raise "Parameter value for 'suppression_id' must not be blank" if OCI::Internal::Util::blank_string?(suppression_id)
|
244
250
|
|
245
251
|
path = "/suppressions/{suppressionId}".sub('{suppressionId}', suppression_id.to_s)
|
246
252
|
|
data/lib/oci/errors.rb
CHANGED
@@ -2,19 +2,25 @@
|
|
2
2
|
|
3
3
|
module OCI
|
4
4
|
module Errors
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
# Represents an error which was generated somewhere during the process of making a HTTP request to an
|
6
|
+
# OCI service. This error contains the raw request and also exposes some convenience properties such
|
7
|
+
# as the opc-request-id for the request. This error makes no guarantee or inference about whether the
|
8
|
+
# error was generated based on a response from an OCI service, whether there was a network issue etc.
|
9
|
+
#
|
10
|
+
# When used directly, the {#cause} of the error should be inspected for the original error which resulted
|
11
|
+
# in this one being thrown.
|
12
|
+
#
|
13
|
+
# Subclasses, such as {OCI::Errors::ServiceError} and {OCI::Errors::NetworkError}, may have stronger
|
14
|
+
# definitions around what circumstances caused the error to be thrown.
|
15
|
+
class HttpRequestBasedError < StandardError
|
16
|
+
# The request which was made
|
13
17
|
#
|
14
|
-
# @return [
|
15
|
-
attr_reader :
|
18
|
+
# @return [Net::HTTPRequest]
|
19
|
+
attr_reader :request_made
|
16
20
|
|
17
|
-
# The request ID
|
21
|
+
# The request ID from the opc-request-id header. This could be the request ID returned from the service
|
22
|
+
# or, if there was no opc-request-id in the response, it will be the opc-request-id set client-side by the
|
23
|
+
# caller or the SDK (if there was no explicit caller-provided opc-request-id)
|
18
24
|
#
|
19
25
|
# @return [String]
|
20
26
|
attr_reader :request_id
|
@@ -24,18 +30,40 @@ module OCI
|
|
24
30
|
# @return [String]
|
25
31
|
attr_reader :message
|
26
32
|
|
27
|
-
def initialize(
|
33
|
+
def initialize(message: nil, request_made: nil)
|
28
34
|
# We need to mask the message attribute here as otherwise we use StandardError's
|
29
35
|
# implementation, which calls to_s and so referencing "message" in our to_s in
|
30
|
-
# this class would go into an infinite loop
|
36
|
+
# this class (and subclasses) would go into an infinite loop
|
37
|
+
@message = message
|
38
|
+
|
39
|
+
@request_made = request_made
|
40
|
+
@request_id = @request_made['opc-request-id'] unless @request_made.nil?
|
41
|
+
end
|
31
42
|
|
43
|
+
def to_s
|
44
|
+
"{ 'message': '#{message}', 'opc-request-id': '#{request_id}' }"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# The base error for all requests that return error responses from the service.
|
49
|
+
class ServiceError < HttpRequestBasedError
|
50
|
+
# HTTP status code (such as 200 or 404)
|
51
|
+
#
|
52
|
+
# @return [Integer]
|
53
|
+
attr_reader :status_code
|
54
|
+
|
55
|
+
# A service-specific error code
|
56
|
+
#
|
57
|
+
# @return [String]
|
58
|
+
attr_reader :service_code
|
59
|
+
|
60
|
+
def initialize(status_code, service_code, request_id, message, request_made: nil)
|
32
61
|
@message = if message.nil? || message.strip.empty?
|
33
62
|
"The service returned error code #{status_code}"
|
34
63
|
else
|
35
64
|
message.strip
|
36
65
|
end
|
37
|
-
|
38
|
-
super @message
|
66
|
+
super(message: @message, request_made: request_made)
|
39
67
|
|
40
68
|
@status_code = status_code
|
41
69
|
@service_code = service_code
|
@@ -48,14 +76,82 @@ module OCI
|
|
48
76
|
end
|
49
77
|
end
|
50
78
|
|
51
|
-
# The base error for
|
52
|
-
|
79
|
+
# The base error for issues which are likely to be network related, rather than an application
|
80
|
+
# issue. This is defined as:
|
81
|
+
#
|
82
|
+
# * Requests which were sent from the SDK but the outcome was not a response from an OCI service. Further examples of include:
|
83
|
+
# * Gateway timeouts
|
84
|
+
# * Read or connection timeouts
|
85
|
+
# * Any {Errno} exception which was generated by making the request
|
86
|
+
# * Requests which resulted in a HTTP 408 (timeout)
|
87
|
+
#
|
88
|
+
# The {#cause} of this error can be inspected to see if there was an original error which resulted in this one being thrown.
|
89
|
+
class NetworkError < HttpRequestBasedError
|
53
90
|
# Error code, which is mapped to Net::HTTPResponse's code.to_i or 0 if the issue was reported by an exception.
|
91
|
+
#
|
92
|
+
# @return [Integer]
|
54
93
|
attr_reader :code
|
55
94
|
|
56
|
-
|
57
|
-
|
95
|
+
# The response received for the request, if any
|
96
|
+
#
|
97
|
+
# @return [Net::HTTPResponse]
|
98
|
+
attr_reader :response_received
|
99
|
+
|
100
|
+
def initialize(message, code, request_made: nil, response_received: nil)
|
101
|
+
super(message: message, request_made: request_made)
|
58
102
|
@code = code
|
103
|
+
@response_received = response_received
|
104
|
+
|
105
|
+
# If we have a request ID from the response then use that, otherwise just take the one from the
|
106
|
+
# request (the superclass constructor sets the opc-request-id from the request by default)
|
107
|
+
response_req_id = @response_received['opc-request-id'] unless @response_received.nil?
|
108
|
+
@request_id = response_req_id unless response_req_id.nil?
|
109
|
+
end
|
110
|
+
|
111
|
+
def to_s
|
112
|
+
response_body = response_received.body unless response_received.nil?
|
113
|
+
|
114
|
+
"{ 'message': '#{message}', 'status': #{code}, " \
|
115
|
+
"'opc-request-id': '#{request_id}', 'response-body': '#{response_body}' }"
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# The base error for issues related to parsing the response received from the service. The {#response_body}
|
120
|
+
# can be inspected for the data which failed to parse and the {#cause} of this error can be inspected for the
|
121
|
+
# underlying parsing error which occurred
|
122
|
+
class ResponseParsingError < HttpRequestBasedError
|
123
|
+
# The response received for the request, and whose body we failed to parse
|
124
|
+
#
|
125
|
+
# @return [Net::HTTPResponse]
|
126
|
+
attr_reader :response_received
|
127
|
+
|
128
|
+
def initialize(message: 'Failed to parse response', request_made:, response_received:)
|
129
|
+
raise 'A message must be provided' if message.nil? || message.strip.empty?
|
130
|
+
raise 'The request made must be provided' if request_made.nil?
|
131
|
+
raise 'The response received must be provided' if response_received.nil?
|
132
|
+
|
133
|
+
super(message: message, request_made: request_made)
|
134
|
+
@response_received = response_received
|
135
|
+
@request_id = @response_received['opc-request-id'] unless @response_received['opc-request-id'].nil?
|
136
|
+
end
|
137
|
+
|
138
|
+
# The response body which we failed to parse
|
139
|
+
#
|
140
|
+
# @return [String]
|
141
|
+
def response_body
|
142
|
+
response_received.body
|
143
|
+
end
|
144
|
+
|
145
|
+
# The status code of the response (e.g. 200)
|
146
|
+
#
|
147
|
+
# @return [Integer]
|
148
|
+
def status_code
|
149
|
+
response_received.code.to_i
|
150
|
+
end
|
151
|
+
|
152
|
+
def to_s
|
153
|
+
"{ 'message': '#{message}', 'status': #{status_code}, " \
|
154
|
+
"'opc-request-id': '#{request_id}', 'response-body': '#{response_body}' }"
|
59
155
|
end
|
60
156
|
end
|
61
157
|
|
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -298,6 +300,7 @@ module OCI
|
|
298
300
|
logger.debug "Calling operation FileStorageClient#delete_export." if logger
|
299
301
|
|
300
302
|
raise "Missing the required parameter 'export_id' when calling delete_export." if export_id.nil?
|
303
|
+
raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util::blank_string?(export_id)
|
301
304
|
|
302
305
|
path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
|
303
306
|
|
@@ -338,6 +341,7 @@ module OCI
|
|
338
341
|
logger.debug "Calling operation FileStorageClient#delete_file_system." if logger
|
339
342
|
|
340
343
|
raise "Missing the required parameter 'file_system_id' when calling delete_file_system." if file_system_id.nil?
|
344
|
+
raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
|
341
345
|
|
342
346
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
343
347
|
|
@@ -377,6 +381,7 @@ module OCI
|
|
377
381
|
logger.debug "Calling operation FileStorageClient#delete_mount_target." if logger
|
378
382
|
|
379
383
|
raise "Missing the required parameter 'mount_target_id' when calling delete_mount_target." if mount_target_id.nil?
|
384
|
+
raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
|
380
385
|
|
381
386
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
382
387
|
|
@@ -415,6 +420,7 @@ module OCI
|
|
415
420
|
logger.debug "Calling operation FileStorageClient#delete_snapshot." if logger
|
416
421
|
|
417
422
|
raise "Missing the required parameter 'snapshot_id' when calling delete_snapshot." if snapshot_id.nil?
|
423
|
+
raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util::blank_string?(snapshot_id)
|
418
424
|
|
419
425
|
path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
|
420
426
|
|
@@ -446,6 +452,7 @@ module OCI
|
|
446
452
|
logger.debug "Calling operation FileStorageClient#get_export." if logger
|
447
453
|
|
448
454
|
raise "Missing the required parameter 'export_id' when calling get_export." if export_id.nil?
|
455
|
+
raise "Parameter value for 'export_id' must not be blank" if OCI::Internal::Util::blank_string?(export_id)
|
449
456
|
|
450
457
|
path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
|
451
458
|
|
@@ -477,6 +484,7 @@ module OCI
|
|
477
484
|
logger.debug "Calling operation FileStorageClient#get_export_set." if logger
|
478
485
|
|
479
486
|
raise "Missing the required parameter 'export_set_id' when calling get_export_set." if export_set_id.nil?
|
487
|
+
raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util::blank_string?(export_set_id)
|
480
488
|
|
481
489
|
path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
|
482
490
|
|
@@ -508,6 +516,7 @@ module OCI
|
|
508
516
|
logger.debug "Calling operation FileStorageClient#get_file_system." if logger
|
509
517
|
|
510
518
|
raise "Missing the required parameter 'file_system_id' when calling get_file_system." if file_system_id.nil?
|
519
|
+
raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
|
511
520
|
|
512
521
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
513
522
|
|
@@ -539,6 +548,7 @@ module OCI
|
|
539
548
|
logger.debug "Calling operation FileStorageClient#get_mount_target." if logger
|
540
549
|
|
541
550
|
raise "Missing the required parameter 'mount_target_id' when calling get_mount_target." if mount_target_id.nil?
|
551
|
+
raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
|
542
552
|
|
543
553
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
544
554
|
|
@@ -570,6 +580,7 @@ module OCI
|
|
570
580
|
logger.debug "Calling operation FileStorageClient#get_snapshot." if logger
|
571
581
|
|
572
582
|
raise "Missing the required parameter 'snapshot_id' when calling get_snapshot." if snapshot_id.nil?
|
583
|
+
raise "Parameter value for 'snapshot_id' must not be blank" if OCI::Internal::Util::blank_string?(snapshot_id)
|
573
584
|
|
574
585
|
path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
|
575
586
|
|
@@ -1008,6 +1019,7 @@ module OCI
|
|
1008
1019
|
|
1009
1020
|
raise "Missing the required parameter 'export_set_id' when calling update_export_set." if export_set_id.nil?
|
1010
1021
|
raise "Missing the required parameter 'update_export_set_details' when calling update_export_set." if update_export_set_details.nil?
|
1022
|
+
raise "Parameter value for 'export_set_id' must not be blank" if OCI::Internal::Util::blank_string?(export_set_id)
|
1011
1023
|
|
1012
1024
|
path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
|
1013
1025
|
|
@@ -1050,6 +1062,7 @@ module OCI
|
|
1050
1062
|
|
1051
1063
|
raise "Missing the required parameter 'file_system_id' when calling update_file_system." if file_system_id.nil?
|
1052
1064
|
raise "Missing the required parameter 'update_file_system_details' when calling update_file_system." if update_file_system_details.nil?
|
1065
|
+
raise "Parameter value for 'file_system_id' must not be blank" if OCI::Internal::Util::blank_string?(file_system_id)
|
1053
1066
|
|
1054
1067
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
1055
1068
|
|
@@ -1090,6 +1103,7 @@ module OCI
|
|
1090
1103
|
|
1091
1104
|
raise "Missing the required parameter 'mount_target_id' when calling update_mount_target." if mount_target_id.nil?
|
1092
1105
|
raise "Missing the required parameter 'update_mount_target_details' when calling update_mount_target." if update_mount_target_details.nil?
|
1106
|
+
raise "Parameter value for 'mount_target_id' must not be blank" if OCI::Internal::Util::blank_string?(mount_target_id)
|
1093
1107
|
|
1094
1108
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
1095
1109
|
|
data/lib/oci/global_context.rb
CHANGED
@@ -31,7 +31,9 @@ module OCI
|
|
31
31
|
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
32
32
|
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
33
33
|
# so that the instance principals signer can be provided to the client
|
34
|
-
|
34
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
35
|
+
# the details for the proxy can be provided in this parameter
|
36
|
+
def initialize(config: nil, region: nil, signer: nil, proxy_settings: nil)
|
35
37
|
# If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
|
36
38
|
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
37
39
|
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
@@ -47,7 +49,7 @@ module OCI
|
|
47
49
|
signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content)
|
48
50
|
end
|
49
51
|
|
50
|
-
@api_client = ApiClient.new(config, signer)
|
52
|
+
@api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
51
53
|
|
52
54
|
region ||= config.region
|
53
55
|
region ||= signer.region if signer.respond_to?(:region)
|
@@ -57,8 +59,8 @@ module OCI
|
|
57
59
|
# Set the region that will be used to determine the service endpoint.
|
58
60
|
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
59
61
|
# but may be an arbitrary string.
|
60
|
-
def region=(
|
61
|
-
@region =
|
62
|
+
def region=(new_region)
|
63
|
+
@region = new_region
|
62
64
|
|
63
65
|
raise 'A region must be specified.' unless @region
|
64
66
|
|
@@ -198,6 +200,7 @@ module OCI
|
|
198
200
|
|
199
201
|
raise "Missing the required parameter 'create_customer_secret_key_details' when calling create_customer_secret_key." if create_customer_secret_key_details.nil?
|
200
202
|
raise "Missing the required parameter 'user_id' when calling create_customer_secret_key." if user_id.nil?
|
203
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
201
204
|
|
202
205
|
path = "/users/{userId}/customerSecretKeys/".sub('{userId}', user_id.to_s)
|
203
206
|
|
@@ -411,6 +414,7 @@ module OCI
|
|
411
414
|
|
412
415
|
raise "Missing the required parameter 'create_idp_group_mapping_details' when calling create_idp_group_mapping." if create_idp_group_mapping_details.nil?
|
413
416
|
raise "Missing the required parameter 'identity_provider_id' when calling create_idp_group_mapping." if identity_provider_id.nil?
|
417
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
414
418
|
|
415
419
|
path = "/identityProviders/{identityProviderId}/groupMappings/".sub('{identityProviderId}', identity_provider_id.to_s)
|
416
420
|
|
@@ -460,6 +464,7 @@ module OCI
|
|
460
464
|
logger.debug "Calling operation IdentityClient#create_or_reset_ui_password." if logger
|
461
465
|
|
462
466
|
raise "Missing the required parameter 'user_id' when calling create_or_reset_ui_password." if user_id.nil?
|
467
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
463
468
|
|
464
469
|
path = "/users/{userId}/uiPassword".sub('{userId}', user_id.to_s)
|
465
470
|
|
@@ -556,6 +561,7 @@ module OCI
|
|
556
561
|
|
557
562
|
raise "Missing the required parameter 'create_region_subscription_details' when calling create_region_subscription." if create_region_subscription_details.nil?
|
558
563
|
raise "Missing the required parameter 'tenancy_id' when calling create_region_subscription." if tenancy_id.nil?
|
564
|
+
raise "Parameter value for 'tenancy_id' must not be blank" if OCI::Internal::Util::blank_string?(tenancy_id)
|
559
565
|
|
560
566
|
path = "/tenancies/{tenancyId}/regionSubscriptions".sub('{tenancyId}', tenancy_id.to_s)
|
561
567
|
|
@@ -600,6 +606,7 @@ module OCI
|
|
600
606
|
|
601
607
|
raise "Missing the required parameter 'create_smtp_credential_details' when calling create_smtp_credential." if create_smtp_credential_details.nil?
|
602
608
|
raise "Missing the required parameter 'user_id' when calling create_smtp_credential." if user_id.nil?
|
609
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
603
610
|
|
604
611
|
path = "/users/{userId}/smtpCredentials/".sub('{userId}', user_id.to_s)
|
605
612
|
|
@@ -650,6 +657,7 @@ module OCI
|
|
650
657
|
|
651
658
|
raise "Missing the required parameter 'create_swift_password_details' when calling create_swift_password." if create_swift_password_details.nil?
|
652
659
|
raise "Missing the required parameter 'user_id' when calling create_swift_password." if user_id.nil?
|
660
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
653
661
|
|
654
662
|
path = "/users/{userId}/swiftPasswords/".sub('{userId}', user_id.to_s)
|
655
663
|
|
@@ -703,6 +711,7 @@ module OCI
|
|
703
711
|
|
704
712
|
raise "Missing the required parameter 'tag_namespace_id' when calling create_tag." if tag_namespace_id.nil?
|
705
713
|
raise "Missing the required parameter 'create_tag_details' when calling create_tag." if create_tag_details.nil?
|
714
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
706
715
|
|
707
716
|
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
708
717
|
|
@@ -875,6 +884,8 @@ module OCI
|
|
875
884
|
|
876
885
|
raise "Missing the required parameter 'user_id' when calling delete_api_key." if user_id.nil?
|
877
886
|
raise "Missing the required parameter 'fingerprint' when calling delete_api_key." if fingerprint.nil?
|
887
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
888
|
+
raise "Parameter value for 'fingerprint' must not be blank" if OCI::Internal::Util::blank_string?(fingerprint)
|
878
889
|
|
879
890
|
path = "/users/{userId}/apiKeys/{fingerprint}".sub('{userId}', user_id.to_s).sub('{fingerprint}', fingerprint.to_s)
|
880
891
|
|
@@ -913,6 +924,8 @@ module OCI
|
|
913
924
|
|
914
925
|
raise "Missing the required parameter 'user_id' when calling delete_customer_secret_key." if user_id.nil?
|
915
926
|
raise "Missing the required parameter 'customer_secret_key_id' when calling delete_customer_secret_key." if customer_secret_key_id.nil?
|
927
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
928
|
+
raise "Parameter value for 'customer_secret_key_id' must not be blank" if OCI::Internal::Util::blank_string?(customer_secret_key_id)
|
916
929
|
|
917
930
|
path = "/users/{userId}/customerSecretKeys/{customerSecretKeyId}".sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
918
931
|
|
@@ -949,6 +962,7 @@ module OCI
|
|
949
962
|
logger.debug "Calling operation IdentityClient#delete_dynamic_group." if logger
|
950
963
|
|
951
964
|
raise "Missing the required parameter 'dynamic_group_id' when calling delete_dynamic_group." if dynamic_group_id.nil?
|
965
|
+
raise "Parameter value for 'dynamic_group_id' must not be blank" if OCI::Internal::Util::blank_string?(dynamic_group_id)
|
952
966
|
|
953
967
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
954
968
|
|
@@ -985,6 +999,7 @@ module OCI
|
|
985
999
|
logger.debug "Calling operation IdentityClient#delete_group." if logger
|
986
1000
|
|
987
1001
|
raise "Missing the required parameter 'group_id' when calling delete_group." if group_id.nil?
|
1002
|
+
raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util::blank_string?(group_id)
|
988
1003
|
|
989
1004
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
990
1005
|
|
@@ -1022,6 +1037,7 @@ module OCI
|
|
1022
1037
|
logger.debug "Calling operation IdentityClient#delete_identity_provider." if logger
|
1023
1038
|
|
1024
1039
|
raise "Missing the required parameter 'identity_provider_id' when calling delete_identity_provider." if identity_provider_id.nil?
|
1040
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
1025
1041
|
|
1026
1042
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
1027
1043
|
|
@@ -1059,6 +1075,8 @@ module OCI
|
|
1059
1075
|
|
1060
1076
|
raise "Missing the required parameter 'identity_provider_id' when calling delete_idp_group_mapping." if identity_provider_id.nil?
|
1061
1077
|
raise "Missing the required parameter 'mapping_id' when calling delete_idp_group_mapping." if mapping_id.nil?
|
1078
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
1079
|
+
raise "Parameter value for 'mapping_id' must not be blank" if OCI::Internal::Util::blank_string?(mapping_id)
|
1062
1080
|
|
1063
1081
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1064
1082
|
|
@@ -1094,6 +1112,7 @@ module OCI
|
|
1094
1112
|
logger.debug "Calling operation IdentityClient#delete_policy." if logger
|
1095
1113
|
|
1096
1114
|
raise "Missing the required parameter 'policy_id' when calling delete_policy." if policy_id.nil?
|
1115
|
+
raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_id)
|
1097
1116
|
|
1098
1117
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
1099
1118
|
|
@@ -1132,6 +1151,8 @@ module OCI
|
|
1132
1151
|
|
1133
1152
|
raise "Missing the required parameter 'user_id' when calling delete_smtp_credential." if user_id.nil?
|
1134
1153
|
raise "Missing the required parameter 'smtp_credential_id' when calling delete_smtp_credential." if smtp_credential_id.nil?
|
1154
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1155
|
+
raise "Parameter value for 'smtp_credential_id' must not be blank" if OCI::Internal::Util::blank_string?(smtp_credential_id)
|
1135
1156
|
|
1136
1157
|
path = "/users/{userId}/smtpCredentials/{smtpCredentialId}".sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
1137
1158
|
|
@@ -1170,6 +1191,8 @@ module OCI
|
|
1170
1191
|
|
1171
1192
|
raise "Missing the required parameter 'user_id' when calling delete_swift_password." if user_id.nil?
|
1172
1193
|
raise "Missing the required parameter 'swift_password_id' when calling delete_swift_password." if swift_password_id.nil?
|
1194
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1195
|
+
raise "Parameter value for 'swift_password_id' must not be blank" if OCI::Internal::Util::blank_string?(swift_password_id)
|
1173
1196
|
|
1174
1197
|
path = "/users/{userId}/swiftPasswords/{swiftPasswordId}".sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
1175
1198
|
|
@@ -1205,6 +1228,7 @@ module OCI
|
|
1205
1228
|
logger.debug "Calling operation IdentityClient#delete_user." if logger
|
1206
1229
|
|
1207
1230
|
raise "Missing the required parameter 'user_id' when calling delete_user." if user_id.nil?
|
1231
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1208
1232
|
|
1209
1233
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
1210
1234
|
|
@@ -1244,6 +1268,7 @@ module OCI
|
|
1244
1268
|
logger.debug "Calling operation IdentityClient#get_compartment." if logger
|
1245
1269
|
|
1246
1270
|
raise "Missing the required parameter 'compartment_id' when calling get_compartment." if compartment_id.nil?
|
1271
|
+
raise "Parameter value for 'compartment_id' must not be blank" if OCI::Internal::Util::blank_string?(compartment_id)
|
1247
1272
|
|
1248
1273
|
path = "/compartments/{compartmentId}".sub('{compartmentId}', compartment_id.to_s)
|
1249
1274
|
|
@@ -1276,6 +1301,7 @@ module OCI
|
|
1276
1301
|
logger.debug "Calling operation IdentityClient#get_dynamic_group." if logger
|
1277
1302
|
|
1278
1303
|
raise "Missing the required parameter 'dynamic_group_id' when calling get_dynamic_group." if dynamic_group_id.nil?
|
1304
|
+
raise "Parameter value for 'dynamic_group_id' must not be blank" if OCI::Internal::Util::blank_string?(dynamic_group_id)
|
1279
1305
|
|
1280
1306
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
1281
1307
|
|
@@ -1312,6 +1338,7 @@ module OCI
|
|
1312
1338
|
logger.debug "Calling operation IdentityClient#get_group." if logger
|
1313
1339
|
|
1314
1340
|
raise "Missing the required parameter 'group_id' when calling get_group." if group_id.nil?
|
1341
|
+
raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util::blank_string?(group_id)
|
1315
1342
|
|
1316
1343
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
1317
1344
|
|
@@ -1343,6 +1370,7 @@ module OCI
|
|
1343
1370
|
logger.debug "Calling operation IdentityClient#get_identity_provider." if logger
|
1344
1371
|
|
1345
1372
|
raise "Missing the required parameter 'identity_provider_id' when calling get_identity_provider." if identity_provider_id.nil?
|
1373
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
1346
1374
|
|
1347
1375
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
1348
1376
|
|
@@ -1376,6 +1404,8 @@ module OCI
|
|
1376
1404
|
|
1377
1405
|
raise "Missing the required parameter 'identity_provider_id' when calling get_idp_group_mapping." if identity_provider_id.nil?
|
1378
1406
|
raise "Missing the required parameter 'mapping_id' when calling get_idp_group_mapping." if mapping_id.nil?
|
1407
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
1408
|
+
raise "Parameter value for 'mapping_id' must not be blank" if OCI::Internal::Util::blank_string?(mapping_id)
|
1379
1409
|
|
1380
1410
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1381
1411
|
|
@@ -1407,6 +1437,7 @@ module OCI
|
|
1407
1437
|
logger.debug "Calling operation IdentityClient#get_policy." if logger
|
1408
1438
|
|
1409
1439
|
raise "Missing the required parameter 'policy_id' when calling get_policy." if policy_id.nil?
|
1440
|
+
raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_id)
|
1410
1441
|
|
1411
1442
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
1412
1443
|
|
@@ -1442,6 +1473,8 @@ module OCI
|
|
1442
1473
|
|
1443
1474
|
raise "Missing the required parameter 'tag_namespace_id' when calling get_tag." if tag_namespace_id.nil?
|
1444
1475
|
raise "Missing the required parameter 'tag_name' when calling get_tag." if tag_name.nil?
|
1476
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
1477
|
+
raise "Parameter value for 'tag_name' must not be blank" if OCI::Internal::Util::blank_string?(tag_name)
|
1445
1478
|
|
1446
1479
|
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
1447
1480
|
|
@@ -1475,6 +1508,7 @@ module OCI
|
|
1475
1508
|
logger.debug "Calling operation IdentityClient#get_tag_namespace." if logger
|
1476
1509
|
|
1477
1510
|
raise "Missing the required parameter 'tag_namespace_id' when calling get_tag_namespace." if tag_namespace_id.nil?
|
1511
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
1478
1512
|
|
1479
1513
|
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
1480
1514
|
|
@@ -1506,6 +1540,7 @@ module OCI
|
|
1506
1540
|
logger.debug "Calling operation IdentityClient#get_tenancy." if logger
|
1507
1541
|
|
1508
1542
|
raise "Missing the required parameter 'tenancy_id' when calling get_tenancy." if tenancy_id.nil?
|
1543
|
+
raise "Parameter value for 'tenancy_id' must not be blank" if OCI::Internal::Util::blank_string?(tenancy_id)
|
1509
1544
|
|
1510
1545
|
path = "/tenancies/{tenancyId}".sub('{tenancyId}', tenancy_id.to_s)
|
1511
1546
|
|
@@ -1537,6 +1572,7 @@ module OCI
|
|
1537
1572
|
logger.debug "Calling operation IdentityClient#get_user." if logger
|
1538
1573
|
|
1539
1574
|
raise "Missing the required parameter 'user_id' when calling get_user." if user_id.nil?
|
1575
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1540
1576
|
|
1541
1577
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
1542
1578
|
|
@@ -1568,6 +1604,7 @@ module OCI
|
|
1568
1604
|
logger.debug "Calling operation IdentityClient#get_user_group_membership." if logger
|
1569
1605
|
|
1570
1606
|
raise "Missing the required parameter 'user_group_membership_id' when calling get_user_group_membership." if user_group_membership_id.nil?
|
1607
|
+
raise "Parameter value for 'user_group_membership_id' must not be blank" if OCI::Internal::Util::blank_string?(user_group_membership_id)
|
1571
1608
|
|
1572
1609
|
path = "/userGroupMemberships/{userGroupMembershipId}".sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
1573
1610
|
|
@@ -1603,6 +1640,7 @@ module OCI
|
|
1603
1640
|
logger.debug "Calling operation IdentityClient#list_api_keys." if logger
|
1604
1641
|
|
1605
1642
|
raise "Missing the required parameter 'user_id' when calling list_api_keys." if user_id.nil?
|
1643
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1606
1644
|
|
1607
1645
|
path = "/users/{userId}/apiKeys/".sub('{userId}', user_id.to_s)
|
1608
1646
|
|
@@ -1714,6 +1752,7 @@ module OCI
|
|
1714
1752
|
logger.debug "Calling operation IdentityClient#list_customer_secret_keys." if logger
|
1715
1753
|
|
1716
1754
|
raise "Missing the required parameter 'user_id' when calling list_customer_secret_keys." if user_id.nil?
|
1755
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
1717
1756
|
|
1718
1757
|
path = "/users/{userId}/customerSecretKeys/".sub('{userId}', user_id.to_s)
|
1719
1758
|
|
@@ -1884,6 +1923,7 @@ module OCI
|
|
1884
1923
|
logger.debug "Calling operation IdentityClient#list_idp_group_mappings." if logger
|
1885
1924
|
|
1886
1925
|
raise "Missing the required parameter 'identity_provider_id' when calling list_idp_group_mappings." if identity_provider_id.nil?
|
1926
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
1887
1927
|
|
1888
1928
|
path = "/identityProviders/{identityProviderId}/groupMappings/".sub('{identityProviderId}', identity_provider_id.to_s)
|
1889
1929
|
|
@@ -1961,6 +2001,7 @@ module OCI
|
|
1961
2001
|
logger.debug "Calling operation IdentityClient#list_region_subscriptions." if logger
|
1962
2002
|
|
1963
2003
|
raise "Missing the required parameter 'tenancy_id' when calling list_region_subscriptions." if tenancy_id.nil?
|
2004
|
+
raise "Parameter value for 'tenancy_id' must not be blank" if OCI::Internal::Util::blank_string?(tenancy_id)
|
1964
2005
|
|
1965
2006
|
path = "/tenancies/{tenancyId}/regionSubscriptions".sub('{tenancyId}', tenancy_id.to_s)
|
1966
2007
|
|
@@ -2023,6 +2064,7 @@ module OCI
|
|
2023
2064
|
logger.debug "Calling operation IdentityClient#list_smtp_credentials." if logger
|
2024
2065
|
|
2025
2066
|
raise "Missing the required parameter 'user_id' when calling list_smtp_credentials." if user_id.nil?
|
2067
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2026
2068
|
|
2027
2069
|
path = "/users/{userId}/smtpCredentials/".sub('{userId}', user_id.to_s)
|
2028
2070
|
|
@@ -2056,6 +2098,7 @@ module OCI
|
|
2056
2098
|
logger.debug "Calling operation IdentityClient#list_swift_passwords." if logger
|
2057
2099
|
|
2058
2100
|
raise "Missing the required parameter 'user_id' when calling list_swift_passwords." if user_id.nil?
|
2101
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2059
2102
|
|
2060
2103
|
path = "/users/{userId}/swiftPasswords/".sub('{userId}', user_id.to_s)
|
2061
2104
|
|
@@ -2137,6 +2180,7 @@ module OCI
|
|
2137
2180
|
logger.debug "Calling operation IdentityClient#list_tags." if logger
|
2138
2181
|
|
2139
2182
|
raise "Missing the required parameter 'tag_namespace_id' when calling list_tags." if tag_namespace_id.nil?
|
2183
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
2140
2184
|
|
2141
2185
|
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2142
2186
|
|
@@ -2269,6 +2313,7 @@ module OCI
|
|
2269
2313
|
logger.debug "Calling operation IdentityClient#remove_user_from_group." if logger
|
2270
2314
|
|
2271
2315
|
raise "Missing the required parameter 'user_group_membership_id' when calling remove_user_from_group." if user_group_membership_id.nil?
|
2316
|
+
raise "Parameter value for 'user_group_membership_id' must not be blank" if OCI::Internal::Util::blank_string?(user_group_membership_id)
|
2272
2317
|
|
2273
2318
|
path = "/userGroupMemberships/{userGroupMembershipId}".sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
2274
2319
|
|
@@ -2306,6 +2351,7 @@ module OCI
|
|
2306
2351
|
|
2307
2352
|
raise "Missing the required parameter 'compartment_id' when calling update_compartment." if compartment_id.nil?
|
2308
2353
|
raise "Missing the required parameter 'update_compartment_details' when calling update_compartment." if update_compartment_details.nil?
|
2354
|
+
raise "Parameter value for 'compartment_id' must not be blank" if OCI::Internal::Util::blank_string?(compartment_id)
|
2309
2355
|
|
2310
2356
|
path = "/compartments/{compartmentId}".sub('{compartmentId}', compartment_id.to_s)
|
2311
2357
|
|
@@ -2347,6 +2393,8 @@ module OCI
|
|
2347
2393
|
raise "Missing the required parameter 'user_id' when calling update_customer_secret_key." if user_id.nil?
|
2348
2394
|
raise "Missing the required parameter 'customer_secret_key_id' when calling update_customer_secret_key." if customer_secret_key_id.nil?
|
2349
2395
|
raise "Missing the required parameter 'update_customer_secret_key_details' when calling update_customer_secret_key." if update_customer_secret_key_details.nil?
|
2396
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2397
|
+
raise "Parameter value for 'customer_secret_key_id' must not be blank" if OCI::Internal::Util::blank_string?(customer_secret_key_id)
|
2350
2398
|
|
2351
2399
|
path = "/users/{userId}/customerSecretKeys/{customerSecretKeyId}".sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
2352
2400
|
|
@@ -2385,6 +2433,7 @@ module OCI
|
|
2385
2433
|
|
2386
2434
|
raise "Missing the required parameter 'dynamic_group_id' when calling update_dynamic_group." if dynamic_group_id.nil?
|
2387
2435
|
raise "Missing the required parameter 'update_dynamic_group_details' when calling update_dynamic_group." if update_dynamic_group_details.nil?
|
2436
|
+
raise "Parameter value for 'dynamic_group_id' must not be blank" if OCI::Internal::Util::blank_string?(dynamic_group_id)
|
2388
2437
|
|
2389
2438
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
2390
2439
|
|
@@ -2423,6 +2472,7 @@ module OCI
|
|
2423
2472
|
|
2424
2473
|
raise "Missing the required parameter 'group_id' when calling update_group." if group_id.nil?
|
2425
2474
|
raise "Missing the required parameter 'update_group_details' when calling update_group." if update_group_details.nil?
|
2475
|
+
raise "Parameter value for 'group_id' must not be blank" if OCI::Internal::Util::blank_string?(group_id)
|
2426
2476
|
|
2427
2477
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
2428
2478
|
|
@@ -2461,6 +2511,7 @@ module OCI
|
|
2461
2511
|
|
2462
2512
|
raise "Missing the required parameter 'identity_provider_id' when calling update_identity_provider." if identity_provider_id.nil?
|
2463
2513
|
raise "Missing the required parameter 'update_identity_provider_details' when calling update_identity_provider." if update_identity_provider_details.nil?
|
2514
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
2464
2515
|
|
2465
2516
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
2466
2517
|
|
@@ -2501,6 +2552,8 @@ module OCI
|
|
2501
2552
|
raise "Missing the required parameter 'identity_provider_id' when calling update_idp_group_mapping." if identity_provider_id.nil?
|
2502
2553
|
raise "Missing the required parameter 'mapping_id' when calling update_idp_group_mapping." if mapping_id.nil?
|
2503
2554
|
raise "Missing the required parameter 'update_idp_group_mapping_details' when calling update_idp_group_mapping." if update_idp_group_mapping_details.nil?
|
2555
|
+
raise "Parameter value for 'identity_provider_id' must not be blank" if OCI::Internal::Util::blank_string?(identity_provider_id)
|
2556
|
+
raise "Parameter value for 'mapping_id' must not be blank" if OCI::Internal::Util::blank_string?(mapping_id)
|
2504
2557
|
|
2505
2558
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
2506
2559
|
|
@@ -2542,6 +2595,7 @@ module OCI
|
|
2542
2595
|
|
2543
2596
|
raise "Missing the required parameter 'policy_id' when calling update_policy." if policy_id.nil?
|
2544
2597
|
raise "Missing the required parameter 'update_policy_details' when calling update_policy." if update_policy_details.nil?
|
2598
|
+
raise "Parameter value for 'policy_id' must not be blank" if OCI::Internal::Util::blank_string?(policy_id)
|
2545
2599
|
|
2546
2600
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
2547
2601
|
|
@@ -2583,6 +2637,8 @@ module OCI
|
|
2583
2637
|
raise "Missing the required parameter 'user_id' when calling update_smtp_credential." if user_id.nil?
|
2584
2638
|
raise "Missing the required parameter 'smtp_credential_id' when calling update_smtp_credential." if smtp_credential_id.nil?
|
2585
2639
|
raise "Missing the required parameter 'update_smtp_credential_details' when calling update_smtp_credential." if update_smtp_credential_details.nil?
|
2640
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2641
|
+
raise "Parameter value for 'smtp_credential_id' must not be blank" if OCI::Internal::Util::blank_string?(smtp_credential_id)
|
2586
2642
|
|
2587
2643
|
path = "/users/{userId}/smtpCredentials/{smtpCredentialId}".sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
2588
2644
|
|
@@ -2624,6 +2680,8 @@ module OCI
|
|
2624
2680
|
raise "Missing the required parameter 'user_id' when calling update_swift_password." if user_id.nil?
|
2625
2681
|
raise "Missing the required parameter 'swift_password_id' when calling update_swift_password." if swift_password_id.nil?
|
2626
2682
|
raise "Missing the required parameter 'update_swift_password_details' when calling update_swift_password." if update_swift_password_details.nil?
|
2683
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2684
|
+
raise "Parameter value for 'swift_password_id' must not be blank" if OCI::Internal::Util::blank_string?(swift_password_id)
|
2627
2685
|
|
2628
2686
|
path = "/users/{userId}/swiftPasswords/{swiftPasswordId}".sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
2629
2687
|
|
@@ -2663,6 +2721,8 @@ module OCI
|
|
2663
2721
|
raise "Missing the required parameter 'tag_namespace_id' when calling update_tag." if tag_namespace_id.nil?
|
2664
2722
|
raise "Missing the required parameter 'tag_name' when calling update_tag." if tag_name.nil?
|
2665
2723
|
raise "Missing the required parameter 'update_tag_details' when calling update_tag." if update_tag_details.nil?
|
2724
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
2725
|
+
raise "Parameter value for 'tag_name' must not be blank" if OCI::Internal::Util::blank_string?(tag_name)
|
2666
2726
|
|
2667
2727
|
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
2668
2728
|
|
@@ -2706,6 +2766,7 @@ module OCI
|
|
2706
2766
|
|
2707
2767
|
raise "Missing the required parameter 'tag_namespace_id' when calling update_tag_namespace." if tag_namespace_id.nil?
|
2708
2768
|
raise "Missing the required parameter 'update_tag_namespace_details' when calling update_tag_namespace." if update_tag_namespace_details.nil?
|
2769
|
+
raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util::blank_string?(tag_namespace_id)
|
2709
2770
|
|
2710
2771
|
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2711
2772
|
|
@@ -2743,6 +2804,7 @@ module OCI
|
|
2743
2804
|
|
2744
2805
|
raise "Missing the required parameter 'user_id' when calling update_user." if user_id.nil?
|
2745
2806
|
raise "Missing the required parameter 'update_user_details' when calling update_user." if update_user_details.nil?
|
2807
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2746
2808
|
|
2747
2809
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
2748
2810
|
|
@@ -2782,6 +2844,7 @@ module OCI
|
|
2782
2844
|
|
2783
2845
|
raise "Missing the required parameter 'user_id' when calling update_user_state." if user_id.nil?
|
2784
2846
|
raise "Missing the required parameter 'update_state_details' when calling update_user_state." if update_state_details.nil?
|
2847
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2785
2848
|
|
2786
2849
|
path = "/users/{userId}/state/".sub('{userId}', user_id.to_s)
|
2787
2850
|
|
@@ -2837,6 +2900,7 @@ module OCI
|
|
2837
2900
|
|
2838
2901
|
raise "Missing the required parameter 'user_id' when calling upload_api_key." if user_id.nil?
|
2839
2902
|
raise "Missing the required parameter 'create_api_key_details' when calling upload_api_key." if create_api_key_details.nil?
|
2903
|
+
raise "Parameter value for 'user_id' must not be blank" if OCI::Internal::Util::blank_string?(user_id)
|
2840
2904
|
|
2841
2905
|
path = "/users/{userId}/apiKeys/".sub('{userId}', user_id.to_s)
|
2842
2906
|
|