async createDomain(version, name, comment = '') {
    return this.request.post(`/service/${this.service_id}/version/${await this.getVersion(version, 'latest')}/domain`, {
      name,
      comment,
    });
  }
/**
   * Create a domain for a particular service and version.
   *
   * @see https://docs.fastly.com/api/config#domain_90345101274774ff1b84f0a7dd010b01
   * @param {string} version - The current version of a service.
   * @param {string} name - The domain name.
   * @param {string} comment - Optional comment.
   * @returns {Promise} The response object representing the completion or failure.
   */
Create a domain for a particular service and version.
Create a domain for a particular service and version .
async createDomain(version, name, comment = '') {
    return this.request.post(`/service/${this.service_id}/version/${await this.getVersion(version, 'latest')}/domain`, {
      name,
      comment,
    });
  }
async createDomain ( version , name , comment = '' ) { return this . request . post ( ` ${ this . service_id } ${ await this . getVersion ( version , 'latest' ) } ` , { name , comment , } ) ; }
Create a domain for a particular service and version.
Create a domain for a particular service and version .