updateProfileMapping(mappingId, profileMapping) {
    if (!mappingId) {
      return Promise.reject(new Error('OKTA API updateProfileMapping parameter mappingId is required.'));
    }
    if (!profileMapping) {
      return Promise.reject(new Error('OKTA API updateProfileMapping parameter profileMapping is required.'));
    }
    let url = `${this.baseUrl}/api/v1/mappings/${mappingId}`;

    const resources = [
      `${this.baseUrl}/api/v1/mappings/${mappingId}`
    ];

    const request = this.http.postJson(
      url,
      {
        body: profileMapping
      },
      { resources }
    );
    return request.then(jsonRes => new models.ProfileMapping(jsonRes, this));
  }
/**
   *
   * @param mappingId {String}
   * @param {ProfileMapping} profileMapping
   * @description
   * Updates an existing Profile Mapping by adding, updating, or removing one or many Property Mappings.
   * @returns {Promise<ProfileMapping>}
   */
@param mappingId {String}
@param {ProfileMapping} profileMapping
@description
Updates an existing Profile Mapping by adding, updating, or removing one or many Property Mappings.
@returns {Promise}
@param mappingId { String } @param { ProfileMapping } profileMapping @description Updates an existing Profile Mapping by adding updating or removing one or many Property Mappings . @returns { Promise }
updateProfileMapping(mappingId, profileMapping) {
    if (!mappingId) {
      return Promise.reject(new Error('OKTA API updateProfileMapping parameter mappingId is required.'));
    }
    if (!profileMapping) {
      return Promise.reject(new Error('OKTA API updateProfileMapping parameter profileMapping is required.'));
    }
    let url = `${this.baseUrl}/api/v1/mappings/${mappingId}`;
    const resources = [
      `${this.baseUrl}/api/v1/mappings/${mappingId}`
    ];
    const request = this.http.postJson(
      url,
      {
        body: profileMapping
      },
      { resources }
    );
    return request.then(jsonRes => new models.ProfileMapping(jsonRes, this));
  }
updateProfileMapping ( mappingId , profileMapping ) { if ( ! mappingId ) { return Promise . reject ( new Error ( 'OKTA API updateProfileMapping parameter mappingId is required.' ) ) ; } if ( ! profileMapping ) { return Promise . reject ( new Error ( 'OKTA API updateProfileMapping parameter profileMapping is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ mappingId } ` ; const resources = [ ` ${ this . baseUrl } ${ mappingId } ` ] ; const request = this . http . postJson ( url , { body : profileMapping } , { resources } ) ; return request . then ( jsonRes => new models . ProfileMapping ( jsonRes , this ) ) ; }
@param mappingId {String}
 @param {ProfileMapping} profileMapping
 @description
 Updates an existing Profile Mapping by adding, updating, or removing one or many Property Mappings.
@param mappingId { String } @param { ProfileMapping } profileMapping @description Updates an existing Profile Mapping by adding updating or removing one or many Property Mappings .