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
@@ -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
 
@@ -135,6 +137,7 @@ module OCI
135
137
 
136
138
  raise "Missing the required parameter 'database_id' when calling create_data_guard_association." if database_id.nil?
137
139
  raise "Missing the required parameter 'create_data_guard_association_details' when calling create_data_guard_association." if create_data_guard_association_details.nil?
140
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
138
141
 
139
142
  path = "/databases/{databaseId}/dataGuardAssociations".sub('{databaseId}', database_id.to_s)
140
143
 
@@ -237,6 +240,7 @@ module OCI
237
240
  unless ['STOP', 'START', 'SOFTRESET', 'RESET'].include?(action)
238
241
  raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
239
242
  end
243
+ raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util::blank_string?(db_node_id)
240
244
 
241
245
  path = "/dbNodes/{dbNodeId}".sub('{dbNodeId}', db_node_id.to_s)
242
246
 
@@ -275,6 +279,7 @@ module OCI
275
279
  logger.debug "Calling operation DatabaseClient#delete_backup." if logger
276
280
 
277
281
  raise "Missing the required parameter 'backup_id' when calling delete_backup." if backup_id.nil?
282
+ raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util::blank_string?(backup_id)
278
283
 
279
284
  path = "/backups/{backupId}".sub('{backupId}', backup_id.to_s)
280
285
 
@@ -312,6 +317,7 @@ module OCI
312
317
  logger.debug "Calling operation DatabaseClient#delete_db_home." if logger
313
318
 
314
319
  raise "Missing the required parameter 'db_home_id' when calling delete_db_home." if db_home_id.nil?
320
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
315
321
 
316
322
  path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
317
323
 
@@ -357,6 +363,8 @@ module OCI
357
363
  raise "Missing the required parameter 'database_id' when calling failover_data_guard_association." if database_id.nil?
358
364
  raise "Missing the required parameter 'data_guard_association_id' when calling failover_data_guard_association." if data_guard_association_id.nil?
359
365
  raise "Missing the required parameter 'failover_data_guard_association_details' when calling failover_data_guard_association." if failover_data_guard_association_details.nil?
366
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
367
+ raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util::blank_string?(data_guard_association_id)
360
368
 
361
369
  path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
362
370
 
@@ -389,6 +397,7 @@ module OCI
389
397
  logger.debug "Calling operation DatabaseClient#get_backup." if logger
390
398
 
391
399
  raise "Missing the required parameter 'backup_id' when calling get_backup." if backup_id.nil?
400
+ raise "Parameter value for 'backup_id' must not be blank" if OCI::Internal::Util::blank_string?(backup_id)
392
401
 
393
402
  path = "/backups/{backupId}".sub('{backupId}', backup_id.to_s)
394
403
 
@@ -423,6 +432,8 @@ module OCI
423
432
 
424
433
  raise "Missing the required parameter 'database_id' when calling get_data_guard_association." if database_id.nil?
425
434
  raise "Missing the required parameter 'data_guard_association_id' when calling get_data_guard_association." if data_guard_association_id.nil?
435
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
436
+ raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util::blank_string?(data_guard_association_id)
426
437
 
427
438
  path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
428
439
 
@@ -454,6 +465,7 @@ module OCI
454
465
  logger.debug "Calling operation DatabaseClient#get_database." if logger
455
466
 
456
467
  raise "Missing the required parameter 'database_id' when calling get_database." if database_id.nil?
468
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
457
469
 
458
470
  path = "/databases/{databaseId}".sub('{databaseId}', database_id.to_s)
459
471
 
@@ -485,6 +497,7 @@ module OCI
485
497
  logger.debug "Calling operation DatabaseClient#get_db_home." if logger
486
498
 
487
499
  raise "Missing the required parameter 'db_home_id' when calling get_db_home." if db_home_id.nil?
500
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
488
501
 
489
502
  path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
490
503
 
@@ -519,6 +532,8 @@ module OCI
519
532
 
520
533
  raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch." if db_home_id.nil?
521
534
  raise "Missing the required parameter 'patch_id' when calling get_db_home_patch." if patch_id.nil?
535
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
536
+ raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util::blank_string?(patch_id)
522
537
 
523
538
  path = "/dbHomes/{dbHomeId}/patches/{patchId}".sub('{dbHomeId}', db_home_id.to_s).sub('{patchId}', patch_id.to_s)
524
539
 
@@ -553,6 +568,8 @@ module OCI
553
568
 
554
569
  raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch_history_entry." if db_home_id.nil?
555
570
  raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_home_patch_history_entry." if patch_history_entry_id.nil?
571
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
572
+ raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util::blank_string?(patch_history_entry_id)
556
573
 
557
574
  path = "/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}".sub('{dbHomeId}', db_home_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
558
575
 
@@ -584,6 +601,7 @@ module OCI
584
601
  logger.debug "Calling operation DatabaseClient#get_db_node." if logger
585
602
 
586
603
  raise "Missing the required parameter 'db_node_id' when calling get_db_node." if db_node_id.nil?
604
+ raise "Parameter value for 'db_node_id' must not be blank" if OCI::Internal::Util::blank_string?(db_node_id)
587
605
 
588
606
  path = "/dbNodes/{dbNodeId}".sub('{dbNodeId}', db_node_id.to_s)
589
607
 
@@ -615,6 +633,7 @@ module OCI
615
633
  logger.debug "Calling operation DatabaseClient#get_db_system." if logger
616
634
 
617
635
  raise "Missing the required parameter 'db_system_id' when calling get_db_system." if db_system_id.nil?
636
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
618
637
 
619
638
  path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
620
639
 
@@ -649,6 +668,8 @@ module OCI
649
668
 
650
669
  raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch." if db_system_id.nil?
651
670
  raise "Missing the required parameter 'patch_id' when calling get_db_system_patch." if patch_id.nil?
671
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
672
+ raise "Parameter value for 'patch_id' must not be blank" if OCI::Internal::Util::blank_string?(patch_id)
652
673
 
653
674
  path = "/dbSystems/{dbSystemId}/patches/{patchId}".sub('{dbSystemId}', db_system_id.to_s).sub('{patchId}', patch_id.to_s)
654
675
 
@@ -683,6 +704,8 @@ module OCI
683
704
 
684
705
  raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch_history_entry." if db_system_id.nil?
685
706
  raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_system_patch_history_entry." if patch_history_entry_id.nil?
707
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
708
+ raise "Parameter value for 'patch_history_entry_id' must not be blank" if OCI::Internal::Util::blank_string?(patch_history_entry_id)
686
709
 
687
710
  path = "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}".sub('{dbSystemId}', db_system_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
688
711
 
@@ -803,6 +826,7 @@ module OCI
803
826
  logger.debug "Calling operation DatabaseClient#list_data_guard_associations." if logger
804
827
 
805
828
  raise "Missing the required parameter 'database_id' when calling list_data_guard_associations." if database_id.nil?
829
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
806
830
 
807
831
  path = "/databases/{databaseId}/dataGuardAssociations".sub('{databaseId}', database_id.to_s)
808
832
 
@@ -879,6 +903,7 @@ module OCI
879
903
  logger.debug "Calling operation DatabaseClient#list_db_home_patch_history_entries." if logger
880
904
 
881
905
  raise "Missing the required parameter 'db_home_id' when calling list_db_home_patch_history_entries." if db_home_id.nil?
906
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
882
907
 
883
908
  path = "/dbHomes/{dbHomeId}/patchHistoryEntries".sub('{dbHomeId}', db_home_id.to_s)
884
909
 
@@ -915,6 +940,7 @@ module OCI
915
940
  logger.debug "Calling operation DatabaseClient#list_db_home_patches." if logger
916
941
 
917
942
  raise "Missing the required parameter 'db_home_id' when calling list_db_home_patches." if db_home_id.nil?
943
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
918
944
 
919
945
  path = "/dbHomes/{dbHomeId}/patches".sub('{dbHomeId}', db_home_id.to_s)
920
946
 
@@ -1031,6 +1057,7 @@ module OCI
1031
1057
  logger.debug "Calling operation DatabaseClient#list_db_system_patch_history_entries." if logger
1032
1058
 
1033
1059
  raise "Missing the required parameter 'db_system_id' when calling list_db_system_patch_history_entries." if db_system_id.nil?
1060
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
1034
1061
 
1035
1062
  path = "/dbSystems/{dbSystemId}/patchHistoryEntries".sub('{dbSystemId}', db_system_id.to_s)
1036
1063
 
@@ -1067,6 +1094,7 @@ module OCI
1067
1094
  logger.debug "Calling operation DatabaseClient#list_db_system_patches." if logger
1068
1095
 
1069
1096
  raise "Missing the required parameter 'db_system_id' when calling list_db_system_patches." if db_system_id.nil?
1097
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
1070
1098
 
1071
1099
  path = "/dbSystems/{dbSystemId}/patches".sub('{dbSystemId}', db_system_id.to_s)
1072
1100
 
@@ -1226,6 +1254,8 @@ module OCI
1226
1254
  raise "Missing the required parameter 'database_id' when calling reinstate_data_guard_association." if database_id.nil?
1227
1255
  raise "Missing the required parameter 'data_guard_association_id' when calling reinstate_data_guard_association." if data_guard_association_id.nil?
1228
1256
  raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
1257
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
1258
+ raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util::blank_string?(data_guard_association_id)
1229
1259
 
1230
1260
  path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
1231
1261
 
@@ -1265,6 +1295,7 @@ module OCI
1265
1295
 
1266
1296
  raise "Missing the required parameter 'database_id' when calling restore_database." if database_id.nil?
1267
1297
  raise "Missing the required parameter 'restore_database_details' when calling restore_database." if restore_database_details.nil?
1298
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
1268
1299
 
1269
1300
  path = "/databases/{databaseId}/actions/restore".sub('{databaseId}', database_id.to_s)
1270
1301
 
@@ -1309,6 +1340,8 @@ module OCI
1309
1340
  raise "Missing the required parameter 'database_id' when calling switchover_data_guard_association." if database_id.nil?
1310
1341
  raise "Missing the required parameter 'data_guard_association_id' when calling switchover_data_guard_association." if data_guard_association_id.nil?
1311
1342
  raise "Missing the required parameter 'switchover_data_guard_association_details' when calling switchover_data_guard_association." if switchover_data_guard_association_details.nil?
1343
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
1344
+ raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util::blank_string?(data_guard_association_id)
1312
1345
 
1313
1346
  path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
1314
1347
 
@@ -1345,6 +1378,7 @@ module OCI
1345
1378
  logger.debug "Calling operation DatabaseClient#terminate_db_system." if logger
1346
1379
 
1347
1380
  raise "Missing the required parameter 'db_system_id' when calling terminate_db_system." if db_system_id.nil?
1381
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
1348
1382
 
1349
1383
  path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
1350
1384
 
@@ -1383,6 +1417,7 @@ module OCI
1383
1417
 
1384
1418
  raise "Missing the required parameter 'database_id' when calling update_database." if database_id.nil?
1385
1419
  raise "Missing the required parameter 'update_database_details' when calling update_database." if update_database_details.nil?
1420
+ raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util::blank_string?(database_id)
1386
1421
 
1387
1422
  path = "/databases/{databaseId}".sub('{databaseId}', database_id.to_s)
1388
1423
 
@@ -1421,6 +1456,7 @@ module OCI
1421
1456
 
1422
1457
  raise "Missing the required parameter 'db_home_id' when calling update_db_home." if db_home_id.nil?
1423
1458
  raise "Missing the required parameter 'update_db_home_details' when calling update_db_home." if update_db_home_details.nil?
1459
+ raise "Parameter value for 'db_home_id' must not be blank" if OCI::Internal::Util::blank_string?(db_home_id)
1424
1460
 
1425
1461
  path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
1426
1462
 
@@ -1459,6 +1495,7 @@ module OCI
1459
1495
 
1460
1496
  raise "Missing the required parameter 'db_system_id' when calling update_db_system." if db_system_id.nil?
1461
1497
  raise "Missing the required parameter 'update_db_system_details' when calling update_db_system." if update_db_system_details.nil?
1498
+ raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util::blank_string?(db_system_id)
1462
1499
 
1463
1500
  path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
1464
1501
 
@@ -6,7 +6,7 @@ module OCI
6
6
  # The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see:
7
7
  #
8
8
  # - [Exadata DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm)
9
- # - [Bare Metal or VM DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm)
9
+ # - [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm)
10
10
  #
11
11
  # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
12
12
  #
@@ -10,10 +10,26 @@ module OCI
10
10
  # see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
11
11
  #
12
12
  class Database::Models::DbSystemShapeSummary
13
- # **[Required]** The maximum number of CPU cores that can be enabled on the DB System.
13
+ # **[Required]** The maximum number of CPU cores that can be enabled on the DB System for this shape.
14
14
  # @return [Integer]
15
15
  attr_accessor :available_core_count
16
16
 
17
+ # The discrete number by which the CPU core count for this shape can be increased or decreased.
18
+ # @return [Integer]
19
+ attr_accessor :core_count_increment
20
+
21
+ # The maximum number of database nodes available for this shape.
22
+ # @return [Integer]
23
+ attr_accessor :maximum_node_count
24
+
25
+ # The minimum number of CPU cores that can be enabled on the DB System for this shape.
26
+ # @return [Integer]
27
+ attr_accessor :minimum_core_count
28
+
29
+ # The minimum number of database nodes available for this shape.
30
+ # @return [Integer]
31
+ attr_accessor :minimum_node_count
32
+
17
33
  # **[Required]** The name of the shape used for the DB System.
18
34
  # @return [String]
19
35
  attr_accessor :name
@@ -26,6 +42,10 @@ module OCI
26
42
  # Initializes the object
27
43
  # @param [Hash] attributes Model attributes in the form of hash
28
44
  # @option attributes [Integer] :available_core_count The value to assign to the {#available_core_count} property
45
+ # @option attributes [Integer] :core_count_increment The value to assign to the {#core_count_increment} property
46
+ # @option attributes [Integer] :maximum_node_count The value to assign to the {#maximum_node_count} property
47
+ # @option attributes [Integer] :minimum_core_count The value to assign to the {#minimum_core_count} property
48
+ # @option attributes [Integer] :minimum_node_count The value to assign to the {#minimum_node_count} property
29
49
  # @option attributes [String] :name The value to assign to the {#name} property
30
50
  # @option attributes [String] :shape The value to assign to the {#shape} property
31
51
  def initialize(attributes = {})
@@ -44,6 +64,46 @@ module OCI
44
64
  self.available_core_count = attributes[:'available_core_count']
45
65
  end
46
66
 
67
+ if attributes[:'coreCountIncrement']
68
+ self.core_count_increment = attributes[:'coreCountIncrement']
69
+ end
70
+
71
+ raise 'You cannot provide both :coreCountIncrement and :core_count_increment' if attributes.key?(:'coreCountIncrement') && attributes.key?(:'core_count_increment')
72
+
73
+ if attributes[:'core_count_increment']
74
+ self.core_count_increment = attributes[:'core_count_increment']
75
+ end
76
+
77
+ if attributes[:'maximumNodeCount']
78
+ self.maximum_node_count = attributes[:'maximumNodeCount']
79
+ end
80
+
81
+ raise 'You cannot provide both :maximumNodeCount and :maximum_node_count' if attributes.key?(:'maximumNodeCount') && attributes.key?(:'maximum_node_count')
82
+
83
+ if attributes[:'maximum_node_count']
84
+ self.maximum_node_count = attributes[:'maximum_node_count']
85
+ end
86
+
87
+ if attributes[:'minimumCoreCount']
88
+ self.minimum_core_count = attributes[:'minimumCoreCount']
89
+ end
90
+
91
+ raise 'You cannot provide both :minimumCoreCount and :minimum_core_count' if attributes.key?(:'minimumCoreCount') && attributes.key?(:'minimum_core_count')
92
+
93
+ if attributes[:'minimum_core_count']
94
+ self.minimum_core_count = attributes[:'minimum_core_count']
95
+ end
96
+
97
+ if attributes[:'minimumNodeCount']
98
+ self.minimum_node_count = attributes[:'minimumNodeCount']
99
+ end
100
+
101
+ raise 'You cannot provide both :minimumNodeCount and :minimum_node_count' if attributes.key?(:'minimumNodeCount') && attributes.key?(:'minimum_node_count')
102
+
103
+ if attributes[:'minimum_node_count']
104
+ self.minimum_node_count = attributes[:'minimum_node_count']
105
+ end
106
+
47
107
  if attributes[:'name']
48
108
  self.name = attributes[:'name']
49
109
  end
@@ -60,6 +120,10 @@ module OCI
60
120
  return true if self.equal?(other_object)
61
121
  self.class == other_object.class &&
62
122
  available_core_count == other_object.available_core_count &&
123
+ core_count_increment == other_object.core_count_increment &&
124
+ maximum_node_count == other_object.maximum_node_count &&
125
+ minimum_core_count == other_object.minimum_core_count &&
126
+ minimum_node_count == other_object.minimum_node_count &&
63
127
  name == other_object.name &&
64
128
  shape == other_object.shape
65
129
  end
@@ -73,7 +137,7 @@ module OCI
73
137
  # Calculates hash code according to all attributes.
74
138
  # @return [Fixnum] Hash code
75
139
  def hash
76
- [available_core_count, name, shape].hash
140
+ [available_core_count, core_count_increment, maximum_node_count, minimum_core_count, minimum_node_count, name, shape].hash
77
141
  end
78
142
 
79
143
  # Builds the object from hash
@@ -140,6 +204,10 @@ module OCI
140
204
  def self.attribute_map
141
205
  {
142
206
  :'available_core_count' => :'availableCoreCount',
207
+ :'core_count_increment' => :'coreCountIncrement',
208
+ :'maximum_node_count' => :'maximumNodeCount',
209
+ :'minimum_core_count' => :'minimumCoreCount',
210
+ :'minimum_node_count' => :'minimumNodeCount',
143
211
  :'name' => :'name',
144
212
  :'shape' => :'shape'
145
213
  }
@@ -149,6 +217,10 @@ module OCI
149
217
  def self.swagger_types
150
218
  {
151
219
  :'available_core_count' => :'Integer',
220
+ :'core_count_increment' => :'Integer',
221
+ :'maximum_node_count' => :'Integer',
222
+ :'minimum_core_count' => :'Integer',
223
+ :'minimum_node_count' => :'Integer',
152
224
  :'name' => :'String',
153
225
  :'shape' => :'String'
154
226
  }
@@ -6,7 +6,7 @@ module OCI
6
6
  # The Database Service supports several types of DB Systems, ranging in size, price, and performance. For details about each type of system, see:
7
7
  #
8
8
  # - [Exadata DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm)
9
- # - [Bare Metal or VM DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm)
9
+ # - [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm)
10
10
  #
11
11
  # To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
12
12
  #
@@ -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
 
@@ -131,6 +133,8 @@ module OCI
131
133
 
132
134
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_domain_records." if zone_name_or_id.nil?
133
135
  raise "Missing the required parameter 'domain' when calling delete_domain_records." if domain.nil?
136
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
137
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
134
138
 
135
139
  path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
136
140
 
@@ -182,6 +186,9 @@ module OCI
182
186
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_rr_set." if zone_name_or_id.nil?
183
187
  raise "Missing the required parameter 'domain' when calling delete_rr_set." if domain.nil?
184
188
  raise "Missing the required parameter 'rtype' when calling delete_rr_set." if rtype.nil?
189
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
190
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
191
+ raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util::blank_string?(rtype)
185
192
 
186
193
  path = "/zones/{zoneNameOrId}/records/{domain}/{rtype}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
187
194
 
@@ -230,6 +237,7 @@ module OCI
230
237
  logger.debug "Calling operation DnsClient#delete_zone." if logger
231
238
 
232
239
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_zone." if zone_name_or_id.nil?
240
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
233
241
 
234
242
  path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
235
243
 
@@ -300,6 +308,8 @@ module OCI
300
308
  if opts[:'sort_order'] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:'sort_order'])
301
309
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
302
310
  end
311
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
312
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
303
313
 
304
314
  path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
305
315
 
@@ -363,6 +373,9 @@ module OCI
363
373
  raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
364
374
  raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
365
375
  raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
376
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
377
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
378
+ raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util::blank_string?(rtype)
366
379
 
367
380
  path = "/zones/{zoneNameOrId}/records/{domain}/{rtype}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
368
381
 
@@ -413,6 +426,7 @@ module OCI
413
426
  logger.debug "Calling operation DnsClient#get_zone." if logger
414
427
 
415
428
  raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
429
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
416
430
 
417
431
  path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
418
432
 
@@ -488,6 +502,7 @@ module OCI
488
502
  if opts[:'sort_order'] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:'sort_order'])
489
503
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
490
504
  end
505
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
491
506
 
492
507
  path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
493
508
 
@@ -633,6 +648,8 @@ module OCI
633
648
  raise "Missing the required parameter 'zone_name_or_id' when calling patch_domain_records." if zone_name_or_id.nil?
634
649
  raise "Missing the required parameter 'domain' when calling patch_domain_records." if domain.nil?
635
650
  raise "Missing the required parameter 'patch_domain_records_details' when calling patch_domain_records." if patch_domain_records_details.nil?
651
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
652
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
636
653
 
637
654
  path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
638
655
 
@@ -686,6 +703,9 @@ module OCI
686
703
  raise "Missing the required parameter 'domain' when calling patch_rr_set." if domain.nil?
687
704
  raise "Missing the required parameter 'rtype' when calling patch_rr_set." if rtype.nil?
688
705
  raise "Missing the required parameter 'patch_rr_set_details' when calling patch_rr_set." if patch_rr_set_details.nil?
706
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
707
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
708
+ raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util::blank_string?(rtype)
689
709
 
690
710
  path = "/zones/{zoneNameOrId}/records/{domain}/{rtype}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
691
711
 
@@ -740,6 +760,7 @@ module OCI
740
760
 
741
761
  raise "Missing the required parameter 'zone_name_or_id' when calling patch_zone_records." if zone_name_or_id.nil?
742
762
  raise "Missing the required parameter 'patch_zone_records_details' when calling patch_zone_records." if patch_zone_records_details.nil?
763
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
743
764
 
744
765
  path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
745
766
 
@@ -797,6 +818,8 @@ module OCI
797
818
  raise "Missing the required parameter 'zone_name_or_id' when calling update_domain_records." if zone_name_or_id.nil?
798
819
  raise "Missing the required parameter 'domain' when calling update_domain_records." if domain.nil?
799
820
  raise "Missing the required parameter 'update_domain_records_details' when calling update_domain_records." if update_domain_records_details.nil?
821
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
822
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
800
823
 
801
824
  path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
802
825
 
@@ -850,6 +873,9 @@ module OCI
850
873
  raise "Missing the required parameter 'domain' when calling update_rr_set." if domain.nil?
851
874
  raise "Missing the required parameter 'rtype' when calling update_rr_set." if rtype.nil?
852
875
  raise "Missing the required parameter 'update_rr_set_details' when calling update_rr_set." if update_rr_set_details.nil?
876
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
877
+ raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util::blank_string?(domain)
878
+ raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util::blank_string?(rtype)
853
879
 
854
880
  path = "/zones/{zoneNameOrId}/records/{domain}/{rtype}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s).sub('{rtype}', rtype.to_s)
855
881
 
@@ -902,6 +928,7 @@ module OCI
902
928
 
903
929
  raise "Missing the required parameter 'zone_name_or_id' when calling update_zone." if zone_name_or_id.nil?
904
930
  raise "Missing the required parameter 'update_zone_details' when calling update_zone." if update_zone_details.nil?
931
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
905
932
 
906
933
  path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
907
934
 
@@ -956,6 +983,7 @@ module OCI
956
983
 
957
984
  raise "Missing the required parameter 'zone_name_or_id' when calling update_zone_records." if zone_name_or_id.nil?
958
985
  raise "Missing the required parameter 'update_zone_records_details' when calling update_zone_records." if update_zone_records_details.nil?
986
+ raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util::blank_string?(zone_name_or_id)
959
987
 
960
988
  path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
961
989