import { toQueryString } from "../../utils" ; import { SdkClient } from "../common/sdk-client" ; import { IdentityManagementModels } from "./identity-models" ; export class extends SdkClient export class IdentityManagementClient extends SdkClient { private _baseUrl : string = "/api/identitymanagement/v3" ; summary param { { filter ? : string , atributes ? : string , sortBy ? : string , sortOrder ? : string , count ? : number , startIndex ? : number , subtenant ? : string * } } params param { string } params . filter param { string } params . attributes param { string } params . sortBy param { string } params . sortOrder param { number } params . count param { number } params . startIndex param { string } params . subtenant throws returns { Promise < IdentityManagementModels . ScimUserResponseSearchResults > } memberOf public async GetUsers ( params ? ) { const qs = toQueryString ( params ) ; return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users?${ qs }` , message : "GetUsers" , } ) ) as IdentityManagementModels . ScimUserResponseSearchResults ; } param { string } id returns { Promise < IdentityManagementModels . ScimUserResponse > } memberOf public async GetUser ( id ) { return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users/${ id }` , message : "GET" , } ) ) as IdentityManagementModels . ScimUserResponse ; } param { IdentityManagementModels . ScimUserPost } user returns { Promise < IdentityManagementModels . ScimUserPostResponse > } memberOf public async PostUser ( user ) { return ( await this . HttpAction ( { verb : "POST" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users` , message : "PostUser" , body : user , } ) ) as IdentityManagementModels . ScimUserPostResponse ; } param { string } id param { IdentityManagementModels . ScimUserPost } user returns { Promise < IdentityManagementModels . ScimUserResponse > } memberOf public async PutUser ( id , user ) { return ( await this . HttpAction ( { verb : "PUT" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users/${ id }` , message : "PutUser" , body : user , } ) ) as IdentityManagementModels . ScimUserResponse ; } param { string } id returns { Promise < IdentityManagementModels . ScimUserResponse > } memberOf public async DeleteUser ( id ) { return ( await this . HttpAction ( { verb : "DELETE" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users/${ id }` , message : "DeleteUser" , } ) ) as IdentityManagementModels . ScimUserResponse ; } returns { Promise < IdentityManagementModels . Group > } memberOf public async GetUsersMe ( ) { return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Users/me` , message : "GetUsersMe" , } ) ) as IdentityManagementModels . Group ; } summary param { { filter ? : string , count ? : number , startIndex ? : number , * } } params param { string } params . filter param { number } params . count param { number } params . startIndex throws returns { Promise < IdentityManagementModels . ScimGroupSearchResults > } memberOf public async GetGroups ( params ? ) { const qs = toQueryString ( params ) ; return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups?${ qs }` , message : "GetGroups" , } ) ) as IdentityManagementModels . ScimGroupSearchResults ; } param { string } id returns { Promise < IdentityManagementModels . ScimGroup > } memberOf public async GetGroup ( id ) { return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }` , message : "GET" , } ) ) as IdentityManagementModels . ScimGroup ; } param { IdentityManagementModels . ScimGroupPost } group returns { Promise < IdentityManagementModels . ScimGroup > } memberOf public async PostGroup ( group ) { return ( await this . HttpAction ( { verb : "POST" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups` , message : "PostGroup" , body : group , } ) ) as IdentityManagementModels . ScimGroup ; } param { string } id param { IdentityManagementModels . ScimGroupPost } group returns { Promise < IdentityManagementModels . ScimGroup > } memberOf public async PutGroup ( id , group ) { return ( await this . HttpAction ( { verb : "PUT" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }` , message : "PutGroup" , body : group , } ) ) as IdentityManagementModels . ScimGroup ; } param { string } id returns { Promise < IdentityManagementModels . ScimGroup > } memberOf public async DeleteGroup ( id ) { return ( await this . HttpAction ( { verb : "DELETE" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }` , message : "DeleteGroup" , } ) ) as IdentityManagementModels . ScimGroup ; } param { string } id returns { Promise < IdentityManagementModels . ScimGroupMemberList > } memberOf public async GetGroupMembers ( id ) { return ( await this . HttpAction ( { verb : "GET" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }/members` , message : "GetGroupMemberList" , } ) ) as IdentityManagementModels . ScimGroupMemberList ; } param { IdentityManagementModels . ScimGroupMemberPost } group returns { Promise < IdentityManagementModels . ScimGroupMember > } memberOf public async PostGroupMember ( id , member ) { return ( await this . HttpAction ( { verb : "POST" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }/members` , message : "PostGroupMember" , body : member , } ) ) as IdentityManagementModels . ScimGroupMember ; } param { string } id param { string } memberId returns { Promise < IdentityManagementModels . ScimGroupMember > } memberOf public async DeleteGroupMember ( id , memberId ) { return ( await this . HttpAction ( { verb : "DELETE" , gateway : this . GetGateway ( ) , authorization : await this . GetToken ( ) , baseUrl : `${ this . _baseUrl }/Groups/${ id }/members/${ memberId }` , message : "DeleteGroupMember" , } ) ) as IdentityManagementModels . ScimGroupMember ; } }