@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class SubscriptionApi extends Object
Constructor and Description |
---|
SubscriptionApi() |
SubscriptionApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Subscription |
getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType)
Retrieve a Subscription for a Role
Retrieves a subscription by `notificationType` for a specified Role
|
Subscription |
getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType,
Map<String,String> additionalHeaders)
Retrieve a Subscription for a Role
Retrieves a subscription by `notificationType` for a specified Role
|
Subscription |
getSubscriptionsNotificationTypeUser(NotificationType notificationType,
String userId)
Retrieve a Subscription for a User
Retrieves a subscription by `notificationType` for a specified User.
|
Subscription |
getSubscriptionsNotificationTypeUser(NotificationType notificationType,
String userId,
Map<String,String> additionalHeaders)
Retrieve a Subscription for a User
Retrieves a subscription by `notificationType` for a specified User.
|
List<Subscription> |
listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef)
List all Subscriptions for a Role
Lists all subscriptions available to a specified Role
|
List<Subscription> |
listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef,
Map<String,String> additionalHeaders)
List all Subscriptions for a Role
Lists all subscriptions available to a specified Role
|
List<Subscription> |
listSubscriptionsUser(String userId)
List all Subscriptions for a User
Lists all subscriptions available to a specified User.
|
List<Subscription> |
listSubscriptionsUser(String userId,
Map<String,String> additionalHeaders)
List all Subscriptions for a User
Lists all subscriptions available to a specified User.
|
void |
setApiClient(ApiClient apiClient) |
void |
subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType)
Subscribe a Role to a Specific Notification Type
Subscribes a Role to a specified notification type.
|
void |
subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType,
Map<String,String> additionalHeaders)
Subscribe a Role to a Specific Notification Type
Subscribes a Role to a specified notification type.
|
void |
subscribeByNotificationTypeUser(NotificationType notificationType,
String userId)
Subscribe a User to a Specific Notification Type
Subscribes the current user to a specified notification type.
|
void |
subscribeByNotificationTypeUser(NotificationType notificationType,
String userId,
Map<String,String> additionalHeaders)
Subscribe a User to a Specific Notification Type
Subscribes the current user to a specified notification type.
|
void |
unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType)
Unsubscribe a Role from a Specific Notification Type
Unsubscribes a Role from a specified notification type.
|
void |
unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef,
NotificationType notificationType,
Map<String,String> additionalHeaders)
Unsubscribe a Role from a Specific Notification Type
Unsubscribes a Role from a specified notification type.
|
void |
unsubscribeByNotificationTypeUser(NotificationType notificationType,
String userId)
Unsubscribe a User from a Specific Notification Type
Unsubscribes the current user from a specified notification type.
|
void |
unsubscribeByNotificationTypeUser(NotificationType notificationType,
String userId,
Map<String,String> additionalHeaders)
Unsubscribe a User from a Specific Notification Type
Unsubscribes the current user from a specified notification type.
|
public SubscriptionApi()
public SubscriptionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Subscription getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)ApiException
- if fails to make API callpublic Subscription getSubscriptionsNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Subscription getSubscriptionsNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
notificationType
- (required)userId
- (required)ApiException
- if fails to make API callpublic Subscription getSubscriptionsNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
notificationType
- (required)userId
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<Subscription> listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)ApiException
- if fails to make API callpublic List<Subscription> listSubscriptionsRole(ListSubscriptionsRoleRoleRefParameter roleRef, Map<String,String> additionalHeaders) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<Subscription> listSubscriptionsUser(String userId) throws ApiException
userId
- (required)ApiException
- if fails to make API callpublic List<Subscription> listSubscriptionsUser(String userId, Map<String,String> additionalHeaders) throws ApiException
userId
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)ApiException
- if fails to make API callpublic void subscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void subscribeByNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
notificationType
- (required)userId
- (required)ApiException
- if fails to make API callpublic void subscribeByNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
notificationType
- (required)userId
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)ApiException
- if fails to make API callpublic void unsubscribeByNotificationTypeRole(ListSubscriptionsRoleRoleRefParameter roleRef, NotificationType notificationType, Map<String,String> additionalHeaders) throws ApiException
roleRef
- A reference to an existing role. Standard roles require a `roleType`, while Custom Roles require a `roleId`. See [Standard Role Types](https://developer.okta.com/docs/concepts/role-assignment/#standard-role-types). (required)notificationType
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void unsubscribeByNotificationTypeUser(NotificationType notificationType, String userId) throws ApiException
notificationType
- (required)userId
- (required)ApiException
- if fails to make API callpublic void unsubscribeByNotificationTypeUser(NotificationType notificationType, String userId, Map<String,String> additionalHeaders) throws ApiException
notificationType
- (required)userId
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.