oci 2.0.8 → 2.0.9
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 +2 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/api_client.rb +22 -4
- data/lib/oci/audit/audit_client.rb +7 -7
- data/lib/oci/core/blockstorage_client.rb +30 -30
- data/lib/oci/core/compute_client.rb +55 -54
- data/lib/oci/core/core.rb +2 -0
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +133 -0
- data/lib/oci/core/models/attach_volume_details.rb +2 -1
- data/lib/oci/core/models/create_image_details.rb +1 -1
- data/lib/oci/core/models/create_public_ip_details.rb +1 -1
- data/lib/oci/core/models/create_virtual_circuit_details.rb +1 -1
- data/lib/oci/core/models/create_volume_backup_details.rb +1 -1
- data/lib/oci/core/models/image.rb +22 -1
- data/lib/oci/core/models/image_source_details.rb +1 -1
- data/lib/oci/core/models/instance_source_via_image_details.rb +20 -1
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +154 -0
- data/lib/oci/core/models/update_virtual_circuit_details.rb +1 -1
- data/lib/oci/core/models/volume_attachment.rb +1 -0
- data/lib/oci/core/virtual_network_client.rb +154 -154
- data/lib/oci/database/database_client.rb +59 -59
- data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
- data/lib/oci/database/models/launch_db_system_details.rb +3 -3
- data/lib/oci/database/models/patch_details.rb +1 -1
- data/lib/oci/dns/dns_client.rb +44 -44
- data/lib/oci/dns/models/create_zone_details.rb +1 -1
- data/lib/oci/dns/models/record_operation.rb +1 -1
- data/lib/oci/email/email.rb +22 -0
- data/lib/oci/email/email_client.rb +417 -0
- data/lib/oci/email/models/create_sender_details.rb +147 -0
- data/lib/oci/email/models/create_suppression_details.rb +149 -0
- data/lib/oci/email/models/sender.rb +219 -0
- data/lib/oci/email/models/sender_summary.rb +195 -0
- data/lib/oci/email/models/suppression.rb +191 -0
- data/lib/oci/email/models/suppression_summary.rb +192 -0
- data/lib/oci/email/util.rb +2 -0
- data/lib/oci/file_storage/file_storage_client.rb +42 -42
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +250 -94
- data/lib/oci/identity/models/compartment.rb +1 -1
- data/lib/oci/identity/models/create_compartment_details.rb +1 -1
- data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
- data/lib/oci/identity/models/create_smtp_credential_details.rb +122 -0
- data/lib/oci/identity/models/smtp_credential.rb +285 -0
- data/lib/oci/identity/models/smtp_credential_summary.rb +267 -0
- data/lib/oci/identity/models/update_compartment_details.rb +1 -0
- data/lib/oci/identity/models/update_identity_provider_details.rb +1 -1
- data/lib/oci/identity/models/update_smtp_credential_details.rb +121 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +74 -74
- data/lib/oci/object_storage/models/create_bucket_details.rb +2 -2
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +1 -1
- data/lib/oci/object_storage/models/update_bucket_details.rb +1 -1
- data/lib/oci/object_storage/object_storage_client.rb +73 -73
- data/lib/oci/regions.rb +2 -1
- data/lib/oci/response.rb +1 -0
- data/lib/oci/version.rb +1 -1
- metadata +17 -20
@@ -60,7 +60,7 @@ module OCI
|
|
60
60
|
def region=(r)
|
61
61
|
@region = r
|
62
62
|
|
63
|
-
|
63
|
+
raise 'A region must be specified.' unless @region
|
64
64
|
|
65
65
|
@endpoint = OCI::Regions.get_service_endpoint(@region, :DatabaseClient) + '/20160918'
|
66
66
|
logger.info "DatabaseClient endpoint set to '#{endpoint}'." if logger
|
@@ -86,7 +86,7 @@ module OCI
|
|
86
86
|
def create_backup(create_backup_details, opts = {})
|
87
87
|
logger.debug "Calling operation DatabaseClient#create_backup." if logger
|
88
88
|
|
89
|
-
|
89
|
+
raise "Missing the required parameter 'create_backup_details' when calling create_backup." if create_backup_details.nil?
|
90
90
|
|
91
91
|
path = "/backups"
|
92
92
|
|
@@ -133,8 +133,8 @@ module OCI
|
|
133
133
|
def create_data_guard_association(database_id, create_data_guard_association_details, opts = {})
|
134
134
|
logger.debug "Calling operation DatabaseClient#create_data_guard_association." if logger
|
135
135
|
|
136
|
-
|
137
|
-
|
136
|
+
raise "Missing the required parameter 'database_id' when calling create_data_guard_association." if database_id.nil?
|
137
|
+
raise "Missing the required parameter 'create_data_guard_association_details' when calling create_data_guard_association." if create_data_guard_association_details.nil?
|
138
138
|
|
139
139
|
path = "/databases/{databaseId}/dataGuardAssociations".sub('{databaseId}', database_id.to_s)
|
140
140
|
|
@@ -173,7 +173,7 @@ module OCI
|
|
173
173
|
def create_db_home(create_db_home_with_db_system_id_details, opts = {})
|
174
174
|
logger.debug "Calling operation DatabaseClient#create_db_home." if logger
|
175
175
|
|
176
|
-
|
176
|
+
raise "Missing the required parameter 'create_db_home_with_db_system_id_details' when calling create_db_home." if create_db_home_with_db_system_id_details.nil?
|
177
177
|
|
178
178
|
path = "/dbHomes"
|
179
179
|
|
@@ -232,10 +232,10 @@ module OCI
|
|
232
232
|
def db_node_action(db_node_id, action, opts = {})
|
233
233
|
logger.debug "Calling operation DatabaseClient#db_node_action." if logger
|
234
234
|
|
235
|
-
|
236
|
-
|
235
|
+
raise "Missing the required parameter 'db_node_id' when calling db_node_action." if db_node_id.nil?
|
236
|
+
raise "Missing the required parameter 'action' when calling db_node_action." if action.nil?
|
237
237
|
unless ['STOP', 'START', 'SOFTRESET', 'RESET'].include?(action)
|
238
|
-
|
238
|
+
raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
|
239
239
|
end
|
240
240
|
|
241
241
|
path = "/dbNodes/{dbNodeId}".sub('{dbNodeId}', db_node_id.to_s)
|
@@ -274,7 +274,7 @@ module OCI
|
|
274
274
|
def delete_backup(backup_id, opts = {})
|
275
275
|
logger.debug "Calling operation DatabaseClient#delete_backup." if logger
|
276
276
|
|
277
|
-
|
277
|
+
raise "Missing the required parameter 'backup_id' when calling delete_backup." if backup_id.nil?
|
278
278
|
|
279
279
|
path = "/backups/{backupId}".sub('{backupId}', backup_id.to_s)
|
280
280
|
|
@@ -311,7 +311,7 @@ module OCI
|
|
311
311
|
def delete_db_home(db_home_id, opts = {})
|
312
312
|
logger.debug "Calling operation DatabaseClient#delete_db_home." if logger
|
313
313
|
|
314
|
-
|
314
|
+
raise "Missing the required parameter 'db_home_id' when calling delete_db_home." if db_home_id.nil?
|
315
315
|
|
316
316
|
path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
|
317
317
|
|
@@ -354,9 +354,9 @@ module OCI
|
|
354
354
|
def failover_data_guard_association(database_id, data_guard_association_id, failover_data_guard_association_details, opts = {})
|
355
355
|
logger.debug "Calling operation DatabaseClient#failover_data_guard_association." if logger
|
356
356
|
|
357
|
-
|
358
|
-
|
359
|
-
|
357
|
+
raise "Missing the required parameter 'database_id' when calling failover_data_guard_association." if database_id.nil?
|
358
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling failover_data_guard_association." if data_guard_association_id.nil?
|
359
|
+
raise "Missing the required parameter 'failover_data_guard_association_details' when calling failover_data_guard_association." if failover_data_guard_association_details.nil?
|
360
360
|
|
361
361
|
path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/failover".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
362
362
|
|
@@ -388,7 +388,7 @@ module OCI
|
|
388
388
|
def get_backup(backup_id, opts = {})
|
389
389
|
logger.debug "Calling operation DatabaseClient#get_backup." if logger
|
390
390
|
|
391
|
-
|
391
|
+
raise "Missing the required parameter 'backup_id' when calling get_backup." if backup_id.nil?
|
392
392
|
|
393
393
|
path = "/backups/{backupId}".sub('{backupId}', backup_id.to_s)
|
394
394
|
|
@@ -421,8 +421,8 @@ module OCI
|
|
421
421
|
def get_data_guard_association(database_id, data_guard_association_id, opts = {})
|
422
422
|
logger.debug "Calling operation DatabaseClient#get_data_guard_association." if logger
|
423
423
|
|
424
|
-
|
425
|
-
|
424
|
+
raise "Missing the required parameter 'database_id' when calling get_data_guard_association." if database_id.nil?
|
425
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling get_data_guard_association." if data_guard_association_id.nil?
|
426
426
|
|
427
427
|
path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
428
428
|
|
@@ -453,7 +453,7 @@ module OCI
|
|
453
453
|
def get_database(database_id, opts = {})
|
454
454
|
logger.debug "Calling operation DatabaseClient#get_database." if logger
|
455
455
|
|
456
|
-
|
456
|
+
raise "Missing the required parameter 'database_id' when calling get_database." if database_id.nil?
|
457
457
|
|
458
458
|
path = "/databases/{databaseId}".sub('{databaseId}', database_id.to_s)
|
459
459
|
|
@@ -484,7 +484,7 @@ module OCI
|
|
484
484
|
def get_db_home(db_home_id, opts = {})
|
485
485
|
logger.debug "Calling operation DatabaseClient#get_db_home." if logger
|
486
486
|
|
487
|
-
|
487
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home." if db_home_id.nil?
|
488
488
|
|
489
489
|
path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
|
490
490
|
|
@@ -517,8 +517,8 @@ module OCI
|
|
517
517
|
def get_db_home_patch(db_home_id, patch_id, opts = {})
|
518
518
|
logger.debug "Calling operation DatabaseClient#get_db_home_patch." if logger
|
519
519
|
|
520
|
-
|
521
|
-
|
520
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch." if db_home_id.nil?
|
521
|
+
raise "Missing the required parameter 'patch_id' when calling get_db_home_patch." if patch_id.nil?
|
522
522
|
|
523
523
|
path = "/dbHomes/{dbHomeId}/patches/{patchId}".sub('{dbHomeId}', db_home_id.to_s).sub('{patchId}', patch_id.to_s)
|
524
524
|
|
@@ -551,8 +551,8 @@ module OCI
|
|
551
551
|
def get_db_home_patch_history_entry(db_home_id, patch_history_entry_id, opts = {})
|
552
552
|
logger.debug "Calling operation DatabaseClient#get_db_home_patch_history_entry." if logger
|
553
553
|
|
554
|
-
|
555
|
-
|
554
|
+
raise "Missing the required parameter 'db_home_id' when calling get_db_home_patch_history_entry." if db_home_id.nil?
|
555
|
+
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_home_patch_history_entry." if patch_history_entry_id.nil?
|
556
556
|
|
557
557
|
path = "/dbHomes/{dbHomeId}/patchHistoryEntries/{patchHistoryEntryId}".sub('{dbHomeId}', db_home_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
558
558
|
|
@@ -583,7 +583,7 @@ module OCI
|
|
583
583
|
def get_db_node(db_node_id, opts = {})
|
584
584
|
logger.debug "Calling operation DatabaseClient#get_db_node." if logger
|
585
585
|
|
586
|
-
|
586
|
+
raise "Missing the required parameter 'db_node_id' when calling get_db_node." if db_node_id.nil?
|
587
587
|
|
588
588
|
path = "/dbNodes/{dbNodeId}".sub('{dbNodeId}', db_node_id.to_s)
|
589
589
|
|
@@ -614,7 +614,7 @@ module OCI
|
|
614
614
|
def get_db_system(db_system_id, opts = {})
|
615
615
|
logger.debug "Calling operation DatabaseClient#get_db_system." if logger
|
616
616
|
|
617
|
-
|
617
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system." if db_system_id.nil?
|
618
618
|
|
619
619
|
path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
|
620
620
|
|
@@ -647,8 +647,8 @@ module OCI
|
|
647
647
|
def get_db_system_patch(db_system_id, patch_id, opts = {})
|
648
648
|
logger.debug "Calling operation DatabaseClient#get_db_system_patch." if logger
|
649
649
|
|
650
|
-
|
651
|
-
|
650
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch." if db_system_id.nil?
|
651
|
+
raise "Missing the required parameter 'patch_id' when calling get_db_system_patch." if patch_id.nil?
|
652
652
|
|
653
653
|
path = "/dbSystems/{dbSystemId}/patches/{patchId}".sub('{dbSystemId}', db_system_id.to_s).sub('{patchId}', patch_id.to_s)
|
654
654
|
|
@@ -681,8 +681,8 @@ module OCI
|
|
681
681
|
def get_db_system_patch_history_entry(db_system_id, patch_history_entry_id, opts = {})
|
682
682
|
logger.debug "Calling operation DatabaseClient#get_db_system_patch_history_entry." if logger
|
683
683
|
|
684
|
-
|
685
|
-
|
684
|
+
raise "Missing the required parameter 'db_system_id' when calling get_db_system_patch_history_entry." if db_system_id.nil?
|
685
|
+
raise "Missing the required parameter 'patch_history_entry_id' when calling get_db_system_patch_history_entry." if patch_history_entry_id.nil?
|
686
686
|
|
687
687
|
path = "/dbSystems/{dbSystemId}/patchHistoryEntries/{patchHistoryEntryId}".sub('{dbSystemId}', db_system_id.to_s).sub('{patchHistoryEntryId}', patch_history_entry_id.to_s)
|
688
688
|
|
@@ -729,7 +729,7 @@ module OCI
|
|
729
729
|
def launch_db_system(launch_db_system_details, opts = {})
|
730
730
|
logger.debug "Calling operation DatabaseClient#launch_db_system." if logger
|
731
731
|
|
732
|
-
|
732
|
+
raise "Missing the required parameter 'launch_db_system_details' when calling launch_db_system." if launch_db_system_details.nil?
|
733
733
|
|
734
734
|
path = "/dbSystems"
|
735
735
|
|
@@ -802,7 +802,7 @@ module OCI
|
|
802
802
|
def list_data_guard_associations(database_id, opts = {})
|
803
803
|
logger.debug "Calling operation DatabaseClient#list_data_guard_associations." if logger
|
804
804
|
|
805
|
-
|
805
|
+
raise "Missing the required parameter 'database_id' when calling list_data_guard_associations." if database_id.nil?
|
806
806
|
|
807
807
|
path = "/databases/{databaseId}/dataGuardAssociations".sub('{databaseId}', database_id.to_s)
|
808
808
|
|
@@ -839,8 +839,8 @@ module OCI
|
|
839
839
|
def list_databases(compartment_id, db_home_id, opts = {})
|
840
840
|
logger.debug "Calling operation DatabaseClient#list_databases." if logger
|
841
841
|
|
842
|
-
|
843
|
-
|
842
|
+
raise "Missing the required parameter 'compartment_id' when calling list_databases." if compartment_id.nil?
|
843
|
+
raise "Missing the required parameter 'db_home_id' when calling list_databases." if db_home_id.nil?
|
844
844
|
|
845
845
|
path = "/databases"
|
846
846
|
|
@@ -878,7 +878,7 @@ module OCI
|
|
878
878
|
def list_db_home_patch_history_entries(db_home_id, opts = {})
|
879
879
|
logger.debug "Calling operation DatabaseClient#list_db_home_patch_history_entries." if logger
|
880
880
|
|
881
|
-
|
881
|
+
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patch_history_entries." if db_home_id.nil?
|
882
882
|
|
883
883
|
path = "/dbHomes/{dbHomeId}/patchHistoryEntries".sub('{dbHomeId}', db_home_id.to_s)
|
884
884
|
|
@@ -914,7 +914,7 @@ module OCI
|
|
914
914
|
def list_db_home_patches(db_home_id, opts = {})
|
915
915
|
logger.debug "Calling operation DatabaseClient#list_db_home_patches." if logger
|
916
916
|
|
917
|
-
|
917
|
+
raise "Missing the required parameter 'db_home_id' when calling list_db_home_patches." if db_home_id.nil?
|
918
918
|
|
919
919
|
path = "/dbHomes/{dbHomeId}/patches".sub('{dbHomeId}', db_home_id.to_s)
|
920
920
|
|
@@ -951,8 +951,8 @@ module OCI
|
|
951
951
|
def list_db_homes(compartment_id, db_system_id, opts = {})
|
952
952
|
logger.debug "Calling operation DatabaseClient#list_db_homes." if logger
|
953
953
|
|
954
|
-
|
955
|
-
|
954
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_homes." if compartment_id.nil?
|
955
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_homes." if db_system_id.nil?
|
956
956
|
|
957
957
|
path = "/dbHomes"
|
958
958
|
|
@@ -991,8 +991,8 @@ module OCI
|
|
991
991
|
def list_db_nodes(compartment_id, db_system_id, opts = {})
|
992
992
|
logger.debug "Calling operation DatabaseClient#list_db_nodes." if logger
|
993
993
|
|
994
|
-
|
995
|
-
|
994
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_nodes." if compartment_id.nil?
|
995
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_nodes." if db_system_id.nil?
|
996
996
|
|
997
997
|
path = "/dbNodes"
|
998
998
|
|
@@ -1030,7 +1030,7 @@ module OCI
|
|
1030
1030
|
def list_db_system_patch_history_entries(db_system_id, opts = {})
|
1031
1031
|
logger.debug "Calling operation DatabaseClient#list_db_system_patch_history_entries." if logger
|
1032
1032
|
|
1033
|
-
|
1033
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patch_history_entries." if db_system_id.nil?
|
1034
1034
|
|
1035
1035
|
path = "/dbSystems/{dbSystemId}/patchHistoryEntries".sub('{dbSystemId}', db_system_id.to_s)
|
1036
1036
|
|
@@ -1066,7 +1066,7 @@ module OCI
|
|
1066
1066
|
def list_db_system_patches(db_system_id, opts = {})
|
1067
1067
|
logger.debug "Calling operation DatabaseClient#list_db_system_patches." if logger
|
1068
1068
|
|
1069
|
-
|
1069
|
+
raise "Missing the required parameter 'db_system_id' when calling list_db_system_patches." if db_system_id.nil?
|
1070
1070
|
|
1071
1071
|
path = "/dbSystems/{dbSystemId}/patches".sub('{dbSystemId}', db_system_id.to_s)
|
1072
1072
|
|
@@ -1102,8 +1102,8 @@ module OCI
|
|
1102
1102
|
def list_db_system_shapes(availability_domain, compartment_id, opts = {})
|
1103
1103
|
logger.debug "Calling operation DatabaseClient#list_db_system_shapes." if logger
|
1104
1104
|
|
1105
|
-
|
1106
|
-
|
1105
|
+
raise "Missing the required parameter 'availability_domain' when calling list_db_system_shapes." if availability_domain.nil?
|
1106
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_system_shapes." if compartment_id.nil?
|
1107
1107
|
|
1108
1108
|
path = "/dbSystemShapes"
|
1109
1109
|
|
@@ -1143,7 +1143,7 @@ module OCI
|
|
1143
1143
|
def list_db_systems(compartment_id, opts = {})
|
1144
1144
|
logger.debug "Calling operation DatabaseClient#list_db_systems." if logger
|
1145
1145
|
|
1146
|
-
|
1146
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_systems." if compartment_id.nil?
|
1147
1147
|
|
1148
1148
|
path = "/dbSystems"
|
1149
1149
|
|
@@ -1181,7 +1181,7 @@ module OCI
|
|
1181
1181
|
def list_db_versions(compartment_id, opts = {})
|
1182
1182
|
logger.debug "Calling operation DatabaseClient#list_db_versions." if logger
|
1183
1183
|
|
1184
|
-
|
1184
|
+
raise "Missing the required parameter 'compartment_id' when calling list_db_versions." if compartment_id.nil?
|
1185
1185
|
|
1186
1186
|
path = "/dbVersions"
|
1187
1187
|
|
@@ -1223,9 +1223,9 @@ module OCI
|
|
1223
1223
|
def reinstate_data_guard_association(database_id, data_guard_association_id, reinstate_data_guard_association_details, opts = {})
|
1224
1224
|
logger.debug "Calling operation DatabaseClient#reinstate_data_guard_association." if logger
|
1225
1225
|
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1226
|
+
raise "Missing the required parameter 'database_id' when calling reinstate_data_guard_association." if database_id.nil?
|
1227
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling reinstate_data_guard_association." if data_guard_association_id.nil?
|
1228
|
+
raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
|
1229
1229
|
|
1230
1230
|
path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
1231
1231
|
|
@@ -1263,8 +1263,8 @@ module OCI
|
|
1263
1263
|
def restore_database(database_id, restore_database_details, opts = {})
|
1264
1264
|
logger.debug "Calling operation DatabaseClient#restore_database." if logger
|
1265
1265
|
|
1266
|
-
|
1267
|
-
|
1266
|
+
raise "Missing the required parameter 'database_id' when calling restore_database." if database_id.nil?
|
1267
|
+
raise "Missing the required parameter 'restore_database_details' when calling restore_database." if restore_database_details.nil?
|
1268
1268
|
|
1269
1269
|
path = "/databases/{databaseId}/actions/restore".sub('{databaseId}', database_id.to_s)
|
1270
1270
|
|
@@ -1306,9 +1306,9 @@ module OCI
|
|
1306
1306
|
def switchover_data_guard_association(database_id, data_guard_association_id, switchover_data_guard_association_details, opts = {})
|
1307
1307
|
logger.debug "Calling operation DatabaseClient#switchover_data_guard_association." if logger
|
1308
1308
|
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1309
|
+
raise "Missing the required parameter 'database_id' when calling switchover_data_guard_association." if database_id.nil?
|
1310
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling switchover_data_guard_association." if data_guard_association_id.nil?
|
1311
|
+
raise "Missing the required parameter 'switchover_data_guard_association_details' when calling switchover_data_guard_association." if switchover_data_guard_association_details.nil?
|
1312
1312
|
|
1313
1313
|
path = "/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/switchover".sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
1314
1314
|
|
@@ -1344,7 +1344,7 @@ module OCI
|
|
1344
1344
|
def terminate_db_system(db_system_id, opts = {})
|
1345
1345
|
logger.debug "Calling operation DatabaseClient#terminate_db_system." if logger
|
1346
1346
|
|
1347
|
-
|
1347
|
+
raise "Missing the required parameter 'db_system_id' when calling terminate_db_system." if db_system_id.nil?
|
1348
1348
|
|
1349
1349
|
path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
|
1350
1350
|
|
@@ -1381,8 +1381,8 @@ module OCI
|
|
1381
1381
|
def update_database(database_id, update_database_details, opts = {})
|
1382
1382
|
logger.debug "Calling operation DatabaseClient#update_database." if logger
|
1383
1383
|
|
1384
|
-
|
1385
|
-
|
1384
|
+
raise "Missing the required parameter 'database_id' when calling update_database." if database_id.nil?
|
1385
|
+
raise "Missing the required parameter 'update_database_details' when calling update_database." if update_database_details.nil?
|
1386
1386
|
|
1387
1387
|
path = "/databases/{databaseId}".sub('{databaseId}', database_id.to_s)
|
1388
1388
|
|
@@ -1419,8 +1419,8 @@ module OCI
|
|
1419
1419
|
def update_db_home(db_home_id, update_db_home_details, opts = {})
|
1420
1420
|
logger.debug "Calling operation DatabaseClient#update_db_home." if logger
|
1421
1421
|
|
1422
|
-
|
1423
|
-
|
1422
|
+
raise "Missing the required parameter 'db_home_id' when calling update_db_home." if db_home_id.nil?
|
1423
|
+
raise "Missing the required parameter 'update_db_home_details' when calling update_db_home." if update_db_home_details.nil?
|
1424
1424
|
|
1425
1425
|
path = "/dbHomes/{dbHomeId}".sub('{dbHomeId}', db_home_id.to_s)
|
1426
1426
|
|
@@ -1457,8 +1457,8 @@ module OCI
|
|
1457
1457
|
def update_db_system(db_system_id, update_db_system_details, opts = {})
|
1458
1458
|
logger.debug "Calling operation DatabaseClient#update_db_system." if logger
|
1459
1459
|
|
1460
|
-
|
1461
|
-
|
1460
|
+
raise "Missing the required parameter 'db_system_id' when calling update_db_system." if db_system_id.nil?
|
1461
|
+
raise "Missing the required parameter 'update_db_system_details' when calling update_db_system." if update_db_system_details.nil?
|
1462
1462
|
|
1463
1463
|
path = "/dbSystems/{dbSystemId}".sub('{dbSystemId}', db_system_id.to_s)
|
1464
1464
|
|
@@ -141,7 +141,7 @@ module OCI
|
|
141
141
|
# @param [Object] protection_mode Object to be assigned
|
142
142
|
def protection_mode=(protection_mode)
|
143
143
|
if protection_mode && !PROTECTION_MODE_ENUM.include?(protection_mode)
|
144
|
-
|
144
|
+
raise "Invalid value for 'protection_mode': this must be one of the values in PROTECTION_MODE_ENUM."
|
145
145
|
else
|
146
146
|
@protection_mode = protection_mode
|
147
147
|
end
|
@@ -151,7 +151,7 @@ module OCI
|
|
151
151
|
# @param [Object] transport_type Object to be assigned
|
152
152
|
def transport_type=(transport_type)
|
153
153
|
if transport_type && !TRANSPORT_TYPE_ENUM.include?(transport_type)
|
154
|
-
|
154
|
+
raise "Invalid value for 'transport_type': this must be one of the values in TRANSPORT_TYPE_ENUM."
|
155
155
|
else
|
156
156
|
@transport_type = transport_type
|
157
157
|
end
|
@@ -132,7 +132,7 @@ module OCI
|
|
132
132
|
# @param [Object] db_workload Object to be assigned
|
133
133
|
def db_workload=(db_workload)
|
134
134
|
if db_workload && !DB_WORKLOAD_ENUM.include?(db_workload)
|
135
|
-
|
135
|
+
raise "Invalid value for 'db_workload': this must be one of the values in DB_WORKLOAD_ENUM."
|
136
136
|
else
|
137
137
|
@db_workload = db_workload
|
138
138
|
end
|
@@ -80,7 +80,7 @@ module OCI
|
|
80
80
|
# @param [Object] source Object to be assigned
|
81
81
|
def source=(source)
|
82
82
|
if source && !SOURCE_ENUM.include?(source)
|
83
|
-
|
83
|
+
raise "Invalid value for 'source': this must be one of the values in SOURCE_ENUM."
|
84
84
|
else
|
85
85
|
@source = source
|
86
86
|
end
|
@@ -329,7 +329,7 @@ module OCI
|
|
329
329
|
# @param [Object] database_edition Object to be assigned
|
330
330
|
def database_edition=(database_edition)
|
331
331
|
if database_edition && !DATABASE_EDITION_ENUM.include?(database_edition)
|
332
|
-
|
332
|
+
raise "Invalid value for 'database_edition': this must be one of the values in DATABASE_EDITION_ENUM."
|
333
333
|
else
|
334
334
|
@database_edition = database_edition
|
335
335
|
end
|
@@ -339,7 +339,7 @@ module OCI
|
|
339
339
|
# @param [Object] disk_redundancy Object to be assigned
|
340
340
|
def disk_redundancy=(disk_redundancy)
|
341
341
|
if disk_redundancy && !DISK_REDUNDANCY_ENUM.include?(disk_redundancy)
|
342
|
-
|
342
|
+
raise "Invalid value for 'disk_redundancy': this must be one of the values in DISK_REDUNDANCY_ENUM."
|
343
343
|
else
|
344
344
|
@disk_redundancy = disk_redundancy
|
345
345
|
end
|
@@ -349,7 +349,7 @@ module OCI
|
|
349
349
|
# @param [Object] license_model Object to be assigned
|
350
350
|
def license_model=(license_model)
|
351
351
|
if license_model && !LICENSE_MODEL_ENUM.include?(license_model)
|
352
|
-
|
352
|
+
raise "Invalid value for 'license_model': this must be one of the values in LICENSE_MODEL_ENUM."
|
353
353
|
else
|
354
354
|
@license_model = license_model
|
355
355
|
end
|
@@ -51,7 +51,7 @@ module OCI
|
|
51
51
|
# @param [Object] action Object to be assigned
|
52
52
|
def action=(action)
|
53
53
|
if action && !ACTION_ENUM.include?(action)
|
54
|
-
|
54
|
+
raise "Invalid value for 'action': this must be one of the values in ACTION_ENUM."
|
55
55
|
else
|
56
56
|
@action = action
|
57
57
|
end
|
data/lib/oci/dns/dns_client.rb
CHANGED
@@ -60,7 +60,7 @@ module OCI
|
|
60
60
|
def region=(r)
|
61
61
|
@region = r
|
62
62
|
|
63
|
-
|
63
|
+
raise 'A region must be specified.' unless @region
|
64
64
|
|
65
65
|
@endpoint = OCI::Regions.get_service_endpoint(@region, :DnsClient) + '/20180115'
|
66
66
|
logger.info "DnsClient endpoint set to '#{endpoint}'." if logger
|
@@ -83,7 +83,7 @@ module OCI
|
|
83
83
|
def create_zone(create_zone_details, opts = {})
|
84
84
|
logger.debug "Calling operation DnsClient#create_zone." if logger
|
85
85
|
|
86
|
-
|
86
|
+
raise "Missing the required parameter 'create_zone_details' when calling create_zone." if create_zone_details.nil?
|
87
87
|
|
88
88
|
path = "/zones"
|
89
89
|
|
@@ -129,8 +129,8 @@ module OCI
|
|
129
129
|
def delete_domain_records(zone_name_or_id, domain, opts = {})
|
130
130
|
logger.debug "Calling operation DnsClient#delete_domain_records." if logger
|
131
131
|
|
132
|
-
|
133
|
-
|
132
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling delete_domain_records." if zone_name_or_id.nil?
|
133
|
+
raise "Missing the required parameter 'domain' when calling delete_domain_records." if domain.nil?
|
134
134
|
|
135
135
|
path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
136
136
|
|
@@ -179,9 +179,9 @@ module OCI
|
|
179
179
|
def delete_rr_set(zone_name_or_id, domain, rtype, opts = {})
|
180
180
|
logger.debug "Calling operation DnsClient#delete_rr_set." if logger
|
181
181
|
|
182
|
-
|
183
|
-
|
184
|
-
|
182
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling delete_rr_set." if zone_name_or_id.nil?
|
183
|
+
raise "Missing the required parameter 'domain' when calling delete_rr_set." if domain.nil?
|
184
|
+
raise "Missing the required parameter 'rtype' when calling delete_rr_set." if rtype.nil?
|
185
185
|
|
186
186
|
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
187
|
|
@@ -229,7 +229,7 @@ module OCI
|
|
229
229
|
def delete_zone(zone_name_or_id, opts = {})
|
230
230
|
logger.debug "Calling operation DnsClient#delete_zone." if logger
|
231
231
|
|
232
|
-
|
232
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling delete_zone." if zone_name_or_id.nil?
|
233
233
|
|
234
234
|
path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
235
235
|
|
@@ -290,15 +290,15 @@ module OCI
|
|
290
290
|
def get_domain_records(zone_name_or_id, domain, opts = {})
|
291
291
|
logger.debug "Calling operation DnsClient#get_domain_records." if logger
|
292
292
|
|
293
|
-
|
294
|
-
|
293
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling get_domain_records." if zone_name_or_id.nil?
|
294
|
+
raise "Missing the required parameter 'domain' when calling get_domain_records." if domain.nil?
|
295
295
|
|
296
296
|
if opts[:'sort_by'] && !['rtype', 'ttl'].include?(opts[:'sort_by'])
|
297
|
-
|
297
|
+
raise 'Invalid value for "sort_by", must be one of rtype, ttl.'
|
298
298
|
end
|
299
299
|
|
300
300
|
if opts[:'sort_order'] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:'sort_order'])
|
301
|
-
|
301
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
302
302
|
end
|
303
303
|
|
304
304
|
path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
@@ -360,9 +360,9 @@ module OCI
|
|
360
360
|
def get_rr_set(zone_name_or_id, domain, rtype, opts = {})
|
361
361
|
logger.debug "Calling operation DnsClient#get_rr_set." if logger
|
362
362
|
|
363
|
-
|
364
|
-
|
365
|
-
|
363
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
|
364
|
+
raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
|
365
|
+
raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
|
366
366
|
|
367
367
|
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
368
|
|
@@ -412,7 +412,7 @@ module OCI
|
|
412
412
|
def get_zone(zone_name_or_id, opts = {})
|
413
413
|
logger.debug "Calling operation DnsClient#get_zone." if logger
|
414
414
|
|
415
|
-
|
415
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
|
416
416
|
|
417
417
|
path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
418
418
|
|
@@ -479,14 +479,14 @@ module OCI
|
|
479
479
|
def get_zone_records(zone_name_or_id, opts = {})
|
480
480
|
logger.debug "Calling operation DnsClient#get_zone_records." if logger
|
481
481
|
|
482
|
-
|
482
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling get_zone_records." if zone_name_or_id.nil?
|
483
483
|
|
484
484
|
if opts[:'sort_by'] && !['domain', 'rtype', 'ttl'].include?(opts[:'sort_by'])
|
485
|
-
|
485
|
+
raise 'Invalid value for "sort_by", must be one of domain, rtype, ttl.'
|
486
486
|
end
|
487
487
|
|
488
488
|
if opts[:'sort_order'] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:'sort_order'])
|
489
|
-
|
489
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
490
490
|
end
|
491
491
|
|
492
492
|
path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
@@ -557,22 +557,22 @@ module OCI
|
|
557
557
|
def list_zones(compartment_id, opts = {})
|
558
558
|
logger.debug "Calling operation DnsClient#list_zones." if logger
|
559
559
|
|
560
|
-
|
560
|
+
raise "Missing the required parameter 'compartment_id' when calling list_zones." if compartment_id.nil?
|
561
561
|
|
562
562
|
if opts[:'zone_type'] && !['PRIMARY', 'SECONDARY'].include?(opts[:'zone_type'])
|
563
|
-
|
563
|
+
raise 'Invalid value for "zone_type", must be one of PRIMARY, SECONDARY.'
|
564
564
|
end
|
565
565
|
|
566
566
|
if opts[:'sort_by'] && !['name', 'zoneType', 'timeCreated'].include?(opts[:'sort_by'])
|
567
|
-
|
567
|
+
raise 'Invalid value for "sort_by", must be one of name, zoneType, timeCreated.'
|
568
568
|
end
|
569
569
|
|
570
570
|
if opts[:'sort_order'] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:'sort_order'])
|
571
|
-
|
571
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
|
572
572
|
end
|
573
573
|
|
574
574
|
if opts[:'lifecycle_state'] && !['ACTIVE', 'CREATING', 'DELETED', 'DELETING', 'FAILED'].include?(opts[:'lifecycle_state'])
|
575
|
-
|
575
|
+
raise 'Invalid value for "lifecycle_state", must be one of ACTIVE, CREATING, DELETED, DELETING, FAILED.'
|
576
576
|
end
|
577
577
|
|
578
578
|
path = "/zones"
|
@@ -630,9 +630,9 @@ module OCI
|
|
630
630
|
def patch_domain_records(zone_name_or_id, domain, patch_domain_records_details, opts = {})
|
631
631
|
logger.debug "Calling operation DnsClient#patch_domain_records." if logger
|
632
632
|
|
633
|
-
|
634
|
-
|
635
|
-
|
633
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling patch_domain_records." if zone_name_or_id.nil?
|
634
|
+
raise "Missing the required parameter 'domain' when calling patch_domain_records." if domain.nil?
|
635
|
+
raise "Missing the required parameter 'patch_domain_records_details' when calling patch_domain_records." if patch_domain_records_details.nil?
|
636
636
|
|
637
637
|
path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
638
638
|
|
@@ -682,10 +682,10 @@ module OCI
|
|
682
682
|
def patch_rr_set(zone_name_or_id, domain, rtype, patch_rr_set_details, opts = {})
|
683
683
|
logger.debug "Calling operation DnsClient#patch_rr_set." if logger
|
684
684
|
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
685
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling patch_rr_set." if zone_name_or_id.nil?
|
686
|
+
raise "Missing the required parameter 'domain' when calling patch_rr_set." if domain.nil?
|
687
|
+
raise "Missing the required parameter 'rtype' when calling patch_rr_set." if rtype.nil?
|
688
|
+
raise "Missing the required parameter 'patch_rr_set_details' when calling patch_rr_set." if patch_rr_set_details.nil?
|
689
689
|
|
690
690
|
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
691
|
|
@@ -738,8 +738,8 @@ module OCI
|
|
738
738
|
def patch_zone_records(zone_name_or_id, patch_zone_records_details, opts = {})
|
739
739
|
logger.debug "Calling operation DnsClient#patch_zone_records." if logger
|
740
740
|
|
741
|
-
|
742
|
-
|
741
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling patch_zone_records." if zone_name_or_id.nil?
|
742
|
+
raise "Missing the required parameter 'patch_zone_records_details' when calling patch_zone_records." if patch_zone_records_details.nil?
|
743
743
|
|
744
744
|
path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
745
745
|
|
@@ -794,9 +794,9 @@ module OCI
|
|
794
794
|
def update_domain_records(zone_name_or_id, domain, update_domain_records_details, opts = {})
|
795
795
|
logger.debug "Calling operation DnsClient#update_domain_records." if logger
|
796
796
|
|
797
|
-
|
798
|
-
|
799
|
-
|
797
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling update_domain_records." if zone_name_or_id.nil?
|
798
|
+
raise "Missing the required parameter 'domain' when calling update_domain_records." if domain.nil?
|
799
|
+
raise "Missing the required parameter 'update_domain_records_details' when calling update_domain_records." if update_domain_records_details.nil?
|
800
800
|
|
801
801
|
path = "/zones/{zoneNameOrId}/records/{domain}".sub('{zoneNameOrId}', zone_name_or_id.to_s).sub('{domain}', domain.to_s)
|
802
802
|
|
@@ -846,10 +846,10 @@ module OCI
|
|
846
846
|
def update_rr_set(zone_name_or_id, domain, rtype, update_rr_set_details, opts = {})
|
847
847
|
logger.debug "Calling operation DnsClient#update_rr_set." if logger
|
848
848
|
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
849
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling update_rr_set." if zone_name_or_id.nil?
|
850
|
+
raise "Missing the required parameter 'domain' when calling update_rr_set." if domain.nil?
|
851
|
+
raise "Missing the required parameter 'rtype' when calling update_rr_set." if rtype.nil?
|
852
|
+
raise "Missing the required parameter 'update_rr_set_details' when calling update_rr_set." if update_rr_set_details.nil?
|
853
853
|
|
854
854
|
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
855
|
|
@@ -900,8 +900,8 @@ module OCI
|
|
900
900
|
def update_zone(zone_name_or_id, update_zone_details, opts = {})
|
901
901
|
logger.debug "Calling operation DnsClient#update_zone." if logger
|
902
902
|
|
903
|
-
|
904
|
-
|
903
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling update_zone." if zone_name_or_id.nil?
|
904
|
+
raise "Missing the required parameter 'update_zone_details' when calling update_zone." if update_zone_details.nil?
|
905
905
|
|
906
906
|
path = "/zones/{zoneNameOrId}".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
907
907
|
|
@@ -954,8 +954,8 @@ module OCI
|
|
954
954
|
def update_zone_records(zone_name_or_id, update_zone_records_details, opts = {})
|
955
955
|
logger.debug "Calling operation DnsClient#update_zone_records." if logger
|
956
956
|
|
957
|
-
|
958
|
-
|
957
|
+
raise "Missing the required parameter 'zone_name_or_id' when calling update_zone_records." if zone_name_or_id.nil?
|
958
|
+
raise "Missing the required parameter 'update_zone_records_details' when calling update_zone_records." if update_zone_records_details.nil?
|
959
959
|
|
960
960
|
path = "/zones/{zoneNameOrId}/records".sub('{zoneNameOrId}', zone_name_or_id.to_s)
|
961
961
|
|