oci 2.0.9 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +179 -10
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +186 -64
  5. data/lib/oci/api_client_proxy_settings.rb +71 -0
  6. data/lib/oci/audit/audit_client.rb +6 -4
  7. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +1 -1
  8. data/lib/oci/core/blockstorage_client.rb +18 -4
  9. data/lib/oci/core/compute_client.rb +27 -4
  10. data/lib/oci/core/core.rb +5 -0
  11. data/lib/oci/core/models/connect_remote_peering_connections_details.rb +149 -0
  12. data/lib/oci/core/models/create_remote_peering_connection_details.rb +165 -0
  13. data/lib/oci/core/models/peer_region_for_remote_peering.rb +125 -0
  14. data/lib/oci/core/models/remote_peering_connection.rb +362 -0
  15. data/lib/oci/core/models/update_remote_peering_connection_details.rb +129 -0
  16. data/lib/oci/core/virtual_network_client.rb +334 -4
  17. data/lib/oci/database/database_client.rb +41 -4
  18. data/lib/oci/database/models/db_system.rb +1 -1
  19. data/lib/oci/database/models/db_system_shape_summary.rb +74 -2
  20. data/lib/oci/database/models/db_system_summary.rb +1 -1
  21. data/lib/oci/dns/dns_client.rb +32 -4
  22. data/lib/oci/email/email_client.rb +10 -4
  23. data/lib/oci/errors.rb +115 -19
  24. data/lib/oci/file_storage/file_storage_client.rb +18 -4
  25. data/lib/oci/global_context.rb +2 -2
  26. data/lib/oci/identity/identity_client.rb +68 -4
  27. data/lib/oci/identity/models/create_region_subscription_details.rb +1 -0
  28. data/lib/oci/identity/models/region.rb +2 -0
  29. data/lib/oci/identity/models/region_subscription.rb +2 -0
  30. data/lib/oci/identity/models/tenancy.rb +3 -1
  31. data/lib/oci/internal/util.rb +5 -0
  32. data/lib/oci/load_balancer/load_balancer_client.rb +59 -4
  33. data/lib/oci/object_storage/object_storage_client.rb +62 -4
  34. data/lib/oci/regions.rb +4 -2
  35. data/lib/oci/version.rb +1 -1
  36. metadata +8 -2
@@ -10,6 +10,7 @@ module OCI
10
10
  # - `PHX`
11
11
  # - `IAD`
12
12
  # - `FRA`
13
+ # - `LHR`
13
14
  #
14
15
  # Example: `PHX`
15
16
  #
@@ -18,6 +18,7 @@ module OCI
18
18
  # - `PHX`
19
19
  # - `IAD`
20
20
  # - `FRA`
21
+ # - `LHR`
21
22
  #
22
23
  # @return [String]
23
24
  attr_accessor :key
@@ -28,6 +29,7 @@ module OCI
28
29
  # - `us-phoenix-1`
29
30
  # - `us-ashburn-1`
30
31
  # - `eu-frankfurt-1`
32
+ # - `uk-london-1`
31
33
  #
32
34
  # @return [String]
33
35
  attr_accessor :name
@@ -22,6 +22,7 @@ module OCI
22
22
  # - `PHX`
23
23
  # - `IAD`
24
24
  # - `FRA`
25
+ # - `LHR`
25
26
  #
26
27
  # @return [String]
27
28
  attr_accessor :region_key
@@ -32,6 +33,7 @@ module OCI
32
33
  # - `us-phoenix-1`
33
34
  # - `us-ashburn-1`
34
35
  # - `eu-frankurt-1`
36
+ # - `uk-london-1`
35
37
  #
36
38
  # @return [String]
37
39
  attr_accessor :region_name
@@ -25,12 +25,14 @@ module OCI
25
25
  # @return [String]
26
26
  attr_accessor :description
27
27
 
28
- # The region key for the tenancy's home region.
28
+ # The region key for the tenancy's home region. For more information about regions, see
29
+ # [Regions and Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
29
30
  #
30
31
  # Allowed values are:
31
32
  # - `IAD`
32
33
  # - `PHX`
33
34
  # - `FRA`
35
+ # - `LHR`
34
36
  #
35
37
  # @return [String]
36
38
  attr_accessor :home_region_key
@@ -4,6 +4,11 @@ module OCI
4
4
  module Internal
5
5
  # Utility methods for internal use only.
6
6
  module Util
7
+ BLANK_STRING_REGEX = /\A[[:space:]]*\z/
8
+ def self.blank_string?(str)
9
+ str.nil? || str.empty? || !BLANK_STRING_REGEX.match(str).nil?
10
+ end
11
+
7
12
  # Convert data to the given type. This is part of the conversion from strings representing
8
13
  # json, where the data that is passed in should already have been converted using JSON.parse.
9
14
  # That will give us arrays and hashes, but will not set the correct data types.
@@ -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
- def initialize(config:nil, region:nil, signer:nil)
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=(r)
61
- @region = r
62
+ def region=(new_region)
63
+ @region = new_region
62
64
 
63
65
  raise 'A region must be specified.' unless @region
64
66
 
@@ -96,6 +98,8 @@ module OCI
96
98
  raise "Missing the required parameter 'create_backend_details' when calling create_backend." if create_backend_details.nil?
97
99
  raise "Missing the required parameter 'load_balancer_id' when calling create_backend." if load_balancer_id.nil?
98
100
  raise "Missing the required parameter 'backend_set_name' when calling create_backend." if backend_set_name.nil?
101
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
102
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
99
103
 
100
104
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
101
105
 
@@ -139,6 +143,7 @@ module OCI
139
143
 
140
144
  raise "Missing the required parameter 'create_backend_set_details' when calling create_backend_set." if create_backend_set_details.nil?
141
145
  raise "Missing the required parameter 'load_balancer_id' when calling create_backend_set." if load_balancer_id.nil?
146
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
142
147
 
143
148
  path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
144
149
 
@@ -182,6 +187,7 @@ module OCI
182
187
 
183
188
  raise "Missing the required parameter 'create_certificate_details' when calling create_certificate." if create_certificate_details.nil?
184
189
  raise "Missing the required parameter 'load_balancer_id' when calling create_certificate." if load_balancer_id.nil?
190
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
185
191
 
186
192
  path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
187
193
 
@@ -225,6 +231,7 @@ module OCI
225
231
 
226
232
  raise "Missing the required parameter 'create_listener_details' when calling create_listener." if create_listener_details.nil?
227
233
  raise "Missing the required parameter 'load_balancer_id' when calling create_listener." if load_balancer_id.nil?
234
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
228
235
 
229
236
  path = "/loadBalancers/{loadBalancerId}/listeners".sub('{loadBalancerId}', load_balancer_id.to_s)
230
237
 
@@ -338,6 +345,7 @@ module OCI
338
345
 
339
346
  raise "Missing the required parameter 'create_path_route_set_details' when calling create_path_route_set." if create_path_route_set_details.nil?
340
347
  raise "Missing the required parameter 'load_balancer_id' when calling create_path_route_set." if load_balancer_id.nil?
348
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
341
349
 
342
350
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets".sub('{loadBalancerId}', load_balancer_id.to_s)
343
351
 
@@ -383,6 +391,9 @@ module OCI
383
391
  raise "Missing the required parameter 'load_balancer_id' when calling delete_backend." if load_balancer_id.nil?
384
392
  raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
385
393
  raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
394
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
395
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
396
+ raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_name)
386
397
 
387
398
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
388
399
 
@@ -425,6 +436,8 @@ module OCI
425
436
 
426
437
  raise "Missing the required parameter 'load_balancer_id' when calling delete_backend_set." if load_balancer_id.nil?
427
438
  raise "Missing the required parameter 'backend_set_name' when calling delete_backend_set." if backend_set_name.nil?
439
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
440
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
428
441
 
429
442
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
430
443
 
@@ -464,6 +477,8 @@ module OCI
464
477
 
465
478
  raise "Missing the required parameter 'load_balancer_id' when calling delete_certificate." if load_balancer_id.nil?
466
479
  raise "Missing the required parameter 'certificate_name' when calling delete_certificate." if certificate_name.nil?
480
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
481
+ raise "Parameter value for 'certificate_name' must not be blank" if OCI::Internal::Util::blank_string?(certificate_name)
467
482
 
468
483
  path = "/loadBalancers/{loadBalancerId}/certificates/{certificateName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{certificateName}', certificate_name.to_s)
469
484
 
@@ -503,6 +518,8 @@ module OCI
503
518
 
504
519
  raise "Missing the required parameter 'load_balancer_id' when calling delete_listener." if load_balancer_id.nil?
505
520
  raise "Missing the required parameter 'listener_name' when calling delete_listener." if listener_name.nil?
521
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
522
+ raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util::blank_string?(listener_name)
506
523
 
507
524
  path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
508
525
 
@@ -537,6 +554,7 @@ module OCI
537
554
  logger.debug "Calling operation LoadBalancerClient#delete_load_balancer." if logger
538
555
 
539
556
  raise "Missing the required parameter 'load_balancer_id' when calling delete_load_balancer." if load_balancer_id.nil?
557
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
540
558
 
541
559
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
542
560
 
@@ -580,6 +598,8 @@ module OCI
580
598
 
581
599
  raise "Missing the required parameter 'load_balancer_id' when calling delete_path_route_set." if load_balancer_id.nil?
582
600
  raise "Missing the required parameter 'path_route_set_name' when calling delete_path_route_set." if path_route_set_name.nil?
601
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
602
+ raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util::blank_string?(path_route_set_name)
583
603
 
584
604
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
585
605
 
@@ -624,6 +644,9 @@ module OCI
624
644
  raise "Missing the required parameter 'load_balancer_id' when calling get_backend." if load_balancer_id.nil?
625
645
  raise "Missing the required parameter 'backend_set_name' when calling get_backend." if backend_set_name.nil?
626
646
  raise "Missing the required parameter 'backend_name' when calling get_backend." if backend_name.nil?
647
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
648
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
649
+ raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_name)
627
650
 
628
651
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
629
652
 
@@ -669,6 +692,9 @@ module OCI
669
692
  raise "Missing the required parameter 'load_balancer_id' when calling get_backend_health." if load_balancer_id.nil?
670
693
  raise "Missing the required parameter 'backend_set_name' when calling get_backend_health." if backend_set_name.nil?
671
694
  raise "Missing the required parameter 'backend_name' when calling get_backend_health." if backend_name.nil?
695
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
696
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
697
+ raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_name)
672
698
 
673
699
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
674
700
 
@@ -709,6 +735,8 @@ module OCI
709
735
 
710
736
  raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set." if load_balancer_id.nil?
711
737
  raise "Missing the required parameter 'backend_set_name' when calling get_backend_set." if backend_set_name.nil?
738
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
739
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
712
740
 
713
741
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
714
742
 
@@ -749,6 +777,8 @@ module OCI
749
777
 
750
778
  raise "Missing the required parameter 'load_balancer_id' when calling get_backend_set_health." if load_balancer_id.nil?
751
779
  raise "Missing the required parameter 'backend_set_name' when calling get_backend_set_health." if backend_set_name.nil?
780
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
781
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
752
782
 
753
783
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/health".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
754
784
 
@@ -789,6 +819,8 @@ module OCI
789
819
 
790
820
  raise "Missing the required parameter 'load_balancer_id' when calling get_health_checker." if load_balancer_id.nil?
791
821
  raise "Missing the required parameter 'backend_set_name' when calling get_health_checker." if backend_set_name.nil?
822
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
823
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
792
824
 
793
825
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
794
826
 
@@ -824,6 +856,7 @@ module OCI
824
856
  logger.debug "Calling operation LoadBalancerClient#get_load_balancer." if logger
825
857
 
826
858
  raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer." if load_balancer_id.nil?
859
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
827
860
 
828
861
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
829
862
 
@@ -859,6 +892,7 @@ module OCI
859
892
  logger.debug "Calling operation LoadBalancerClient#get_load_balancer_health." if logger
860
893
 
861
894
  raise "Missing the required parameter 'load_balancer_id' when calling get_load_balancer_health." if load_balancer_id.nil?
895
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
862
896
 
863
897
  path = "/loadBalancers/{loadBalancerId}/health".sub('{loadBalancerId}', load_balancer_id.to_s)
864
898
 
@@ -899,6 +933,8 @@ module OCI
899
933
 
900
934
  raise "Missing the required parameter 'load_balancer_id' when calling get_path_route_set." if load_balancer_id.nil?
901
935
  raise "Missing the required parameter 'path_route_set_name' when calling get_path_route_set." if path_route_set_name.nil?
936
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
937
+ raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util::blank_string?(path_route_set_name)
902
938
 
903
939
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
904
940
 
@@ -934,6 +970,7 @@ module OCI
934
970
  logger.debug "Calling operation LoadBalancerClient#get_work_request." if logger
935
971
 
936
972
  raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
973
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util::blank_string?(work_request_id)
937
974
 
938
975
  path = "/loadBalancerWorkRequests/{workRequestId}".sub('{workRequestId}', work_request_id.to_s)
939
976
 
@@ -969,6 +1006,7 @@ module OCI
969
1006
  logger.debug "Calling operation LoadBalancerClient#list_backend_sets." if logger
970
1007
 
971
1008
  raise "Missing the required parameter 'load_balancer_id' when calling list_backend_sets." if load_balancer_id.nil?
1009
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
972
1010
 
973
1011
  path = "/loadBalancers/{loadBalancerId}/backendSets".sub('{loadBalancerId}', load_balancer_id.to_s)
974
1012
 
@@ -1009,6 +1047,8 @@ module OCI
1009
1047
 
1010
1048
  raise "Missing the required parameter 'load_balancer_id' when calling list_backends." if load_balancer_id.nil?
1011
1049
  raise "Missing the required parameter 'backend_set_name' when calling list_backends." if backend_set_name.nil?
1050
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1051
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
1012
1052
 
1013
1053
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1014
1054
 
@@ -1044,6 +1084,7 @@ module OCI
1044
1084
  logger.debug "Calling operation LoadBalancerClient#list_certificates." if logger
1045
1085
 
1046
1086
  raise "Missing the required parameter 'load_balancer_id' when calling list_certificates." if load_balancer_id.nil?
1087
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1047
1088
 
1048
1089
  path = "/loadBalancers/{loadBalancerId}/certificates".sub('{loadBalancerId}', load_balancer_id.to_s)
1049
1090
 
@@ -1205,6 +1246,7 @@ module OCI
1205
1246
  logger.debug "Calling operation LoadBalancerClient#list_path_route_sets." if logger
1206
1247
 
1207
1248
  raise "Missing the required parameter 'load_balancer_id' when calling list_path_route_sets." if load_balancer_id.nil?
1249
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1208
1250
 
1209
1251
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets".sub('{loadBalancerId}', load_balancer_id.to_s)
1210
1252
 
@@ -1386,6 +1428,7 @@ module OCI
1386
1428
  logger.debug "Calling operation LoadBalancerClient#list_work_requests." if logger
1387
1429
 
1388
1430
  raise "Missing the required parameter 'load_balancer_id' when calling list_work_requests." if load_balancer_id.nil?
1431
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1389
1432
 
1390
1433
  path = "/loadBalancers/{loadBalancerId}/workRequests".sub('{loadBalancerId}', load_balancer_id.to_s)
1391
1434
 
@@ -1441,6 +1484,9 @@ module OCI
1441
1484
  raise "Missing the required parameter 'load_balancer_id' when calling update_backend." if load_balancer_id.nil?
1442
1485
  raise "Missing the required parameter 'backend_set_name' when calling update_backend." if backend_set_name.nil?
1443
1486
  raise "Missing the required parameter 'backend_name' when calling update_backend." if backend_name.nil?
1487
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1488
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
1489
+ raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_name)
1444
1490
 
1445
1491
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
1446
1492
 
@@ -1489,6 +1535,8 @@ module OCI
1489
1535
  raise "Missing the required parameter 'update_backend_set_details' when calling update_backend_set." if update_backend_set_details.nil?
1490
1536
  raise "Missing the required parameter 'load_balancer_id' when calling update_backend_set." if load_balancer_id.nil?
1491
1537
  raise "Missing the required parameter 'backend_set_name' when calling update_backend_set." if backend_set_name.nil?
1538
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1539
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
1492
1540
 
1493
1541
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1494
1542
 
@@ -1537,6 +1585,8 @@ module OCI
1537
1585
  raise "Missing the required parameter 'health_checker' when calling update_health_checker." if health_checker.nil?
1538
1586
  raise "Missing the required parameter 'load_balancer_id' when calling update_health_checker." if load_balancer_id.nil?
1539
1587
  raise "Missing the required parameter 'backend_set_name' when calling update_health_checker." if backend_set_name.nil?
1588
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1589
+ raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util::blank_string?(backend_set_name)
1540
1590
 
1541
1591
  path = "/loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/healthChecker".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s)
1542
1592
 
@@ -1585,6 +1635,8 @@ module OCI
1585
1635
  raise "Missing the required parameter 'update_listener_details' when calling update_listener." if update_listener_details.nil?
1586
1636
  raise "Missing the required parameter 'load_balancer_id' when calling update_listener." if load_balancer_id.nil?
1587
1637
  raise "Missing the required parameter 'listener_name' when calling update_listener." if listener_name.nil?
1638
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1639
+ raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util::blank_string?(listener_name)
1588
1640
 
1589
1641
  path = "/loadBalancers/{loadBalancerId}/listeners/{listenerName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
1590
1642
 
@@ -1628,6 +1680,7 @@ module OCI
1628
1680
 
1629
1681
  raise "Missing the required parameter 'update_load_balancer_details' when calling update_load_balancer." if update_load_balancer_details.nil?
1630
1682
  raise "Missing the required parameter 'load_balancer_id' when calling update_load_balancer." if load_balancer_id.nil?
1683
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1631
1684
 
1632
1685
  path = "/loadBalancers/{loadBalancerId}".sub('{loadBalancerId}', load_balancer_id.to_s)
1633
1686
 
@@ -1682,6 +1735,8 @@ module OCI
1682
1735
  raise "Missing the required parameter 'update_path_route_set_details' when calling update_path_route_set." if update_path_route_set_details.nil?
1683
1736
  raise "Missing the required parameter 'load_balancer_id' when calling update_path_route_set." if load_balancer_id.nil?
1684
1737
  raise "Missing the required parameter 'path_route_set_name' when calling update_path_route_set." if path_route_set_name.nil?
1738
+ raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util::blank_string?(load_balancer_id)
1739
+ raise "Parameter value for 'path_route_set_name' must not be blank" if OCI::Internal::Util::blank_string?(path_route_set_name)
1685
1740
 
1686
1741
  path = "/loadBalancers/{loadBalancerId}/pathRouteSets/{pathRouteSetName}".sub('{loadBalancerId}', load_balancer_id.to_s).sub('{pathRouteSetName}', path_route_set_name.to_s)
1687
1742
 
@@ -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
- def initialize(config:nil, region:nil, signer:nil)
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::OBJECT_STORAGE)
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=(r)
61
- @region = r
62
+ def region=(new_region)
63
+ @region = new_region
62
64
 
63
65
  raise 'A region must be specified.' unless @region
64
66
 
@@ -92,6 +94,9 @@ module OCI
92
94
  raise "Missing the required parameter 'bucket_name' when calling abort_multipart_upload." if bucket_name.nil?
93
95
  raise "Missing the required parameter 'object_name' when calling abort_multipart_upload." if object_name.nil?
94
96
  raise "Missing the required parameter 'upload_id' when calling abort_multipart_upload." if upload_id.nil?
97
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
98
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
99
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
95
100
 
96
101
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
97
102
 
@@ -144,6 +149,9 @@ module OCI
144
149
  raise "Missing the required parameter 'object_name' when calling commit_multipart_upload." if object_name.nil?
145
150
  raise "Missing the required parameter 'upload_id' when calling commit_multipart_upload." if upload_id.nil?
146
151
  raise "Missing the required parameter 'commit_multipart_upload_details' when calling commit_multipart_upload." if commit_multipart_upload_details.nil?
152
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
153
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
154
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
147
155
 
148
156
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
149
157
 
@@ -182,6 +190,7 @@ module OCI
182
190
 
183
191
  raise "Missing the required parameter 'namespace_name' when calling create_bucket." if namespace_name.nil?
184
192
  raise "Missing the required parameter 'create_bucket_details' when calling create_bucket." if create_bucket_details.nil?
193
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
185
194
 
186
195
  path = "/n/{namespaceName}/b/".sub('{namespaceName}', namespace_name.to_s)
187
196
 
@@ -228,6 +237,8 @@ module OCI
228
237
  raise "Missing the required parameter 'namespace_name' when calling create_multipart_upload." if namespace_name.nil?
229
238
  raise "Missing the required parameter 'bucket_name' when calling create_multipart_upload." if bucket_name.nil?
230
239
  raise "Missing the required parameter 'create_multipart_upload_details' when calling create_multipart_upload." if create_multipart_upload_details.nil?
240
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
241
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
231
242
 
232
243
  path = "/n/{namespaceName}/b/{bucketName}/u".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
233
244
 
@@ -270,6 +281,8 @@ module OCI
270
281
  raise "Missing the required parameter 'namespace_name' when calling create_preauthenticated_request." if namespace_name.nil?
271
282
  raise "Missing the required parameter 'bucket_name' when calling create_preauthenticated_request." if bucket_name.nil?
272
283
  raise "Missing the required parameter 'create_preauthenticated_request_details' when calling create_preauthenticated_request." if create_preauthenticated_request_details.nil?
284
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
285
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
273
286
 
274
287
  path = "/n/{namespaceName}/b/{bucketName}/p/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
275
288
 
@@ -311,6 +324,8 @@ module OCI
311
324
 
312
325
  raise "Missing the required parameter 'namespace_name' when calling delete_bucket." if namespace_name.nil?
313
326
  raise "Missing the required parameter 'bucket_name' when calling delete_bucket." if bucket_name.nil?
327
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
328
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
314
329
 
315
330
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
316
331
 
@@ -356,6 +371,9 @@ module OCI
356
371
  raise "Missing the required parameter 'namespace_name' when calling delete_object." if namespace_name.nil?
357
372
  raise "Missing the required parameter 'bucket_name' when calling delete_object." if bucket_name.nil?
358
373
  raise "Missing the required parameter 'object_name' when calling delete_object." if object_name.nil?
374
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
375
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
376
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
359
377
 
360
378
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
361
379
 
@@ -397,6 +415,9 @@ module OCI
397
415
  raise "Missing the required parameter 'namespace_name' when calling delete_preauthenticated_request." if namespace_name.nil?
398
416
  raise "Missing the required parameter 'bucket_name' when calling delete_preauthenticated_request." if bucket_name.nil?
399
417
  raise "Missing the required parameter 'par_id' when calling delete_preauthenticated_request." if par_id.nil?
418
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
419
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
420
+ raise "Parameter value for 'par_id' must not be blank" if OCI::Internal::Util::blank_string?(par_id)
400
421
 
401
422
  path = "/n/{namespaceName}/b/{bucketName}/p/{parId}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{parId}', par_id.to_s)
402
423
 
@@ -440,6 +461,8 @@ module OCI
440
461
 
441
462
  raise "Missing the required parameter 'namespace_name' when calling get_bucket." if namespace_name.nil?
442
463
  raise "Missing the required parameter 'bucket_name' when calling get_bucket." if bucket_name.nil?
464
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
465
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
443
466
 
444
467
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
445
468
 
@@ -512,6 +535,7 @@ module OCI
512
535
  logger.debug "Calling operation ObjectStorageClient#get_namespace_metadata." if logger
513
536
 
514
537
  raise "Missing the required parameter 'namespace_name' when calling get_namespace_metadata." if namespace_name.nil?
538
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
515
539
 
516
540
  path = "/n/{namespaceName}".sub('{namespaceName}', namespace_name.to_s)
517
541
 
@@ -565,6 +589,9 @@ module OCI
565
589
  raise "Missing the required parameter 'namespace_name' when calling get_object." if namespace_name.nil?
566
590
  raise "Missing the required parameter 'bucket_name' when calling get_object." if bucket_name.nil?
567
591
  raise "Missing the required parameter 'object_name' when calling get_object." if object_name.nil?
592
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
593
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
594
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
568
595
 
569
596
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
570
597
 
@@ -649,6 +676,9 @@ module OCI
649
676
  raise "Missing the required parameter 'namespace_name' when calling get_preauthenticated_request." if namespace_name.nil?
650
677
  raise "Missing the required parameter 'bucket_name' when calling get_preauthenticated_request." if bucket_name.nil?
651
678
  raise "Missing the required parameter 'par_id' when calling get_preauthenticated_request." if par_id.nil?
679
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
680
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
681
+ raise "Parameter value for 'par_id' must not be blank" if OCI::Internal::Util::blank_string?(par_id)
652
682
 
653
683
  path = "/n/{namespaceName}/b/{bucketName}/p/{parId}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{parId}', par_id.to_s)
654
684
 
@@ -693,6 +723,8 @@ module OCI
693
723
 
694
724
  raise "Missing the required parameter 'namespace_name' when calling head_bucket." if namespace_name.nil?
695
725
  raise "Missing the required parameter 'bucket_name' when calling head_bucket." if bucket_name.nil?
726
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
727
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
696
728
 
697
729
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
698
730
 
@@ -742,6 +774,9 @@ module OCI
742
774
  raise "Missing the required parameter 'namespace_name' when calling head_object." if namespace_name.nil?
743
775
  raise "Missing the required parameter 'bucket_name' when calling head_object." if bucket_name.nil?
744
776
  raise "Missing the required parameter 'object_name' when calling head_object." if object_name.nil?
777
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
778
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
779
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
745
780
 
746
781
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
747
782
 
@@ -801,6 +836,7 @@ module OCI
801
836
  end
802
837
  end
803
838
  end
839
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
804
840
 
805
841
  path = "/n/{namespaceName}/b/".sub('{namespaceName}', namespace_name.to_s)
806
842
 
@@ -851,6 +887,9 @@ module OCI
851
887
  raise "Missing the required parameter 'bucket_name' when calling list_multipart_upload_parts." if bucket_name.nil?
852
888
  raise "Missing the required parameter 'object_name' when calling list_multipart_upload_parts." if object_name.nil?
853
889
  raise "Missing the required parameter 'upload_id' when calling list_multipart_upload_parts." if upload_id.nil?
890
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
891
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
892
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
854
893
 
855
894
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
856
895
 
@@ -894,6 +933,8 @@ module OCI
894
933
 
895
934
  raise "Missing the required parameter 'namespace_name' when calling list_multipart_uploads." if namespace_name.nil?
896
935
  raise "Missing the required parameter 'bucket_name' when calling list_multipart_uploads." if bucket_name.nil?
936
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
937
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
897
938
 
898
939
  path = "/n/{namespaceName}/b/{bucketName}/u".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
899
940
 
@@ -953,6 +994,8 @@ module OCI
953
994
 
954
995
  raise "Missing the required parameter 'namespace_name' when calling list_objects." if namespace_name.nil?
955
996
  raise "Missing the required parameter 'bucket_name' when calling list_objects." if bucket_name.nil?
997
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
998
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
956
999
 
957
1000
  path = "/n/{namespaceName}/b/{bucketName}/o".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
958
1001
 
@@ -1000,6 +1043,8 @@ module OCI
1000
1043
 
1001
1044
  raise "Missing the required parameter 'namespace_name' when calling list_preauthenticated_requests." if namespace_name.nil?
1002
1045
  raise "Missing the required parameter 'bucket_name' when calling list_preauthenticated_requests." if bucket_name.nil?
1046
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1047
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1003
1048
 
1004
1049
  path = "/n/{namespaceName}/b/{bucketName}/p/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1005
1050
 
@@ -1060,6 +1105,9 @@ module OCI
1060
1105
  raise "Missing the required parameter 'bucket_name' when calling put_object." if bucket_name.nil?
1061
1106
  raise "Missing the required parameter 'object_name' when calling put_object." if object_name.nil?
1062
1107
  raise "Missing the required parameter 'put_object_body' when calling put_object." if put_object_body.nil?
1108
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1109
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1110
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
1063
1111
 
1064
1112
  path = "/n/{namespaceName}/b/{bucketName}/o/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
1065
1113
 
@@ -1112,6 +1160,8 @@ module OCI
1112
1160
  raise "Missing the required parameter 'namespace_name' when calling rename_object." if namespace_name.nil?
1113
1161
  raise "Missing the required parameter 'bucket_name' when calling rename_object." if bucket_name.nil?
1114
1162
  raise "Missing the required parameter 'rename_object_details' when calling rename_object." if rename_object_details.nil?
1163
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1164
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1115
1165
 
1116
1166
  path = "/n/{namespaceName}/b/{bucketName}/actions/renameObject".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1117
1167
 
@@ -1152,6 +1202,8 @@ module OCI
1152
1202
  raise "Missing the required parameter 'namespace_name' when calling restore_objects." if namespace_name.nil?
1153
1203
  raise "Missing the required parameter 'bucket_name' when calling restore_objects." if bucket_name.nil?
1154
1204
  raise "Missing the required parameter 'restore_objects_details' when calling restore_objects." if restore_objects_details.nil?
1205
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1206
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1155
1207
 
1156
1208
  path = "/n/{namespaceName}/b/{bucketName}/actions/restoreObjects".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1157
1209
 
@@ -1194,6 +1246,8 @@ module OCI
1194
1246
  raise "Missing the required parameter 'namespace_name' when calling update_bucket." if namespace_name.nil?
1195
1247
  raise "Missing the required parameter 'bucket_name' when calling update_bucket." if bucket_name.nil?
1196
1248
  raise "Missing the required parameter 'update_bucket_details' when calling update_bucket." if update_bucket_details.nil?
1249
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1250
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1197
1251
 
1198
1252
  path = "/n/{namespaceName}/b/{bucketName}/".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s)
1199
1253
 
@@ -1234,6 +1288,7 @@ module OCI
1234
1288
 
1235
1289
  raise "Missing the required parameter 'namespace_name' when calling update_namespace_metadata." if namespace_name.nil?
1236
1290
  raise "Missing the required parameter 'update_namespace_metadata_details' when calling update_namespace_metadata." if update_namespace_metadata_details.nil?
1291
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1237
1292
 
1238
1293
  path = "/n/{namespaceName}".sub('{namespaceName}', namespace_name.to_s)
1239
1294
 
@@ -1291,6 +1346,9 @@ module OCI
1291
1346
  raise "Missing the required parameter 'upload_id' when calling upload_part." if upload_id.nil?
1292
1347
  raise "Missing the required parameter 'upload_part_num' when calling upload_part." if upload_part_num.nil?
1293
1348
  raise "Missing the required parameter 'upload_part_body' when calling upload_part." if upload_part_body.nil?
1349
+ raise "Parameter value for 'namespace_name' must not be blank" if OCI::Internal::Util::blank_string?(namespace_name)
1350
+ raise "Parameter value for 'bucket_name' must not be blank" if OCI::Internal::Util::blank_string?(bucket_name)
1351
+ raise "Parameter value for 'object_name' must not be blank" if OCI::Internal::Util::blank_string?(object_name)
1294
1352
 
1295
1353
  path = "/n/{namespaceName}/b/{bucketName}/u/{objectName}".sub('{namespaceName}', namespace_name.to_s).sub('{bucketName}', bucket_name.to_s).sub('{objectName}', object_name.to_s)
1296
1354