Class OnCallApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to createOnCallEscalationPolicy.static classManage optional parameters to createOnCallSchedule.static classManage optional parameters to getOnCallEscalationPolicy.static classManage optional parameters to getOnCallSchedule.static classManage optional parameters to getOnCallTeamRoutingRules.static classManage optional parameters to getScheduleOnCallResponders.static classManage optional parameters to getScheduleOnCallUser.static classManage optional parameters to getTeamOnCallUsers.static classManage optional parameters to getUserNotificationRule.static classManage optional parameters to listOnCallSchedules.static classManage optional parameters to listUserNotificationRules.static classManage optional parameters to setOnCallTeamRoutingRules.static classManage optional parameters to updateOnCallEscalationPolicy.static classManage optional parameters to updateOnCallSchedule.static classManage optional parameters to updateUserNotificationRule. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate On-Call escalation policy.createOnCallEscalationPolicy(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create On-Call escalation policy.Create On-Call escalation policy.createOnCallEscalationPolicyAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create On-Call escalation policy.createOnCallEscalationPolicyWithHttpInfo(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create a new On-Call escalation policycreateOnCallEscalationPolicyWithHttpInfoAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create On-Call escalation policy.Create On-Call schedule.createOnCallSchedule(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create On-Call schedule.Create On-Call schedule.createOnCallScheduleAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create On-Call schedule.createOnCallScheduleWithHttpInfo(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create a new On-Call schedulecreateOnCallScheduleWithHttpInfoAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create On-Call schedule.Create an On-Call notification channel for a user.Create an On-Call notification channel for a user.Create a new notification channel for a user.createUserNotificationChannelWithHttpInfoAsync(String userId, CreateUserNotificationChannelRequest body) Create an On-Call notification channel for a user.Create an On-Call notification rule for a user.Create an On-Call notification rule for a user.Create a new notification rule for a user.createUserNotificationRuleWithHttpInfoAsync(String userId, CreateOnCallNotificationRuleRequest body) Create an On-Call notification rule for a user.voiddeleteOnCallEscalationPolicy(String policyId) Delete On-Call escalation policy.deleteOnCallEscalationPolicyAsync(String policyId) Delete On-Call escalation policy.Delete an On-Call escalation policyDelete On-Call escalation policy.voiddeleteOnCallSchedule(String scheduleId) Delete On-Call schedule.deleteOnCallScheduleAsync(String scheduleId) Delete On-Call schedule.deleteOnCallScheduleWithHttpInfo(String scheduleId) Delete an On-Call scheduledeleteOnCallScheduleWithHttpInfoAsync(String scheduleId) Delete On-Call schedule.voiddeleteUserNotificationChannel(String userId, String channelId) Delete an On-Call notification channel for a user.deleteUserNotificationChannelAsync(String userId, String channelId) Delete an On-Call notification channel for a user.deleteUserNotificationChannelWithHttpInfo(String userId, String channelId) Delete a notification channel for a user.deleteUserNotificationChannelWithHttpInfoAsync(String userId, String channelId) Delete an On-Call notification channel for a user.voiddeleteUserNotificationRule(String userId, String ruleId) Delete an On-Call notification rule for a user.deleteUserNotificationRuleAsync(String userId, String ruleId) Delete an On-Call notification rule for a user.deleteUserNotificationRuleWithHttpInfo(String userId, String ruleId) Delete a notification rule for a user.deleteUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId) Delete an On-Call notification rule for a user.Get the API client.getOnCallEscalationPolicy(String policyId) Get On-Call escalation policy.getOnCallEscalationPolicy(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get On-Call escalation policy.getOnCallEscalationPolicyAsync(String policyId) Get On-Call escalation policy.getOnCallEscalationPolicyAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get On-Call escalation policy.getOnCallEscalationPolicyWithHttpInfo(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get an On-Call escalation policygetOnCallEscalationPolicyWithHttpInfoAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get On-Call escalation policy.getOnCallSchedule(String scheduleId) Get On-Call schedule.getOnCallSchedule(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get On-Call schedule.getOnCallScheduleAsync(String scheduleId) Get On-Call schedule.getOnCallScheduleAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get On-Call schedule.getOnCallScheduleWithHttpInfo(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get an On-Call schedulegetOnCallScheduleWithHttpInfoAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get On-Call schedule.getOnCallTeamRoutingRules(String teamId) Get On-Call team routing rules.getOnCallTeamRoutingRules(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get On-Call team routing rules.getOnCallTeamRoutingRulesAsync(String teamId) Get On-Call team routing rules.getOnCallTeamRoutingRulesAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get On-Call team routing rules.getOnCallTeamRoutingRulesWithHttpInfo(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get a team's On-Call routing rulesgetOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get On-Call team routing rules.getScheduleOnCallResponders(String scheduleId) Get on-call responders for a schedule.getScheduleOnCallResponders(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Get on-call responders for a schedule.getScheduleOnCallRespondersAsync(String scheduleId) Get on-call responders for a schedule.getScheduleOnCallRespondersAsync(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Get on-call responders for a schedule.getScheduleOnCallRespondersWithHttpInfo(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Retrieves the on-call responders for the specified schedule, grouped by position (previous, current, next), at a given time.getScheduleOnCallRespondersWithHttpInfoAsync(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Get on-call responders for a schedule.getScheduleOnCallUser(String scheduleId) Deprecated.getScheduleOnCallUser(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.getScheduleOnCallUserAsync(String scheduleId) Deprecated.getScheduleOnCallUserAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.getScheduleOnCallUserWithHttpInfo(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.getScheduleOnCallUserWithHttpInfoAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.getTeamOnCallUsers(String teamId) Get team on-call users.getTeamOnCallUsers(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get team on-call users.getTeamOnCallUsersAsync(String teamId) Get team on-call users.getTeamOnCallUsersAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get team on-call users.getTeamOnCallUsersWithHttpInfo(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get a team's on-call users at a given timegetTeamOnCallUsersWithHttpInfoAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get team on-call users.getUserNotificationChannel(String userId, String channelId) Get an On-Call notification channel for a user.getUserNotificationChannelAsync(String userId, String channelId) Get an On-Call notification channel for a user.getUserNotificationChannelWithHttpInfo(String userId, String channelId) Get a notification channel for a user.getUserNotificationChannelWithHttpInfoAsync(String userId, String channelId) Get an On-Call notification channel for a user.getUserNotificationRule(String userId, String ruleId) Get an On-Call notification rule for a user.getUserNotificationRule(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get an On-Call notification rule for a user.getUserNotificationRuleAsync(String userId, String ruleId) Get an On-Call notification rule for a user.getUserNotificationRuleAsync(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get an On-Call notification rule for a user.getUserNotificationRuleWithHttpInfo(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get a notification rule for a user.getUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get an On-Call notification rule for a user.List On-Call schedules.List On-Call schedules.List On-Call schedules.List On-Call schedules.Retrieve a list of On-Call schedules.List On-Call schedules.List On-Call schedules.List On-Call schedules.listUserNotificationChannels(String userId) List On-Call notification channels for a user.List On-Call notification channels for a user.List the notification channels for a user.List On-Call notification channels for a user.listUserNotificationRules(String userId) List On-Call notification rules for a user.listUserNotificationRules(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List On-Call notification rules for a user.listUserNotificationRulesAsync(String userId) List On-Call notification rules for a user.listUserNotificationRulesAsync(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List On-Call notification rules for a user.listUserNotificationRulesWithHttpInfo(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List the notification rules for a user.listUserNotificationRulesWithHttpInfoAsync(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List On-Call notification rules for a user.voidsetApiClient(ApiClient apiClient) Set the API client.setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body) Set On-Call team routing rules.setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set On-Call team routing rules.setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body) Set On-Call team routing rules.setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set On-Call team routing rules.setOnCallTeamRoutingRulesWithHttpInfo(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set a team's On-Call routing rulessetOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set On-Call team routing rules.updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body) Update On-Call escalation policy.updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update On-Call escalation policy.updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body) Update On-Call escalation policy.updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update On-Call escalation policy.updateOnCallEscalationPolicyWithHttpInfo(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update an On-Call escalation policyupdateOnCallEscalationPolicyWithHttpInfoAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update On-Call escalation policy.updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body) Update On-Call schedule.updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update On-Call schedule.updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body) Update On-Call schedule.updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update On-Call schedule.updateOnCallScheduleWithHttpInfo(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update a new On-Call scheduleupdateOnCallScheduleWithHttpInfoAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update On-Call schedule.updateUserNotificationRule(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body) Update an On-Call notification rule for a user.updateUserNotificationRule(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update an On-Call notification rule for a user.updateUserNotificationRuleAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body) Update an On-Call notification rule for a user.updateUserNotificationRuleAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update an On-Call notification rule for a user.updateUserNotificationRuleWithHttpInfo(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update a notification rule for a user.updateUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update an On-Call notification rule for a user.
-
Constructor Details
-
OnCallApi
public OnCallApi() -
OnCallApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createOnCallEscalationPolicy
public EscalationPolicy createOnCallEscalationPolicy(EscalationPolicyCreateRequest body) throws ApiException Create On-Call escalation policy.- Parameters:
body- (required)- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
createOnCallEscalationPolicyAsync
public CompletableFuture<EscalationPolicy> createOnCallEscalationPolicyAsync(EscalationPolicyCreateRequest body) Create On-Call escalation policy.- Parameters:
body- (required)- Returns:
- CompletableFuture<EscalationPolicy>
-
createOnCallEscalationPolicy
public EscalationPolicy createOnCallEscalationPolicy(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Create On-Call escalation policy.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
createOnCallEscalationPolicyAsync
public CompletableFuture<EscalationPolicy> createOnCallEscalationPolicyAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create On-Call escalation policy.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<EscalationPolicy>
-
createOnCallEscalationPolicyWithHttpInfo
public ApiResponse<EscalationPolicy> createOnCallEscalationPolicyWithHttpInfo(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Create a new On-Call escalation policy- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<EscalationPolicy>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
createOnCallEscalationPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<EscalationPolicy>> createOnCallEscalationPolicyWithHttpInfoAsync(EscalationPolicyCreateRequest body, OnCallApi.CreateOnCallEscalationPolicyOptionalParameters parameters) Create On-Call escalation policy.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<EscalationPolicy>>
-
createOnCallSchedule
Create On-Call schedule.- Parameters:
body- (required)- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
createOnCallScheduleAsync
Create On-Call schedule.- Parameters:
body- (required)- Returns:
- CompletableFuture<Schedule>
-
createOnCallSchedule
public Schedule createOnCallSchedule(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) throws ApiException Create On-Call schedule.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
createOnCallScheduleAsync
public CompletableFuture<Schedule> createOnCallScheduleAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create On-Call schedule.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Schedule>
-
createOnCallScheduleWithHttpInfo
public ApiResponse<Schedule> createOnCallScheduleWithHttpInfo(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) throws ApiException Create a new On-Call schedule- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Schedule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
createOnCallScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Schedule>> createOnCallScheduleWithHttpInfoAsync(ScheduleCreateRequest body, OnCallApi.CreateOnCallScheduleOptionalParameters parameters) Create On-Call schedule.- Parameters:
body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Schedule>>
-
createUserNotificationChannel
public NotificationChannel createUserNotificationChannel(String userId, CreateUserNotificationChannelRequest body) throws ApiException Create an On-Call notification channel for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- NotificationChannel
- Throws:
ApiException- if fails to make API call
-
createUserNotificationChannelAsync
public CompletableFuture<NotificationChannel> createUserNotificationChannelAsync(String userId, CreateUserNotificationChannelRequest body) Create an On-Call notification channel for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- CompletableFuture<NotificationChannel>
-
createUserNotificationChannelWithHttpInfo
public ApiResponse<NotificationChannel> createUserNotificationChannelWithHttpInfo(String userId, CreateUserNotificationChannelRequest body) throws ApiException Create a new notification channel for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)body- (required)- Returns:
- ApiResponse<NotificationChannel>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
createUserNotificationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotificationChannel>> createUserNotificationChannelWithHttpInfoAsync(String userId, CreateUserNotificationChannelRequest body) Create an On-Call notification channel for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<NotificationChannel>>
-
createUserNotificationRule
public OnCallNotificationRule createUserNotificationRule(String userId, CreateOnCallNotificationRuleRequest body) throws ApiException Create an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- OnCallNotificationRule
- Throws:
ApiException- if fails to make API call
-
createUserNotificationRuleAsync
public CompletableFuture<OnCallNotificationRule> createUserNotificationRuleAsync(String userId, CreateOnCallNotificationRuleRequest body) Create an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- CompletableFuture<OnCallNotificationRule>
-
createUserNotificationRuleWithHttpInfo
public ApiResponse<OnCallNotificationRule> createUserNotificationRuleWithHttpInfo(String userId, CreateOnCallNotificationRuleRequest body) throws ApiException Create a new notification rule for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)body- (required)- Returns:
- ApiResponse<OnCallNotificationRule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
createUserNotificationRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<OnCallNotificationRule>> createUserNotificationRuleWithHttpInfoAsync(String userId, CreateOnCallNotificationRuleRequest body) Create an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<OnCallNotificationRule>>
-
deleteOnCallEscalationPolicy
Delete On-Call escalation policy.See
deleteOnCallEscalationPolicyWithHttpInfo(java.lang.String).- Parameters:
policyId- The ID of the escalation policy (required)- Throws:
ApiException- if fails to make API call
-
deleteOnCallEscalationPolicyAsync
Delete On-Call escalation policy.See
deleteOnCallEscalationPolicyWithHttpInfoAsync(java.lang.String).- Parameters:
policyId- The ID of the escalation policy (required)- Returns:
- CompletableFuture
-
deleteOnCallEscalationPolicyWithHttpInfo
public ApiResponse<Void> deleteOnCallEscalationPolicyWithHttpInfo(String policyId) throws ApiException Delete an On-Call escalation policy- Parameters:
policyId- The ID of the escalation policy (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteOnCallEscalationPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteOnCallEscalationPolicyWithHttpInfoAsync(String policyId) Delete On-Call escalation policy.See
deleteOnCallEscalationPolicyWithHttpInfo(java.lang.String).- Parameters:
policyId- The ID of the escalation policy (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteOnCallSchedule
Delete On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)- Throws:
ApiException- if fails to make API call
-
deleteOnCallScheduleAsync
Delete On-Call schedule.See
deleteOnCallScheduleWithHttpInfoAsync(java.lang.String).- Parameters:
scheduleId- The ID of the schedule (required)- Returns:
- CompletableFuture
-
deleteOnCallScheduleWithHttpInfo
Delete an On-Call schedule- Parameters:
scheduleId- The ID of the schedule (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteOnCallScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteOnCallScheduleWithHttpInfoAsync(String scheduleId) Delete On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteUserNotificationChannel
Delete an On-Call notification channel for a user.See
deleteUserNotificationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Throws:
ApiException- if fails to make API call
-
deleteUserNotificationChannelAsync
Delete an On-Call notification channel for a user.See
deleteUserNotificationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- CompletableFuture
-
deleteUserNotificationChannelWithHttpInfo
public ApiResponse<Void> deleteUserNotificationChannelWithHttpInfo(String userId, String channelId) throws ApiException Delete a notification channel for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteUserNotificationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteUserNotificationChannelWithHttpInfoAsync(String userId, String channelId) Delete an On-Call notification channel for a user.See
deleteUserNotificationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteUserNotificationRule
Delete an On-Call notification rule for a user.See
deleteUserNotificationRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Throws:
ApiException- if fails to make API call
-
deleteUserNotificationRuleAsync
Delete an On-Call notification rule for a user.See
deleteUserNotificationRuleWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Returns:
- CompletableFuture
-
deleteUserNotificationRuleWithHttpInfo
public ApiResponse<Void> deleteUserNotificationRuleWithHttpInfo(String userId, String ruleId) throws ApiException Delete a notification rule for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteUserNotificationRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId) Delete an On-Call notification rule for a user.See
deleteUserNotificationRuleWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getOnCallEscalationPolicy
Get On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
getOnCallEscalationPolicyAsync
Get On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)- Returns:
- CompletableFuture<EscalationPolicy>
-
getOnCallEscalationPolicy
public EscalationPolicy getOnCallEscalationPolicy(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Get On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)parameters- Optional parameters for the request.- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
getOnCallEscalationPolicyAsync
public CompletableFuture<EscalationPolicy> getOnCallEscalationPolicyAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<EscalationPolicy>
-
getOnCallEscalationPolicyWithHttpInfo
public ApiResponse<EscalationPolicy> getOnCallEscalationPolicyWithHttpInfo(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Get an On-Call escalation policy- Parameters:
policyId- The ID of the escalation policy (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<EscalationPolicy>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getOnCallEscalationPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<EscalationPolicy>> getOnCallEscalationPolicyWithHttpInfoAsync(String policyId, OnCallApi.GetOnCallEscalationPolicyOptionalParameters parameters) Get On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<EscalationPolicy>>
-
getOnCallSchedule
Get On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
getOnCallScheduleAsync
Get On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)- Returns:
- CompletableFuture<Schedule>
-
getOnCallSchedule
public Schedule getOnCallSchedule(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) throws ApiException Get On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)parameters- Optional parameters for the request.- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
getOnCallScheduleAsync
public CompletableFuture<Schedule> getOnCallScheduleAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Schedule>
-
getOnCallScheduleWithHttpInfo
public ApiResponse<Schedule> getOnCallScheduleWithHttpInfo(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) throws ApiException Get an On-Call schedule- Parameters:
scheduleId- The ID of the schedule (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Schedule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getOnCallScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Schedule>> getOnCallScheduleWithHttpInfoAsync(String scheduleId, OnCallApi.GetOnCallScheduleOptionalParameters parameters) Get On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Schedule>>
-
getOnCallTeamRoutingRules
Get On-Call team routing rules.- Parameters:
teamId- The team ID (required)- Returns:
- TeamRoutingRules
- Throws:
ApiException- if fails to make API call
-
getOnCallTeamRoutingRulesAsync
Get On-Call team routing rules.- Parameters:
teamId- The team ID (required)- Returns:
- CompletableFuture<TeamRoutingRules>
-
getOnCallTeamRoutingRules
public TeamRoutingRules getOnCallTeamRoutingRules(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException Get On-Call team routing rules.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- TeamRoutingRules
- Throws:
ApiException- if fails to make API call
-
getOnCallTeamRoutingRulesAsync
public CompletableFuture<TeamRoutingRules> getOnCallTeamRoutingRulesAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get On-Call team routing rules.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<TeamRoutingRules>
-
getOnCallTeamRoutingRulesWithHttpInfo
public ApiResponse<TeamRoutingRules> getOnCallTeamRoutingRulesWithHttpInfo(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException Get a team's On-Call routing rules- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<TeamRoutingRules>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
getOnCallTeamRoutingRulesWithHttpInfoAsync
public CompletableFuture<ApiResponse<TeamRoutingRules>> getOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, OnCallApi.GetOnCallTeamRoutingRulesOptionalParameters parameters) Get On-Call team routing rules.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<TeamRoutingRules>>
-
getScheduleOnCallResponders
Get on-call responders for a schedule.- Parameters:
scheduleId- The ID of the schedule. (required)- Returns:
- ScheduleOnCallResponders
- Throws:
ApiException- if fails to make API call
-
getScheduleOnCallRespondersAsync
public CompletableFuture<ScheduleOnCallResponders> getScheduleOnCallRespondersAsync(String scheduleId) Get on-call responders for a schedule.- Parameters:
scheduleId- The ID of the schedule. (required)- Returns:
- CompletableFuture<ScheduleOnCallResponders>
-
getScheduleOnCallResponders
public ScheduleOnCallResponders getScheduleOnCallResponders(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) throws ApiException Get on-call responders for a schedule.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- ScheduleOnCallResponders
- Throws:
ApiException- if fails to make API call
-
getScheduleOnCallRespondersAsync
public CompletableFuture<ScheduleOnCallResponders> getScheduleOnCallRespondersAsync(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Get on-call responders for a schedule.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ScheduleOnCallResponders>
-
getScheduleOnCallRespondersWithHttpInfo
public ApiResponse<ScheduleOnCallResponders> getScheduleOnCallRespondersWithHttpInfo(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) throws ApiException Retrieves the on-call responders for the specified schedule, grouped by position (previous, current, next), at a given time. Supports schedules with multiple concurrent on-call responders at a position, by returning a list of shifts per position.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<ScheduleOnCallResponders>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getScheduleOnCallRespondersWithHttpInfoAsync
public CompletableFuture<ApiResponse<ScheduleOnCallResponders>> getScheduleOnCallRespondersWithHttpInfoAsync(String scheduleId, OnCallApi.GetScheduleOnCallRespondersOptionalParameters parameters) Get on-call responders for a schedule.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ScheduleOnCallResponders>>
-
getScheduleOnCallUser
Deprecated.Get scheduled on-call user.- Parameters:
scheduleId- The ID of the schedule. (required)- Returns:
- Shift
- Throws:
ApiException- if fails to make API call
-
getScheduleOnCallUserAsync
Deprecated.Get scheduled on-call user.- Parameters:
scheduleId- The ID of the schedule. (required)- Returns:
- CompletableFuture<Shift>
-
getScheduleOnCallUser
@Deprecated public Shift getScheduleOnCallUser(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) throws ApiException Deprecated.Get scheduled on-call user.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- Shift
- Throws:
ApiException- if fails to make API call
-
getScheduleOnCallUserAsync
@Deprecated public CompletableFuture<Shift> getScheduleOnCallUserAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.Get scheduled on-call user.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Shift>
-
getScheduleOnCallUserWithHttpInfo
@Deprecated public ApiResponse<Shift> getScheduleOnCallUserWithHttpInfo(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) throws ApiException Deprecated.Retrieves the user who is on-call for the specified schedule at a given time. This endpoint does not support schedules with multiple concurrent on-call responders at a position. Deprecated. UseGet on-call responders for a scheduleinstead.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Shift>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getScheduleOnCallUserWithHttpInfoAsync
@Deprecated public CompletableFuture<ApiResponse<Shift>> getScheduleOnCallUserWithHttpInfoAsync(String scheduleId, OnCallApi.GetScheduleOnCallUserOptionalParameters parameters) Deprecated.Get scheduled on-call user.- Parameters:
scheduleId- The ID of the schedule. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Shift>>
-
getTeamOnCallUsers
Get team on-call users.- Parameters:
teamId- The team ID (required)- Returns:
- TeamOnCallResponders
- Throws:
ApiException- if fails to make API call
-
getTeamOnCallUsersAsync
Get team on-call users.- Parameters:
teamId- The team ID (required)- Returns:
- CompletableFuture<TeamOnCallResponders>
-
getTeamOnCallUsers
public TeamOnCallResponders getTeamOnCallUsers(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) throws ApiException Get team on-call users.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- TeamOnCallResponders
- Throws:
ApiException- if fails to make API call
-
getTeamOnCallUsersAsync
public CompletableFuture<TeamOnCallResponders> getTeamOnCallUsersAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get team on-call users.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<TeamOnCallResponders>
-
getTeamOnCallUsersWithHttpInfo
public ApiResponse<TeamOnCallResponders> getTeamOnCallUsersWithHttpInfo(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) throws ApiException Get a team's on-call users at a given time- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<TeamOnCallResponders>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getTeamOnCallUsersWithHttpInfoAsync
public CompletableFuture<ApiResponse<TeamOnCallResponders>> getTeamOnCallUsersWithHttpInfoAsync(String teamId, OnCallApi.GetTeamOnCallUsersOptionalParameters parameters) Get team on-call users.- Parameters:
teamId- The team ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<TeamOnCallResponders>>
-
getUserNotificationChannel
public NotificationChannel getUserNotificationChannel(String userId, String channelId) throws ApiException Get an On-Call notification channel for a user.See
getUserNotificationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- NotificationChannel
- Throws:
ApiException- if fails to make API call
-
getUserNotificationChannelAsync
public CompletableFuture<NotificationChannel> getUserNotificationChannelAsync(String userId, String channelId) Get an On-Call notification channel for a user.See
getUserNotificationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- CompletableFuture<NotificationChannel>
-
getUserNotificationChannelWithHttpInfo
public ApiResponse<NotificationChannel> getUserNotificationChannelWithHttpInfo(String userId, String channelId) throws ApiException Get a notification channel for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- ApiResponse<NotificationChannel>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getUserNotificationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<NotificationChannel>> getUserNotificationChannelWithHttpInfoAsync(String userId, String channelId) Get an On-Call notification channel for a user.See
getUserNotificationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
userId- The user ID (required)channelId- The channel ID (required)- Returns:
- CompletableFuture<ApiResponse<NotificationChannel>>
-
getUserNotificationRule
public OnCallNotificationRule getUserNotificationRule(String userId, String ruleId) throws ApiException Get an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Returns:
- OnCallNotificationRule
- Throws:
ApiException- if fails to make API call
-
getUserNotificationRuleAsync
public CompletableFuture<OnCallNotificationRule> getUserNotificationRuleAsync(String userId, String ruleId) Get an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)- Returns:
- CompletableFuture<OnCallNotificationRule>
-
getUserNotificationRule
public OnCallNotificationRule getUserNotificationRule(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) throws ApiException Get an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)parameters- Optional parameters for the request.- Returns:
- OnCallNotificationRule
- Throws:
ApiException- if fails to make API call
-
getUserNotificationRuleAsync
public CompletableFuture<OnCallNotificationRule> getUserNotificationRuleAsync(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<OnCallNotificationRule>
-
getUserNotificationRuleWithHttpInfo
public ApiResponse<OnCallNotificationRule> getUserNotificationRuleWithHttpInfo(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) throws ApiException Get a notification rule for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<OnCallNotificationRule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getUserNotificationRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<OnCallNotificationRule>> getUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId, OnCallApi.GetUserNotificationRuleOptionalParameters parameters) Get an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<OnCallNotificationRule>>
-
listOnCallSchedules
List On-Call schedules.- Returns:
- Schedules
- Throws:
ApiException- if fails to make API call
-
listOnCallSchedulesAsync
List On-Call schedules.- Returns:
- CompletableFuture<Schedules>
-
listOnCallSchedules
public Schedules listOnCallSchedules(OnCallApi.ListOnCallSchedulesOptionalParameters parameters) throws ApiException List On-Call schedules.- Parameters:
parameters- Optional parameters for the request.- Returns:
- Schedules
- Throws:
ApiException- if fails to make API call
-
listOnCallSchedulesAsync
public CompletableFuture<Schedules> listOnCallSchedulesAsync(OnCallApi.ListOnCallSchedulesOptionalParameters parameters) List On-Call schedules.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Schedules>
-
listOnCallSchedulesWithPagination
List On-Call schedules.- Returns:
- PaginationIterable<ScheduleListItem>
-
listOnCallSchedulesWithPagination
public PaginationIterable<ScheduleListItem> listOnCallSchedulesWithPagination(OnCallApi.ListOnCallSchedulesOptionalParameters parameters) List On-Call schedules.- Returns:
- Schedules
-
listOnCallSchedulesWithHttpInfo
public ApiResponse<Schedules> listOnCallSchedulesWithHttpInfo(OnCallApi.ListOnCallSchedulesOptionalParameters parameters) throws ApiException Retrieve a list of On-Call schedules.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<Schedules>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
listOnCallSchedulesWithHttpInfoAsync
public CompletableFuture<ApiResponse<Schedules>> listOnCallSchedulesWithHttpInfoAsync(OnCallApi.ListOnCallSchedulesOptionalParameters parameters) List On-Call schedules.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Schedules>>
-
listUserNotificationChannels
public ListNotificationChannelsResponse listUserNotificationChannels(String userId) throws ApiException List On-Call notification channels for a user.See
listUserNotificationChannelsWithHttpInfo(java.lang.String).- Parameters:
userId- The user ID (required)- Returns:
- ListNotificationChannelsResponse
- Throws:
ApiException- if fails to make API call
-
listUserNotificationChannelsAsync
public CompletableFuture<ListNotificationChannelsResponse> listUserNotificationChannelsAsync(String userId) List On-Call notification channels for a user.See
listUserNotificationChannelsWithHttpInfoAsync(java.lang.String).- Parameters:
userId- The user ID (required)- Returns:
- CompletableFuture<ListNotificationChannelsResponse>
-
listUserNotificationChannelsWithHttpInfo
public ApiResponse<ListNotificationChannelsResponse> listUserNotificationChannelsWithHttpInfo(String userId) throws ApiException List the notification channels for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)- Returns:
- ApiResponse<ListNotificationChannelsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
listUserNotificationChannelsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListNotificationChannelsResponse>> listUserNotificationChannelsWithHttpInfoAsync(String userId) List On-Call notification channels for a user.See
listUserNotificationChannelsWithHttpInfo(java.lang.String).- Parameters:
userId- The user ID (required)- Returns:
- CompletableFuture<ApiResponse<ListNotificationChannelsResponse>>
-
listUserNotificationRules
public ListOnCallNotificationRulesResponse listUserNotificationRules(String userId) throws ApiException List On-Call notification rules for a user.- Parameters:
userId- The user ID (required)- Returns:
- ListOnCallNotificationRulesResponse
- Throws:
ApiException- if fails to make API call
-
listUserNotificationRulesAsync
public CompletableFuture<ListOnCallNotificationRulesResponse> listUserNotificationRulesAsync(String userId) List On-Call notification rules for a user.- Parameters:
userId- The user ID (required)- Returns:
- CompletableFuture<ListOnCallNotificationRulesResponse>
-
listUserNotificationRules
public ListOnCallNotificationRulesResponse listUserNotificationRules(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) throws ApiException List On-Call notification rules for a user.- Parameters:
userId- The user ID (required)parameters- Optional parameters for the request.- Returns:
- ListOnCallNotificationRulesResponse
- Throws:
ApiException- if fails to make API call
-
listUserNotificationRulesAsync
public CompletableFuture<ListOnCallNotificationRulesResponse> listUserNotificationRulesAsync(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List On-Call notification rules for a user.- Parameters:
userId- The user ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListOnCallNotificationRulesResponse>
-
listUserNotificationRulesWithHttpInfo
public ApiResponse<ListOnCallNotificationRulesResponse> listUserNotificationRulesWithHttpInfo(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) throws ApiException List the notification rules for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListOnCallNotificationRulesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
listUserNotificationRulesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListOnCallNotificationRulesResponse>> listUserNotificationRulesWithHttpInfoAsync(String userId, OnCallApi.ListUserNotificationRulesOptionalParameters parameters) List On-Call notification rules for a user.- Parameters:
userId- The user ID (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListOnCallNotificationRulesResponse>>
-
setOnCallTeamRoutingRules
public TeamRoutingRules setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body) throws ApiException Set On-Call team routing rules.- Parameters:
teamId- The team ID (required)body- (required)- Returns:
- TeamRoutingRules
- Throws:
ApiException- if fails to make API call
-
setOnCallTeamRoutingRulesAsync
public CompletableFuture<TeamRoutingRules> setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body) Set On-Call team routing rules.- Parameters:
teamId- The team ID (required)body- (required)- Returns:
- CompletableFuture<TeamRoutingRules>
-
setOnCallTeamRoutingRules
public TeamRoutingRules setOnCallTeamRoutingRules(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException Set On-Call team routing rules.- Parameters:
teamId- The team ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- TeamRoutingRules
- Throws:
ApiException- if fails to make API call
-
setOnCallTeamRoutingRulesAsync
public CompletableFuture<TeamRoutingRules> setOnCallTeamRoutingRulesAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set On-Call team routing rules.- Parameters:
teamId- The team ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<TeamRoutingRules>
-
setOnCallTeamRoutingRulesWithHttpInfo
public ApiResponse<TeamRoutingRules> setOnCallTeamRoutingRulesWithHttpInfo(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) throws ApiException Set a team's On-Call routing rules- Parameters:
teamId- The team ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<TeamRoutingRules>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 429 Too many requests -
-
setOnCallTeamRoutingRulesWithHttpInfoAsync
public CompletableFuture<ApiResponse<TeamRoutingRules>> setOnCallTeamRoutingRulesWithHttpInfoAsync(String teamId, TeamRoutingRulesRequest body, OnCallApi.SetOnCallTeamRoutingRulesOptionalParameters parameters) Set On-Call team routing rules.- Parameters:
teamId- The team ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<TeamRoutingRules>>
-
updateOnCallEscalationPolicy
public EscalationPolicy updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body) throws ApiException Update On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)body- (required)- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
updateOnCallEscalationPolicyAsync
public CompletableFuture<EscalationPolicy> updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body) Update On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)body- (required)- Returns:
- CompletableFuture<EscalationPolicy>
-
updateOnCallEscalationPolicy
public EscalationPolicy updateOnCallEscalationPolicy(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Update On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)body- (required)parameters- Optional parameters for the request.- Returns:
- EscalationPolicy
- Throws:
ApiException- if fails to make API call
-
updateOnCallEscalationPolicyAsync
public CompletableFuture<EscalationPolicy> updateOnCallEscalationPolicyAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<EscalationPolicy>
-
updateOnCallEscalationPolicyWithHttpInfo
public ApiResponse<EscalationPolicy> updateOnCallEscalationPolicyWithHttpInfo(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) throws ApiException Update an On-Call escalation policy- Parameters:
policyId- The ID of the escalation policy (required)body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<EscalationPolicy>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateOnCallEscalationPolicyWithHttpInfoAsync
public CompletableFuture<ApiResponse<EscalationPolicy>> updateOnCallEscalationPolicyWithHttpInfoAsync(String policyId, EscalationPolicyUpdateRequest body, OnCallApi.UpdateOnCallEscalationPolicyOptionalParameters parameters) Update On-Call escalation policy.- Parameters:
policyId- The ID of the escalation policy (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<EscalationPolicy>>
-
updateOnCallSchedule
public Schedule updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body) throws ApiException Update On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)body- (required)- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
updateOnCallScheduleAsync
public CompletableFuture<Schedule> updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body) Update On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)body- (required)- Returns:
- CompletableFuture<Schedule>
-
updateOnCallSchedule
public Schedule updateOnCallSchedule(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) throws ApiException Update On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)body- (required)parameters- Optional parameters for the request.- Returns:
- Schedule
- Throws:
ApiException- if fails to make API call
-
updateOnCallScheduleAsync
public CompletableFuture<Schedule> updateOnCallScheduleAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<Schedule>
-
updateOnCallScheduleWithHttpInfo
public ApiResponse<Schedule> updateOnCallScheduleWithHttpInfo(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) throws ApiException Update a new On-Call schedule- Parameters:
scheduleId- The ID of the schedule (required)body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<Schedule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateOnCallScheduleWithHttpInfoAsync
public CompletableFuture<ApiResponse<Schedule>> updateOnCallScheduleWithHttpInfoAsync(String scheduleId, ScheduleUpdateRequest body, OnCallApi.UpdateOnCallScheduleOptionalParameters parameters) Update On-Call schedule.- Parameters:
scheduleId- The ID of the schedule (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<Schedule>>
-
updateUserNotificationRule
public OnCallNotificationRule updateUserNotificationRule(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body) throws ApiException Update an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)- Returns:
- OnCallNotificationRule
- Throws:
ApiException- if fails to make API call
-
updateUserNotificationRuleAsync
public CompletableFuture<OnCallNotificationRule> updateUserNotificationRuleAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body) Update an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)- Returns:
- CompletableFuture<OnCallNotificationRule>
-
updateUserNotificationRule
public OnCallNotificationRule updateUserNotificationRule(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) throws ApiException Update an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- OnCallNotificationRule
- Throws:
ApiException- if fails to make API call
-
updateUserNotificationRuleAsync
public CompletableFuture<OnCallNotificationRule> updateUserNotificationRuleAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<OnCallNotificationRule>
-
updateUserNotificationRuleWithHttpInfo
public ApiResponse<OnCallNotificationRule> updateUserNotificationRuleWithHttpInfo(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) throws ApiException Update a notification rule for a user. The authenticated user must be the target user or have theon_call_adminpermission- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<OnCallNotificationRule>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateUserNotificationRuleWithHttpInfoAsync
public CompletableFuture<ApiResponse<OnCallNotificationRule>> updateUserNotificationRuleWithHttpInfoAsync(String userId, String ruleId, UpdateOnCallNotificationRuleRequest body, OnCallApi.UpdateUserNotificationRuleOptionalParameters parameters) Update an On-Call notification rule for a user.- Parameters:
userId- The user ID (required)ruleId- The rule ID (required)body- (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<OnCallNotificationRule>>
-