Package com.datadog.api.client.v2.api
Class SeatsApi
java.lang.Object
com.datadog.api.client.v2.api.SeatsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SeatsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getSeatsUsers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssign seats to users.Assign seats to users.Assign seats to users for a product code.Assign seats to users.Get the API client.getSeatsUsers(String productCode) Get users with seats.getSeatsUsers(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get users with seats.getSeatsUsersAsync(String productCode) Get users with seats.getSeatsUsersAsync(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get users with seats.getSeatsUsersWithHttpInfo(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get the list of users assigned seats for a product code.getSeatsUsersWithHttpInfoAsync(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get users with seats.voidsetApiClient(ApiClient apiClient) Set the API client.voidUnassign seats from users.Unassign seats from users.Unassign seats from users for a product code.Unassign seats from users.
-
Constructor Details
-
SeatsApi
public SeatsApi() -
SeatsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
assignSeatsUser
Assign seats to users.See
assignSeatsUserWithHttpInfo(com.datadog.api.client.v2.model.AssignSeatsUserRequest).- Parameters:
body- (required)- Returns:
- AssignSeatsUserResponse
- Throws:
ApiException- if fails to make API call
-
assignSeatsUserAsync
Assign seats to users.See
assignSeatsUserWithHttpInfoAsync(com.datadog.api.client.v2.model.AssignSeatsUserRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<AssignSeatsUserResponse>
-
assignSeatsUserWithHttpInfo
public ApiResponse<AssignSeatsUserResponse> assignSeatsUserWithHttpInfo(AssignSeatsUserRequest body) throws ApiException Assign seats to users for a product code.- Parameters:
body- (required)- Returns:
- ApiResponse<AssignSeatsUserResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 422 Unprocessable Entity - 429 Too many requests -
-
assignSeatsUserWithHttpInfoAsync
public CompletableFuture<ApiResponse<AssignSeatsUserResponse>> assignSeatsUserWithHttpInfoAsync(AssignSeatsUserRequest body) Assign seats to users.See
assignSeatsUserWithHttpInfo(com.datadog.api.client.v2.model.AssignSeatsUserRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<AssignSeatsUserResponse>>
-
getSeatsUsers
Get users with seats.- Parameters:
productCode- The product code for which to retrieve seat users. (required)- Returns:
- SeatUserDataArray
- Throws:
ApiException- if fails to make API call
-
getSeatsUsersAsync
Get users with seats.- Parameters:
productCode- The product code for which to retrieve seat users. (required)- Returns:
- CompletableFuture<SeatUserDataArray>
-
getSeatsUsers
public SeatUserDataArray getSeatsUsers(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) throws ApiException Get users with seats.- Parameters:
productCode- The product code for which to retrieve seat users. (required)parameters- Optional parameters for the request.- Returns:
- SeatUserDataArray
- Throws:
ApiException- if fails to make API call
-
getSeatsUsersAsync
public CompletableFuture<SeatUserDataArray> getSeatsUsersAsync(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get users with seats.- Parameters:
productCode- The product code for which to retrieve seat users. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<SeatUserDataArray>
-
getSeatsUsersWithHttpInfo
public ApiResponse<SeatUserDataArray> getSeatsUsersWithHttpInfo(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) throws ApiException Get the list of users assigned seats for a product code.- Parameters:
productCode- The product code for which to retrieve seat users. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<SeatUserDataArray>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 422 Unprocessable Entity - 429 Too many requests -
-
getSeatsUsersWithHttpInfoAsync
public CompletableFuture<ApiResponse<SeatUserDataArray>> getSeatsUsersWithHttpInfoAsync(String productCode, SeatsApi.GetSeatsUsersOptionalParameters parameters) Get users with seats.- Parameters:
productCode- The product code for which to retrieve seat users. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<SeatUserDataArray>>
-
unassignSeatsUser
Unassign seats from users.See
unassignSeatsUserWithHttpInfo(com.datadog.api.client.v2.model.UnassignSeatsUserRequest).- Parameters:
body- (required)- Throws:
ApiException- if fails to make API call
-
unassignSeatsUserAsync
Unassign seats from users.See
unassignSeatsUserWithHttpInfoAsync(com.datadog.api.client.v2.model.UnassignSeatsUserRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture
-
unassignSeatsUserWithHttpInfo
public ApiResponse<Void> unassignSeatsUserWithHttpInfo(UnassignSeatsUserRequest body) throws ApiException Unassign seats from users for a product code.- Parameters:
body- (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 - 422 Unprocessable Entity - 429 Too many requests -
-
unassignSeatsUserWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> unassignSeatsUserWithHttpInfoAsync(UnassignSeatsUserRequest body) Unassign seats from users.See
unassignSeatsUserWithHttpInfo(com.datadog.api.client.v2.model.UnassignSeatsUserRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-