Class RoleCResourceSetApi

java.lang.Object
com.okta.sdk.resource.api.RoleCResourceSetApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T08:35:59.300824-05:00[America/Chicago]", comments="Generator version: 7.8.0") public class RoleCResourceSetApi extends Object
  • Constructor Details

    • RoleCResourceSetApi

      public RoleCResourceSetApi()
    • RoleCResourceSetApi

      public RoleCResourceSetApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createResourceSet

      public ResourceSet createResourceSet(CreateResourceSetRequest instance) throws ApiException
      Create a Resource Set Creates a new Resource Set. See [Supported Resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum number of `resources` allowed in a Resource Set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See [Okta Resource Name](/openapi/okta-management/guides/roles/#okta-resource-name-orn).
      Parameters:
      instance - (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • createResourceSet

      public ResourceSet createResourceSet(CreateResourceSetRequest instance, Map<String,String> additionalHeaders) throws ApiException
      Create a Resource Set Creates a new Resource Set. See [Supported Resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum number of `resources` allowed in a Resource Set object is 1000. Resources are identified by either an Okta Resource Name (ORN) or by a REST URL format. See [Okta Resource Name](/openapi/okta-management/guides/roles/#okta-resource-name-orn).
      Parameters:
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • deleteResourceSet

      public void deleteResourceSet(String resourceSetIdOrLabel) throws ApiException
      Delete a Resource Set Deletes a Resource Set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      Throws:
      ApiException - if fails to make API call
    • deleteResourceSet

      public void deleteResourceSet(String resourceSetIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Delete a Resource Set Deletes a Resource Set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getResourceSet

      public ResourceSet getResourceSet(String resourceSetIdOrLabel) throws ApiException
      Retrieve a Resource Set Retrieves a Resource Set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • getResourceSet

      public ResourceSet getResourceSet(String resourceSetIdOrLabel, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a Resource Set Retrieves a Resource Set by `resourceSetIdOrLabel`
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • listResourceSets

      public ResourceSets listResourceSets(String after) throws ApiException
      List all Resource Sets Lists all Resource Sets with pagination support
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)
      Returns:
      ResourceSets
      Throws:
      ApiException - if fails to make API call
    • listResourceSets

      public ResourceSets listResourceSets(String after, Map<String,String> additionalHeaders) throws ApiException
      List all Resource Sets Lists all Resource Sets with pagination support
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSets
      Throws:
      ApiException - if fails to make API call
    • replaceResourceSet

      public ResourceSet replaceResourceSet(String resourceSetIdOrLabel, ResourceSet instance) throws ApiException
      Replace a Resource Set Replaces the label and description of a Resource Set
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      instance - (required)
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • replaceResourceSet

      public ResourceSet replaceResourceSet(String resourceSetIdOrLabel, ResourceSet instance, Map<String,String> additionalHeaders) throws ApiException
      Replace a Resource Set Replaces the label and description of a Resource Set
      Parameters:
      resourceSetIdOrLabel - `id` or `label` the Resource Set (required)
      instance - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ResourceSet
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()