77 urlParams ,
88 validatePathParam ,
99} from '@scaleway/sdk-client'
10-
1110import {
1211 marshalAddGroupMemberRequest ,
1312 marshalAddGroupMembersRequest ,
@@ -20,6 +19,7 @@ import {
2019 marshalCreateSSHKeyRequest ,
2120 marshalCreateUserRequest ,
2221 marshalJoinUserConnectionRequest ,
22+ marshalParseSamlMetadataRequest ,
2323 marshalRemoveGroupMemberRequest ,
2424 marshalRemoveUserConnectionRequest ,
2525 marshalSetGroupMembersRequest ,
@@ -61,6 +61,7 @@ import {
6161 unmarshalMFAOTP ,
6262 unmarshalOrganization ,
6363 unmarshalOrganizationSecuritySettings ,
64+ unmarshalParseSamlMetadataResponse ,
6465 unmarshalPolicy ,
6566 unmarshalQuotum ,
6667 unmarshalSSHKey ,
@@ -147,6 +148,8 @@ import type {
147148 MFAOTP ,
148149 Organization ,
149150 OrganizationSecuritySettings ,
151+ ParseSamlMetadataRequest ,
152+ ParseSamlMetadataResponse ,
150153 Policy ,
151154 Quotum ,
152155 RemoveGroupMemberRequest ,
@@ -1482,6 +1485,25 @@ export class API extends ParentAPI {
14821485 path : `/iam/v1alpha1/saml/${ validatePathParam ( 'samlId' , request . samlId ) } ` ,
14831486 } )
14841487
1488+ /**
1489+ * Parse SAML xml metadata file.
1490+ *
1491+ * @param request - The request {@link ParseSamlMetadataRequest}
1492+ * @returns A Promise of ParseSamlMetadataResponse
1493+ */
1494+ parseSamlMetadata = async ( request : Readonly < ParseSamlMetadataRequest > ) =>
1495+ this . client . fetch < ParseSamlMetadataResponse > (
1496+ {
1497+ body : JSON . stringify (
1498+ await marshalParseSamlMetadataRequest ( request , this . client . settings ) ,
1499+ ) ,
1500+ headers : jsonContentHeaders ,
1501+ method : 'POST' ,
1502+ path : `/iam/v1alpha1/parse-saml-metadata` ,
1503+ } ,
1504+ unmarshalParseSamlMetadataResponse ,
1505+ )
1506+
14851507 /**
14861508 * List SAML certificates.
14871509 *
0 commit comments