Package com.okta.sdk.resource.api
Class PushProviderApi
java.lang.Object
com.okta.sdk.resource.api.PushProviderApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class PushProviderApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePushProvider(PushProvider pushProvider) Create a push provider Creates a new push provider.createPushProvider(PushProvider pushProvider, Map<String, String> additionalHeaders) Create a push provider Creates a new push provider.voiddeletePushProvider(String pushProviderId) Delete a push provider Deletes a push provider by `pushProviderId`.voiddeletePushProvider(String pushProviderId, Map<String, String> additionalHeaders) Delete a push provider Deletes a push provider by `pushProviderId`.protected static com.fasterxml.jackson.databind.ObjectMappergetPushProvider(String pushProviderId) Retrieve a push provider Retrieves a push provider by `pushProviderId`getPushProvider(String pushProviderId, Map<String, String> additionalHeaders) Retrieve a push provider Retrieves a push provider by `pushProviderId`List all push providers Lists all push providerslistPushProviders(ProviderType type, Map<String, String> additionalHeaders) List all push providers Lists all push providersList all push providers (Paginated) Lists all push providers This method returns a lazy, paginated iterable that automatically handles pagination.listPushProvidersPaged(ProviderType type, Map<String, String> additionalHeaders) List all push providers (Paginated with additional headers) Lists all push providers This method returns a lazy, paginated iterable that automatically handles pagination.replacePushProvider(String pushProviderId, PushProvider pushProvider) Replace a push provider Replaces a push provider by `pushProviderId`replacePushProvider(String pushProviderId, PushProvider pushProvider, Map<String, String> additionalHeaders) Replace a push provider Replaces a push provider by `pushProviderId`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
PushProviderApi
public PushProviderApi() -
PushProviderApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createPushProvider
Create a push provider Creates a new push provider. Each Push Provider must have a unique `name`.- Parameters:
pushProvider- (required)- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
createPushProvider
public PushProvider createPushProvider(PushProvider pushProvider, Map<String, String> additionalHeaders) throws ApiExceptionCreate a push provider Creates a new push provider. Each Push Provider must have a unique `name`.- Parameters:
pushProvider- (required)additionalHeaders- additionalHeaders for this call- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
deletePushProvider
Delete a push provider Deletes a push provider by `pushProviderId`. If the push provider is currently being used in the org by a custom authenticator, the delete will not be allowed.- Parameters:
pushProviderId- Id of the push provider (required)- Throws:
ApiException- if fails to make API call
-
deletePushProvider
public void deletePushProvider(String pushProviderId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a push provider Deletes a push provider by `pushProviderId`. If the push provider is currently being used in the org by a custom authenticator, the delete will not be allowed.- Parameters:
pushProviderId- Id of the push provider (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getPushProvider
Retrieve a push provider Retrieves a push provider by `pushProviderId`- Parameters:
pushProviderId- Id of the push provider (required)- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
getPushProvider
public PushProvider getPushProvider(String pushProviderId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a push provider Retrieves a push provider by `pushProviderId`- Parameters:
pushProviderId- Id of the push provider (required)additionalHeaders- additionalHeaders for this call- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
listPushProviders
List all push providers Lists all push providers- Parameters:
type- Filters push providers by `providerType` (optional)- Returns:
- List<PushProvider>
- Throws:
ApiException- if fails to make API call
-
listPushProviders
public List<PushProvider> listPushProviders(ProviderType type, Map<String, String> additionalHeaders) throws ApiExceptionList all push providers Lists all push providers- Parameters:
type- Filters push providers by `providerType` (optional)additionalHeaders- additionalHeaders for this call- Returns:
- List<PushProvider>
- Throws:
ApiException- if fails to make API call
-
listPushProvidersPaged
List all push providers (Paginated) Lists all push providers This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
type- Filters push providers by `providerType` (optional)- Returns:
- Iterable<PushProvider> lazy iterable over all pages
-
listPushProvidersPaged
public Iterable<PushProvider> listPushProvidersPaged(ProviderType type, Map<String, String> additionalHeaders) List all push providers (Paginated with additional headers) Lists all push providers This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
type- Filters push providers by `providerType` (optional)additionalHeaders- additional headers for this call- Returns:
- Iterable<PushProvider> lazy iterable over all pages
-
replacePushProvider
public PushProvider replacePushProvider(String pushProviderId, PushProvider pushProvider) throws ApiException Replace a push provider Replaces a push provider by `pushProviderId`- Parameters:
pushProviderId- Id of the push provider (required)pushProvider- (required)- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
replacePushProvider
public PushProvider replacePushProvider(String pushProviderId, PushProvider pushProvider, Map<String, String> additionalHeaders) throws ApiExceptionReplace a push provider Replaces a push provider by `pushProviderId`- Parameters:
pushProviderId- Id of the push provider (required)pushProvider- (required)additionalHeaders- additionalHeaders for this call- Returns:
- PushProvider
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-