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 Details

    • SchemaApi

      public SchemaApi()
    • SchemaApi

      public SchemaApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getApplicationUserSchema

      public UserSchema getApplicationUserSchema(String appId) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      UserSchema
      Throws:
      ApiException - if fails to make API call
    • getGroupSchema

      public GroupSchema getGroupSchema() throws ApiException
      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

      public GroupSchema getGroupSchema(Map<String,String> additionalHeaders) throws ApiException
      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

      public LogStreamSchema getLogStreamSchema(LogStreamType logStreamType) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      LogStreamSchema
      Throws:
      ApiException - if fails to make API call
    • getUserSchema

      public UserSchema getUserSchema(String schemaId) throws ApiException
      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 ApiException
      Retrieve 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

      public List<LogStreamSchema> listLogStreamSchemas() throws ApiException
      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 ApiException
      List 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

      public UserSchema updateApplicationUserProfile(String appId, UserSchema body) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      UserSchema
      Throws:
      ApiException - if fails to make API call
    • updateGroupSchema

      public GroupSchema updateGroupSchema(GroupSchema groupSchema) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GroupSchema
      Throws:
      ApiException - if fails to make API call
    • updateUserProfile

      public UserSchema updateUserProfile(String schemaId, UserSchema userSchema) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      UserSchema
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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