Package com.okta.sdk.resource.api
Class ResourceSetApi
java.lang.Object
com.okta.sdk.resource.api.ResourceSetApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-08-09T14:19:33.269913-05:00[America/Chicago]",
comments="Generator version: 7.7.0")
public class ResourceSetApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMembersToBinding
(String resourceSetId, String roleIdOrLabel, ResourceSetBindingAddMembersRequest instance) Add more Members to a binding Adds more members to a Resource Set bindingaddMembersToBinding
(String resourceSetId, String roleIdOrLabel, ResourceSetBindingAddMembersRequest instance, Map<String, String> additionalHeaders) Add more Members to a binding Adds more members to a Resource Set bindingaddResourceSetResource
(String resourceSetId, ResourceSetResourcePatchRequest instance) Add more Resource to a Resource Set Adds more resources to a Resource SetaddResourceSetResource
(String resourceSetId, ResourceSetResourcePatchRequest instance, Map<String, String> additionalHeaders) Add more Resource to a Resource Set Adds more resources to a Resource SetcreateResourceSet
(CreateResourceSetRequest instance) Create a Resource Set Creates a new Resource Set.createResourceSet
(CreateResourceSetRequest instance, Map<String, String> additionalHeaders) Create a Resource Set Creates a new Resource Set.createResourceSetBinding
(String resourceSetId, ResourceSetBindingCreateRequest instance) Create a Resource Set Binding Creates a new Resource Set bindingcreateResourceSetBinding
(String resourceSetId, ResourceSetBindingCreateRequest instance, Map<String, String> additionalHeaders) Create a Resource Set Binding Creates a new Resource Set bindingvoid
deleteBinding
(String resourceSetId, String roleIdOrLabel) Delete a Binding Deletes a Resource Set binding by `resourceSetId` and `roleIdOrLabel`void
Delete a Binding Deletes a Resource Set binding by `resourceSetId` and `roleIdOrLabel`void
deleteResourceSet
(String resourceSetId) Delete a Resource Set Deletes a role by `resourceSetId`void
deleteResourceSet
(String resourceSetId, Map<String, String> additionalHeaders) Delete a Resource Set Deletes a role by `resourceSetId`void
deleteResourceSetResource
(String resourceSetId, String resourceId) Delete a Resource from a Resource Set Deletes a resource identified by `resourceId` from a Resource Setvoid
deleteResourceSetResource
(String resourceSetId, String resourceId, Map<String, String> additionalHeaders) Delete a Resource from a Resource Set Deletes a resource identified by `resourceId` from a Resource SetgetBinding
(String resourceSetId, String roleIdOrLabel) Retrieve a Binding Retrieves a Resource Set binding by `resourceSetId` and `roleIdOrLabel`Retrieve a Binding Retrieves a Resource Set binding by `resourceSetId` and `roleIdOrLabel`getMemberOfBinding
(String resourceSetId, String roleIdOrLabel, String memberId) Retrieve a Member of a binding Retrieves a member identified by `memberId` for a bindinggetMemberOfBinding
(String resourceSetId, String roleIdOrLabel, String memberId, Map<String, String> additionalHeaders) Retrieve a Member of a binding Retrieves a member identified by `memberId` for a bindingprotected static com.fasterxml.jackson.databind.ObjectMapper
getResourceSet
(String resourceSetId) Retrieve a Resource Set Retrieves a Resource Set by `resourceSetId`getResourceSet
(String resourceSetId, Map<String, String> additionalHeaders) Retrieve a Resource Set Retrieves a Resource Set by `resourceSetId`listBindings
(String resourceSetId, String after) List all Bindings Lists all Resource Set bindings with pagination supportList all Bindings Lists all Resource Set bindings with pagination supportlistMembersOfBinding
(String resourceSetId, String roleIdOrLabel, String after) List all Members of a binding Lists all members of a Resource Set binding with pagination supportlistMembersOfBinding
(String resourceSetId, String roleIdOrLabel, String after, Map<String, String> additionalHeaders) List all Members of a binding Lists all members of a Resource Set binding with pagination supportlistResourceSetResources
(String resourceSetId) List all Resources of a Resource Set Lists all resources that make up the Resource SetlistResourceSetResources
(String resourceSetId, Map<String, String> additionalHeaders) List all Resources of a Resource Set Lists all resources that make up the Resource SetlistResourceSets
(String after) List all Resource Sets Lists all Resource Sets with pagination supportlistResourceSets
(String after, Map<String, String> additionalHeaders) List all Resource Sets Lists all Resource Sets with pagination supportreplaceResourceSet
(String resourceSetId, ResourceSet instance) Replace a Resource Set Replaces a Resource Set by `resourceSetId`replaceResourceSet
(String resourceSetId, ResourceSet instance, Map<String, String> additionalHeaders) Replace a Resource Set Replaces a Resource Set by `resourceSetId`void
setApiClient
(ApiClient apiClient) void
unassignMemberFromBinding
(String resourceSetId, String roleIdOrLabel, String memberId) Unassign a Member from a binding Unassigns a member identified by `memberId` from a bindingvoid
unassignMemberFromBinding
(String resourceSetId, String roleIdOrLabel, String memberId, Map<String, String> additionalHeaders) Unassign a Member from a binding Unassigns a member identified by `memberId` from a binding
-
Constructor Details
-
ResourceSetApi
public ResourceSetApi() -
ResourceSetApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
addMembersToBinding
public ResourceSetBindingResponse addMembersToBinding(String resourceSetId, String roleIdOrLabel, ResourceSetBindingAddMembersRequest instance) throws ApiException Add more Members to a binding Adds more members to a Resource Set binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
addMembersToBinding
public ResourceSetBindingResponse addMembersToBinding(String resourceSetId, String roleIdOrLabel, ResourceSetBindingAddMembersRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionAdd more Members to a binding Adds more members to a Resource Set binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
addResourceSetResource
public ResourceSet addResourceSetResource(String resourceSetId, ResourceSetResourcePatchRequest instance) throws ApiException Add more Resource to a Resource Set Adds more resources to a Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
addResourceSetResource
public ResourceSet addResourceSetResource(String resourceSetId, ResourceSetResourcePatchRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionAdd more Resource to a Resource Set Adds more resources to a Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
createResourceSet
Create a Resource Set Creates a new Resource Set. See [Supported Resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum amount 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 ApiExceptionCreate a Resource Set Creates a new Resource Set. See [Supported Resources](/openapi/okta-management/guides/roles/#supported-resources). > **Note:** The maximum amount 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
-
createResourceSetBinding
public ResourceSetBindingResponse createResourceSetBinding(String resourceSetId, ResourceSetBindingCreateRequest instance) throws ApiException Create a Resource Set Binding Creates a new Resource Set binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
createResourceSetBinding
public ResourceSetBindingResponse createResourceSetBinding(String resourceSetId, ResourceSetBindingCreateRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Resource Set Binding Creates a new Resource Set binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
deleteBinding
Delete a Binding Deletes a Resource Set binding by `resourceSetId` and `roleIdOrLabel`- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)- Throws:
ApiException
- if fails to make API call
-
deleteBinding
public void deleteBinding(String resourceSetId, String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Binding Deletes a Resource Set binding by `resourceSetId` and `roleIdOrLabel`- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteResourceSet
Delete a Resource Set Deletes a role by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)- Throws:
ApiException
- if fails to make API call
-
deleteResourceSet
public void deleteResourceSet(String resourceSetId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Resource Set Deletes a role by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
deleteResourceSetResource
Delete a Resource from a Resource Set Deletes a resource identified by `resourceId` from a Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)resourceId
- `id` of a resource (required)- Throws:
ApiException
- if fails to make API call
-
deleteResourceSetResource
public void deleteResourceSetResource(String resourceSetId, String resourceId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Resource from a Resource Set Deletes a resource identified by `resourceId` from a Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)resourceId
- `id` of a resource (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getBinding
public ResourceSetBindingResponse getBinding(String resourceSetId, String roleIdOrLabel) throws ApiException Retrieve a Binding Retrieves a Resource Set binding by `resourceSetId` and `roleIdOrLabel`- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
getBinding
public ResourceSetBindingResponse getBinding(String resourceSetId, String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Binding Retrieves a Resource Set binding by `resourceSetId` and `roleIdOrLabel`- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException
- if fails to make API call
-
getMemberOfBinding
public ResourceSetBindingMember getMemberOfBinding(String resourceSetId, String roleIdOrLabel, String memberId) throws ApiException Retrieve a Member of a binding Retrieves a member identified by `memberId` for a binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)memberId
- `id` of a member (required)- Returns:
- ResourceSetBindingMember
- Throws:
ApiException
- if fails to make API call
-
getMemberOfBinding
public ResourceSetBindingMember getMemberOfBinding(String resourceSetId, String roleIdOrLabel, String memberId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Member of a binding Retrieves a member identified by `memberId` for a binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)memberId
- `id` of a member (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindingMember
- Throws:
ApiException
- if fails to make API call
-
getResourceSet
Retrieve a Resource Set Retrieves a Resource Set by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
getResourceSet
public ResourceSet getResourceSet(String resourceSetId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Resource Set Retrieves a Resource Set by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
listBindings
List all Bindings Lists all Resource Set bindings with pagination support- Parameters:
resourceSetId
- `id` of a Resource Set (required)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](/#pagination). (optional)- Returns:
- ResourceSetBindings
- Throws:
ApiException
- if fails to make API call
-
listBindings
public ResourceSetBindings listBindings(String resourceSetId, String after, Map<String, String> additionalHeaders) throws ApiExceptionList all Bindings Lists all Resource Set bindings with pagination support- Parameters:
resourceSetId
- `id` of a Resource Set (required)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](/#pagination). (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindings
- Throws:
ApiException
- if fails to make API call
-
listMembersOfBinding
public ResourceSetBindingMembers listMembersOfBinding(String resourceSetId, String roleIdOrLabel, String after) throws ApiException List all Members of a binding Lists all members of a Resource Set binding with pagination support- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)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](/#pagination). (optional)- Returns:
- ResourceSetBindingMembers
- Throws:
ApiException
- if fails to make API call
-
listMembersOfBinding
public ResourceSetBindingMembers listMembersOfBinding(String resourceSetId, String roleIdOrLabel, String after, Map<String, String> additionalHeaders) throws ApiExceptionList all Members of a binding Lists all members of a Resource Set binding with pagination support- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)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](/#pagination). (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetBindingMembers
- Throws:
ApiException
- if fails to make API call
-
listResourceSetResources
List all Resources of a Resource Set Lists all resources that make up the Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)- Returns:
- ResourceSetResources
- Throws:
ApiException
- if fails to make API call
-
listResourceSetResources
public ResourceSetResources listResourceSetResources(String resourceSetId, Map<String, String> additionalHeaders) throws ApiExceptionList all Resources of a Resource Set Lists all resources that make up the Resource Set- Parameters:
resourceSetId
- `id` of a Resource Set (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSetResources
- Throws:
ApiException
- if fails to make API call
-
listResourceSets
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](/#pagination). (optional)- Returns:
- ResourceSets
- Throws:
ApiException
- if fails to make API call
-
listResourceSets
public ResourceSets listResourceSets(String after, Map<String, String> additionalHeaders) throws ApiExceptionList 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](/#pagination). (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSets
- Throws:
ApiException
- if fails to make API call
-
replaceResourceSet
public ResourceSet replaceResourceSet(String resourceSetId, ResourceSet instance) throws ApiException Replace a Resource Set Replaces a Resource Set by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
replaceResourceSet
public ResourceSet replaceResourceSet(String resourceSetId, ResourceSet instance, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Resource Set Replaces a Resource Set by `resourceSetId`- Parameters:
resourceSetId
- `id` of a Resource Set (required)instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ResourceSet
- Throws:
ApiException
- if fails to make API call
-
unassignMemberFromBinding
public void unassignMemberFromBinding(String resourceSetId, String roleIdOrLabel, String memberId) throws ApiException Unassign a Member from a binding Unassigns a member identified by `memberId` from a binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)memberId
- `id` of a member (required)- Throws:
ApiException
- if fails to make API call
-
unassignMemberFromBinding
public void unassignMemberFromBinding(String resourceSetId, String roleIdOrLabel, String memberId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign a Member from a binding Unassigns a member identified by `memberId` from a binding- Parameters:
resourceSetId
- `id` of a Resource Set (required)roleIdOrLabel
- `id` or `label` of the role (required)memberId
- `id` of a member (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-