@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TeamsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TeamsApi.GetTeamMembershipsOptionalParameters
Manage optional parameters to getTeamMemberships.
|
static class |
TeamsApi.ListTeamsOptionalParameters
Manage optional parameters to listTeams.
|
| Constructor and Description |
|---|
TeamsApi() |
TeamsApi(ApiClient apiClient) |
public TeamsApi()
public TeamsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic TeamResponse createTeam(TeamCreateRequest body) throws ApiException
See createTeamWithHttpInfo(com.datadog.api.client.v2.model.TeamCreateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamResponse> createTeamAsync(TeamCreateRequest body)
See createTeamWithHttpInfoAsync(com.datadog.api.client.v2.model.TeamCreateRequest).
body - (required)public ApiResponse<TeamResponse> createTeamWithHttpInfo(TeamCreateRequest body) throws ApiException
users relationship field are added
to the team.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | CREATED | - |
| 403 | Forbidden | - |
| 409 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamResponse>> createTeamWithHttpInfoAsync(TeamCreateRequest body)
See createTeamWithHttpInfo(com.datadog.api.client.v2.model.TeamCreateRequest).
body - (required)public TeamLinkResponse createTeamLink(String teamId, TeamLinkCreateRequest body) throws ApiException
See createTeamLinkWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TeamLinkCreateRequest).
teamId - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamLinkResponse> createTeamLinkAsync(String teamId, TeamLinkCreateRequest body)
teamId - None (required)body - (required)public ApiResponse<TeamLinkResponse> createTeamLinkWithHttpInfo(String teamId, TeamLinkCreateRequest body) throws ApiException
teamId - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 422 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamLinkResponse>> createTeamLinkWithHttpInfoAsync(String teamId, TeamLinkCreateRequest body)
See createTeamLinkWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TeamLinkCreateRequest).
teamId - None (required)body - (required)public UserTeamResponse createTeamMembership(String teamId, UserTeamRequest body) throws ApiException
See createTeamMembershipWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UserTeamRequest).
teamId - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserTeamResponse> createTeamMembershipAsync(String teamId, UserTeamRequest body)
teamId - None (required)body - (required)public ApiResponse<UserTeamResponse> createTeamMembershipWithHttpInfo(String teamId, UserTeamRequest body) throws ApiException
teamId - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Represents a user's association to a team | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 409 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserTeamResponse>> createTeamMembershipWithHttpInfoAsync(String teamId, UserTeamRequest body)
See createTeamMembershipWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.UserTeamRequest).
teamId - None (required)body - (required)public void deleteTeam(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTeamAsync(String teamId)
teamId - None (required)public ApiResponse<Void> deleteTeamWithHttpInfo(String teamId) throws ApiException
id.teamId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTeamWithHttpInfoAsync(String teamId)
teamId - None (required)public void deleteTeamLink(String teamId, String linkId) throws ApiException
See deleteTeamLinkWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTeamLinkAsync(String teamId, String linkId)
See deleteTeamLinkWithHttpInfoAsync(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)public ApiResponse<Void> deleteTeamLinkWithHttpInfo(String teamId, String linkId) throws ApiException
teamId - None (required)linkId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTeamLinkWithHttpInfoAsync(String teamId, String linkId)
See deleteTeamLinkWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)public void deleteTeamMembership(String teamId, String userId) throws ApiException
See deleteTeamMembershipWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)userId - None (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTeamMembershipAsync(String teamId, String userId)
See deleteTeamMembershipWithHttpInfoAsync(java.lang.String, java.lang.String).
teamId - None (required)userId - None (required)public ApiResponse<Void> deleteTeamMembershipWithHttpInfo(String teamId, String userId) throws ApiException
teamId - None (required)userId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTeamMembershipWithHttpInfoAsync(String teamId, String userId)
See deleteTeamMembershipWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)userId - None (required)public TeamResponse getTeam(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API callpublic CompletableFuture<TeamResponse> getTeamAsync(String teamId)
teamId - None (required)public ApiResponse<TeamResponse> getTeamWithHttpInfo(String teamId) throws ApiException
id.teamId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamResponse>> getTeamWithHttpInfoAsync(String teamId)
teamId - None (required)public TeamLinkResponse getTeamLink(String teamId, String linkId) throws ApiException
See getTeamLinkWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)ApiException - if fails to make API callpublic CompletableFuture<TeamLinkResponse> getTeamLinkAsync(String teamId, String linkId)
See getTeamLinkWithHttpInfoAsync(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)public ApiResponse<TeamLinkResponse> getTeamLinkWithHttpInfo(String teamId, String linkId) throws ApiException
teamId - None (required)linkId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamLinkResponse>> getTeamLinkWithHttpInfoAsync(String teamId, String linkId)
See getTeamLinkWithHttpInfo(java.lang.String, java.lang.String).
teamId - None (required)linkId - None (required)public TeamLinksResponse getTeamLinks(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API callpublic CompletableFuture<TeamLinksResponse> getTeamLinksAsync(String teamId)
teamId - None (required)public ApiResponse<TeamLinksResponse> getTeamLinksWithHttpInfo(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamLinksResponse>> getTeamLinksWithHttpInfoAsync(String teamId)
teamId - None (required)public UserTeamsResponse getTeamMemberships(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API callpublic CompletableFuture<UserTeamsResponse> getTeamMembershipsAsync(String teamId)
teamId - None (required)public UserTeamsResponse getTeamMemberships(String teamId, TeamsApi.GetTeamMembershipsOptionalParameters parameters) throws ApiException
teamId - None (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<UserTeamsResponse> getTeamMembershipsAsync(String teamId, TeamsApi.GetTeamMembershipsOptionalParameters parameters)
teamId - None (required)parameters - Optional parameters for the request.public PaginationIterable<UserTeam> getTeamMembershipsWithPagination(String teamId)
teamId - None (required)public PaginationIterable<UserTeam> getTeamMembershipsWithPagination(String teamId, TeamsApi.GetTeamMembershipsOptionalParameters parameters)
teamId - None (required)public ApiResponse<UserTeamsResponse> getTeamMembershipsWithHttpInfo(String teamId, TeamsApi.GetTeamMembershipsOptionalParameters parameters) throws ApiException
teamId - None (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Represents a user's association to a team | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserTeamsResponse>> getTeamMembershipsWithHttpInfoAsync(String teamId, TeamsApi.GetTeamMembershipsOptionalParameters parameters)
teamId - None (required)parameters - Optional parameters for the request.public TeamPermissionSettingsResponse getTeamPermissionSettings(String teamId) throws ApiException
See getTeamPermissionSettingsWithHttpInfo(java.lang.String).
teamId - None (required)ApiException - if fails to make API callpublic CompletableFuture<TeamPermissionSettingsResponse> getTeamPermissionSettingsAsync(String teamId)
See getTeamPermissionSettingsWithHttpInfoAsync(java.lang.String).
teamId - None (required)public ApiResponse<TeamPermissionSettingsResponse> getTeamPermissionSettingsWithHttpInfo(String teamId) throws ApiException
teamId - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamPermissionSettingsResponse>> getTeamPermissionSettingsWithHttpInfoAsync(String teamId)
See getTeamPermissionSettingsWithHttpInfo(java.lang.String).
teamId - None (required)public UserTeamsResponse getUserMemberships(String userUuid) throws ApiException
userUuid - None (required)ApiException - if fails to make API callpublic CompletableFuture<UserTeamsResponse> getUserMembershipsAsync(String userUuid)
userUuid - None (required)public ApiResponse<UserTeamsResponse> getUserMembershipsWithHttpInfo(String userUuid) throws ApiException
userUuid - None (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Represents a user's association to a team | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserTeamsResponse>> getUserMembershipsWithHttpInfoAsync(String userUuid)
userUuid - None (required)public TeamsResponse listTeams() throws ApiException
See listTeamsWithHttpInfo(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
ApiException - if fails to make API callpublic CompletableFuture<TeamsResponse> listTeamsAsync()
See listTeamsWithHttpInfoAsync(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
public TeamsResponse listTeams(TeamsApi.ListTeamsOptionalParameters parameters) throws ApiException
See listTeamsWithHttpInfo(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TeamsResponse> listTeamsAsync(TeamsApi.ListTeamsOptionalParameters parameters)
See listTeamsWithHttpInfoAsync(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
parameters - Optional parameters for the request.public PaginationIterable<Team> listTeamsWithPagination()
See listTeamsWithHttpInfo(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
public PaginationIterable<Team> listTeamsWithPagination(TeamsApi.ListTeamsOptionalParameters parameters)
See listTeamsWithHttpInfo(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
public ApiResponse<TeamsResponse> listTeamsWithHttpInfo(TeamsApi.ListTeamsOptionalParameters parameters) throws ApiException
filter[keyword] and
filter[me] query parameters.parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamsResponse>> listTeamsWithHttpInfoAsync(TeamsApi.ListTeamsOptionalParameters parameters)
See listTeamsWithHttpInfo(com.datadog.api.client.v2.api.TeamsApi.ListTeamsOptionalParameters).
parameters - Optional parameters for the request.public TeamResponse updateTeam(String teamId, TeamUpdateRequest body) throws ApiException
See updateTeamWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TeamUpdateRequest).
teamId - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamResponse> updateTeamAsync(String teamId, TeamUpdateRequest body)
See updateTeamWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.TeamUpdateRequest).
teamId - None (required)body - (required)public ApiResponse<TeamResponse> updateTeamWithHttpInfo(String teamId, TeamUpdateRequest body) throws ApiException
id. If the team_links relationship is
present, the associated links are updated to be in the order they appear in the array, and any
existing team links not present are removed.teamId - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | API error response. | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 409 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamResponse>> updateTeamWithHttpInfoAsync(String teamId, TeamUpdateRequest body)
See updateTeamWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.TeamUpdateRequest).
teamId - None (required)body - (required)public TeamLinkResponse updateTeamLink(String teamId, String linkId, TeamLinkCreateRequest body) throws ApiException
teamId - None (required)linkId - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamLinkResponse> updateTeamLinkAsync(String teamId, String linkId, TeamLinkCreateRequest body)
teamId - None (required)linkId - None (required)body - (required)public ApiResponse<TeamLinkResponse> updateTeamLinkWithHttpInfo(String teamId, String linkId, TeamLinkCreateRequest body) throws ApiException
teamId - None (required)linkId - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamLinkResponse>> updateTeamLinkWithHttpInfoAsync(String teamId, String linkId, TeamLinkCreateRequest body)
teamId - None (required)linkId - None (required)body - (required)public UserTeamResponse updateTeamMembership(String teamId, String userId, UserTeamUpdateRequest body) throws ApiException
teamId - None (required)userId - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserTeamResponse> updateTeamMembershipAsync(String teamId, String userId, UserTeamUpdateRequest body)
teamId - None (required)userId - None (required)body - (required)public ApiResponse<UserTeamResponse> updateTeamMembershipWithHttpInfo(String teamId, String userId, UserTeamUpdateRequest body) throws ApiException
teamId - None (required)userId - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Represents a user's association to a team | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserTeamResponse>> updateTeamMembershipWithHttpInfoAsync(String teamId, String userId, UserTeamUpdateRequest body)
teamId - None (required)userId - None (required)body - (required)public TeamPermissionSettingResponse updateTeamPermissionSetting(String teamId, String action, TeamPermissionSettingUpdateRequest body) throws ApiException
teamId - None (required)action - None (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TeamPermissionSettingResponse> updateTeamPermissionSettingAsync(String teamId, String action, TeamPermissionSettingUpdateRequest body)
teamId - None (required)action - None (required)body - (required)public ApiResponse<TeamPermissionSettingResponse> updateTeamPermissionSettingWithHttpInfo(String teamId, String action, TeamPermissionSettingUpdateRequest body) throws ApiException
teamId - None (required)action - None (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | API error response. | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TeamPermissionSettingResponse>> updateTeamPermissionSettingWithHttpInfoAsync(String teamId, String action, TeamPermissionSettingUpdateRequest body)
teamId - None (required)action - None (required)body - (required)Copyright © 2024. All rights reserved.