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

      let pathParams = {
      };
      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', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
/**
     * Create an email alias
     * Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
     * @param {CreateOwnedAliasOptions} createOwnedAliasOptions createOwnedAliasOptions
     * @return {Promise}
     */
Create an email alias
Create an email alias belonging to a user ID. To create anonymous aliases use the `createAnonymousAlias` method.
Create an email alias Create an email alias belonging to a user ID . To create anonymous aliases use the ` createAnonymousAlias ` method .
async createAlias(createOwnedAliasOptions) {
      let postBody = createOwnedAliasOptions;
      if (createOwnedAliasOptions === undefined || createOwnedAliasOptions === null) {
        throw new Error("Missing the required parameter 'createOwnedAliasOptions' when calling createAlias");
      }
      let pathParams = {
      };
      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', 'POST',
        pathParams, queryParams, headerParams, formParams, postBody,
        authNames, contentTypes, accepts, returnType
      );
    }
async createAlias ( createOwnedAliasOptions ) { let postBody = createOwnedAliasOptions ; if ( createOwnedAliasOptions === undefined || createOwnedAliasOptions === null ) { throw new Error ( "Missing the required parameter 'createOwnedAliasOptions' when calling createAlias" ) ; } let pathParams = { } ; 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' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType ) ; }
Create an email alias
 Create an email alias belonging to a user ID.
Create an email alias Create an email alias belonging to a user ID .
// verify the required parameter 'createOwnedAliasOptions' is set