Package com.okta.sdk.resource.api
Class SchemaApi
java.lang.Object
com.okta.sdk.resource.api.SchemaApi
@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 SchemaApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApplicationUserSchema
(String appId) Retrieve the default App User Schema for an App Retrieves the default Schema for an App User.getApplicationUserSchema
(String appId, Map<String, String> additionalHeaders) Retrieve the default App User Schema for an App Retrieves the default Schema for an App User.Retrieve the default Group Schema Retrieves the Group Schema The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups.getGroupSchema
(Map<String, String> additionalHeaders) Retrieve the default Group Schema Retrieves the Group Schema The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups.getLogStreamSchema
(LogStreamType logStreamType) Retrieve the Log Stream Schema for the schema type Retrieves the Schema for a Log Stream type.getLogStreamSchema
(LogStreamType logStreamType, Map<String, String> additionalHeaders) Retrieve the Log Stream Schema for the schema type Retrieves the Schema for a Log Stream type.protected static com.fasterxml.jackson.databind.ObjectMapper
getUserSchema
(String schemaId) Retrieve a User Schema Retrieves the Schema for a User TypegetUserSchema
(String schemaId, Map<String, String> additionalHeaders) Retrieve a User Schema Retrieves the Schema for a User TypeList the Log Stream Schemas Lists the Schema for all Log Stream types visible for this orglistLogStreamSchemas
(Map<String, String> additionalHeaders) List the Log Stream Schemas Lists the Schema for all Log Stream types visible for this orgvoid
setApiClient
(ApiClient apiClient) updateApplicationUserProfile
(String appId, UserSchema body) Update the App User Profile Schema for an App Updates the App User Schema.updateApplicationUserProfile
(String appId, UserSchema body, Map<String, String> additionalHeaders) Update the App User Profile Schema for an App Updates the App User Schema.updateGroupSchema
(GroupSchema groupSchema) Update the Group Profile Schema Updates the Group Profile schema.updateGroupSchema
(GroupSchema groupSchema, Map<String, String> additionalHeaders) Update the Group Profile Schema Updates the Group Profile schema.updateUserProfile
(String schemaId, UserSchema userSchema) Update a User Schema Updates a User Schema.updateUserProfile
(String schemaId, UserSchema userSchema, Map<String, String> additionalHeaders) Update a User Schema Updates a User Schema.
-
Constructor Details
-
SchemaApi
public SchemaApi() -
SchemaApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getApplicationUserSchema
Retrieve the default App User Schema for an App Retrieves the default Schema for an App User. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to apps. All users assigned to a given app use the same App User Schema. Therefore, unlike the User Schema operations, the App User Schema operations all specify `default` and don't accept a Schema ID.- Parameters:
appId
- Application ID (required)- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
getApplicationUserSchema
public UserSchema getApplicationUserSchema(String appId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve the default App User Schema for an App Retrieves the default Schema for an App User. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to apps. All users assigned to a given app use the same App User Schema. Therefore, unlike the User Schema operations, the App User Schema operations all specify `default` and don't accept a Schema ID.- Parameters:
appId
- Application ID (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
getGroupSchema
Retrieve the default Group Schema Retrieves the Group Schema The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups. All groups use the same Group Schema. Unlike User Schema operations, Group Schema operations all specify `default` and don't accept a Schema ID.- Returns:
- GroupSchema
- Throws:
ApiException
- if fails to make API call
-
getGroupSchema
Retrieve the default Group Schema Retrieves the Group Schema The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups. All groups use the same Group Schema. Unlike User Schema operations, Group Schema operations all specify `default` and don't accept a Schema ID.- Parameters:
additionalHeaders
- additionalHeaders for this call- Returns:
- GroupSchema
- Throws:
ApiException
- if fails to make API call
-
getLogStreamSchema
Retrieve the Log Stream Schema for the schema type Retrieves the Schema for a Log Stream type. The `logStreamType` element in the URL specifies the Log Stream type, which is either `aws_eventbridge` or `splunk_cloud_logstreaming`. Use the `aws_eventbridge` literal to retrieve the AWS EventBridge type schema, and use the `splunk_cloud_logstreaming` literal retrieve the Splunk Cloud type schema.- Parameters:
logStreamType
- (required)- Returns:
- LogStreamSchema
- Throws:
ApiException
- if fails to make API call
-
getLogStreamSchema
public LogStreamSchema getLogStreamSchema(LogStreamType logStreamType, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve the Log Stream Schema for the schema type Retrieves the Schema for a Log Stream type. The `logStreamType` element in the URL specifies the Log Stream type, which is either `aws_eventbridge` or `splunk_cloud_logstreaming`. Use the `aws_eventbridge` literal to retrieve the AWS EventBridge type schema, and use the `splunk_cloud_logstreaming` literal retrieve the Splunk Cloud type schema.- Parameters:
logStreamType
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStreamSchema
- Throws:
ApiException
- if fails to make API call
-
getUserSchema
Retrieve a User Schema Retrieves the Schema for a User Type- Parameters:
schemaId
- (required)- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
getUserSchema
public UserSchema getUserSchema(String schemaId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a User Schema Retrieves the Schema for a User Type- Parameters:
schemaId
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
listLogStreamSchemas
List the Log Stream Schemas Lists the Schema for all Log Stream types visible for this org- Returns:
- List<LogStreamSchema>
- Throws:
ApiException
- if fails to make API call
-
listLogStreamSchemas
public List<LogStreamSchema> listLogStreamSchemas(Map<String, String> additionalHeaders) throws ApiExceptionList the Log Stream Schemas Lists the Schema for all Log Stream types visible for this org- Parameters:
additionalHeaders
- additionalHeaders for this call- Returns:
- List<LogStreamSchema>
- Throws:
ApiException
- if fails to make API call
-
updateApplicationUserProfile
Update the App User Profile Schema for an App Updates the App User Schema. This updates, adds, or removes one or more custom profile properties or the nullability of a base property in the App User Schema for an app. Changing a base property's nullability (for example, the value of its `required` field) is allowed only if it is nullable in the default predefined Schema for the App. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to apps. All users assigned to a given app use the same App User Schema. Therefore, unlike the User Schema operations, the App User Schema operations all specify `default` and don't accept a Schema ID.- Parameters:
appId
- Application ID (required)body
- (optional)- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
updateApplicationUserProfile
public UserSchema updateApplicationUserProfile(String appId, UserSchema body, Map<String, String> additionalHeaders) throws ApiExceptionUpdate the App User Profile Schema for an App Updates the App User Schema. This updates, adds, or removes one or more custom profile properties or the nullability of a base property in the App User Schema for an app. Changing a base property's nullability (for example, the value of its `required` field) is allowed only if it is nullable in the default predefined Schema for the App. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to apps. All users assigned to a given app use the same App User Schema. Therefore, unlike the User Schema operations, the App User Schema operations all specify `default` and don't accept a Schema ID.- Parameters:
appId
- Application ID (required)body
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
updateGroupSchema
Update the Group Profile Schema Updates the Group Profile schema. This updates, adds, or removes one or more custom profile properties in a Group Schema. Currently Okta does not support changing base Group Profile properties. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups. All groups use the same Group Schema. Unlike User Schema operations, Group Schema operations all specify `default` and don't accept a Schema ID. **Note:** Since POST is interpreted as a partial update, you must set properties explicitly to null to remove them from the Schema.- Parameters:
groupSchema
- (optional)- Returns:
- GroupSchema
- Throws:
ApiException
- if fails to make API call
-
updateGroupSchema
public GroupSchema updateGroupSchema(GroupSchema groupSchema, Map<String, String> additionalHeaders) throws ApiExceptionUpdate the Group Profile Schema Updates the Group Profile schema. This updates, adds, or removes one or more custom profile properties in a Group Schema. Currently Okta does not support changing base Group Profile properties. The [User Types](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserType/) feature does not extend to groups. All groups use the same Group Schema. Unlike User Schema operations, Group Schema operations all specify `default` and don't accept a Schema ID. **Note:** Since POST is interpreted as a partial update, you must set properties explicitly to null to remove them from the Schema.- Parameters:
groupSchema
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- GroupSchema
- Throws:
ApiException
- if fails to make API call
-
updateUserProfile
Update a User Schema Updates a User Schema. This updates, adds, or removes one or more profile properties in a User Schema. Unlike custom User Profile properties, limited changes are allowed to base User Profile properties (permissions, nullability of the `firstName` and `lastName` properties, or pattern for `login`). A property cannot be removed from the default Schema if it is being referenced as a [matchAttribute](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/IdentityProvider/) in SAML2 IdPs. Currently, all validation of SAML assertions is only performed against the default user type.- Parameters:
schemaId
- (required)userSchema
- (required)- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
updateUserProfile
public UserSchema updateUserProfile(String schemaId, UserSchema userSchema, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a User Schema Updates a User Schema. This updates, adds, or removes one or more profile properties in a User Schema. Unlike custom User Profile properties, limited changes are allowed to base User Profile properties (permissions, nullability of the `firstName` and `lastName` properties, or pattern for `login`). A property cannot be removed from the default Schema if it is being referenced as a [matchAttribute](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/IdentityProvider/) in SAML2 IdPs. Currently, all validation of SAML assertions is only performed against the default user type.- Parameters:
schemaId
- (required)userSchema
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- UserSchema
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-