Package com.okta.sdk.resource.api
Class TrustedOriginApi
java.lang.Object
com.okta.sdk.resource.api.TrustedOriginApi
@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 TrustedOriginApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivateTrustedOrigin
(String trustedOriginId) Activate a Trusted Origin Activates a Trusted Origin.activateTrustedOrigin
(String trustedOriginId, Map<String, String> additionalHeaders) Activate a Trusted Origin Activates a Trusted Origin.createTrustedOrigin
(TrustedOriginWrite trustedOrigin) Create a Trusted Origin Creates a trusted origincreateTrustedOrigin
(TrustedOriginWrite trustedOrigin, Map<String, String> additionalHeaders) Create a Trusted Origin Creates a trusted origindeactivateTrustedOrigin
(String trustedOriginId) Deactivate a Trusted Origin Deactivates a Trusted Origin.deactivateTrustedOrigin
(String trustedOriginId, Map<String, String> additionalHeaders) Deactivate a Trusted Origin Deactivates a Trusted Origin.void
deleteTrustedOrigin
(String trustedOriginId) Delete a Trusted Origin Deletes a trusted originvoid
deleteTrustedOrigin
(String trustedOriginId, Map<String, String> additionalHeaders) Delete a Trusted Origin Deletes a trusted originprotected static com.fasterxml.jackson.databind.ObjectMapper
getTrustedOrigin
(String trustedOriginId) Retrieve a Trusted Origin Retrieves a trusted origingetTrustedOrigin
(String trustedOriginId, Map<String, String> additionalHeaders) Retrieve a Trusted Origin Retrieves a trusted originlistTrustedOrigins
(String q, String filter, String after, Integer limit) List all Trusted Origins Lists all trusted originslistTrustedOrigins
(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) List all Trusted Origins Lists all trusted originsreplaceTrustedOrigin
(String trustedOriginId, TrustedOrigin trustedOrigin) Replace a Trusted Origin Replaces a trusted originreplaceTrustedOrigin
(String trustedOriginId, TrustedOrigin trustedOrigin, Map<String, String> additionalHeaders) Replace a Trusted Origin Replaces a trusted originvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
TrustedOriginApi
public TrustedOriginApi() -
TrustedOriginApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateTrustedOrigin
Activate a Trusted Origin Activates a Trusted Origin. Sets the `status` to `ACTIVE`.- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
activateTrustedOrigin
public TrustedOrigin activateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a Trusted Origin Activates a Trusted Origin. Sets the `status` to `ACTIVE`.- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)additionalHeaders
- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
createTrustedOrigin
Create a Trusted Origin Creates a trusted origin- Parameters:
trustedOrigin
- (required)- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
createTrustedOrigin
public TrustedOrigin createTrustedOrigin(TrustedOriginWrite trustedOrigin, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Trusted Origin Creates a trusted origin- Parameters:
trustedOrigin
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
deactivateTrustedOrigin
Deactivate a Trusted Origin Deactivates a Trusted Origin. Sets the `status` to `INACTIVE`.- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
deactivateTrustedOrigin
public TrustedOrigin deactivateTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a Trusted Origin Deactivates a Trusted Origin. Sets the `status` to `INACTIVE`.- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)additionalHeaders
- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
deleteTrustedOrigin
Delete a Trusted Origin Deletes a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)- Throws:
ApiException
- if fails to make API call
-
deleteTrustedOrigin
public void deleteTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Trusted Origin Deletes a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getTrustedOrigin
Retrieve a Trusted Origin Retrieves a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
getTrustedOrigin
public TrustedOrigin getTrustedOrigin(String trustedOriginId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Trusted Origin Retrieves a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)additionalHeaders
- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
listTrustedOrigins
public List<TrustedOrigin> listTrustedOrigins(String q, String filter, String after, Integer limit) throws ApiException List all Trusted Origins Lists all trusted origins- Parameters:
q
- A search string that will prefix match against the `name` and `origin` (optional)filter
- [Filter](/#filter) Trusted Origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after
- The after cursor provided by a prior request. (optional)limit
- Specifies the number of results. (optional, default to 20)- Returns:
- List<TrustedOrigin>
- Throws:
ApiException
- if fails to make API call
-
listTrustedOrigins
public List<TrustedOrigin> listTrustedOrigins(String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all Trusted Origins Lists all trusted origins- Parameters:
q
- A search string that will prefix match against the `name` and `origin` (optional)filter
- [Filter](/#filter) Trusted Origins with a supported expression for a subset of properties. You can filter on the following properties: `name`, `origin`, `status`, and `type` (type of scopes). (optional)after
- The after cursor provided by a prior request. (optional)limit
- Specifies the number of results. (optional, default to 20)additionalHeaders
- additionalHeaders for this call- Returns:
- List<TrustedOrigin>
- Throws:
ApiException
- if fails to make API call
-
replaceTrustedOrigin
public TrustedOrigin replaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin) throws ApiException Replace a Trusted Origin Replaces a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)trustedOrigin
- (required)- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
replaceTrustedOrigin
public TrustedOrigin replaceTrustedOrigin(String trustedOriginId, TrustedOrigin trustedOrigin, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Trusted Origin Replaces a trusted origin- Parameters:
trustedOriginId
- `id` of the Trusted Origin (required)trustedOrigin
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- TrustedOrigin
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-