async updateAlias(aliasId, createOwnedAliasOptions) {
      let postBody = createOwnedAliasOptions;
      // verify the required parameter 'aliasId' is set
      if (aliasId === undefined || aliasId === null) {
        throw new Error("Missing the required parameter 'aliasId' when calling updateAlias");
      }
      // verify the required parameter 'createOwnedAliasOptions' is set
      if (createOwnedAliasOptions === undefined || createOwnedAliasOptions === null) {
        throw new Error("Missing the required parameter 'createOwnedAliasOptions' when calling updateAlias");
      }

      let pathParams = {
        'aliasId': aliasId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };

      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = null;

      return this.callApi(
        '/aliases/{aliasId}', 'PUT',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Update an owned alias
     * @param {String} aliasId aliasId
     * @param {CreateOwnedAliasOptions} createOwnedAliasOptions createOwnedAliasOptions
     * @return {Promise}
     */
Update an owned alias
@param {String} aliasId aliasId
@param {CreateOwnedAliasOptions} createOwnedAliasOptions createOwnedAliasOptions
@return {Promise}
Update an owned alias @param { String } aliasId aliasId @param { CreateOwnedAliasOptions } createOwnedAliasOptions createOwnedAliasOptions @return { Promise }
async updateAlias(aliasId, createOwnedAliasOptions) {
      let postBody = createOwnedAliasOptions;
      if (aliasId === undefined || aliasId === null) {
        throw new Error("Missing the required parameter 'aliasId' when calling updateAlias");
      }
      if (createOwnedAliasOptions === undefined || createOwnedAliasOptions === null) {
        throw new Error("Missing the required parameter 'createOwnedAliasOptions' when calling updateAlias");
      }
      let pathParams = {
        'aliasId': aliasId
      };
      let queryParams = {
      };
      let headerParams = {
      };
      let formParams = {
      };
      let authNames = ['API_KEY'];
      let contentTypes = ['application/json'];
      let accepts = ['application/json'];
      let returnType = null;
      return this.callApi(
        '/aliases/{aliasId}', 'PUT',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async updateAlias ( aliasId , createOwnedAliasOptions ) { let postBody = createOwnedAliasOptions ; if ( aliasId === undefined || aliasId === null ) { throw new Error ( "Missing the required parameter 'aliasId' when calling updateAlias" ) ; } if ( createOwnedAliasOptions === undefined || createOwnedAliasOptions === null ) { throw new Error ( "Missing the required parameter 'createOwnedAliasOptions' when calling updateAlias" ) ; } let pathParams = { 'aliasId' : aliasId } ; let queryParams = { } ; let headerParams = { } ; let formParams = { } ; let authNames = [ 'API_KEY' ] ; let contentTypes = [ 'application/json' ] ; let accepts = [ 'application/json' ] ; let returnType = null ; return this . callApi ( '/aliases/{aliasId}' , 'PUT' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Update an owned alias
 @param {String} aliasId aliasId
 @param {CreateOwnedAliasOptions} createOwnedAliasOptions createOwnedAliasOptions
 @return {Promise}
Update an owned alias @param { String } aliasId aliasId @param { CreateOwnedAliasOptions } createOwnedAliasOptions createOwnedAliasOptions @return { Promise }
// verify the required parameter 'aliasId' is set // verify the required parameter 'createOwnedAliasOptions' is set