activateGroupRule(ruleId) {
    if (!ruleId) {
      return Promise.reject(new Error('OKTA API activateGroupRule parameter ruleId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/groups/rules/${ruleId}/lifecycle/activate`;

    const resources = [
      `${this.baseUrl}/api/v1/groups/rules/${ruleId}`
    ];

    const request = this.http.post(
      url,
      {
        headers: {
          'Content-Type': 'application/json', 'Accept': 'application/json',
        },
      },
      { resources }
    );
    return request;
  }
/**
   *
   * @param ruleId {String}
   * @description
   * Activates a specific group rule by id from your organization
   */
@param ruleId {String}
@description
Activates a specific group rule by id from your organization
@param ruleId { String } @description Activates a specific group rule by id from your organization
activateGroupRule(ruleId) {
    if (!ruleId) {
      return Promise.reject(new Error('OKTA API activateGroupRule parameter ruleId is required.'));
    }
    let url = `${this.baseUrl}/api/v1/groups/rules/${ruleId}/lifecycle/activate`;
    const resources = [
      `${this.baseUrl}/api/v1/groups/rules/${ruleId}`
    ];
    const request = this.http.post(
      url,
      {
        headers: {
          'Content-Type': 'application/json', 'Accept': 'application/json',
        },
      },
      { resources }
    );
    return request;
  }
activateGroupRule ( ruleId ) { if ( ! ruleId ) { return Promise . reject ( new Error ( 'OKTA API activateGroupRule parameter ruleId is required.' ) ) ; } let url = ` ${ this . baseUrl } ${ ruleId } ` ; const resources = [ ` ${ this . baseUrl } ${ ruleId } ` ] ; const request = this . http . post ( url , { headers : { 'Content-Type' : 'application/json' , 'Accept' : 'application/json' , } , } , { resources } ) ; return request ; }
@param ruleId {String}
 @description
 Activates a specific group rule by id from your organization
@param ruleId { String } @description Activates a specific group rule by id from your organization