Class PushProviderApi

java.lang.Object
com.okta.sdk.resource.api.PushProviderApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class PushProviderApi extends Object
  • Constructor Details

    • PushProviderApi

      public PushProviderApi()
    • PushProviderApi

      public PushProviderApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createPushProvider

      public PushProvider createPushProvider(PushProvider pushProvider) throws ApiException
      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 ApiException
      Create 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

      public void deletePushProvider(String pushProviderId) throws ApiException
      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 ApiException
      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)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getPushProvider

      public PushProvider getPushProvider(String pushProviderId) throws ApiException
      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 ApiException
      Retrieve 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

      public List<PushProvider> listPushProviders(ProviderType type) throws ApiException
      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 ApiException
      List 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
    • 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 ApiException
      Replace 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()