Package com.okta.sdk.resource.api
Class LogStreamApi
java.lang.Object
com.okta.sdk.resource.api.LogStreamApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class LogStreamApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivateLogStream
(String logStreamId) Activate a Log Stream Activates a log stream by `logStreamId`activateLogStream
(String logStreamId, Map<String, String> additionalHeaders) Activate a Log Stream Activates a log stream by `logStreamId`createLogStream
(LogStream instance) Create a Log Stream Creates a new Log Stream objectcreateLogStream
(LogStream instance, Map<String, String> additionalHeaders) Create a Log Stream Creates a new Log Stream objectdeactivateLogStream
(String logStreamId) Deactivate a Log Stream Deactivates a log stream by `logStreamId`deactivateLogStream
(String logStreamId, Map<String, String> additionalHeaders) Deactivate a Log Stream Deactivates a log stream by `logStreamId`void
deleteLogStream
(String logStreamId) Delete a Log Stream Deletes a Log Stream object from your org by IDvoid
deleteLogStream
(String logStreamId, Map<String, String> additionalHeaders) Delete a Log Stream Deletes a Log Stream object from your org by IDgetLogStream
(String logStreamId) Retrieve a Log Stream Retrieves a Log Stream object by IDgetLogStream
(String logStreamId, Map<String, String> additionalHeaders) Retrieve a Log Stream Retrieves a Log Stream object by IDprotected static com.fasterxml.jackson.databind.ObjectMapper
listLogStreams
(String after, Integer limit, String filter) List all Log Streams Lists all Log Stream objects in your org.List all Log Streams Lists all Log Stream objects in your org.replaceLogStream
(String logStreamId, LogStreamPutSchema instance) Replace a Log Stream Replaces the Log Stream object properties for a given ID.replaceLogStream
(String logStreamId, LogStreamPutSchema instance, Map<String, String> additionalHeaders) Replace a Log Stream Replaces the Log Stream object properties for a given ID.void
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
LogStreamApi
public LogStreamApi() -
LogStreamApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateLogStream
Activate a Log Stream Activates a log stream by `logStreamId`- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
activateLogStream
public LogStream activateLogStream(String logStreamId, Map<String, String> additionalHeaders) throws ApiExceptionActivate a Log Stream Activates a log stream by `logStreamId`- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
createLogStream
Create a Log Stream Creates a new Log Stream object- Parameters:
instance
- (required)- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
createLogStream
public LogStream createLogStream(LogStream instance, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Log Stream Creates a new Log Stream object- Parameters:
instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
deactivateLogStream
Deactivate a Log Stream Deactivates a log stream by `logStreamId`- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
deactivateLogStream
public LogStream deactivateLogStream(String logStreamId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate a Log Stream Deactivates a log stream by `logStreamId`- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
deleteLogStream
Delete a Log Stream Deletes a Log Stream object from your org by ID- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)- Throws:
ApiException
- if fails to make API call
-
deleteLogStream
public void deleteLogStream(String logStreamId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Log Stream Deletes a Log Stream object from your org by ID- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getLogStream
Retrieve a Log Stream Retrieves a Log Stream object by ID- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
getLogStream
public LogStream getLogStream(String logStreamId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Log Stream Retrieves a Log Stream object by ID- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
listLogStreams
public List<LogStream> listLogStreams(String after, Integer limit, String filter) throws ApiException List all Log Streams Lists all Log Stream objects in your org. You can request a paginated list or a subset of Log Streams that match a supported filter expression.- Parameters:
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)filter
- An expression that [filters](/#filter) the returned objects. You can only use the `eq` operator on either the `status` or `type` properties in the filter expression. (optional)- Returns:
- List<LogStream>
- Throws:
ApiException
- if fails to make API call
-
listLogStreams
public List<LogStream> listLogStreams(String after, Integer limit, String filter, Map<String, String> additionalHeaders) throws ApiExceptionList all Log Streams Lists all Log Stream objects in your org. You can request a paginated list or a subset of Log Streams that match a supported filter expression.- Parameters:
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- A limit on the number of objects to return (optional, default to 20)filter
- An expression that [filters](/#filter) the returned objects. You can only use the `eq` operator on either the `status` or `type` properties in the filter expression. (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<LogStream>
- Throws:
ApiException
- if fails to make API call
-
replaceLogStream
public LogStream replaceLogStream(String logStreamId, LogStreamPutSchema instance) throws ApiException Replace a Log Stream Replaces the Log Stream object properties for a given ID. This operation is typically used to update the configuration of a Log Stream. Depending on the type of Log Stream you want to update, certain properties can't be modified after the Log Stream is initially created. Use the [Retrieve the Log Stream Schema for the schema type](/openapi/okta-management/management/tag/Schema/#tag/Schema/operation/getLogStreamSchema) request to determine which properties you can update for the specific Log Stream type. Log Stream properties with the `\"writeOnce\" : true` attribute can't be updated after creation. You must still specify these `writeOnce` properties in the request body with the original values in the PUT request. > **Note:** You don't have to specify properties that have both the `\"writeOnce\": true` and the `\"writeOnly\": true` attributes in the PUT request body. These property values are ignored even if you add them in the PUT request body.- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)instance
- (required)- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
replaceLogStream
public LogStream replaceLogStream(String logStreamId, LogStreamPutSchema instance, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Log Stream Replaces the Log Stream object properties for a given ID. This operation is typically used to update the configuration of a Log Stream. Depending on the type of Log Stream you want to update, certain properties can't be modified after the Log Stream is initially created. Use the [Retrieve the Log Stream Schema for the schema type](/openapi/okta-management/management/tag/Schema/#tag/Schema/operation/getLogStreamSchema) request to determine which properties you can update for the specific Log Stream type. Log Stream properties with the `\"writeOnce\" : true` attribute can't be updated after creation. You must still specify these `writeOnce` properties in the request body with the original values in the PUT request. > **Note:** You don't have to specify properties that have both the `\"writeOnce\": true` and the `\"writeOnly\": true` attributes in the PUT request body. These property values are ignored even if you add them in the PUT request body.- Parameters:
logStreamId
- Unique identifier for the Log Stream (required)instance
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- LogStream
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-