Package com.okta.sdk.resource.api
Class UserTypeApi
java.lang.Object
com.okta.sdk.resource.api.UserTypeApi
@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 UserTypeApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateUserType
(CreateUserTypeRequest userType) Create a User Type Creates a new User Type.createUserType
(CreateUserTypeRequest userType, Map<String, String> additionalHeaders) Create a User Type Creates a new User Type.void
deleteUserType
(String typeId) Delete a User Type Deletes a User Type permanently.void
deleteUserType
(String typeId, Map<String, String> additionalHeaders) Delete a User Type Deletes a User Type permanently.protected static com.fasterxml.jackson.databind.ObjectMapper
getUserType
(String typeId) Retrieve a User Type Retrieves a User Type by ID.getUserType
(String typeId, Map<String, String> additionalHeaders) Retrieve a User Type Retrieves a User Type by ID.List all User Types Lists all User Types in your orglistUserTypes
(Map<String, String> additionalHeaders) List all User Types Lists all User Types in your orgreplaceUserType
(String typeId, UserTypePutRequest userType) Replace a User Type Replaces an existing User Type.replaceUserType
(String typeId, UserTypePutRequest userType, Map<String, String> additionalHeaders) Replace a User Type Replaces an existing User Type.void
setApiClient
(ApiClient apiClient) updateUserType
(String typeId, UserTypePostRequest userType) Update a User Type Updates an existing User Type.updateUserType
(String typeId, UserTypePostRequest userType, Map<String, String> additionalHeaders) Update a User Type Updates an existing User Type.
-
Constructor Details
-
UserTypeApi
public UserTypeApi() -
UserTypeApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createUserType
Create a User Type Creates a new User Type. Okta automatically creates a `default` User Type for your org. You may add up to nine additional User Types. > **Note**: New User Types are based on the current default schema template. Modifications to this schema do not automatically propagate to previously created User Types.- Parameters:
userType
- (required)- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
createUserType
public UserType createUserType(CreateUserTypeRequest userType, Map<String, String> additionalHeaders) throws ApiExceptionCreate a User Type Creates a new User Type. Okta automatically creates a `default` User Type for your org. You may add up to nine additional User Types. > **Note**: New User Types are based on the current default schema template. Modifications to this schema do not automatically propagate to previously created User Types.- Parameters:
userType
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
deleteUserType
Delete a User Type Deletes a User Type permanently. > **Note**: You can't delete the default User Type or a User Type that is currently assigned to users.- Parameters:
typeId
- (required)- Throws:
ApiException
- if fails to make API call
-
deleteUserType
Delete a User Type Deletes a User Type permanently. > **Note**: You can't delete the default User Type or a User Type that is currently assigned to users.- Parameters:
typeId
- (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getUserType
Retrieve a User Type Retrieves a User Type by ID. Use `default` to fetch the default User Type.- Parameters:
typeId
- (required)- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
getUserType
public UserType getUserType(String typeId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a User Type Retrieves a User Type by ID. Use `default` to fetch the default User Type.- Parameters:
typeId
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
listUserTypes
List all User Types Lists all User Types in your org- Returns:
- List<UserType>
- Throws:
ApiException
- if fails to make API call
-
listUserTypes
List all User Types Lists all User Types in your org- Parameters:
additionalHeaders
- additionalHeaders for this call- Returns:
- List<UserType>
- Throws:
ApiException
- if fails to make API call
-
replaceUserType
Replace a User Type Replaces an existing User Type. This operation is a full update. > **Note**: The `name` of an existing User Type can't be changed, but must be part of the request body. You can only replace the `displayName` and `description` elements.- Parameters:
typeId
- (required)userType
- (optional)- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
replaceUserType
public UserType replaceUserType(String typeId, UserTypePutRequest userType, Map<String, String> additionalHeaders) throws ApiExceptionReplace a User Type Replaces an existing User Type. This operation is a full update. > **Note**: The `name` of an existing User Type can't be changed, but must be part of the request body. You can only replace the `displayName` and `description` elements.- Parameters:
typeId
- (required)userType
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
updateUserType
Update a User Type Updates an existing User Type. This operation is a partial update. > **Note**: You can only update the `displayName` and `description` elements. The `name` of an existing User Type can't be changed.- Parameters:
typeId
- (required)userType
- (required)- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
updateUserType
public UserType updateUserType(String typeId, UserTypePostRequest userType, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a User Type Updates an existing User Type. This operation is a partial update. > **Note**: You can only update the `displayName` and `description` elements. The `name` of an existing User Type can't be changed.- Parameters:
typeId
- (required)userType
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserType
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-