All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.okta.sdk.resource.api.SchemaApi Maven / Gradle / Ivy

Go to download

The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta API. This .jar is the only compile-time dependency within the Okta SDK project that your code should depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.

The newest version!
/*
 * Okta Admin Management
 * Allows customers to easily access the Okta Management APIs
 *
 * The version of the OpenAPI document: 2024.08.3
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.okta.sdk.resource.api;

import com.fasterxml.jackson.core.type.TypeReference;

import com.okta.sdk.resource.client.ApiException;
import com.okta.sdk.resource.client.ApiClient;
import com.okta.sdk.resource.client.Configuration;
import com.okta.sdk.resource.model.*;
import com.okta.sdk.resource.client.Pair;

import com.okta.sdk.resource.model.Error;
import com.okta.sdk.resource.model.GroupSchema;
import com.okta.sdk.resource.model.LogStreamSchema;
import com.okta.sdk.resource.model.LogStreamType;
import com.okta.sdk.resource.model.UserSchema;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.DeserializationFeature;

import org.openapitools.jackson.nullable.JsonNullableModule;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-15T08:48:47.130589-06:00[America/Chicago]", comments = "Generator version: 7.8.0")
public class SchemaApi {

    private ApiClient apiClient;

    public SchemaApi() {
        this(Configuration.getDefaultApiClient());
    }

    public SchemaApi(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return apiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.apiClient = apiClient;
    }

    /**
     * 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.
     *
     * @param appId
     *            Application ID (required)
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema getApplicationUserSchema(String appId) throws ApiException {
        return this.getApplicationUserSchema(appId, Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param appId
     *            Application ID (required)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema getApplicationUserSchema(String appId, Map additionalHeaders)
            throws ApiException {
        Object localVarPostBody = null;

        // verify the required parameter 'appId' is set
        if (appId == null) {
            throw new ApiException(400, "Missing the required parameter 'appId' when calling getApplicationUserSchema");
        }

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/apps/{appId}/default".replaceAll("\\{" + "appId" + "\\}",
                apiClient.escapeString(appId.toString()));

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {

        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * 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.
     *
     * @return GroupSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public GroupSchema getGroupSchema() throws ApiException {
        return this.getGroupSchema(Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return GroupSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public GroupSchema getGroupSchema(Map additionalHeaders) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/group/default";

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {

        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * 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.
     *
     * @param logStreamType
     *            (required)
     *
     * @return LogStreamSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public LogStreamSchema getLogStreamSchema(LogStreamType logStreamType) throws ApiException {
        return this.getLogStreamSchema(logStreamType, Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param logStreamType
     *            (required)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return LogStreamSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public LogStreamSchema getLogStreamSchema(LogStreamType logStreamType, Map additionalHeaders)
            throws ApiException {
        Object localVarPostBody = null;

        // verify the required parameter 'logStreamType' is set
        if (logStreamType == null) {
            throw new ApiException(400,
                    "Missing the required parameter 'logStreamType' when calling getLogStreamSchema");
        }

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/logStream/{logStreamType}"
                .replaceAll("\\{" + "logStreamType" + "\\}", apiClient.escapeString(logStreamType.toString()));

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {

        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * Retrieve a User Schema Retrieves the Schema for a User Type
     *
     * @param schemaId
     *            (required)
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema getUserSchema(String schemaId) throws ApiException {
        return this.getUserSchema(schemaId, Collections.emptyMap());
    }

    /**
     * Retrieve a User Schema Retrieves the Schema for a User Type
     *
     * @param schemaId
     *            (required)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema getUserSchema(String schemaId, Map additionalHeaders) throws ApiException {
        Object localVarPostBody = null;

        // verify the required parameter 'schemaId' is set
        if (schemaId == null) {
            throw new ApiException(400, "Missing the required parameter 'schemaId' when calling getUserSchema");
        }

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/user/{schemaId}".replaceAll("\\{" + "schemaId" + "\\}",
                apiClient.escapeString(schemaId.toString()));

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {

        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * List the Log Stream Schemas Lists the Schema for all Log Stream types visible for this org
     *
     * @return List<LogStreamSchema>
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public List listLogStreamSchemas() throws ApiException {
        return this.listLogStreamSchemas(Collections.emptyMap());
    }

    /**
     * List the Log Stream Schemas Lists the Schema for all Log Stream types visible for this org
     *
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return List<LogStreamSchema>
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public List listLogStreamSchemas(Map additionalHeaders) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/logStream";

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {

        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference> localVarReturnType = new TypeReference>() {
        };
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * 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.
     *
     * @param appId
     *            Application ID (required)
     * @param body
     *            (optional)
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema updateApplicationUserProfile(String appId, UserSchema body) throws ApiException {
        return this.updateApplicationUserProfile(appId, body, Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param appId
     *            Application ID (required)
     * @param body
     *            (optional)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema updateApplicationUserProfile(String appId, UserSchema body, Map additionalHeaders)
            throws ApiException {
        Object localVarPostBody = body;

        // verify the required parameter 'appId' is set
        if (appId == null) {
            throw new ApiException(400,
                    "Missing the required parameter 'appId' when calling updateApplicationUserProfile");
        }

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/apps/{appId}/default".replaceAll("\\{" + "appId" + "\\}",
                apiClient.escapeString(appId.toString()));

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = { "application/json" };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * 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.
     *
     * @param groupSchema
     *            (optional)
     *
     * @return GroupSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public GroupSchema updateGroupSchema(GroupSchema groupSchema) throws ApiException {
        return this.updateGroupSchema(groupSchema, Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param groupSchema
     *            (optional)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return GroupSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public GroupSchema updateGroupSchema(GroupSchema groupSchema, Map additionalHeaders)
            throws ApiException {
        Object localVarPostBody = groupSchema;

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/group/default";

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = { "application/json" };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    /**
     * 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.
     *
     * @param schemaId
     *            (required)
     * @param userSchema
     *            (required)
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema updateUserProfile(String schemaId, UserSchema userSchema) throws ApiException {
        return this.updateUserProfile(schemaId, userSchema, Collections.emptyMap());
    }

    /**
     * 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.
     *
     * @param schemaId
     *            (required)
     * @param userSchema
     *            (required)
     * @param additionalHeaders
     *            additionalHeaders for this call
     *
     * @return UserSchema
     *
     * @throws ApiException
     *             if fails to make API call
     */
    public UserSchema updateUserProfile(String schemaId, UserSchema userSchema, Map additionalHeaders)
            throws ApiException {
        Object localVarPostBody = userSchema;

        // verify the required parameter 'schemaId' is set
        if (schemaId == null) {
            throw new ApiException(400, "Missing the required parameter 'schemaId' when calling updateUserProfile");
        }

        // verify the required parameter 'userSchema' is set
        if (userSchema == null) {
            throw new ApiException(400, "Missing the required parameter 'userSchema' when calling updateUserProfile");
        }

        // create path and map variables
        String localVarPath = "/api/v1/meta/schemas/user/{schemaId}".replaceAll("\\{" + "schemaId" + "\\}",
                apiClient.escapeString(schemaId.toString()));

        StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
        String localVarQueryParameterBaseName;
        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        localVarHeaderParams.putAll(additionalHeaders);

        final String[] localVarAccepts = { "application/json" };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = { "application/json" };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "apiToken", "oauth2" };

        TypeReference localVarReturnType = new TypeReference() {
        };
        return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams,
                localVarQueryStringJoiner.toString(), localVarPostBody, localVarHeaderParams, localVarCookieParams,
                localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    }

    protected static ObjectMapper getObjectMapper() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.registerModule(new JavaTimeModule());
        objectMapper.registerModule(new JsonNullableModule());
        objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        objectMapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);
        return objectMapper;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy