@@ -15,7 +15,6 @@ import {
1515 marshalCreateApplicationRequest ,
1616 marshalCreateGroupRequest ,
1717 marshalCreateJWTRequest ,
18- marshalCreateOrganizationSamlRequest ,
1918 marshalCreatePolicyRequest ,
2019 marshalCreateSSHKeyRequest ,
2120 marshalCreateUserRequest ,
@@ -28,9 +27,9 @@ import {
2827 marshalUpdateAPIKeyRequest ,
2928 marshalUpdateApplicationRequest ,
3029 marshalUpdateGroupRequest ,
31- marshalUpdateOrganizationSamlRequest ,
3230 marshalUpdateOrganizationSecuritySettingsRequest ,
3331 marshalUpdatePolicyRequest ,
32+ marshalUpdateSamlRequest ,
3433 marshalUpdateSSHKeyRequest ,
3534 marshalUpdateUserPasswordRequest ,
3635 marshalUpdateUserRequest ,
@@ -64,7 +63,6 @@ import {
6463 unmarshalQuotum ,
6564 unmarshalSaml ,
6665 unmarshalSamlCertificate ,
67- unmarshalSamlInformation ,
6866 unmarshalSetRulesResponse ,
6967 unmarshalSSHKey ,
7068 unmarshalUser ,
@@ -81,7 +79,6 @@ import type {
8179 CreateApplicationRequest ,
8280 CreateGroupRequest ,
8381 CreateJWTRequest ,
84- CreateOrganizationSamlRequest ,
8582 CreatePolicyRequest ,
8683 CreateSSHKeyRequest ,
8784 CreateUserMFAOTPRequest ,
@@ -90,12 +87,13 @@ import type {
9087 DeleteApplicationRequest ,
9188 DeleteGroupRequest ,
9289 DeleteJWTRequest ,
93- DeleteOrganizationSamlRequest ,
9490 DeletePolicyRequest ,
9591 DeleteSamlCertificateRequest ,
92+ DeleteSamlRequest ,
9693 DeleteSSHKeyRequest ,
9794 DeleteUserMFAOTPRequest ,
9895 DeleteUserRequest ,
96+ EnableOrganizationSamlRequest ,
9997 EncodedJWT ,
10098 GetAPIKeyRequest ,
10199 GetApplicationRequest ,
@@ -107,7 +105,6 @@ import type {
107105 GetOrganizationSecuritySettingsRequest ,
108106 GetPolicyRequest ,
109107 GetQuotumRequest ,
110- GetSamlInformationRequest ,
111108 GetSSHKeyRequest ,
112109 GetUserConnectionsRequest ,
113110 GetUserConnectionsResponse ,
@@ -155,7 +152,6 @@ import type {
155152 RemoveUserConnectionRequest ,
156153 Saml ,
157154 SamlCertificate ,
158- SamlInformation ,
159155 SetGroupMembersRequest ,
160156 SetOrganizationAliasRequest ,
161157 SetRulesRequest ,
@@ -165,9 +161,9 @@ import type {
165161 UpdateAPIKeyRequest ,
166162 UpdateApplicationRequest ,
167163 UpdateGroupRequest ,
168- UpdateOrganizationSamlRequest ,
169164 UpdateOrganizationSecuritySettingsRequest ,
170165 UpdatePolicyRequest ,
166+ UpdateSamlRequest ,
171167 UpdateSSHKeyRequest ,
172168 UpdateUserPasswordRequest ,
173169 UpdateUserRequest ,
@@ -1425,17 +1421,17 @@ export class API extends ParentAPI {
14251421 )
14261422
14271423 /**
1428- * Create a SAML Identity Provider configuration for an Organization.
1424+ * Enable SAML Identity Provider for an Organization.
14291425 *
1430- * @param request - The request {@link CreateOrganizationSamlRequest }
1426+ * @param request - The request {@link EnableOrganizationSamlRequest }
14311427 * @returns A Promise of Saml
14321428 */
1433- createOrganizationSaml = ( request : Readonly < CreateOrganizationSamlRequest > ) =>
1429+ enableOrganizationSaml = (
1430+ request : Readonly < EnableOrganizationSamlRequest > = { } ,
1431+ ) =>
14341432 this . client . fetch < Saml > (
14351433 {
1436- body : JSON . stringify (
1437- marshalCreateOrganizationSamlRequest ( request , this . client . settings ) ,
1438- ) ,
1434+ body : '{}' ,
14391435 headers : jsonContentHeaders ,
14401436 method : 'POST' ,
14411437 path : `/iam/v1alpha1/organizations/${ validatePathParam ( 'organizationId' , request . organizationId ?? this . client . settings . defaultOrganizationId ) } /saml` ,
@@ -1444,37 +1440,33 @@ export class API extends ParentAPI {
14441440 )
14451441
14461442 /**
1447- * Update a SAML Identity Provider configuration for an Organization .
1443+ * Update SAML Identity Provider configuration.
14481444 *
1449- * @param request - The request {@link UpdateOrganizationSamlRequest }
1445+ * @param request - The request {@link UpdateSamlRequest }
14501446 * @returns A Promise of Saml
14511447 */
1452- updateOrganizationSaml = (
1453- request : Readonly < UpdateOrganizationSamlRequest > = { } ,
1454- ) =>
1448+ updateSaml = ( request : Readonly < UpdateSamlRequest > ) =>
14551449 this . client . fetch < Saml > (
14561450 {
14571451 body : JSON . stringify (
1458- marshalUpdateOrganizationSamlRequest ( request , this . client . settings ) ,
1452+ marshalUpdateSamlRequest ( request , this . client . settings ) ,
14591453 ) ,
14601454 headers : jsonContentHeaders ,
14611455 method : 'PATCH' ,
1462- path : `/iam/v1alpha1/organizations /${ validatePathParam ( 'organizationId ' , request . organizationId ?? this . client . settings . defaultOrganizationId ) } /saml ` ,
1456+ path : `/iam/v1alpha1/saml /${ validatePathParam ( 'samlId ' , request . samlId ) } ` ,
14631457 } ,
14641458 unmarshalSaml ,
14651459 )
14661460
14671461 /**
1468- * Delete a SAML Identity Provider configuration for an Organization.
1462+ * Disable SAML Identity Provider for an Organization.
14691463 *
1470- * @param request - The request {@link DeleteOrganizationSamlRequest }
1464+ * @param request - The request {@link DeleteSamlRequest }
14711465 */
1472- deleteOrganizationSaml = (
1473- request : Readonly < DeleteOrganizationSamlRequest > = { } ,
1474- ) =>
1466+ deleteSaml = ( request : Readonly < DeleteSamlRequest > ) =>
14751467 this . client . fetch < void > ( {
14761468 method : 'DELETE' ,
1477- path : `/iam/v1alpha1/organizations /${ validatePathParam ( 'organizationId ' , request . organizationId ?? this . client . settings . defaultOrganizationId ) } /saml ` ,
1469+ path : `/iam/v1alpha1/saml /${ validatePathParam ( 'samlId ' , request . samlId ) } ` ,
14781470 } )
14791471
14801472 /**
@@ -1521,19 +1513,4 @@ export class API extends ParentAPI {
15211513 method : 'DELETE' ,
15221514 path : `/iam/v1alpha1/saml-certificates/${ validatePathParam ( 'certificateId' , request . certificateId ) } ` ,
15231515 } )
1524-
1525- /**
1526- * Get SAML information.
1527- *
1528- * @param request - The request {@link GetSamlInformationRequest}
1529- * @returns A Promise of SamlInformation
1530- */
1531- getSamlInformation = ( request : Readonly < GetSamlInformationRequest > = { } ) =>
1532- this . client . fetch < SamlInformation > (
1533- {
1534- method : 'GET' ,
1535- path : `/iam/v1alpha1/saml-information` ,
1536- } ,
1537- unmarshalSamlInformation ,
1538- )
15391516}
0 commit comments