createCertificate(domainId, domainCertificate) {
    if (!domainId) {
      return Promise.reject(new Error('OKTA API createCertificate parameter domainId is required.'));
    }
    if (!domainCertificate) {
      return Promise.reject(new Error('OKTA API createCertificate parameter domainCertificate is required.'));
    }
    let url = `${this.baseUrl}/api/v1/domains/${domainId}/certificate`;

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

    const request = this.http.putJson(
      url,
      {
        body: domainCertificate
      },
      { resources }
    );
    return request;
  }
/**
   *
   * @param domainId {String}
   * @param {DomainCertificate} domainCertificate
   * @description
   * Creates the Certificate for the Domain.
   */
@param domainId {String}
@param {DomainCertificate} domainCertificate
@description
Creates the Certificate for the Domain.
@param domainId { String } @param { DomainCertificate } domainCertificate @description Creates the Certificate for the Domain .
createCertificate(domainId, domainCertificate) {
    if (!domainId) {
      return Promise.reject(new Error('OKTA API createCertificate parameter domainId is required.'));
    }
    if (!domainCertificate) {
      return Promise.reject(new Error('OKTA API createCertificate parameter domainCertificate is required.'));
    }
    let url = `${this.baseUrl}/api/v1/domains/${domainId}/certificate`;
    const resources = [
      `${this.baseUrl}/api/v1/domains/${domainId}`
    ];
    const request = this.http.putJson(
      url,
      {
        body: domainCertificate
      },
      { resources }
    );
    return request;
  }
createCertificate ( domainId , domainCertificate ) { if ( ! domainId ) { return Promise . reject ( new Error ( 'OKTA API createCertificate parameter domainId is required.' ) ) ; } if ( ! domainCertificate ) { return Promise . reject ( new Error ( 'OKTA API createCertificate parameter domainCertificate is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ domainId } ` ; const resources = [ ` ${ this . baseUrl } ${ domainId } ` ] ; const request = this . http . putJson ( url , { body : domainCertificate } , { resources } ) ; return request ; }
@param domainId {String}
 @param {DomainCertificate} domainCertificate
 @description
 Creates the Certificate for the Domain.
@param domainId { String } @param { DomainCertificate } domainCertificate @description Creates the Certificate for the Domain .