ibm_cloud_iam 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +202 -0
  3. data/README.md +548 -36
  4. data/docs/APIKeysApi.md +714 -0
  5. data/docs/AccessGroupCount.md +20 -0
  6. data/docs/AccountBasedMfaEnrollment.md +24 -0
  7. data/docs/AccountIdpSettings.md +32 -0
  8. data/docs/AccountLimitsApi.md +173 -0
  9. data/docs/AccountLoginSettings.md +18 -0
  10. data/docs/AccountSettingsApi.md +224 -0
  11. data/docs/AccountSettingsAssignedTemplatesSection.md +46 -0
  12. data/docs/AccountSettingsEffectiveSection.md +38 -0
  13. data/docs/AccountSettingsForIdPApi.md +489 -0
  14. data/docs/AccountSettingsMeta.md +24 -0
  15. data/docs/AccountSettingsRequest.md +40 -0
  16. data/docs/AccountSettingsResponse.md +48 -0
  17. data/docs/AccountSettingsTemplateApi.md +720 -0
  18. data/docs/AccountSettingsTemplateAssignmentsApi.md +376 -0
  19. data/docs/AccountSettingsTemplateList.md +30 -0
  20. data/docs/AccountSettingsTemplateRequest.md +24 -0
  21. data/docs/AccountSettingsTemplateResponse.md +44 -0
  22. data/docs/AccountSettingsUserDomainRestriction.md +22 -0
  23. data/docs/AccountSettingsUserMFAResponse.md +28 -0
  24. data/docs/ActionControls.md +22 -0
  25. data/docs/ActionControlsIdentities.md +20 -0
  26. data/docs/ActivitiesApi.md +149 -0
  27. data/docs/Activity.md +20 -0
  28. data/docs/AddAccountIdpSettingRequest.md +22 -0
  29. data/docs/ApiKey.md +44 -33
  30. data/docs/ApiKeyInsideCreateServiceIdRequest.md +18 -13
  31. data/docs/ApiKeyList.md +20 -19
  32. data/docs/ApikeyActivity.md +28 -0
  33. data/docs/ApikeyActivityServiceid.md +20 -0
  34. data/docs/ApikeyActivityUser.md +24 -0
  35. data/docs/AssignedTemplatesAccountSettings.md +40 -0
  36. data/docs/CommonAccountSettingsRequest.md +36 -0
  37. data/docs/CommonAccountSettingsResponse.md +34 -0
  38. data/docs/ConsumersResponse.md +20 -0
  39. data/docs/ConsumersResponseConsumersInner.md +20 -0
  40. data/docs/CreateApiKeyRequest.md +24 -17
  41. data/docs/CreateIdpRequest.md +30 -0
  42. data/docs/CreateIdpRequestProperties.md +20 -0
  43. data/docs/CreateIdpRequestPropertiesIdp.md +26 -0
  44. data/docs/CreateIdpRequestPropertiesSp.md +32 -0
  45. data/docs/CreateIdpRequestPropertiesSpAuthnContext.md +20 -0
  46. data/docs/CreateIdpRequestSecrets.md +20 -0
  47. data/docs/CreateIdpRequestSecretsIdp.md +22 -0
  48. data/docs/CreateIdpRequestSecretsIdpSigningInner.md +20 -0
  49. data/docs/CreateIdpRequestSecretsSp.md +18 -0
  50. data/docs/CreateIdpRequestSecretsSpSigningInner.md +24 -0
  51. data/docs/CreateProfileLinkRequest.md +24 -0
  52. data/docs/CreateProfileLinkRequestLink.md +26 -0
  53. data/docs/CreateServiceIdGroupRequest.md +22 -0
  54. data/docs/CreateServiceIdRequest.md +18 -15
  55. data/docs/CreateTemplateAssignmentRequest.md +24 -0
  56. data/docs/CreateTrustedProfileRequest.md +24 -0
  57. data/docs/EffectiveAccountSettingsResponse.md +26 -0
  58. data/docs/EnityHistoryRecord.md +18 -17
  59. data/docs/EntityActivity.md +22 -0
  60. data/docs/Error.md +14 -13
  61. data/docs/ExceptionResponse.md +14 -13
  62. data/docs/ExceptionResponseContext.md +30 -29
  63. data/docs/IDPManagementApi.md +692 -0
  64. data/docs/IdBasedMfaEnrollment.md +26 -0
  65. data/docs/IdentityCount.md +20 -0
  66. data/docs/IdentityLimitsUsageRequest.md +42 -0
  67. data/docs/IdentityLimitsUsageResponse.md +44 -0
  68. data/docs/IdentityLimitsUsageResponseApikeysPerIdentity.md +20 -0
  69. data/docs/IdentityLimitsUsageResponseClaimRulesPerGroup.md +20 -0
  70. data/docs/IdentityLimitsUsageResponseClaimRulesPerProfile.md +20 -0
  71. data/docs/IdentityLimitsUsageResponseServiceidsPerGroup.md +20 -0
  72. data/docs/IdentityLimitsUsageResponseTemplateVersionsPerTemplate.md +20 -0
  73. data/docs/IdentityPreferenceResponse.md +28 -0
  74. data/docs/IdentityPreferencesApi.md +304 -0
  75. data/docs/IdentityPreferencesResponse.md +18 -0
  76. data/docs/Idp.md +38 -0
  77. data/docs/LimitCount.md +20 -0
  78. data/docs/ListIdPSettings200Response.md +18 -0
  79. data/docs/ListIdps200Response.md +18 -0
  80. data/docs/MFAEnrollmentStatusApi.md +216 -0
  81. data/docs/MFARequirementsResponse.md +12 -11
  82. data/docs/MfaEnrollmentTypeStatus.md +20 -0
  83. data/docs/MfaOptions.md +15 -0
  84. data/docs/OidcExceptionResponse.md +16 -15
  85. data/docs/PolicyTemplateReference.md +20 -0
  86. data/docs/ProfileClaimRule.md +36 -0
  87. data/docs/ProfileClaimRuleConditions.md +22 -0
  88. data/docs/ProfileClaimRuleList.md +20 -0
  89. data/docs/ProfileClaimRuleRequest.md +30 -0
  90. data/docs/ProfileCount.md +20 -0
  91. data/docs/ProfileIdentitiesResponse.md +20 -0
  92. data/docs/ProfileIdentitiesUpdateRequest.md +18 -0
  93. data/docs/ProfileIdentityRequest.md +24 -0
  94. data/docs/ProfileIdentityResponse.md +26 -0
  95. data/docs/ProfileLink.md +32 -0
  96. data/docs/ProfileLinkLink.md +26 -0
  97. data/docs/ProfileLinkList.md +18 -0
  98. data/docs/Report.md +34 -0
  99. data/docs/ReportMfaEnrollmentStatus.md +28 -0
  100. data/docs/ReportReference.md +18 -0
  101. data/docs/ResponseContext.md +28 -27
  102. data/docs/RetrictActions.md +15 -0
  103. data/docs/SamlMetadataImportResponse.md +42 -0
  104. data/docs/ServiceIDGroupsApi.md +347 -0
  105. data/docs/ServiceIDsApi.md +515 -0
  106. data/docs/ServiceId.md +38 -33
  107. data/docs/ServiceIdGroup.md +34 -0
  108. data/docs/ServiceIdGroupCount.md +20 -0
  109. data/docs/ServiceIdGroupList.md +18 -0
  110. data/docs/ServiceIdList.md +20 -19
  111. data/docs/ShareScope.md +20 -0
  112. data/docs/TemplateAccountSettings.md +40 -0
  113. data/docs/TemplateAccountSettingsAllOfRestrictUserDomains.md +20 -0
  114. data/docs/TemplateAssignmentListResponse.md +30 -0
  115. data/docs/TemplateAssignmentResource.md +18 -0
  116. data/docs/TemplateAssignmentResourceError.md +24 -0
  117. data/docs/TemplateAssignmentResponse.md +48 -0
  118. data/docs/TemplateAssignmentResponseResource.md +24 -0
  119. data/docs/TemplateAssignmentResponseResourceDetail.md +26 -0
  120. data/docs/TemplateCount.md +20 -0
  121. data/docs/TemplateProfileComponentRequest.md +26 -0
  122. data/docs/TemplateProfileComponentResponse.md +26 -0
  123. data/docs/TestResult.md +28 -0
  124. data/docs/TestResultStepsInner.md +24 -0
  125. data/docs/TestTriggerResponse.md +20 -0
  126. data/docs/TokenResponse.md +18 -17
  127. data/docs/TokenRetrievalApi.md +461 -0
  128. data/docs/TrustedProfile.md +50 -0
  129. data/docs/TrustedProfileTemplateApi.md +720 -0
  130. data/docs/TrustedProfileTemplateAssignmentsApi.md +376 -0
  131. data/docs/TrustedProfileTemplateClaimRule.md +26 -0
  132. data/docs/TrustedProfileTemplateList.md +30 -0
  133. data/docs/TrustedProfileTemplateRequest.md +28 -0
  134. data/docs/TrustedProfileTemplateResponse.md +48 -0
  135. data/docs/TrustedProfilesApi.md +1414 -0
  136. data/docs/TrustedProfilesList.md +30 -0
  137. data/docs/UpdateAccountIdpSettingRequest.md +22 -0
  138. data/docs/UpdateAccountLoginSettings.md +18 -0
  139. data/docs/UpdateApiKeyRequest.md +16 -9
  140. data/docs/UpdateIdPRequest.md +28 -0
  141. data/docs/UpdateIdPRequestProperties.md +20 -0
  142. data/docs/UpdateIdPRequestPropertiesIdp.md +24 -0
  143. data/docs/UpdateIdPRequestSecrets.md +20 -0
  144. data/docs/UpdateIdPRequestSecretsIdp.md +20 -0
  145. data/docs/UpdatePreferenceRequest.md +20 -0
  146. data/docs/UpdateServiceIdGroupRequest.md +20 -0
  147. data/docs/UpdateServiceIdRequest.md +12 -11
  148. data/docs/UpdateTemplateAssignmentRequest.md +18 -0
  149. data/docs/UpdateTrustedProfileRequest.md +22 -0
  150. data/docs/UserActivity.md +26 -0
  151. data/docs/UserMFAResolved.md +24 -0
  152. data/docs/UserMfa.md +20 -0
  153. data/docs/UserMfaEnrollments.md +24 -0
  154. data/docs/UserReportMfaEnrollmentStatus.md +30 -0
  155. data/docs/UserVisbilityRetrictActions.md +15 -0
  156. data/docs/UserVisbilityRetrictActionsForTemplate.md +15 -0
  157. data/git_push.sh +3 -4
  158. data/ibm_cloud_iam.gemspec +6 -5
  159. data/lib/ibm_cloud_iam/api/account_limits_api.rb +208 -0
  160. data/lib/ibm_cloud_iam/api/account_settings_api.rb +262 -0
  161. data/lib/ibm_cloud_iam/api/account_settings_for_id_p_api.rb +571 -0
  162. data/lib/ibm_cloud_iam/api/account_settings_template_api.rb +823 -0
  163. data/lib/ibm_cloud_iam/api/account_settings_template_assignments_api.rb +422 -0
  164. data/lib/ibm_cloud_iam/api/activities_api.rb +174 -0
  165. data/lib/ibm_cloud_iam/api/api_keys_api.rb +786 -0
  166. data/lib/ibm_cloud_iam/api/identity_preferences_api.rb +357 -0
  167. data/lib/ibm_cloud_iam/api/idp_management_api.rb +744 -0
  168. data/lib/ibm_cloud_iam/api/mfa_enrollment_status_api.rb +248 -0
  169. data/lib/ibm_cloud_iam/api/service_id_groups_api.rb +392 -0
  170. data/lib/ibm_cloud_iam/api/service_ids_api.rb +575 -0
  171. data/lib/ibm_cloud_iam/api/token_retrieval_api.rb +557 -0
  172. data/lib/ibm_cloud_iam/api/trusted_profile_template_api.rb +823 -0
  173. data/lib/ibm_cloud_iam/api/trusted_profile_template_assignments_api.rb +422 -0
  174. data/lib/ibm_cloud_iam/api/trusted_profiles_api.rb +1630 -0
  175. data/lib/ibm_cloud_iam/api_client.rb +74 -65
  176. data/lib/ibm_cloud_iam/api_error.rb +4 -3
  177. data/lib/ibm_cloud_iam/api_model_base.rb +88 -0
  178. data/lib/ibm_cloud_iam/configuration.rb +75 -15
  179. data/lib/ibm_cloud_iam/models/access_group_count.rb +159 -0
  180. data/lib/ibm_cloud_iam/models/account_based_mfa_enrollment.rb +243 -0
  181. data/lib/ibm_cloud_iam/models/account_idp_settings.rb +244 -0
  182. data/lib/ibm_cloud_iam/models/account_login_settings.rb +147 -0
  183. data/lib/ibm_cloud_iam/models/account_settings_assigned_templates_section.rb +377 -0
  184. data/lib/ibm_cloud_iam/models/account_settings_effective_section.rb +282 -0
  185. data/lib/ibm_cloud_iam/models/account_settings_meta.rb +179 -0
  186. data/lib/ibm_cloud_iam/models/account_settings_request.rb +301 -0
  187. data/lib/ibm_cloud_iam/models/account_settings_response.rb +567 -0
  188. data/lib/ibm_cloud_iam/models/account_settings_template_list.rb +256 -0
  189. data/lib/ibm_cloud_iam/models/account_settings_template_request.rb +178 -0
  190. data/lib/ibm_cloud_iam/models/account_settings_template_response.rb +416 -0
  191. data/lib/ibm_cloud_iam/models/account_settings_user_domain_restriction.rb +188 -0
  192. data/lib/ibm_cloud_iam/models/account_settings_user_mfa_response.rb +261 -0
  193. data/lib/ibm_cloud_iam/models/action_controls.rb +199 -0
  194. data/lib/ibm_cloud_iam/models/action_controls_identities.rb +190 -0
  195. data/lib/ibm_cloud_iam/models/activity.rb +175 -0
  196. data/lib/ibm_cloud_iam/models/add_account_idp_setting_request.rb +243 -0
  197. data/lib/ibm_cloud_iam/models/api_key.rb +188 -104
  198. data/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb +70 -99
  199. data/lib/ibm_cloud_iam/models/api_key_list.rb +46 -95
  200. data/lib/ibm_cloud_iam/models/apikey_activity.rb +231 -0
  201. data/lib/ibm_cloud_iam/models/apikey_activity_serviceid.rb +159 -0
  202. data/lib/ibm_cloud_iam/models/apikey_activity_user.rb +179 -0
  203. data/lib/ibm_cloud_iam/models/assigned_templates_account_settings.rb +296 -0
  204. data/lib/ibm_cloud_iam/models/common_account_settings_request.rb +272 -0
  205. data/lib/ibm_cloud_iam/models/common_account_settings_response.rb +260 -0
  206. data/lib/ibm_cloud_iam/models/consumers_response.rb +158 -0
  207. data/lib/ibm_cloud_iam/models/consumers_response_consumers_inner.rb +158 -0
  208. data/lib/ibm_cloud_iam/models/create_api_key_request.rb +92 -99
  209. data/lib/ibm_cloud_iam/models/create_idp_request.rb +283 -0
  210. data/lib/ibm_cloud_iam/models/create_idp_request_properties.rb +157 -0
  211. data/lib/ibm_cloud_iam/models/create_idp_request_properties_idp.rb +189 -0
  212. data/lib/ibm_cloud_iam/models/create_idp_request_properties_sp.rb +222 -0
  213. data/lib/ibm_cloud_iam/models/create_idp_request_properties_sp_authn_context.rb +163 -0
  214. data/lib/ibm_cloud_iam/models/create_idp_request_secrets.rb +157 -0
  215. data/lib/ibm_cloud_iam/models/create_idp_request_secrets_idp.rb +173 -0
  216. data/lib/ibm_cloud_iam/models/create_idp_request_secrets_idp_signing_inner.rb +192 -0
  217. data/lib/ibm_cloud_iam/models/create_idp_request_secrets_sp.rb +151 -0
  218. data/lib/ibm_cloud_iam/models/create_idp_request_secrets_sp_signing_inner.rb +212 -0
  219. data/lib/ibm_cloud_iam/models/create_profile_link_request.rb +211 -0
  220. data/lib/ibm_cloud_iam/models/create_profile_link_request_link.rb +206 -0
  221. data/lib/ibm_cloud_iam/models/create_service_id_group_request.rb +203 -0
  222. data/lib/ibm_cloud_iam/models/create_service_id_request.rb +68 -95
  223. data/lib/ibm_cloud_iam/models/create_template_assignment_request.rb +280 -0
  224. data/lib/ibm_cloud_iam/models/create_trusted_profile_request.rb +213 -0
  225. data/lib/ibm_cloud_iam/models/effective_account_settings_response.rb +239 -0
  226. data/lib/ibm_cloud_iam/models/enity_history_record.rb +112 -101
  227. data/lib/ibm_cloud_iam/models/entity_activity.rb +185 -0
  228. data/lib/ibm_cloud_iam/models/error.rb +69 -94
  229. data/lib/ibm_cloud_iam/models/exception_response.rb +57 -94
  230. data/lib/ibm_cloud_iam/models/exception_response_context.rb +33 -94
  231. data/lib/ibm_cloud_iam/models/id_based_mfa_enrollment.rb +270 -0
  232. data/lib/ibm_cloud_iam/models/identity_count.rb +159 -0
  233. data/lib/ibm_cloud_iam/models/identity_limits_usage_request.rb +283 -0
  234. data/lib/ibm_cloud_iam/models/identity_limits_usage_response.rb +265 -0
  235. data/lib/ibm_cloud_iam/models/identity_limits_usage_response_apikeys_per_identity.rb +178 -0
  236. data/lib/ibm_cloud_iam/models/identity_limits_usage_response_claim_rules_per_group.rb +178 -0
  237. data/lib/ibm_cloud_iam/models/identity_limits_usage_response_claim_rules_per_profile.rb +178 -0
  238. data/lib/ibm_cloud_iam/models/identity_limits_usage_response_serviceids_per_group.rb +178 -0
  239. data/lib/ibm_cloud_iam/models/identity_limits_usage_response_template_versions_per_template.rb +178 -0
  240. data/lib/ibm_cloud_iam/models/identity_preference_response.rb +200 -0
  241. data/lib/ibm_cloud_iam/models/identity_preferences_response.rb +167 -0
  242. data/lib/ibm_cloud_iam/models/idp.rb +239 -0
  243. data/lib/ibm_cloud_iam/models/limit_count.rb +176 -0
  244. data/lib/ibm_cloud_iam/models/list_id_p_settings200_response.rb +149 -0
  245. data/lib/ibm_cloud_iam/models/list_idps200_response.rb +149 -0
  246. data/lib/ibm_cloud_iam/models/mfa_enrollment_type_status.rb +192 -0
  247. data/lib/ibm_cloud_iam/models/mfa_options.rb +45 -0
  248. data/lib/ibm_cloud_iam/models/mfa_requirements_response.rb +69 -94
  249. data/lib/ibm_cloud_iam/models/oidc_exception_response.rb +57 -94
  250. data/lib/ibm_cloud_iam/models/policy_template_reference.rb +193 -0
  251. data/lib/ibm_cloud_iam/models/profile_claim_rule.rb +342 -0
  252. data/lib/ibm_cloud_iam/models/profile_claim_rule_conditions.rb +219 -0
  253. data/lib/ibm_cloud_iam/models/profile_claim_rule_list.rb +176 -0
  254. data/lib/ibm_cloud_iam/models/profile_claim_rule_request.rb +243 -0
  255. data/lib/ibm_cloud_iam/models/profile_count.rb +159 -0
  256. data/lib/ibm_cloud_iam/models/profile_identities_response.rb +160 -0
  257. data/lib/ibm_cloud_iam/models/profile_identities_update_request.rb +150 -0
  258. data/lib/ibm_cloud_iam/models/profile_identity_request.rb +238 -0
  259. data/lib/ibm_cloud_iam/models/profile_identity_response.rb +265 -0
  260. data/lib/ibm_cloud_iam/models/profile_link.rb +320 -0
  261. data/lib/ibm_cloud_iam/models/profile_link_link.rb +188 -0
  262. data/lib/ibm_cloud_iam/models/profile_link_list.rb +167 -0
  263. data/lib/ibm_cloud_iam/models/report.rb +321 -0
  264. data/lib/ibm_cloud_iam/models/report_mfa_enrollment_status.rb +268 -0
  265. data/lib/ibm_cloud_iam/models/report_reference.rb +165 -0
  266. data/lib/ibm_cloud_iam/models/response_context.rb +33 -94
  267. data/lib/ibm_cloud_iam/models/retrict_actions.rb +41 -0
  268. data/lib/ibm_cloud_iam/models/saml_metadata_import_response.rb +494 -0
  269. data/lib/ibm_cloud_iam/models/service_id.rb +184 -108
  270. data/lib/ibm_cloud_iam/models/service_id_group.rb +313 -0
  271. data/lib/ibm_cloud_iam/models/service_id_group_count.rb +159 -0
  272. data/lib/ibm_cloud_iam/models/service_id_group_list.rb +167 -0
  273. data/lib/ibm_cloud_iam/models/service_id_list.rb +47 -96
  274. data/lib/ibm_cloud_iam/models/share_scope.rb +190 -0
  275. data/lib/ibm_cloud_iam/models/template_account_settings.rb +296 -0
  276. data/lib/ibm_cloud_iam/models/template_account_settings_all_of_restrict_user_domains.rb +159 -0
  277. data/lib/ibm_cloud_iam/models/template_assignment_list_response.rb +227 -0
  278. data/lib/ibm_cloud_iam/models/template_assignment_resource.rb +149 -0
  279. data/lib/ibm_cloud_iam/models/template_assignment_resource_error.rb +179 -0
  280. data/lib/ibm_cloud_iam/models/template_assignment_response.rb +506 -0
  281. data/lib/ibm_cloud_iam/models/template_assignment_response_resource.rb +196 -0
  282. data/lib/ibm_cloud_iam/models/template_assignment_response_resource_detail.rb +203 -0
  283. data/lib/ibm_cloud_iam/models/template_count.rb +159 -0
  284. data/lib/ibm_cloud_iam/models/template_profile_component_request.rb +210 -0
  285. data/lib/ibm_cloud_iam/models/template_profile_component_response.rb +210 -0
  286. data/lib/ibm_cloud_iam/models/test_result.rb +194 -0
  287. data/lib/ibm_cloud_iam/models/test_result_steps_inner.rb +174 -0
  288. data/lib/ibm_cloud_iam/models/test_trigger_response.rb +156 -0
  289. data/lib/ibm_cloud_iam/models/token_response.rb +33 -94
  290. data/lib/ibm_cloud_iam/models/trusted_profile.rb +411 -0
  291. data/lib/ibm_cloud_iam/models/trusted_profile_template_claim_rule.rb +248 -0
  292. data/lib/ibm_cloud_iam/models/trusted_profile_template_list.rb +256 -0
  293. data/lib/ibm_cloud_iam/models/trusted_profile_template_request.rb +199 -0
  294. data/lib/ibm_cloud_iam/models/trusted_profile_template_response.rb +369 -0
  295. data/lib/ibm_cloud_iam/models/trusted_profiles_list.rb +227 -0
  296. data/lib/ibm_cloud_iam/models/update_account_idp_setting_request.rb +202 -0
  297. data/lib/ibm_cloud_iam/models/update_account_login_settings.rb +148 -0
  298. data/lib/ibm_cloud_iam/models/update_api_key_request.rb +68 -99
  299. data/lib/ibm_cloud_iam/models/update_id_p_request.rb +198 -0
  300. data/lib/ibm_cloud_iam/models/update_id_p_request_properties.rb +157 -0
  301. data/lib/ibm_cloud_iam/models/update_id_p_request_properties_idp.rb +179 -0
  302. data/lib/ibm_cloud_iam/models/update_id_p_request_secrets.rb +157 -0
  303. data/lib/ibm_cloud_iam/models/update_id_p_request_secrets_idp.rb +163 -0
  304. data/lib/ibm_cloud_iam/models/update_preference_request.rb +161 -0
  305. data/lib/ibm_cloud_iam/models/update_service_id_group_request.rb +176 -0
  306. data/lib/ibm_cloud_iam/models/update_service_id_request.rb +34 -95
  307. data/lib/ibm_cloud_iam/models/update_template_assignment_request.rb +175 -0
  308. data/lib/ibm_cloud_iam/models/update_trusted_profile_request.rb +169 -0
  309. data/lib/ibm_cloud_iam/models/user_activity.rb +222 -0
  310. data/lib/ibm_cloud_iam/models/user_mfa.rb +179 -0
  311. data/lib/ibm_cloud_iam/models/user_mfa_enrollments.rb +193 -0
  312. data/lib/ibm_cloud_iam/models/user_mfa_resolved.rb +178 -0
  313. data/lib/ibm_cloud_iam/models/user_report_mfa_enrollment_status.rb +291 -0
  314. data/lib/ibm_cloud_iam/models/user_visbility_retrict_actions.rb +40 -0
  315. data/lib/ibm_cloud_iam/models/user_visbility_retrict_actions_for_template.rb +41 -0
  316. data/lib/ibm_cloud_iam/version.rb +4 -4
  317. data/lib/ibm_cloud_iam.rb +140 -9
  318. data/spec/api/account_limits_api_spec.rb +75 -0
  319. data/spec/api/account_settings_api_spec.rb +80 -0
  320. data/spec/api/account_settings_for_id_p_api_spec.rb +132 -0
  321. data/spec/api/account_settings_template_api_spec.rb +184 -0
  322. data/spec/api/account_settings_template_assignments_api_spec.rb +112 -0
  323. data/spec/api/activities_api_spec.rb +64 -0
  324. data/spec/api/api_keys_api_spec.rb +182 -0
  325. data/spec/api/identity_preferences_api_spec.rb +98 -0
  326. data/spec/api/idp_management_api_spec.rb +166 -0
  327. data/spec/api/mfa_enrollment_status_api_spec.rb +77 -0
  328. data/spec/api/service_id_groups_api_spec.rb +102 -0
  329. data/spec/api/service_ids_api_spec.rb +143 -0
  330. data/spec/api/token_retrieval_api_spec.rb +134 -0
  331. data/spec/api/trusted_profile_template_api_spec.rb +184 -0
  332. data/spec/api/trusted_profile_template_assignments_api_spec.rb +112 -0
  333. data/spec/api/trusted_profiles_api_spec.rb +328 -0
  334. data/spec/models/access_group_count_spec.rb +42 -0
  335. data/spec/models/account_based_mfa_enrollment_spec.rb +54 -0
  336. data/spec/models/account_idp_settings_spec.rb +82 -0
  337. data/spec/models/account_login_settings_spec.rb +36 -0
  338. data/spec/models/account_settings_assigned_templates_section_spec.rb +120 -0
  339. data/spec/models/account_settings_effective_section_spec.rb +96 -0
  340. data/spec/models/account_settings_meta_spec.rb +54 -0
  341. data/spec/models/account_settings_request_spec.rb +102 -0
  342. data/spec/models/account_settings_response_spec.rb +126 -0
  343. data/spec/models/account_settings_template_list_spec.rb +72 -0
  344. data/spec/models/account_settings_template_request_spec.rb +54 -0
  345. data/spec/models/account_settings_template_response_spec.rb +114 -0
  346. data/spec/models/account_settings_user_domain_restriction_spec.rb +48 -0
  347. data/spec/models/account_settings_user_mfa_response_spec.rb +66 -0
  348. data/spec/models/action_controls_identities_spec.rb +42 -0
  349. data/spec/models/action_controls_spec.rb +48 -0
  350. data/spec/models/activity_spec.rb +42 -0
  351. data/spec/models/add_account_idp_setting_request_spec.rb +52 -0
  352. data/spec/models/api_key_inside_create_service_id_request_spec.rb +24 -17
  353. data/spec/models/api_key_list_spec.rb +15 -20
  354. data/spec/models/api_key_spec.rb +52 -27
  355. data/spec/models/apikey_activity_serviceid_spec.rb +42 -0
  356. data/spec/models/apikey_activity_spec.rb +66 -0
  357. data/spec/models/apikey_activity_user_spec.rb +54 -0
  358. data/spec/models/assigned_templates_account_settings_spec.rb +102 -0
  359. data/spec/models/common_account_settings_request_spec.rb +90 -0
  360. data/spec/models/common_account_settings_response_spec.rb +84 -0
  361. data/spec/models/consumers_response_consumers_inner_spec.rb +42 -0
  362. data/spec/models/consumers_response_spec.rb +42 -0
  363. data/spec/models/create_api_key_request_spec.rb +32 -19
  364. data/spec/models/create_idp_request_properties_idp_spec.rb +60 -0
  365. data/spec/models/create_idp_request_properties_sp_authn_context_spec.rb +42 -0
  366. data/spec/models/create_idp_request_properties_sp_spec.rb +78 -0
  367. data/spec/models/create_idp_request_properties_spec.rb +42 -0
  368. data/spec/models/create_idp_request_secrets_idp_signing_inner_spec.rb +46 -0
  369. data/spec/models/create_idp_request_secrets_idp_spec.rb +48 -0
  370. data/spec/models/create_idp_request_secrets_sp_signing_inner_spec.rb +58 -0
  371. data/spec/models/create_idp_request_secrets_sp_spec.rb +36 -0
  372. data/spec/models/create_idp_request_secrets_spec.rb +42 -0
  373. data/spec/models/create_idp_request_spec.rb +76 -0
  374. data/spec/models/create_profile_link_request_link_spec.rb +60 -0
  375. data/spec/models/create_profile_link_request_spec.rb +54 -0
  376. data/spec/models/create_service_id_group_request_spec.rb +48 -0
  377. data/spec/models/create_service_id_request_spec.rb +19 -18
  378. data/spec/models/create_template_assignment_request_spec.rb +58 -0
  379. data/spec/models/create_trusted_profile_request_spec.rb +54 -0
  380. data/spec/models/effective_account_settings_response_spec.rb +60 -0
  381. data/spec/models/enity_history_record_spec.rb +14 -19
  382. data/spec/models/entity_activity_spec.rb +48 -0
  383. data/spec/models/error_spec.rb +12 -17
  384. data/spec/models/exception_response_context_spec.rb +20 -25
  385. data/spec/models/exception_response_spec.rb +12 -17
  386. data/spec/models/id_based_mfa_enrollment_spec.rb +64 -0
  387. data/spec/models/identity_count_spec.rb +42 -0
  388. data/spec/models/identity_limits_usage_request_spec.rb +108 -0
  389. data/spec/models/identity_limits_usage_response_apikeys_per_identity_spec.rb +42 -0
  390. data/spec/models/identity_limits_usage_response_claim_rules_per_group_spec.rb +42 -0
  391. data/spec/models/identity_limits_usage_response_claim_rules_per_profile_spec.rb +42 -0
  392. data/spec/models/identity_limits_usage_response_serviceids_per_group_spec.rb +42 -0
  393. data/spec/models/identity_limits_usage_response_spec.rb +114 -0
  394. data/spec/models/identity_limits_usage_response_template_versions_per_template_spec.rb +42 -0
  395. data/spec/models/identity_preference_response_spec.rb +66 -0
  396. data/spec/models/identity_preferences_response_spec.rb +36 -0
  397. data/spec/models/idp_spec.rb +96 -0
  398. data/spec/models/limit_count_spec.rb +42 -0
  399. data/spec/models/list_id_p_settings200_response_spec.rb +36 -0
  400. data/spec/models/list_idps200_response_spec.rb +36 -0
  401. data/spec/models/mfa_enrollment_type_status_spec.rb +42 -0
  402. data/spec/models/mfa_options_spec.rb +30 -0
  403. data/spec/models/mfa_requirements_response_spec.rb +11 -16
  404. data/spec/models/oidc_exception_response_spec.rb +13 -18
  405. data/spec/models/policy_template_reference_spec.rb +42 -0
  406. data/spec/models/profile_claim_rule_conditions_spec.rb +48 -0
  407. data/spec/models/profile_claim_rule_list_spec.rb +42 -0
  408. data/spec/models/profile_claim_rule_request_spec.rb +72 -0
  409. data/spec/models/profile_claim_rule_spec.rb +90 -0
  410. data/spec/models/profile_count_spec.rb +42 -0
  411. data/spec/models/profile_identities_response_spec.rb +42 -0
  412. data/spec/models/profile_identities_update_request_spec.rb +36 -0
  413. data/spec/models/profile_identity_request_spec.rb +58 -0
  414. data/spec/models/profile_identity_response_spec.rb +64 -0
  415. data/spec/models/profile_link_link_spec.rb +60 -0
  416. data/spec/models/profile_link_list_spec.rb +36 -0
  417. data/spec/models/profile_link_spec.rb +78 -0
  418. data/spec/models/report_mfa_enrollment_status_spec.rb +66 -0
  419. data/spec/models/report_reference_spec.rb +36 -0
  420. data/spec/models/report_spec.rb +84 -0
  421. data/spec/models/response_context_spec.rb +19 -24
  422. data/spec/models/retrict_actions_spec.rb +30 -0
  423. data/spec/models/saml_metadata_import_response_spec.rb +112 -0
  424. data/spec/models/service_id_group_count_spec.rb +42 -0
  425. data/spec/models/service_id_group_list_spec.rb +36 -0
  426. data/spec/models/service_id_group_spec.rb +84 -0
  427. data/spec/models/service_id_list_spec.rb +15 -20
  428. data/spec/models/service_id_spec.rb +34 -27
  429. data/spec/models/share_scope_spec.rb +46 -0
  430. data/spec/models/template_account_settings_all_of_restrict_user_domains_spec.rb +42 -0
  431. data/spec/models/template_account_settings_spec.rb +102 -0
  432. data/spec/models/template_assignment_list_response_spec.rb +72 -0
  433. data/spec/models/template_assignment_resource_error_spec.rb +54 -0
  434. data/spec/models/template_assignment_resource_spec.rb +36 -0
  435. data/spec/models/template_assignment_response_resource_detail_spec.rb +60 -0
  436. data/spec/models/template_assignment_response_resource_spec.rb +54 -0
  437. data/spec/models/template_assignment_response_spec.rb +126 -0
  438. data/spec/models/template_count_spec.rb +42 -0
  439. data/spec/models/template_profile_component_request_spec.rb +60 -0
  440. data/spec/models/template_profile_component_response_spec.rb +60 -0
  441. data/spec/models/test_result_spec.rb +66 -0
  442. data/spec/models/test_result_steps_inner_spec.rb +54 -0
  443. data/spec/models/test_trigger_response_spec.rb +42 -0
  444. data/spec/models/token_response_spec.rb +14 -19
  445. data/spec/models/trusted_profile_spec.rb +132 -0
  446. data/spec/models/trusted_profile_template_claim_rule_spec.rb +64 -0
  447. data/spec/models/trusted_profile_template_list_spec.rb +72 -0
  448. data/spec/models/trusted_profile_template_request_spec.rb +66 -0
  449. data/spec/models/trusted_profile_template_response_spec.rb +126 -0
  450. data/spec/models/trusted_profiles_list_spec.rb +72 -0
  451. data/spec/models/update_account_idp_setting_request_spec.rb +52 -0
  452. data/spec/models/update_account_login_settings_spec.rb +36 -0
  453. data/spec/models/update_api_key_request_spec.rb +28 -15
  454. data/spec/models/update_id_p_request_properties_idp_spec.rb +54 -0
  455. data/spec/models/update_id_p_request_properties_spec.rb +42 -0
  456. data/spec/models/update_id_p_request_secrets_idp_spec.rb +42 -0
  457. data/spec/models/update_id_p_request_secrets_spec.rb +42 -0
  458. data/spec/models/update_id_p_request_spec.rb +66 -0
  459. data/spec/models/update_preference_request_spec.rb +42 -0
  460. data/spec/models/update_service_id_group_request_spec.rb +42 -0
  461. data/spec/models/update_service_id_request_spec.rb +11 -16
  462. data/spec/models/update_template_assignment_request_spec.rb +36 -0
  463. data/spec/models/update_trusted_profile_request_spec.rb +48 -0
  464. data/spec/models/user_activity_spec.rb +60 -0
  465. data/spec/models/user_mfa_enrollments_spec.rb +54 -0
  466. data/spec/models/user_mfa_resolved_spec.rb +54 -0
  467. data/spec/models/user_mfa_spec.rb +42 -0
  468. data/spec/models/user_report_mfa_enrollment_status_spec.rb +72 -0
  469. data/spec/models/user_visbility_retrict_actions_for_template_spec.rb +30 -0
  470. data/spec/models/user_visbility_retrict_actions_spec.rb +30 -0
  471. data/spec/spec_helper.rb +3 -3
  472. metadata +550 -36
  473. data/docs/IdentityOperationsApi.md +0 -828
  474. data/docs/InlineObject.md +0 -19
  475. data/docs/InlineObject1.md +0 -23
  476. data/docs/InlineObject2.md +0 -21
  477. data/docs/InlineObject3.md +0 -25
  478. data/docs/TokenOperationsApi.md +0 -226
  479. data/ibm_cloud_iam-1.0.0.gem +0 -0
  480. data/lib/ibm_cloud_iam/api/identity_operations_api.rb +0 -1083
  481. data/lib/ibm_cloud_iam/api/token_operations_api.rb +0 -351
  482. data/lib/ibm_cloud_iam/models/inline_object.rb +0 -229
  483. data/lib/ibm_cloud_iam/models/inline_object1.rb +0 -254
  484. data/lib/ibm_cloud_iam/models/inline_object2.rb +0 -244
  485. data/lib/ibm_cloud_iam/models/inline_object3.rb +0 -269
  486. data/spec/api/identity_operations_api_spec.rb +0 -253
  487. data/spec/api/token_operations_api_spec.rb +0 -94
  488. data/spec/api_client_spec.rb +0 -226
  489. data/spec/configuration_spec.rb +0 -42
  490. data/spec/models/inline_object1_spec.rb +0 -59
  491. data/spec/models/inline_object2_spec.rb +0 -53
  492. data/spec/models/inline_object3_spec.rb +0 -65
  493. data/spec/models/inline_object_spec.rb +0 -47
@@ -0,0 +1,489 @@
1
+ # IbmCloudIam::AccountSettingsForIdPApi
2
+
3
+ All URIs are relative to *https://iam.cloud.ibm.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_id_p_setting**](AccountSettingsForIdPApi.md#add_id_p_setting) | **POST** /v2/loginsettings/{account_id}/idps/{idp_id} | Add IdP Setting |
8
+ | [**get_id_p_setting**](AccountSettingsForIdPApi.md#get_id_p_setting) | **GET** /v2/loginsettings/{account_id}/idps/{idp_id} | Get IdP setting |
9
+ | [**get_login_settings**](AccountSettingsForIdPApi.md#get_login_settings) | **GET** /v2/loginsettings/{account_id} | Get account login settings |
10
+ | [**list_id_p_settings**](AccountSettingsForIdPApi.md#list_id_p_settings) | **GET** /v2/loginsettings/{account_id}/idps | List IdP Settings |
11
+ | [**remove_id_p_setting**](AccountSettingsForIdPApi.md#remove_id_p_setting) | **DELETE** /v2/loginsettings/{account_id}/idps/{idp_id} | Remove IdP Setting |
12
+ | [**update_id_p_setting**](AccountSettingsForIdPApi.md#update_id_p_setting) | **PUT** /v2/loginsettings/{account_id}/idps/{idp_id} | Update IdP Setting |
13
+ | [**update_login_settings**](AccountSettingsForIdPApi.md#update_login_settings) | **PUT** /v2/loginsettings/{account_id} | Update account login settings |
14
+
15
+
16
+ ## add_id_p_setting
17
+
18
+ > <AccountIdpSettings> add_id_p_setting(account_id, idp_id, authorization, add_account_idp_setting_request)
19
+
20
+ Add IdP Setting
21
+
22
+
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'ibm_cloud_iam'
29
+
30
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
31
+ account_id = 'account_id_example' # String | Account which is bound to the IDP
32
+ idp_id = 'idp_id_example' # String | Identity provider ID
33
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
34
+ add_account_idp_setting_request = IbmCloudIam::AddAccountIdpSettingRequest.new({cloud_user_strategy: 'STATIC', active: false, ui_default: false}) # AddAccountIdpSettingRequest | Request to add idp
35
+
36
+ begin
37
+ # Add IdP Setting
38
+ result = api_instance.add_id_p_setting(account_id, idp_id, authorization, add_account_idp_setting_request)
39
+ p result
40
+ rescue IbmCloudIam::ApiError => e
41
+ puts "Error when calling AccountSettingsForIdPApi->add_id_p_setting: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the add_id_p_setting_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<AccountIdpSettings>, Integer, Hash)> add_id_p_setting_with_http_info(account_id, idp_id, authorization, add_account_idp_setting_request)
50
+
51
+ ```ruby
52
+ begin
53
+ # Add IdP Setting
54
+ data, status_code, headers = api_instance.add_id_p_setting_with_http_info(account_id, idp_id, authorization, add_account_idp_setting_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <AccountIdpSettings>
58
+ rescue IbmCloudIam::ApiError => e
59
+ puts "Error when calling AccountSettingsForIdPApi->add_id_p_setting_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **account_id** | **String** | Account which is bound to the IDP | |
68
+ | **idp_id** | **String** | Identity provider ID | |
69
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
70
+ | **add_account_idp_setting_request** | [**AddAccountIdpSettingRequest**](AddAccountIdpSettingRequest.md) | Request to add idp | |
71
+
72
+ ### Return type
73
+
74
+ [**AccountIdpSettings**](AccountIdpSettings.md)
75
+
76
+ ### Authorization
77
+
78
+ No authorization required
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: application/json
84
+
85
+
86
+ ## get_id_p_setting
87
+
88
+ > <AccountIdpSettings> get_id_p_setting(account_id, idp_id, authorization)
89
+
90
+ Get IdP setting
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'ibm_cloud_iam'
97
+
98
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
99
+ account_id = 'account_id_example' # String | Account which is bound to the IDP
100
+ idp_id = 'idp_id_example' # String | Identity provider ID
101
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
102
+
103
+ begin
104
+ # Get IdP setting
105
+ result = api_instance.get_id_p_setting(account_id, idp_id, authorization)
106
+ p result
107
+ rescue IbmCloudIam::ApiError => e
108
+ puts "Error when calling AccountSettingsForIdPApi->get_id_p_setting: #{e}"
109
+ end
110
+ ```
111
+
112
+ #### Using the get_id_p_setting_with_http_info variant
113
+
114
+ This returns an Array which contains the response data, status code and headers.
115
+
116
+ > <Array(<AccountIdpSettings>, Integer, Hash)> get_id_p_setting_with_http_info(account_id, idp_id, authorization)
117
+
118
+ ```ruby
119
+ begin
120
+ # Get IdP setting
121
+ data, status_code, headers = api_instance.get_id_p_setting_with_http_info(account_id, idp_id, authorization)
122
+ p status_code # => 2xx
123
+ p headers # => { ... }
124
+ p data # => <AccountIdpSettings>
125
+ rescue IbmCloudIam::ApiError => e
126
+ puts "Error when calling AccountSettingsForIdPApi->get_id_p_setting_with_http_info: #{e}"
127
+ end
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+ | Name | Type | Description | Notes |
133
+ | ---- | ---- | ----------- | ----- |
134
+ | **account_id** | **String** | Account which is bound to the IDP | |
135
+ | **idp_id** | **String** | Identity provider ID | |
136
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
137
+
138
+ ### Return type
139
+
140
+ [**AccountIdpSettings**](AccountIdpSettings.md)
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: application/json
150
+
151
+
152
+ ## get_login_settings
153
+
154
+ > <AccountLoginSettings> get_login_settings(account_id, authorization)
155
+
156
+ Get account login settings
157
+
158
+
159
+
160
+ ### Examples
161
+
162
+ ```ruby
163
+ require 'time'
164
+ require 'ibm_cloud_iam'
165
+
166
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
167
+ account_id = 'account_id_example' # String | Account which is bound to the alias
168
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
169
+
170
+ begin
171
+ # Get account login settings
172
+ result = api_instance.get_login_settings(account_id, authorization)
173
+ p result
174
+ rescue IbmCloudIam::ApiError => e
175
+ puts "Error when calling AccountSettingsForIdPApi->get_login_settings: #{e}"
176
+ end
177
+ ```
178
+
179
+ #### Using the get_login_settings_with_http_info variant
180
+
181
+ This returns an Array which contains the response data, status code and headers.
182
+
183
+ > <Array(<AccountLoginSettings>, Integer, Hash)> get_login_settings_with_http_info(account_id, authorization)
184
+
185
+ ```ruby
186
+ begin
187
+ # Get account login settings
188
+ data, status_code, headers = api_instance.get_login_settings_with_http_info(account_id, authorization)
189
+ p status_code # => 2xx
190
+ p headers # => { ... }
191
+ p data # => <AccountLoginSettings>
192
+ rescue IbmCloudIam::ApiError => e
193
+ puts "Error when calling AccountSettingsForIdPApi->get_login_settings_with_http_info: #{e}"
194
+ end
195
+ ```
196
+
197
+ ### Parameters
198
+
199
+ | Name | Type | Description | Notes |
200
+ | ---- | ---- | ----------- | ----- |
201
+ | **account_id** | **String** | Account which is bound to the alias | |
202
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
203
+
204
+ ### Return type
205
+
206
+ [**AccountLoginSettings**](AccountLoginSettings.md)
207
+
208
+ ### Authorization
209
+
210
+ No authorization required
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: Not defined
215
+ - **Accept**: application/json
216
+
217
+
218
+ ## list_id_p_settings
219
+
220
+ > <ListIdPSettings200Response> list_id_p_settings(authorization, account_id, opts)
221
+
222
+ List IdP Settings
223
+
224
+ ### Examples
225
+
226
+ ```ruby
227
+ require 'time'
228
+ require 'ibm_cloud_iam'
229
+
230
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
231
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
232
+ account_id = 'account_id_example' # String | Account which is bound to the IDP
233
+ opts = {
234
+ type: 'consumeable', # String | Type of IDP
235
+ include_idp_metadata: 'include_idp_metadata_example' # String | Flag if meta-information about account and idp should be included
236
+ }
237
+
238
+ begin
239
+ # List IdP Settings
240
+ result = api_instance.list_id_p_settings(authorization, account_id, opts)
241
+ p result
242
+ rescue IbmCloudIam::ApiError => e
243
+ puts "Error when calling AccountSettingsForIdPApi->list_id_p_settings: #{e}"
244
+ end
245
+ ```
246
+
247
+ #### Using the list_id_p_settings_with_http_info variant
248
+
249
+ This returns an Array which contains the response data, status code and headers.
250
+
251
+ > <Array(<ListIdPSettings200Response>, Integer, Hash)> list_id_p_settings_with_http_info(authorization, account_id, opts)
252
+
253
+ ```ruby
254
+ begin
255
+ # List IdP Settings
256
+ data, status_code, headers = api_instance.list_id_p_settings_with_http_info(authorization, account_id, opts)
257
+ p status_code # => 2xx
258
+ p headers # => { ... }
259
+ p data # => <ListIdPSettings200Response>
260
+ rescue IbmCloudIam::ApiError => e
261
+ puts "Error when calling AccountSettingsForIdPApi->list_id_p_settings_with_http_info: #{e}"
262
+ end
263
+ ```
264
+
265
+ ### Parameters
266
+
267
+ | Name | Type | Description | Notes |
268
+ | ---- | ---- | ----------- | ----- |
269
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
270
+ | **account_id** | **String** | Account which is bound to the IDP | |
271
+ | **type** | **String** | Type of IDP | [optional] |
272
+ | **include_idp_metadata** | **String** | Flag if meta-information about account and idp should be included | [optional] |
273
+
274
+ ### Return type
275
+
276
+ [**ListIdPSettings200Response**](ListIdPSettings200Response.md)
277
+
278
+ ### Authorization
279
+
280
+ No authorization required
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: Not defined
285
+ - **Accept**: application/json
286
+
287
+
288
+ ## remove_id_p_setting
289
+
290
+ > remove_id_p_setting(account_id, idp_id, authorization)
291
+
292
+ Remove IdP Setting
293
+
294
+
295
+
296
+ ### Examples
297
+
298
+ ```ruby
299
+ require 'time'
300
+ require 'ibm_cloud_iam'
301
+
302
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
303
+ account_id = 'account_id_example' # String | Account which is bound to the IDP
304
+ idp_id = 'idp_id_example' # String | Identity provider ID
305
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
306
+
307
+ begin
308
+ # Remove IdP Setting
309
+ api_instance.remove_id_p_setting(account_id, idp_id, authorization)
310
+ rescue IbmCloudIam::ApiError => e
311
+ puts "Error when calling AccountSettingsForIdPApi->remove_id_p_setting: #{e}"
312
+ end
313
+ ```
314
+
315
+ #### Using the remove_id_p_setting_with_http_info variant
316
+
317
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
318
+
319
+ > <Array(nil, Integer, Hash)> remove_id_p_setting_with_http_info(account_id, idp_id, authorization)
320
+
321
+ ```ruby
322
+ begin
323
+ # Remove IdP Setting
324
+ data, status_code, headers = api_instance.remove_id_p_setting_with_http_info(account_id, idp_id, authorization)
325
+ p status_code # => 2xx
326
+ p headers # => { ... }
327
+ p data # => nil
328
+ rescue IbmCloudIam::ApiError => e
329
+ puts "Error when calling AccountSettingsForIdPApi->remove_id_p_setting_with_http_info: #{e}"
330
+ end
331
+ ```
332
+
333
+ ### Parameters
334
+
335
+ | Name | Type | Description | Notes |
336
+ | ---- | ---- | ----------- | ----- |
337
+ | **account_id** | **String** | Account which is bound to the IDP | |
338
+ | **idp_id** | **String** | Identity provider ID | |
339
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
340
+
341
+ ### Return type
342
+
343
+ nil (empty response body)
344
+
345
+ ### Authorization
346
+
347
+ No authorization required
348
+
349
+ ### HTTP request headers
350
+
351
+ - **Content-Type**: Not defined
352
+ - **Accept**: Not defined
353
+
354
+
355
+ ## update_id_p_setting
356
+
357
+ > <AccountIdpSettings> update_id_p_setting(account_id, idp_id, authorization, update_account_idp_setting_request)
358
+
359
+ Update IdP Setting
360
+
361
+
362
+
363
+ ### Examples
364
+
365
+ ```ruby
366
+ require 'time'
367
+ require 'ibm_cloud_iam'
368
+
369
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
370
+ account_id = 'account_id_example' # String | Account which is bound to the IDP
371
+ idp_id = 'idp_id_example' # String | Identity provider ID
372
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
373
+ update_account_idp_setting_request = IbmCloudIam::UpdateAccountIdpSettingRequest.new # UpdateAccountIdpSettingRequest | Request to update idp
374
+
375
+ begin
376
+ # Update IdP Setting
377
+ result = api_instance.update_id_p_setting(account_id, idp_id, authorization, update_account_idp_setting_request)
378
+ p result
379
+ rescue IbmCloudIam::ApiError => e
380
+ puts "Error when calling AccountSettingsForIdPApi->update_id_p_setting: #{e}"
381
+ end
382
+ ```
383
+
384
+ #### Using the update_id_p_setting_with_http_info variant
385
+
386
+ This returns an Array which contains the response data, status code and headers.
387
+
388
+ > <Array(<AccountIdpSettings>, Integer, Hash)> update_id_p_setting_with_http_info(account_id, idp_id, authorization, update_account_idp_setting_request)
389
+
390
+ ```ruby
391
+ begin
392
+ # Update IdP Setting
393
+ data, status_code, headers = api_instance.update_id_p_setting_with_http_info(account_id, idp_id, authorization, update_account_idp_setting_request)
394
+ p status_code # => 2xx
395
+ p headers # => { ... }
396
+ p data # => <AccountIdpSettings>
397
+ rescue IbmCloudIam::ApiError => e
398
+ puts "Error when calling AccountSettingsForIdPApi->update_id_p_setting_with_http_info: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ | Name | Type | Description | Notes |
405
+ | ---- | ---- | ----------- | ----- |
406
+ | **account_id** | **String** | Account which is bound to the IDP | |
407
+ | **idp_id** | **String** | Identity provider ID | |
408
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
409
+ | **update_account_idp_setting_request** | [**UpdateAccountIdpSettingRequest**](UpdateAccountIdpSettingRequest.md) | Request to update idp | |
410
+
411
+ ### Return type
412
+
413
+ [**AccountIdpSettings**](AccountIdpSettings.md)
414
+
415
+ ### Authorization
416
+
417
+ No authorization required
418
+
419
+ ### HTTP request headers
420
+
421
+ - **Content-Type**: application/json
422
+ - **Accept**: application/json
423
+
424
+
425
+ ## update_login_settings
426
+
427
+ > <AccountLoginSettings> update_login_settings(account_id, authorization, update_account_login_settings)
428
+
429
+ Update account login settings
430
+
431
+ ### Examples
432
+
433
+ ```ruby
434
+ require 'time'
435
+ require 'ibm_cloud_iam'
436
+
437
+ api_instance = IbmCloudIam::AccountSettingsForIdPApi.new
438
+ account_id = 'account_id_example' # String | Account which is bound to the alias
439
+ authorization = 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
440
+ update_account_login_settings = IbmCloudIam::UpdateAccountLoginSettings.new # UpdateAccountLoginSettings | Request to update
441
+
442
+ begin
443
+ # Update account login settings
444
+ result = api_instance.update_login_settings(account_id, authorization, update_account_login_settings)
445
+ p result
446
+ rescue IbmCloudIam::ApiError => e
447
+ puts "Error when calling AccountSettingsForIdPApi->update_login_settings: #{e}"
448
+ end
449
+ ```
450
+
451
+ #### Using the update_login_settings_with_http_info variant
452
+
453
+ This returns an Array which contains the response data, status code and headers.
454
+
455
+ > <Array(<AccountLoginSettings>, Integer, Hash)> update_login_settings_with_http_info(account_id, authorization, update_account_login_settings)
456
+
457
+ ```ruby
458
+ begin
459
+ # Update account login settings
460
+ data, status_code, headers = api_instance.update_login_settings_with_http_info(account_id, authorization, update_account_login_settings)
461
+ p status_code # => 2xx
462
+ p headers # => { ... }
463
+ p data # => <AccountLoginSettings>
464
+ rescue IbmCloudIam::ApiError => e
465
+ puts "Error when calling AccountSettingsForIdPApi->update_login_settings_with_http_info: #{e}"
466
+ end
467
+ ```
468
+
469
+ ### Parameters
470
+
471
+ | Name | Type | Description | Notes |
472
+ | ---- | ---- | ----------- | ----- |
473
+ | **account_id** | **String** | Account which is bound to the alias | |
474
+ | **authorization** | **String** | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: &#39;No authorization header found&#39;. Please make sure that the provided token has the required authority for the request. | |
475
+ | **update_account_login_settings** | [**UpdateAccountLoginSettings**](UpdateAccountLoginSettings.md) | Request to update | |
476
+
477
+ ### Return type
478
+
479
+ [**AccountLoginSettings**](AccountLoginSettings.md)
480
+
481
+ ### Authorization
482
+
483
+ No authorization required
484
+
485
+ ### HTTP request headers
486
+
487
+ - **Content-Type**: application/json
488
+ - **Accept**: application/json
489
+
@@ -0,0 +1,24 @@
1
+ # IbmCloudIam::AccountSettingsMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **context** | [**ResponseContext**](ResponseContext.md) | | [optional] |
8
+ | **account_id** | **String** | Unique ID of the account. | [optional] |
9
+ | **entity_tag** | **String** | Version of the account settings. | [optional] |
10
+ | **history** | [**Array&lt;EnityHistoryRecord&gt;**](EnityHistoryRecord.md) | History of the Account Settings. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ibm_cloud_iam'
16
+
17
+ instance = IbmCloudIam::AccountSettingsMeta.new(
18
+ context: null,
19
+ account_id: null,
20
+ entity_tag: null,
21
+ history: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,40 @@
1
+ # IbmCloudIam::AccountSettingsRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **restrict_create_service_id** | [**RetrictActions**](RetrictActions.md) | | [optional][default to &#39;NOT_SET&#39;] |
8
+ | **restrict_create_platform_apikey** | [**RetrictActions**](RetrictActions.md) | | [optional][default to &#39;NOT_SET&#39;] |
9
+ | **allowed_ip_addresses** | **String** | Defines the IP addresses and subnets from which IAM tokens can be created for the account. | [optional] |
10
+ | **mfa** | [**MfaOptions**](MfaOptions.md) | | [optional] |
11
+ | **user_mfa** | [**Array&lt;UserMfa&gt;**](UserMfa.md) | List of users that are exempted from the MFA requirement of the account. | [optional] |
12
+ | **session_expiration_in_seconds** | **String** | Defines the session expiration in seconds for the account. Valid values: * Any whole number between between &#39;900&#39; and &#39;86400&#39; * NOT_SET - To unset account setting and use service default | [optional][default to &#39;86400&#39;] |
13
+ | **session_invalidation_in_seconds** | **String** | Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between &#39;900&#39; and &#39;7200&#39; * NOT_SET - To unset account setting and use service default | [optional][default to &#39;7200&#39;] |
14
+ | **max_sessions_per_identity** | **String** | Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default | [optional] |
15
+ | **system_access_token_expiration_in_seconds** | **String** | Defines the access token expiration in seconds. Valid values: * Any whole number between &#39;900&#39; and &#39;3600&#39; * NOT_SET - To unset account setting and use service default | [optional][default to &#39;3600&#39;] |
16
+ | **system_refresh_token_expiration_in_seconds** | **String** | Defines the refresh token expiration in seconds. Valid values: * Any whole number between &#39;900&#39; and &#39;259200&#39; * NOT_SET - To unset account setting and use service default | [optional][default to &#39;259200&#39;] |
17
+ | **restrict_user_list_visibility** | [**UserVisbilityRetrictActions**](UserVisbilityRetrictActions.md) | | [optional][default to &#39;NOT_RESTRICTED&#39;] |
18
+ | **restrict_user_domains** | [**Array&lt;AccountSettingsUserDomainRestriction&gt;**](AccountSettingsUserDomainRestriction.md) | Defines if account invitations are restricted to specified domains. To remove an entry for a realm_id, perform an update (PUT) request with only the realm_id set. | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'ibm_cloud_iam'
24
+
25
+ instance = IbmCloudIam::AccountSettingsRequest.new(
26
+ restrict_create_service_id: null,
27
+ restrict_create_platform_apikey: null,
28
+ allowed_ip_addresses: null,
29
+ mfa: null,
30
+ user_mfa: null,
31
+ session_expiration_in_seconds: null,
32
+ session_invalidation_in_seconds: null,
33
+ max_sessions_per_identity: null,
34
+ system_access_token_expiration_in_seconds: null,
35
+ system_refresh_token_expiration_in_seconds: null,
36
+ restrict_user_list_visibility: null,
37
+ restrict_user_domains: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,48 @@
1
+ # IbmCloudIam::AccountSettingsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **context** | [**ResponseContext**](ResponseContext.md) | | [optional] |
8
+ | **account_id** | **String** | Unique ID of the account. | |
9
+ | **entity_tag** | **String** | Version of the account settings. | |
10
+ | **history** | [**Array&lt;EnityHistoryRecord&gt;**](EnityHistoryRecord.md) | History of the Account Settings. | [optional] |
11
+ | **restrict_create_service_id** | [**RetrictActions**](RetrictActions.md) | | [default to &#39;NOT_SET&#39;] |
12
+ | **restrict_create_platform_apikey** | [**RetrictActions**](RetrictActions.md) | | [default to &#39;NOT_SET&#39;] |
13
+ | **allowed_ip_addresses** | **String** | Defines the IP addresses and subnets from which IAM tokens can be created for the account. | |
14
+ | **mfa** | [**MfaOptions**](MfaOptions.md) | | |
15
+ | **session_expiration_in_seconds** | **String** | Defines the session expiration in seconds for the account. Valid values: * Any whole number between between &#39;900&#39; and &#39;86400&#39; * NOT_SET - To unset account setting and use service default | [default to &#39;86400&#39;] |
16
+ | **session_invalidation_in_seconds** | **String** | Defines the period of time in seconds in which a session will be invalidated due to inactivity. Valid values: * Any whole number between &#39;900&#39; and &#39;7200&#39; * NOT_SET - To unset account setting and use service default | [default to &#39;7200&#39;] |
17
+ | **max_sessions_per_identity** | **String** | Defines the max allowed sessions per identity required by the account. Valid values: * Any whole number greater than 0 * NOT_SET - To unset account setting and use service default | |
18
+ | **system_access_token_expiration_in_seconds** | **String** | Defines the access token expiration in seconds. Valid values: * Any whole number between &#39;900&#39; and &#39;3600&#39; * NOT_SET - To unset account setting and use service default | [default to &#39;3600&#39;] |
19
+ | **system_refresh_token_expiration_in_seconds** | **String** | Defines the refresh token expiration in seconds. Valid values: * Any whole number between &#39;900&#39; and &#39;259200&#39; * NOT_SET - To unset account setting and use service default | [default to &#39;259200&#39;] |
20
+ | **restrict_user_list_visibility** | [**UserVisbilityRetrictActions**](UserVisbilityRetrictActions.md) | | [default to &#39;NOT_RESTRICTED&#39;] |
21
+ | **user_mfa** | [**Array&lt;AccountSettingsUserMFAResponse&gt;**](AccountSettingsUserMFAResponse.md) | List of users that are exempted from the MFA requirement of the account. | |
22
+ | **restrict_user_domains** | [**Array&lt;AccountSettingsUserDomainRestriction&gt;**](AccountSettingsUserDomainRestriction.md) | Defines if account invitations are restricted to specified domains. To remove an entry for a realm_id, perform an update (PUT) request with only the realm_id set. | |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'ibm_cloud_iam'
28
+
29
+ instance = IbmCloudIam::AccountSettingsResponse.new(
30
+ context: null,
31
+ account_id: null,
32
+ entity_tag: null,
33
+ history: null,
34
+ restrict_create_service_id: null,
35
+ restrict_create_platform_apikey: null,
36
+ allowed_ip_addresses: null,
37
+ mfa: null,
38
+ session_expiration_in_seconds: null,
39
+ session_invalidation_in_seconds: null,
40
+ max_sessions_per_identity: null,
41
+ system_access_token_expiration_in_seconds: null,
42
+ system_refresh_token_expiration_in_seconds: null,
43
+ restrict_user_list_visibility: null,
44
+ user_mfa: null,
45
+ restrict_user_domains: null
46
+ )
47
+ ```
48
+