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, :FileStorageClient) + '/20171215'
|
66
66
|
logger.info "FileStorageClient endpoint set to '#{endpoint}'." if logger
|
@@ -87,7 +87,7 @@ module OCI
|
|
87
87
|
def create_export(create_export_details, opts = {})
|
88
88
|
logger.debug "Calling operation FileStorageClient#create_export." if logger
|
89
89
|
|
90
|
-
|
90
|
+
raise "Missing the required parameter 'create_export_details' when calling create_export." if create_export_details.nil?
|
91
91
|
|
92
92
|
path = "/exports"
|
93
93
|
|
@@ -151,7 +151,7 @@ module OCI
|
|
151
151
|
def create_file_system(create_file_system_details, opts = {})
|
152
152
|
logger.debug "Calling operation FileStorageClient#create_file_system." if logger
|
153
153
|
|
154
|
-
|
154
|
+
raise "Missing the required parameter 'create_file_system_details' when calling create_file_system." if create_file_system_details.nil?
|
155
155
|
|
156
156
|
path = "/fileSystems"
|
157
157
|
|
@@ -218,7 +218,7 @@ module OCI
|
|
218
218
|
def create_mount_target(create_mount_target_details, opts = {})
|
219
219
|
logger.debug "Calling operation FileStorageClient#create_mount_target." if logger
|
220
220
|
|
221
|
-
|
221
|
+
raise "Missing the required parameter 'create_mount_target_details' when calling create_mount_target." if create_mount_target_details.nil?
|
222
222
|
|
223
223
|
path = "/mountTargets"
|
224
224
|
|
@@ -258,7 +258,7 @@ module OCI
|
|
258
258
|
def create_snapshot(create_snapshot_details, opts = {})
|
259
259
|
logger.debug "Calling operation FileStorageClient#create_snapshot." if logger
|
260
260
|
|
261
|
-
|
261
|
+
raise "Missing the required parameter 'create_snapshot_details' when calling create_snapshot." if create_snapshot_details.nil?
|
262
262
|
|
263
263
|
path = "/snapshots"
|
264
264
|
|
@@ -297,7 +297,7 @@ module OCI
|
|
297
297
|
def delete_export(export_id, opts = {})
|
298
298
|
logger.debug "Calling operation FileStorageClient#delete_export." if logger
|
299
299
|
|
300
|
-
|
300
|
+
raise "Missing the required parameter 'export_id' when calling delete_export." if export_id.nil?
|
301
301
|
|
302
302
|
path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
|
303
303
|
|
@@ -337,7 +337,7 @@ module OCI
|
|
337
337
|
def delete_file_system(file_system_id, opts = {})
|
338
338
|
logger.debug "Calling operation FileStorageClient#delete_file_system." if logger
|
339
339
|
|
340
|
-
|
340
|
+
raise "Missing the required parameter 'file_system_id' when calling delete_file_system." if file_system_id.nil?
|
341
341
|
|
342
342
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
343
343
|
|
@@ -376,7 +376,7 @@ module OCI
|
|
376
376
|
def delete_mount_target(mount_target_id, opts = {})
|
377
377
|
logger.debug "Calling operation FileStorageClient#delete_mount_target." if logger
|
378
378
|
|
379
|
-
|
379
|
+
raise "Missing the required parameter 'mount_target_id' when calling delete_mount_target." if mount_target_id.nil?
|
380
380
|
|
381
381
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
382
382
|
|
@@ -414,7 +414,7 @@ module OCI
|
|
414
414
|
def delete_snapshot(snapshot_id, opts = {})
|
415
415
|
logger.debug "Calling operation FileStorageClient#delete_snapshot." if logger
|
416
416
|
|
417
|
-
|
417
|
+
raise "Missing the required parameter 'snapshot_id' when calling delete_snapshot." if snapshot_id.nil?
|
418
418
|
|
419
419
|
path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
|
420
420
|
|
@@ -445,7 +445,7 @@ module OCI
|
|
445
445
|
def get_export(export_id, opts = {})
|
446
446
|
logger.debug "Calling operation FileStorageClient#get_export." if logger
|
447
447
|
|
448
|
-
|
448
|
+
raise "Missing the required parameter 'export_id' when calling get_export." if export_id.nil?
|
449
449
|
|
450
450
|
path = "/exports/{exportId}".sub('{exportId}', export_id.to_s)
|
451
451
|
|
@@ -476,7 +476,7 @@ module OCI
|
|
476
476
|
def get_export_set(export_set_id, opts = {})
|
477
477
|
logger.debug "Calling operation FileStorageClient#get_export_set." if logger
|
478
478
|
|
479
|
-
|
479
|
+
raise "Missing the required parameter 'export_set_id' when calling get_export_set." if export_set_id.nil?
|
480
480
|
|
481
481
|
path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
|
482
482
|
|
@@ -507,7 +507,7 @@ module OCI
|
|
507
507
|
def get_file_system(file_system_id, opts = {})
|
508
508
|
logger.debug "Calling operation FileStorageClient#get_file_system." if logger
|
509
509
|
|
510
|
-
|
510
|
+
raise "Missing the required parameter 'file_system_id' when calling get_file_system." if file_system_id.nil?
|
511
511
|
|
512
512
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
513
513
|
|
@@ -538,7 +538,7 @@ module OCI
|
|
538
538
|
def get_mount_target(mount_target_id, opts = {})
|
539
539
|
logger.debug "Calling operation FileStorageClient#get_mount_target." if logger
|
540
540
|
|
541
|
-
|
541
|
+
raise "Missing the required parameter 'mount_target_id' when calling get_mount_target." if mount_target_id.nil?
|
542
542
|
|
543
543
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
544
544
|
|
@@ -569,7 +569,7 @@ module OCI
|
|
569
569
|
def get_snapshot(snapshot_id, opts = {})
|
570
570
|
logger.debug "Calling operation FileStorageClient#get_snapshot." if logger
|
571
571
|
|
572
|
-
|
572
|
+
raise "Missing the required parameter 'snapshot_id' when calling get_snapshot." if snapshot_id.nil?
|
573
573
|
|
574
574
|
path = "/snapshots/{snapshotId}".sub('{snapshotId}', snapshot_id.to_s)
|
575
575
|
|
@@ -632,19 +632,19 @@ module OCI
|
|
632
632
|
def list_export_sets(compartment_id, availability_domain, opts = {})
|
633
633
|
logger.debug "Calling operation FileStorageClient#list_export_sets." if logger
|
634
634
|
|
635
|
-
|
636
|
-
|
635
|
+
raise "Missing the required parameter 'compartment_id' when calling list_export_sets." if compartment_id.nil?
|
636
|
+
raise "Missing the required parameter 'availability_domain' when calling list_export_sets." if availability_domain.nil?
|
637
637
|
|
638
638
|
if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
|
639
|
-
|
639
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
|
640
640
|
end
|
641
641
|
|
642
642
|
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
643
|
-
|
643
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
644
644
|
end
|
645
645
|
|
646
646
|
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
647
|
-
|
647
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
648
648
|
end
|
649
649
|
|
650
650
|
path = "/exportSets"
|
@@ -712,18 +712,18 @@ module OCI
|
|
712
712
|
def list_exports(compartment_id, opts = {})
|
713
713
|
logger.debug "Calling operation FileStorageClient#list_exports." if logger
|
714
714
|
|
715
|
-
|
715
|
+
raise "Missing the required parameter 'compartment_id' when calling list_exports." if compartment_id.nil?
|
716
716
|
|
717
717
|
if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
|
718
|
-
|
718
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
|
719
719
|
end
|
720
720
|
|
721
721
|
if opts[:'sort_by'] && !['TIMECREATED', 'PATH'].include?(opts[:'sort_by'])
|
722
|
-
|
722
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, PATH.'
|
723
723
|
end
|
724
724
|
|
725
725
|
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
726
|
-
|
726
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
727
727
|
end
|
728
728
|
|
729
729
|
path = "/exports"
|
@@ -796,19 +796,19 @@ module OCI
|
|
796
796
|
def list_file_systems(compartment_id, availability_domain, opts = {})
|
797
797
|
logger.debug "Calling operation FileStorageClient#list_file_systems." if logger
|
798
798
|
|
799
|
-
|
800
|
-
|
799
|
+
raise "Missing the required parameter 'compartment_id' when calling list_file_systems." if compartment_id.nil?
|
800
|
+
raise "Missing the required parameter 'availability_domain' when calling list_file_systems." if availability_domain.nil?
|
801
801
|
|
802
802
|
if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
|
803
|
-
|
803
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
|
804
804
|
end
|
805
805
|
|
806
806
|
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
807
|
-
|
807
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
808
808
|
end
|
809
809
|
|
810
810
|
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
811
|
-
|
811
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
812
812
|
end
|
813
813
|
|
814
814
|
path = "/fileSystems"
|
@@ -882,19 +882,19 @@ module OCI
|
|
882
882
|
def list_mount_targets(compartment_id, availability_domain, opts = {})
|
883
883
|
logger.debug "Calling operation FileStorageClient#list_mount_targets." if logger
|
884
884
|
|
885
|
-
|
886
|
-
|
885
|
+
raise "Missing the required parameter 'compartment_id' when calling list_mount_targets." if compartment_id.nil?
|
886
|
+
raise "Missing the required parameter 'availability_domain' when calling list_mount_targets." if availability_domain.nil?
|
887
887
|
|
888
888
|
if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
|
889
|
-
|
889
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
|
890
890
|
end
|
891
891
|
|
892
892
|
if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
|
893
|
-
|
893
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
894
894
|
end
|
895
895
|
|
896
896
|
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
897
|
-
|
897
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
898
898
|
end
|
899
899
|
|
900
900
|
path = "/mountTargets"
|
@@ -954,14 +954,14 @@ module OCI
|
|
954
954
|
def list_snapshots(file_system_id, opts = {})
|
955
955
|
logger.debug "Calling operation FileStorageClient#list_snapshots." if logger
|
956
956
|
|
957
|
-
|
957
|
+
raise "Missing the required parameter 'file_system_id' when calling list_snapshots." if file_system_id.nil?
|
958
958
|
|
959
959
|
if opts[:'lifecycle_state'] && !['CREATING', 'ACTIVE', 'DELETING', 'DELETED', 'FAILED'].include?(opts[:'lifecycle_state'])
|
960
|
-
|
960
|
+
raise 'Invalid value for "lifecycle_state", must be one of CREATING, ACTIVE, DELETING, DELETED, FAILED.'
|
961
961
|
end
|
962
962
|
|
963
963
|
if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
|
964
|
-
|
964
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
965
965
|
end
|
966
966
|
|
967
967
|
path = "/snapshots"
|
@@ -1006,8 +1006,8 @@ module OCI
|
|
1006
1006
|
def update_export_set(export_set_id, update_export_set_details, opts = {})
|
1007
1007
|
logger.debug "Calling operation FileStorageClient#update_export_set." if logger
|
1008
1008
|
|
1009
|
-
|
1010
|
-
|
1009
|
+
raise "Missing the required parameter 'export_set_id' when calling update_export_set." if export_set_id.nil?
|
1010
|
+
raise "Missing the required parameter 'update_export_set_details' when calling update_export_set." if update_export_set_details.nil?
|
1011
1011
|
|
1012
1012
|
path = "/exportSets/{exportSetId}".sub('{exportSetId}', export_set_id.to_s)
|
1013
1013
|
|
@@ -1048,8 +1048,8 @@ module OCI
|
|
1048
1048
|
def update_file_system(file_system_id, update_file_system_details, opts = {})
|
1049
1049
|
logger.debug "Calling operation FileStorageClient#update_file_system." if logger
|
1050
1050
|
|
1051
|
-
|
1052
|
-
|
1051
|
+
raise "Missing the required parameter 'file_system_id' when calling update_file_system." if file_system_id.nil?
|
1052
|
+
raise "Missing the required parameter 'update_file_system_details' when calling update_file_system." if update_file_system_details.nil?
|
1053
1053
|
|
1054
1054
|
path = "/fileSystems/{fileSystemId}".sub('{fileSystemId}', file_system_id.to_s)
|
1055
1055
|
|
@@ -1088,8 +1088,8 @@ module OCI
|
|
1088
1088
|
def update_mount_target(mount_target_id, update_mount_target_details, opts = {})
|
1089
1089
|
logger.debug "Calling operation FileStorageClient#update_mount_target." if logger
|
1090
1090
|
|
1091
|
-
|
1092
|
-
|
1091
|
+
raise "Missing the required parameter 'mount_target_id' when calling update_mount_target." if mount_target_id.nil?
|
1092
|
+
raise "Missing the required parameter 'update_mount_target_details' when calling update_mount_target." if update_mount_target_details.nil?
|
1093
1093
|
|
1094
1094
|
path = "/mountTargets/{mountTargetId}".sub('{mountTargetId}', mount_target_id.to_s)
|
1095
1095
|
|
@@ -22,6 +22,7 @@ require 'oci/identity/models/create_idp_group_mapping_details'
|
|
22
22
|
require 'oci/identity/models/create_policy_details'
|
23
23
|
require 'oci/identity/models/create_region_subscription_details'
|
24
24
|
require 'oci/identity/models/create_saml2_identity_provider_details'
|
25
|
+
require 'oci/identity/models/create_smtp_credential_details'
|
25
26
|
require 'oci/identity/models/create_swift_password_details'
|
26
27
|
require 'oci/identity/models/create_tag_details'
|
27
28
|
require 'oci/identity/models/create_tag_namespace_details'
|
@@ -36,6 +37,8 @@ require 'oci/identity/models/policy'
|
|
36
37
|
require 'oci/identity/models/region'
|
37
38
|
require 'oci/identity/models/region_subscription'
|
38
39
|
require 'oci/identity/models/saml2_identity_provider'
|
40
|
+
require 'oci/identity/models/smtp_credential'
|
41
|
+
require 'oci/identity/models/smtp_credential_summary'
|
39
42
|
require 'oci/identity/models/swift_password'
|
40
43
|
require 'oci/identity/models/tag'
|
41
44
|
require 'oci/identity/models/tag_namespace'
|
@@ -51,6 +54,7 @@ require 'oci/identity/models/update_identity_provider_details'
|
|
51
54
|
require 'oci/identity/models/update_idp_group_mapping_details'
|
52
55
|
require 'oci/identity/models/update_policy_details'
|
53
56
|
require 'oci/identity/models/update_saml2_identity_provider_details'
|
57
|
+
require 'oci/identity/models/update_smtp_credential_details'
|
54
58
|
require 'oci/identity/models/update_state_details'
|
55
59
|
require 'oci/identity/models/update_swift_password_details'
|
56
60
|
require 'oci/identity/models/update_tag_details'
|
@@ -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, :IdentityClient) + '/20160918'
|
66
66
|
logger.info "IdentityClient endpoint set to '#{endpoint}'." if logger
|
@@ -89,7 +89,7 @@ module OCI
|
|
89
89
|
def add_user_to_group(add_user_to_group_details, opts = {})
|
90
90
|
logger.debug "Calling operation IdentityClient#add_user_to_group." if logger
|
91
91
|
|
92
|
-
|
92
|
+
raise "Missing the required parameter 'add_user_to_group_details' when calling add_user_to_group." if add_user_to_group_details.nil?
|
93
93
|
|
94
94
|
path = "/userGroupMemberships/"
|
95
95
|
|
@@ -146,7 +146,7 @@ module OCI
|
|
146
146
|
def create_compartment(create_compartment_details, opts = {})
|
147
147
|
logger.debug "Calling operation IdentityClient#create_compartment." if logger
|
148
148
|
|
149
|
-
|
149
|
+
raise "Missing the required parameter 'create_compartment_details' when calling create_compartment." if create_compartment_details.nil?
|
150
150
|
|
151
151
|
path = "/compartments/"
|
152
152
|
|
@@ -196,8 +196,8 @@ module OCI
|
|
196
196
|
def create_customer_secret_key(create_customer_secret_key_details, user_id, opts = {})
|
197
197
|
logger.debug "Calling operation IdentityClient#create_customer_secret_key." if logger
|
198
198
|
|
199
|
-
|
200
|
-
|
199
|
+
raise "Missing the required parameter 'create_customer_secret_key_details' when calling create_customer_secret_key." if create_customer_secret_key_details.nil?
|
200
|
+
raise "Missing the required parameter 'user_id' when calling create_customer_secret_key." if user_id.nil?
|
201
201
|
|
202
202
|
path = "/users/{userId}/customerSecretKeys/".sub('{userId}', user_id.to_s)
|
203
203
|
|
@@ -253,7 +253,7 @@ module OCI
|
|
253
253
|
def create_dynamic_group(create_dynamic_group_details, opts = {})
|
254
254
|
logger.debug "Calling operation IdentityClient#create_dynamic_group." if logger
|
255
255
|
|
256
|
-
|
256
|
+
raise "Missing the required parameter 'create_dynamic_group_details' when calling create_dynamic_group." if create_dynamic_group_details.nil?
|
257
257
|
|
258
258
|
path = "/dynamicGroups/"
|
259
259
|
|
@@ -312,7 +312,7 @@ module OCI
|
|
312
312
|
def create_group(create_group_details, opts = {})
|
313
313
|
logger.debug "Calling operation IdentityClient#create_group." if logger
|
314
314
|
|
315
|
-
|
315
|
+
raise "Missing the required parameter 'create_group_details' when calling create_group." if create_group_details.nil?
|
316
316
|
|
317
317
|
path = "/groups/"
|
318
318
|
|
@@ -368,7 +368,7 @@ module OCI
|
|
368
368
|
def create_identity_provider(create_identity_provider_details, opts = {})
|
369
369
|
logger.debug "Calling operation IdentityClient#create_identity_provider." if logger
|
370
370
|
|
371
|
-
|
371
|
+
raise "Missing the required parameter 'create_identity_provider_details' when calling create_identity_provider." if create_identity_provider_details.nil?
|
372
372
|
|
373
373
|
path = "/identityProviders/"
|
374
374
|
|
@@ -409,8 +409,8 @@ module OCI
|
|
409
409
|
def create_idp_group_mapping(create_idp_group_mapping_details, identity_provider_id, opts = {})
|
410
410
|
logger.debug "Calling operation IdentityClient#create_idp_group_mapping." if logger
|
411
411
|
|
412
|
-
|
413
|
-
|
412
|
+
raise "Missing the required parameter 'create_idp_group_mapping_details' when calling create_idp_group_mapping." if create_idp_group_mapping_details.nil?
|
413
|
+
raise "Missing the required parameter 'identity_provider_id' when calling create_idp_group_mapping." if identity_provider_id.nil?
|
414
414
|
|
415
415
|
path = "/identityProviders/{identityProviderId}/groupMappings/".sub('{identityProviderId}', identity_provider_id.to_s)
|
416
416
|
|
@@ -459,7 +459,7 @@ module OCI
|
|
459
459
|
def create_or_reset_ui_password(user_id, opts = {})
|
460
460
|
logger.debug "Calling operation IdentityClient#create_or_reset_ui_password." if logger
|
461
461
|
|
462
|
-
|
462
|
+
raise "Missing the required parameter 'user_id' when calling create_or_reset_ui_password." if user_id.nil?
|
463
463
|
|
464
464
|
path = "/users/{userId}/uiPassword".sub('{userId}', user_id.to_s)
|
465
465
|
|
@@ -514,7 +514,7 @@ module OCI
|
|
514
514
|
def create_policy(create_policy_details, opts = {})
|
515
515
|
logger.debug "Calling operation IdentityClient#create_policy." if logger
|
516
516
|
|
517
|
-
|
517
|
+
raise "Missing the required parameter 'create_policy_details' when calling create_policy." if create_policy_details.nil?
|
518
518
|
|
519
519
|
path = "/policies/"
|
520
520
|
|
@@ -554,8 +554,8 @@ module OCI
|
|
554
554
|
def create_region_subscription(create_region_subscription_details, tenancy_id, opts = {})
|
555
555
|
logger.debug "Calling operation IdentityClient#create_region_subscription." if logger
|
556
556
|
|
557
|
-
|
558
|
-
|
557
|
+
raise "Missing the required parameter 'create_region_subscription_details' when calling create_region_subscription." if create_region_subscription_details.nil?
|
558
|
+
raise "Missing the required parameter 'tenancy_id' when calling create_region_subscription." if tenancy_id.nil?
|
559
559
|
|
560
560
|
path = "/tenancies/{tenancyId}/regionSubscriptions".sub('{tenancyId}', tenancy_id.to_s)
|
561
561
|
|
@@ -580,6 +580,50 @@ module OCI
|
|
580
580
|
:return_type => 'OCI::Identity::Models::RegionSubscription')
|
581
581
|
end
|
582
582
|
|
583
|
+
# Creates a new SMTP credential for the specified user. An SMTP credential has an SMTP user name and an SMTP password.
|
584
|
+
# You must specify a *description* for the SMTP credential (although it can be an empty string). It does not
|
585
|
+
# have to be unique, and you can change it anytime with
|
586
|
+
# {#update_smtp_credential update_smtp_credential}.
|
587
|
+
#
|
588
|
+
# @param [CreateSmtpCredentialDetails] create_smtp_credential_details Request object for creating a new SMTP credential with the user.
|
589
|
+
# @param [String] user_id The OCID of the user.
|
590
|
+
# @param [Hash] opts the optional parameters
|
591
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
592
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
593
|
+
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
594
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
595
|
+
# may be rejected).
|
596
|
+
#
|
597
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::SmtpCredential
|
598
|
+
def create_smtp_credential(create_smtp_credential_details, user_id, opts = {})
|
599
|
+
logger.debug "Calling operation IdentityClient#create_smtp_credential." if logger
|
600
|
+
|
601
|
+
raise "Missing the required parameter 'create_smtp_credential_details' when calling create_smtp_credential." if create_smtp_credential_details.nil?
|
602
|
+
raise "Missing the required parameter 'user_id' when calling create_smtp_credential." if user_id.nil?
|
603
|
+
|
604
|
+
path = "/users/{userId}/smtpCredentials/".sub('{userId}', user_id.to_s)
|
605
|
+
|
606
|
+
# Query Params
|
607
|
+
query_params = {}
|
608
|
+
|
609
|
+
# Header Params
|
610
|
+
header_params = {}
|
611
|
+
header_params['accept'] = 'application/json'
|
612
|
+
header_params['content-type'] = 'application/json'
|
613
|
+
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
614
|
+
|
615
|
+
post_body = @api_client.object_to_http_body(create_smtp_credential_details)
|
616
|
+
|
617
|
+
return @api_client.call_api(
|
618
|
+
:POST,
|
619
|
+
path,
|
620
|
+
endpoint,
|
621
|
+
:header_params => header_params,
|
622
|
+
:query_params => query_params,
|
623
|
+
:body => post_body,
|
624
|
+
:return_type => 'OCI::Identity::Models::SmtpCredential')
|
625
|
+
end
|
626
|
+
|
583
627
|
# Creates a new Swift password for the specified user. For information about what Swift passwords are for, see
|
584
628
|
# [Managing User Credentials](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/managingcredentials.htm).
|
585
629
|
#
|
@@ -604,8 +648,8 @@ module OCI
|
|
604
648
|
def create_swift_password(create_swift_password_details, user_id, opts = {})
|
605
649
|
logger.debug "Calling operation IdentityClient#create_swift_password." if logger
|
606
650
|
|
607
|
-
|
608
|
-
|
651
|
+
raise "Missing the required parameter 'create_swift_password_details' when calling create_swift_password." if create_swift_password_details.nil?
|
652
|
+
raise "Missing the required parameter 'user_id' when calling create_swift_password." if user_id.nil?
|
609
653
|
|
610
654
|
path = "/users/{userId}/swiftPasswords/".sub('{userId}', user_id.to_s)
|
611
655
|
|
@@ -657,8 +701,8 @@ module OCI
|
|
657
701
|
def create_tag(tag_namespace_id, create_tag_details, opts = {})
|
658
702
|
logger.debug "Calling operation IdentityClient#create_tag." if logger
|
659
703
|
|
660
|
-
|
661
|
-
|
704
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling create_tag." if tag_namespace_id.nil?
|
705
|
+
raise "Missing the required parameter 'create_tag_details' when calling create_tag." if create_tag_details.nil?
|
662
706
|
|
663
707
|
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
664
708
|
|
@@ -713,7 +757,7 @@ module OCI
|
|
713
757
|
def create_tag_namespace(create_tag_namespace_details, opts = {})
|
714
758
|
logger.debug "Calling operation IdentityClient#create_tag_namespace." if logger
|
715
759
|
|
716
|
-
|
760
|
+
raise "Missing the required parameter 'create_tag_namespace_details' when calling create_tag_namespace." if create_tag_namespace_details.nil?
|
717
761
|
|
718
762
|
path = "/tagNamespaces"
|
719
763
|
|
@@ -786,7 +830,7 @@ module OCI
|
|
786
830
|
def create_user(create_user_details, opts = {})
|
787
831
|
logger.debug "Calling operation IdentityClient#create_user." if logger
|
788
832
|
|
789
|
-
|
833
|
+
raise "Missing the required parameter 'create_user_details' when calling create_user." if create_user_details.nil?
|
790
834
|
|
791
835
|
path = "/users/"
|
792
836
|
|
@@ -829,8 +873,8 @@ module OCI
|
|
829
873
|
def delete_api_key(user_id, fingerprint, opts = {})
|
830
874
|
logger.debug "Calling operation IdentityClient#delete_api_key." if logger
|
831
875
|
|
832
|
-
|
833
|
-
|
876
|
+
raise "Missing the required parameter 'user_id' when calling delete_api_key." if user_id.nil?
|
877
|
+
raise "Missing the required parameter 'fingerprint' when calling delete_api_key." if fingerprint.nil?
|
834
878
|
|
835
879
|
path = "/users/{userId}/apiKeys/{fingerprint}".sub('{userId}', user_id.to_s).sub('{fingerprint}', fingerprint.to_s)
|
836
880
|
|
@@ -867,8 +911,8 @@ module OCI
|
|
867
911
|
def delete_customer_secret_key(user_id, customer_secret_key_id, opts = {})
|
868
912
|
logger.debug "Calling operation IdentityClient#delete_customer_secret_key." if logger
|
869
913
|
|
870
|
-
|
871
|
-
|
914
|
+
raise "Missing the required parameter 'user_id' when calling delete_customer_secret_key." if user_id.nil?
|
915
|
+
raise "Missing the required parameter 'customer_secret_key_id' when calling delete_customer_secret_key." if customer_secret_key_id.nil?
|
872
916
|
|
873
917
|
path = "/users/{userId}/customerSecretKeys/{customerSecretKeyId}".sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
874
918
|
|
@@ -904,7 +948,7 @@ module OCI
|
|
904
948
|
def delete_dynamic_group(dynamic_group_id, opts = {})
|
905
949
|
logger.debug "Calling operation IdentityClient#delete_dynamic_group." if logger
|
906
950
|
|
907
|
-
|
951
|
+
raise "Missing the required parameter 'dynamic_group_id' when calling delete_dynamic_group." if dynamic_group_id.nil?
|
908
952
|
|
909
953
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
910
954
|
|
@@ -940,7 +984,7 @@ module OCI
|
|
940
984
|
def delete_group(group_id, opts = {})
|
941
985
|
logger.debug "Calling operation IdentityClient#delete_group." if logger
|
942
986
|
|
943
|
-
|
987
|
+
raise "Missing the required parameter 'group_id' when calling delete_group." if group_id.nil?
|
944
988
|
|
945
989
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
946
990
|
|
@@ -977,7 +1021,7 @@ module OCI
|
|
977
1021
|
def delete_identity_provider(identity_provider_id, opts = {})
|
978
1022
|
logger.debug "Calling operation IdentityClient#delete_identity_provider." if logger
|
979
1023
|
|
980
|
-
|
1024
|
+
raise "Missing the required parameter 'identity_provider_id' when calling delete_identity_provider." if identity_provider_id.nil?
|
981
1025
|
|
982
1026
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
983
1027
|
|
@@ -1013,8 +1057,8 @@ module OCI
|
|
1013
1057
|
def delete_idp_group_mapping(identity_provider_id, mapping_id, opts = {})
|
1014
1058
|
logger.debug "Calling operation IdentityClient#delete_idp_group_mapping." if logger
|
1015
1059
|
|
1016
|
-
|
1017
|
-
|
1060
|
+
raise "Missing the required parameter 'identity_provider_id' when calling delete_idp_group_mapping." if identity_provider_id.nil?
|
1061
|
+
raise "Missing the required parameter 'mapping_id' when calling delete_idp_group_mapping." if mapping_id.nil?
|
1018
1062
|
|
1019
1063
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1020
1064
|
|
@@ -1049,7 +1093,7 @@ module OCI
|
|
1049
1093
|
def delete_policy(policy_id, opts = {})
|
1050
1094
|
logger.debug "Calling operation IdentityClient#delete_policy." if logger
|
1051
1095
|
|
1052
|
-
|
1096
|
+
raise "Missing the required parameter 'policy_id' when calling delete_policy." if policy_id.nil?
|
1053
1097
|
|
1054
1098
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
1055
1099
|
|
@@ -1073,6 +1117,44 @@ module OCI
|
|
1073
1117
|
:body => post_body)
|
1074
1118
|
end
|
1075
1119
|
|
1120
|
+
# Deletes the specified SMTP credential for the specified user.
|
1121
|
+
#
|
1122
|
+
# @param [String] user_id The OCID of the user.
|
1123
|
+
# @param [String] smtp_credential_id The OCID of the SMTP credential.
|
1124
|
+
# @param [Hash] opts the optional parameters
|
1125
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
1126
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
1127
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
1128
|
+
#
|
1129
|
+
# @return [Response] A Response object with data of type nil
|
1130
|
+
def delete_smtp_credential(user_id, smtp_credential_id, opts = {})
|
1131
|
+
logger.debug "Calling operation IdentityClient#delete_smtp_credential." if logger
|
1132
|
+
|
1133
|
+
raise "Missing the required parameter 'user_id' when calling delete_smtp_credential." if user_id.nil?
|
1134
|
+
raise "Missing the required parameter 'smtp_credential_id' when calling delete_smtp_credential." if smtp_credential_id.nil?
|
1135
|
+
|
1136
|
+
path = "/users/{userId}/smtpCredentials/{smtpCredentialId}".sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
1137
|
+
|
1138
|
+
# Query Params
|
1139
|
+
query_params = {}
|
1140
|
+
|
1141
|
+
# Header Params
|
1142
|
+
header_params = {}
|
1143
|
+
header_params['accept'] = 'application/json'
|
1144
|
+
header_params['content-type'] = 'application/json'
|
1145
|
+
header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
|
1146
|
+
|
1147
|
+
post_body = nil
|
1148
|
+
|
1149
|
+
return @api_client.call_api(
|
1150
|
+
:DELETE,
|
1151
|
+
path,
|
1152
|
+
endpoint,
|
1153
|
+
:header_params => header_params,
|
1154
|
+
:query_params => query_params,
|
1155
|
+
:body => post_body)
|
1156
|
+
end
|
1157
|
+
|
1076
1158
|
# Deletes the specified Swift password for the specified user.
|
1077
1159
|
#
|
1078
1160
|
# @param [String] user_id The OCID of the user.
|
@@ -1086,8 +1168,8 @@ module OCI
|
|
1086
1168
|
def delete_swift_password(user_id, swift_password_id, opts = {})
|
1087
1169
|
logger.debug "Calling operation IdentityClient#delete_swift_password." if logger
|
1088
1170
|
|
1089
|
-
|
1090
|
-
|
1171
|
+
raise "Missing the required parameter 'user_id' when calling delete_swift_password." if user_id.nil?
|
1172
|
+
raise "Missing the required parameter 'swift_password_id' when calling delete_swift_password." if swift_password_id.nil?
|
1091
1173
|
|
1092
1174
|
path = "/users/{userId}/swiftPasswords/{swiftPasswordId}".sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
1093
1175
|
|
@@ -1122,7 +1204,7 @@ module OCI
|
|
1122
1204
|
def delete_user(user_id, opts = {})
|
1123
1205
|
logger.debug "Calling operation IdentityClient#delete_user." if logger
|
1124
1206
|
|
1125
|
-
|
1207
|
+
raise "Missing the required parameter 'user_id' when calling delete_user." if user_id.nil?
|
1126
1208
|
|
1127
1209
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
1128
1210
|
|
@@ -1161,7 +1243,7 @@ module OCI
|
|
1161
1243
|
def get_compartment(compartment_id, opts = {})
|
1162
1244
|
logger.debug "Calling operation IdentityClient#get_compartment." if logger
|
1163
1245
|
|
1164
|
-
|
1246
|
+
raise "Missing the required parameter 'compartment_id' when calling get_compartment." if compartment_id.nil?
|
1165
1247
|
|
1166
1248
|
path = "/compartments/{compartmentId}".sub('{compartmentId}', compartment_id.to_s)
|
1167
1249
|
|
@@ -1193,7 +1275,7 @@ module OCI
|
|
1193
1275
|
def get_dynamic_group(dynamic_group_id, opts = {})
|
1194
1276
|
logger.debug "Calling operation IdentityClient#get_dynamic_group." if logger
|
1195
1277
|
|
1196
|
-
|
1278
|
+
raise "Missing the required parameter 'dynamic_group_id' when calling get_dynamic_group." if dynamic_group_id.nil?
|
1197
1279
|
|
1198
1280
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
1199
1281
|
|
@@ -1229,7 +1311,7 @@ module OCI
|
|
1229
1311
|
def get_group(group_id, opts = {})
|
1230
1312
|
logger.debug "Calling operation IdentityClient#get_group." if logger
|
1231
1313
|
|
1232
|
-
|
1314
|
+
raise "Missing the required parameter 'group_id' when calling get_group." if group_id.nil?
|
1233
1315
|
|
1234
1316
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
1235
1317
|
|
@@ -1260,7 +1342,7 @@ module OCI
|
|
1260
1342
|
def get_identity_provider(identity_provider_id, opts = {})
|
1261
1343
|
logger.debug "Calling operation IdentityClient#get_identity_provider." if logger
|
1262
1344
|
|
1263
|
-
|
1345
|
+
raise "Missing the required parameter 'identity_provider_id' when calling get_identity_provider." if identity_provider_id.nil?
|
1264
1346
|
|
1265
1347
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
1266
1348
|
|
@@ -1292,8 +1374,8 @@ module OCI
|
|
1292
1374
|
def get_idp_group_mapping(identity_provider_id, mapping_id, opts = {})
|
1293
1375
|
logger.debug "Calling operation IdentityClient#get_idp_group_mapping." if logger
|
1294
1376
|
|
1295
|
-
|
1296
|
-
|
1377
|
+
raise "Missing the required parameter 'identity_provider_id' when calling get_idp_group_mapping." if identity_provider_id.nil?
|
1378
|
+
raise "Missing the required parameter 'mapping_id' when calling get_idp_group_mapping." if mapping_id.nil?
|
1297
1379
|
|
1298
1380
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
1299
1381
|
|
@@ -1324,7 +1406,7 @@ module OCI
|
|
1324
1406
|
def get_policy(policy_id, opts = {})
|
1325
1407
|
logger.debug "Calling operation IdentityClient#get_policy." if logger
|
1326
1408
|
|
1327
|
-
|
1409
|
+
raise "Missing the required parameter 'policy_id' when calling get_policy." if policy_id.nil?
|
1328
1410
|
|
1329
1411
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
1330
1412
|
|
@@ -1358,8 +1440,8 @@ module OCI
|
|
1358
1440
|
def get_tag(tag_namespace_id, tag_name, opts = {})
|
1359
1441
|
logger.debug "Calling operation IdentityClient#get_tag." if logger
|
1360
1442
|
|
1361
|
-
|
1362
|
-
|
1443
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling get_tag." if tag_namespace_id.nil?
|
1444
|
+
raise "Missing the required parameter 'tag_name' when calling get_tag." if tag_name.nil?
|
1363
1445
|
|
1364
1446
|
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
1365
1447
|
|
@@ -1392,7 +1474,7 @@ module OCI
|
|
1392
1474
|
def get_tag_namespace(tag_namespace_id, opts = {})
|
1393
1475
|
logger.debug "Calling operation IdentityClient#get_tag_namespace." if logger
|
1394
1476
|
|
1395
|
-
|
1477
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling get_tag_namespace." if tag_namespace_id.nil?
|
1396
1478
|
|
1397
1479
|
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
1398
1480
|
|
@@ -1423,7 +1505,7 @@ module OCI
|
|
1423
1505
|
def get_tenancy(tenancy_id, opts = {})
|
1424
1506
|
logger.debug "Calling operation IdentityClient#get_tenancy." if logger
|
1425
1507
|
|
1426
|
-
|
1508
|
+
raise "Missing the required parameter 'tenancy_id' when calling get_tenancy." if tenancy_id.nil?
|
1427
1509
|
|
1428
1510
|
path = "/tenancies/{tenancyId}".sub('{tenancyId}', tenancy_id.to_s)
|
1429
1511
|
|
@@ -1454,7 +1536,7 @@ module OCI
|
|
1454
1536
|
def get_user(user_id, opts = {})
|
1455
1537
|
logger.debug "Calling operation IdentityClient#get_user." if logger
|
1456
1538
|
|
1457
|
-
|
1539
|
+
raise "Missing the required parameter 'user_id' when calling get_user." if user_id.nil?
|
1458
1540
|
|
1459
1541
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
1460
1542
|
|
@@ -1485,7 +1567,7 @@ module OCI
|
|
1485
1567
|
def get_user_group_membership(user_group_membership_id, opts = {})
|
1486
1568
|
logger.debug "Calling operation IdentityClient#get_user_group_membership." if logger
|
1487
1569
|
|
1488
|
-
|
1570
|
+
raise "Missing the required parameter 'user_group_membership_id' when calling get_user_group_membership." if user_group_membership_id.nil?
|
1489
1571
|
|
1490
1572
|
path = "/userGroupMemberships/{userGroupMembershipId}".sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
1491
1573
|
|
@@ -1520,7 +1602,7 @@ module OCI
|
|
1520
1602
|
def list_api_keys(user_id, opts = {})
|
1521
1603
|
logger.debug "Calling operation IdentityClient#list_api_keys." if logger
|
1522
1604
|
|
1523
|
-
|
1605
|
+
raise "Missing the required parameter 'user_id' when calling list_api_keys." if user_id.nil?
|
1524
1606
|
|
1525
1607
|
path = "/users/{userId}/apiKeys/".sub('{userId}', user_id.to_s)
|
1526
1608
|
|
@@ -1555,7 +1637,7 @@ module OCI
|
|
1555
1637
|
def list_availability_domains(compartment_id, opts = {})
|
1556
1638
|
logger.debug "Calling operation IdentityClient#list_availability_domains." if logger
|
1557
1639
|
|
1558
|
-
|
1640
|
+
raise "Missing the required parameter 'compartment_id' when calling list_availability_domains." if compartment_id.nil?
|
1559
1641
|
|
1560
1642
|
path = "/availabilityDomains/"
|
1561
1643
|
|
@@ -1595,7 +1677,7 @@ module OCI
|
|
1595
1677
|
def list_compartments(compartment_id, opts = {})
|
1596
1678
|
logger.debug "Calling operation IdentityClient#list_compartments." if logger
|
1597
1679
|
|
1598
|
-
|
1680
|
+
raise "Missing the required parameter 'compartment_id' when calling list_compartments." if compartment_id.nil?
|
1599
1681
|
|
1600
1682
|
path = "/compartments/"
|
1601
1683
|
|
@@ -1631,7 +1713,7 @@ module OCI
|
|
1631
1713
|
def list_customer_secret_keys(user_id, opts = {})
|
1632
1714
|
logger.debug "Calling operation IdentityClient#list_customer_secret_keys." if logger
|
1633
1715
|
|
1634
|
-
|
1716
|
+
raise "Missing the required parameter 'user_id' when calling list_customer_secret_keys." if user_id.nil?
|
1635
1717
|
|
1636
1718
|
path = "/users/{userId}/customerSecretKeys/".sub('{userId}', user_id.to_s)
|
1637
1719
|
|
@@ -1670,7 +1752,7 @@ module OCI
|
|
1670
1752
|
def list_dynamic_groups(compartment_id, opts = {})
|
1671
1753
|
logger.debug "Calling operation IdentityClient#list_dynamic_groups." if logger
|
1672
1754
|
|
1673
|
-
|
1755
|
+
raise "Missing the required parameter 'compartment_id' when calling list_dynamic_groups." if compartment_id.nil?
|
1674
1756
|
|
1675
1757
|
path = "/dynamicGroups/"
|
1676
1758
|
|
@@ -1712,7 +1794,7 @@ module OCI
|
|
1712
1794
|
def list_groups(compartment_id, opts = {})
|
1713
1795
|
logger.debug "Calling operation IdentityClient#list_groups." if logger
|
1714
1796
|
|
1715
|
-
|
1797
|
+
raise "Missing the required parameter 'compartment_id' when calling list_groups." if compartment_id.nil?
|
1716
1798
|
|
1717
1799
|
path = "/groups/"
|
1718
1800
|
|
@@ -1757,11 +1839,11 @@ module OCI
|
|
1757
1839
|
def list_identity_providers(protocol, compartment_id, opts = {})
|
1758
1840
|
logger.debug "Calling operation IdentityClient#list_identity_providers." if logger
|
1759
1841
|
|
1760
|
-
|
1842
|
+
raise "Missing the required parameter 'protocol' when calling list_identity_providers." if protocol.nil?
|
1761
1843
|
unless ['SAML2'].include?(protocol)
|
1762
|
-
|
1844
|
+
raise "Invalid value for 'protocol', must be one of SAML2."
|
1763
1845
|
end
|
1764
|
-
|
1846
|
+
raise "Missing the required parameter 'compartment_id' when calling list_identity_providers." if compartment_id.nil?
|
1765
1847
|
|
1766
1848
|
path = "/identityProviders/"
|
1767
1849
|
|
@@ -1801,7 +1883,7 @@ module OCI
|
|
1801
1883
|
def list_idp_group_mappings(identity_provider_id, opts = {})
|
1802
1884
|
logger.debug "Calling operation IdentityClient#list_idp_group_mappings." if logger
|
1803
1885
|
|
1804
|
-
|
1886
|
+
raise "Missing the required parameter 'identity_provider_id' when calling list_idp_group_mappings." if identity_provider_id.nil?
|
1805
1887
|
|
1806
1888
|
path = "/identityProviders/{identityProviderId}/groupMappings/".sub('{identityProviderId}', identity_provider_id.to_s)
|
1807
1889
|
|
@@ -1844,7 +1926,7 @@ module OCI
|
|
1844
1926
|
def list_policies(compartment_id, opts = {})
|
1845
1927
|
logger.debug "Calling operation IdentityClient#list_policies." if logger
|
1846
1928
|
|
1847
|
-
|
1929
|
+
raise "Missing the required parameter 'compartment_id' when calling list_policies." if compartment_id.nil?
|
1848
1930
|
|
1849
1931
|
path = "/policies/"
|
1850
1932
|
|
@@ -1878,7 +1960,7 @@ module OCI
|
|
1878
1960
|
def list_region_subscriptions(tenancy_id, opts = {})
|
1879
1961
|
logger.debug "Calling operation IdentityClient#list_region_subscriptions." if logger
|
1880
1962
|
|
1881
|
-
|
1963
|
+
raise "Missing the required parameter 'tenancy_id' when calling list_region_subscriptions." if tenancy_id.nil?
|
1882
1964
|
|
1883
1965
|
path = "/tenancies/{tenancyId}/regionSubscriptions".sub('{tenancyId}', tenancy_id.to_s)
|
1884
1966
|
|
@@ -1931,6 +2013,39 @@ module OCI
|
|
1931
2013
|
:return_type => 'Array<OCI::Identity::Models::Region>')
|
1932
2014
|
end
|
1933
2015
|
|
2016
|
+
# Lists the SMTP credentials for the specified user. The returned object contains the credential's OCID,
|
2017
|
+
# the SMTP user name but not the SMTP password. The SMTP password is returned only upon creation.
|
2018
|
+
#
|
2019
|
+
# @param [String] user_id The OCID of the user.
|
2020
|
+
# @param [Hash] opts the optional parameters
|
2021
|
+
# @return [Response] A Response object with data of type Array<OCI::Identity::Models::SmtpCredentialSummary>
|
2022
|
+
def list_smtp_credentials(user_id, opts = {})
|
2023
|
+
logger.debug "Calling operation IdentityClient#list_smtp_credentials." if logger
|
2024
|
+
|
2025
|
+
raise "Missing the required parameter 'user_id' when calling list_smtp_credentials." if user_id.nil?
|
2026
|
+
|
2027
|
+
path = "/users/{userId}/smtpCredentials/".sub('{userId}', user_id.to_s)
|
2028
|
+
|
2029
|
+
# Query Params
|
2030
|
+
query_params = {}
|
2031
|
+
|
2032
|
+
# Header Params
|
2033
|
+
header_params = {}
|
2034
|
+
header_params['accept'] = 'application/json'
|
2035
|
+
header_params['content-type'] = 'application/json'
|
2036
|
+
|
2037
|
+
post_body = nil
|
2038
|
+
|
2039
|
+
return @api_client.call_api(
|
2040
|
+
:GET,
|
2041
|
+
path,
|
2042
|
+
endpoint,
|
2043
|
+
:header_params => header_params,
|
2044
|
+
:query_params => query_params,
|
2045
|
+
:body => post_body,
|
2046
|
+
:return_type => 'Array<OCI::Identity::Models::SmtpCredentialSummary>')
|
2047
|
+
end
|
2048
|
+
|
1934
2049
|
# Lists the Swift passwords for the specified user. The returned object contains the password's OCID, but not
|
1935
2050
|
# the password itself. The actual password is returned only upon creation.
|
1936
2051
|
#
|
@@ -1940,7 +2055,7 @@ module OCI
|
|
1940
2055
|
def list_swift_passwords(user_id, opts = {})
|
1941
2056
|
logger.debug "Calling operation IdentityClient#list_swift_passwords." if logger
|
1942
2057
|
|
1943
|
-
|
2058
|
+
raise "Missing the required parameter 'user_id' when calling list_swift_passwords." if user_id.nil?
|
1944
2059
|
|
1945
2060
|
path = "/users/{userId}/swiftPasswords/".sub('{userId}', user_id.to_s)
|
1946
2061
|
|
@@ -1980,7 +2095,7 @@ module OCI
|
|
1980
2095
|
def list_tag_namespaces(compartment_id, opts = {})
|
1981
2096
|
logger.debug "Calling operation IdentityClient#list_tag_namespaces." if logger
|
1982
2097
|
|
1983
|
-
|
2098
|
+
raise "Missing the required parameter 'compartment_id' when calling list_tag_namespaces." if compartment_id.nil?
|
1984
2099
|
|
1985
2100
|
path = "/tagNamespaces"
|
1986
2101
|
|
@@ -2021,7 +2136,7 @@ module OCI
|
|
2021
2136
|
def list_tags(tag_namespace_id, opts = {})
|
2022
2137
|
logger.debug "Calling operation IdentityClient#list_tags." if logger
|
2023
2138
|
|
2024
|
-
|
2139
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling list_tags." if tag_namespace_id.nil?
|
2025
2140
|
|
2026
2141
|
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2027
2142
|
|
@@ -2071,7 +2186,7 @@ module OCI
|
|
2071
2186
|
def list_user_group_memberships(compartment_id, opts = {})
|
2072
2187
|
logger.debug "Calling operation IdentityClient#list_user_group_memberships." if logger
|
2073
2188
|
|
2074
|
-
|
2189
|
+
raise "Missing the required parameter 'compartment_id' when calling list_user_group_memberships." if compartment_id.nil?
|
2075
2190
|
|
2076
2191
|
path = "/userGroupMemberships/"
|
2077
2192
|
|
@@ -2115,7 +2230,7 @@ module OCI
|
|
2115
2230
|
def list_users(compartment_id, opts = {})
|
2116
2231
|
logger.debug "Calling operation IdentityClient#list_users." if logger
|
2117
2232
|
|
2118
|
-
|
2233
|
+
raise "Missing the required parameter 'compartment_id' when calling list_users." if compartment_id.nil?
|
2119
2234
|
|
2120
2235
|
path = "/users/"
|
2121
2236
|
|
@@ -2153,7 +2268,7 @@ module OCI
|
|
2153
2268
|
def remove_user_from_group(user_group_membership_id, opts = {})
|
2154
2269
|
logger.debug "Calling operation IdentityClient#remove_user_from_group." if logger
|
2155
2270
|
|
2156
|
-
|
2271
|
+
raise "Missing the required parameter 'user_group_membership_id' when calling remove_user_from_group." if user_group_membership_id.nil?
|
2157
2272
|
|
2158
2273
|
path = "/userGroupMemberships/{userGroupMembershipId}".sub('{userGroupMembershipId}', user_group_membership_id.to_s)
|
2159
2274
|
|
@@ -2189,8 +2304,8 @@ module OCI
|
|
2189
2304
|
def update_compartment(compartment_id, update_compartment_details, opts = {})
|
2190
2305
|
logger.debug "Calling operation IdentityClient#update_compartment." if logger
|
2191
2306
|
|
2192
|
-
|
2193
|
-
|
2307
|
+
raise "Missing the required parameter 'compartment_id' when calling update_compartment." if compartment_id.nil?
|
2308
|
+
raise "Missing the required parameter 'update_compartment_details' when calling update_compartment." if update_compartment_details.nil?
|
2194
2309
|
|
2195
2310
|
path = "/compartments/{compartmentId}".sub('{compartmentId}', compartment_id.to_s)
|
2196
2311
|
|
@@ -2229,9 +2344,9 @@ module OCI
|
|
2229
2344
|
def update_customer_secret_key(user_id, customer_secret_key_id, update_customer_secret_key_details, opts = {})
|
2230
2345
|
logger.debug "Calling operation IdentityClient#update_customer_secret_key." if logger
|
2231
2346
|
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
2347
|
+
raise "Missing the required parameter 'user_id' when calling update_customer_secret_key." if user_id.nil?
|
2348
|
+
raise "Missing the required parameter 'customer_secret_key_id' when calling update_customer_secret_key." if customer_secret_key_id.nil?
|
2349
|
+
raise "Missing the required parameter 'update_customer_secret_key_details' when calling update_customer_secret_key." if update_customer_secret_key_details.nil?
|
2235
2350
|
|
2236
2351
|
path = "/users/{userId}/customerSecretKeys/{customerSecretKeyId}".sub('{userId}', user_id.to_s).sub('{customerSecretKeyId}', customer_secret_key_id.to_s)
|
2237
2352
|
|
@@ -2268,8 +2383,8 @@ module OCI
|
|
2268
2383
|
def update_dynamic_group(dynamic_group_id, update_dynamic_group_details, opts = {})
|
2269
2384
|
logger.debug "Calling operation IdentityClient#update_dynamic_group." if logger
|
2270
2385
|
|
2271
|
-
|
2272
|
-
|
2386
|
+
raise "Missing the required parameter 'dynamic_group_id' when calling update_dynamic_group." if dynamic_group_id.nil?
|
2387
|
+
raise "Missing the required parameter 'update_dynamic_group_details' when calling update_dynamic_group." if update_dynamic_group_details.nil?
|
2273
2388
|
|
2274
2389
|
path = "/dynamicGroups/{dynamicGroupId}".sub('{dynamicGroupId}', dynamic_group_id.to_s)
|
2275
2390
|
|
@@ -2306,8 +2421,8 @@ module OCI
|
|
2306
2421
|
def update_group(group_id, update_group_details, opts = {})
|
2307
2422
|
logger.debug "Calling operation IdentityClient#update_group." if logger
|
2308
2423
|
|
2309
|
-
|
2310
|
-
|
2424
|
+
raise "Missing the required parameter 'group_id' when calling update_group." if group_id.nil?
|
2425
|
+
raise "Missing the required parameter 'update_group_details' when calling update_group." if update_group_details.nil?
|
2311
2426
|
|
2312
2427
|
path = "/groups/{groupId}".sub('{groupId}', group_id.to_s)
|
2313
2428
|
|
@@ -2344,8 +2459,8 @@ module OCI
|
|
2344
2459
|
def update_identity_provider(identity_provider_id, update_identity_provider_details, opts = {})
|
2345
2460
|
logger.debug "Calling operation IdentityClient#update_identity_provider." if logger
|
2346
2461
|
|
2347
|
-
|
2348
|
-
|
2462
|
+
raise "Missing the required parameter 'identity_provider_id' when calling update_identity_provider." if identity_provider_id.nil?
|
2463
|
+
raise "Missing the required parameter 'update_identity_provider_details' when calling update_identity_provider." if update_identity_provider_details.nil?
|
2349
2464
|
|
2350
2465
|
path = "/identityProviders/{identityProviderId}".sub('{identityProviderId}', identity_provider_id.to_s)
|
2351
2466
|
|
@@ -2383,9 +2498,9 @@ module OCI
|
|
2383
2498
|
def update_idp_group_mapping(identity_provider_id, mapping_id, update_idp_group_mapping_details, opts = {})
|
2384
2499
|
logger.debug "Calling operation IdentityClient#update_idp_group_mapping." if logger
|
2385
2500
|
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2501
|
+
raise "Missing the required parameter 'identity_provider_id' when calling update_idp_group_mapping." if identity_provider_id.nil?
|
2502
|
+
raise "Missing the required parameter 'mapping_id' when calling update_idp_group_mapping." if mapping_id.nil?
|
2503
|
+
raise "Missing the required parameter 'update_idp_group_mapping_details' when calling update_idp_group_mapping." if update_idp_group_mapping_details.nil?
|
2389
2504
|
|
2390
2505
|
path = "/identityProviders/{identityProviderId}/groupMappings/{mappingId}".sub('{identityProviderId}', identity_provider_id.to_s).sub('{mappingId}', mapping_id.to_s)
|
2391
2506
|
|
@@ -2425,8 +2540,8 @@ module OCI
|
|
2425
2540
|
def update_policy(policy_id, update_policy_details, opts = {})
|
2426
2541
|
logger.debug "Calling operation IdentityClient#update_policy." if logger
|
2427
2542
|
|
2428
|
-
|
2429
|
-
|
2543
|
+
raise "Missing the required parameter 'policy_id' when calling update_policy." if policy_id.nil?
|
2544
|
+
raise "Missing the required parameter 'update_policy_details' when calling update_policy." if update_policy_details.nil?
|
2430
2545
|
|
2431
2546
|
path = "/policies/{policyId}".sub('{policyId}', policy_id.to_s)
|
2432
2547
|
|
@@ -2451,6 +2566,47 @@ module OCI
|
|
2451
2566
|
:return_type => 'OCI::Identity::Models::Policy')
|
2452
2567
|
end
|
2453
2568
|
|
2569
|
+
# Updates the specified SMTP credential's description.
|
2570
|
+
#
|
2571
|
+
# @param [String] user_id The OCID of the user.
|
2572
|
+
# @param [String] smtp_credential_id The OCID of the SMTP credential.
|
2573
|
+
# @param [UpdateSmtpCredentialDetails] update_smtp_credential_details Request object for updating a SMTP credential.
|
2574
|
+
# @param [Hash] opts the optional parameters
|
2575
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
2576
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
2577
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
2578
|
+
#
|
2579
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::SmtpCredentialSummary
|
2580
|
+
def update_smtp_credential(user_id, smtp_credential_id, update_smtp_credential_details, opts = {})
|
2581
|
+
logger.debug "Calling operation IdentityClient#update_smtp_credential." if logger
|
2582
|
+
|
2583
|
+
raise "Missing the required parameter 'user_id' when calling update_smtp_credential." if user_id.nil?
|
2584
|
+
raise "Missing the required parameter 'smtp_credential_id' when calling update_smtp_credential." if smtp_credential_id.nil?
|
2585
|
+
raise "Missing the required parameter 'update_smtp_credential_details' when calling update_smtp_credential." if update_smtp_credential_details.nil?
|
2586
|
+
|
2587
|
+
path = "/users/{userId}/smtpCredentials/{smtpCredentialId}".sub('{userId}', user_id.to_s).sub('{smtpCredentialId}', smtp_credential_id.to_s)
|
2588
|
+
|
2589
|
+
# Query Params
|
2590
|
+
query_params = {}
|
2591
|
+
|
2592
|
+
# Header Params
|
2593
|
+
header_params = {}
|
2594
|
+
header_params['accept'] = 'application/json'
|
2595
|
+
header_params['content-type'] = 'application/json'
|
2596
|
+
header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
|
2597
|
+
|
2598
|
+
post_body = @api_client.object_to_http_body(update_smtp_credential_details)
|
2599
|
+
|
2600
|
+
return @api_client.call_api(
|
2601
|
+
:PUT,
|
2602
|
+
path,
|
2603
|
+
endpoint,
|
2604
|
+
:header_params => header_params,
|
2605
|
+
:query_params => query_params,
|
2606
|
+
:body => post_body,
|
2607
|
+
:return_type => 'OCI::Identity::Models::SmtpCredentialSummary')
|
2608
|
+
end
|
2609
|
+
|
2454
2610
|
# Updates the specified Swift password's description.
|
2455
2611
|
#
|
2456
2612
|
# @param [String] user_id The OCID of the user.
|
@@ -2465,9 +2621,9 @@ module OCI
|
|
2465
2621
|
def update_swift_password(user_id, swift_password_id, update_swift_password_details, opts = {})
|
2466
2622
|
logger.debug "Calling operation IdentityClient#update_swift_password." if logger
|
2467
2623
|
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2624
|
+
raise "Missing the required parameter 'user_id' when calling update_swift_password." if user_id.nil?
|
2625
|
+
raise "Missing the required parameter 'swift_password_id' when calling update_swift_password." if swift_password_id.nil?
|
2626
|
+
raise "Missing the required parameter 'update_swift_password_details' when calling update_swift_password." if update_swift_password_details.nil?
|
2471
2627
|
|
2472
2628
|
path = "/users/{userId}/swiftPasswords/{swiftPasswordId}".sub('{userId}', user_id.to_s).sub('{swiftPasswordId}', swift_password_id.to_s)
|
2473
2629
|
|
@@ -2504,9 +2660,9 @@ module OCI
|
|
2504
2660
|
def update_tag(tag_namespace_id, tag_name, update_tag_details, opts = {})
|
2505
2661
|
logger.debug "Calling operation IdentityClient#update_tag." if logger
|
2506
2662
|
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2663
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling update_tag." if tag_namespace_id.nil?
|
2664
|
+
raise "Missing the required parameter 'tag_name' when calling update_tag." if tag_name.nil?
|
2665
|
+
raise "Missing the required parameter 'update_tag_details' when calling update_tag." if update_tag_details.nil?
|
2510
2666
|
|
2511
2667
|
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
2512
2668
|
|
@@ -2548,8 +2704,8 @@ module OCI
|
|
2548
2704
|
def update_tag_namespace(tag_namespace_id, update_tag_namespace_details, opts = {})
|
2549
2705
|
logger.debug "Calling operation IdentityClient#update_tag_namespace." if logger
|
2550
2706
|
|
2551
|
-
|
2552
|
-
|
2707
|
+
raise "Missing the required parameter 'tag_namespace_id' when calling update_tag_namespace." if tag_namespace_id.nil?
|
2708
|
+
raise "Missing the required parameter 'update_tag_namespace_details' when calling update_tag_namespace." if update_tag_namespace_details.nil?
|
2553
2709
|
|
2554
2710
|
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2555
2711
|
|
@@ -2585,8 +2741,8 @@ module OCI
|
|
2585
2741
|
def update_user(user_id, update_user_details, opts = {})
|
2586
2742
|
logger.debug "Calling operation IdentityClient#update_user." if logger
|
2587
2743
|
|
2588
|
-
|
2589
|
-
|
2744
|
+
raise "Missing the required parameter 'user_id' when calling update_user." if user_id.nil?
|
2745
|
+
raise "Missing the required parameter 'update_user_details' when calling update_user." if update_user_details.nil?
|
2590
2746
|
|
2591
2747
|
path = "/users/{userId}".sub('{userId}', user_id.to_s)
|
2592
2748
|
|
@@ -2624,8 +2780,8 @@ module OCI
|
|
2624
2780
|
def update_user_state(user_id, update_state_details, opts = {})
|
2625
2781
|
logger.debug "Calling operation IdentityClient#update_user_state." if logger
|
2626
2782
|
|
2627
|
-
|
2628
|
-
|
2783
|
+
raise "Missing the required parameter 'user_id' when calling update_user_state." if user_id.nil?
|
2784
|
+
raise "Missing the required parameter 'update_state_details' when calling update_user_state." if update_state_details.nil?
|
2629
2785
|
|
2630
2786
|
path = "/users/{userId}/state/".sub('{userId}', user_id.to_s)
|
2631
2787
|
|
@@ -2679,8 +2835,8 @@ module OCI
|
|
2679
2835
|
def upload_api_key(user_id, create_api_key_details, opts = {})
|
2680
2836
|
logger.debug "Calling operation IdentityClient#upload_api_key." if logger
|
2681
2837
|
|
2682
|
-
|
2683
|
-
|
2838
|
+
raise "Missing the required parameter 'user_id' when calling upload_api_key." if user_id.nil?
|
2839
|
+
raise "Missing the required parameter 'create_api_key_details' when calling upload_api_key." if create_api_key_details.nil?
|
2684
2840
|
|
2685
2841
|
path = "/users/{userId}/apiKeys/".sub('{userId}', user_id.to_s)
|
2686
2842
|
|