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