diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index a27042d9b8f..b5c3f6a5a0f 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -7475,89 +7475,23 @@ components:
properties:
data:
items:
- $ref: '#/components/schemas/TableRowResourceIdentifier'
+ $ref: '#/components/schemas/BatchDeleteRowsRequestData'
maxItems: 200
type: array
required:
- data
type: object
- BatchRowsQueryDataType:
- default: reference-tables-batch-rows-query
- description: Resource type identifier for batch queries of reference table rows.
- enum:
- - reference-tables-batch-rows-query
- example: reference-tables-batch-rows-query
- type: string
- x-enum-varnames:
- - REFERENCE_TABLES_BATCH_ROWS_QUERY
- BatchRowsQueryRequest:
- properties:
- data:
- $ref: '#/components/schemas/BatchRowsQueryRequestData'
- type: object
- BatchRowsQueryRequestData:
- properties:
- attributes:
- $ref: '#/components/schemas/BatchRowsQueryRequestDataAttributes'
- type:
- $ref: '#/components/schemas/BatchRowsQueryDataType'
- required:
- - type
- type: object
- BatchRowsQueryRequestDataAttributes:
- properties:
- row_ids:
- example:
- - row_id_1
- - row_id_2
- items:
- type: string
- type: array
- table_id:
- example: 00000000-0000-0000-0000-000000000000
- type: string
- required:
- - row_ids
- - table_id
- type: object
- BatchRowsQueryResponse:
- example:
- data:
- id: 00000000-0000-0000-0000-000000000000
- relationships:
- rows:
- data:
- - id: row_id_1
- type: row
- - id: row_id_2
- type: row
- type: reference-tables-batch-rows-query
- properties:
- data:
- $ref: '#/components/schemas/BatchRowsQueryResponseData'
- type: object
- BatchRowsQueryResponseData:
+ BatchDeleteRowsRequestData:
+ description: Row resource containing a single row identifier for deletion.
properties:
id:
+ example: primary_key_value
type: string
- relationships:
- $ref: '#/components/schemas/BatchRowsQueryResponseDataRelationships'
type:
- $ref: '#/components/schemas/BatchRowsQueryDataType'
+ $ref: '#/components/schemas/TableRowResourceDataType'
required:
- type
- type: object
- BatchRowsQueryResponseDataRelationships:
- properties:
- rows:
- $ref: '#/components/schemas/BatchRowsQueryResponseDataRelationshipsRows'
- type: object
- BatchRowsQueryResponseDataRelationshipsRows:
- properties:
- data:
- items:
- $ref: '#/components/schemas/TableRowResourceIdentifier'
- type: array
+ - id
type: object
BatchUpsertRowsRequestArray:
description: The request body for creating or updating multiple rows into a
@@ -67019,18 +66953,6 @@ components:
type: string
x-enum-varnames:
- ROW
- TableRowResourceIdentifier:
- description: Row resource containing a single row identifier.
- properties:
- id:
- example: primary_key_value
- type: string
- type:
- $ref: '#/components/schemas/TableRowResourceDataType'
- required:
- - type
- - id
- type: object
TagsEventAttribute:
description: Array of tags associated with your event.
example:
@@ -68309,6 +68231,8 @@ components:
properties:
frequency:
$ref: '#/components/schemas/TeamSyncAttributesFrequency'
+ selection_state:
+ $ref: '#/components/schemas/TeamSyncAttributesSelectionState'
source:
$ref: '#/components/schemas/TeamSyncAttributesSource'
sync_membership:
@@ -68332,6 +68256,15 @@ components:
- ONCE
- CONTINUOUSLY
- PAUSED
+ TeamSyncAttributesSelectionState:
+ description: 'Specifies which teams or organizations to sync. When
+
+ provided, synchronization is limited to the specified
+
+ items and their subtrees.'
+ items:
+ $ref: '#/components/schemas/TeamSyncSelectionStateItem'
+ type: array
TeamSyncAttributesSource:
description: The external source platform for team synchronization. Only "github"
is supported.
@@ -68342,6 +68275,7 @@ components:
x-enum-varnames:
- GITHUB
TeamSyncAttributesSyncMembership:
+ default: false
description: Whether to sync members from the external team to the Datadog team.
Defaults to `false` when not provided.
example: true
@@ -68404,6 +68338,78 @@ components:
$ref: '#/components/schemas/TeamSyncData'
type: array
type: object
+ TeamSyncSelectionStateExternalId:
+ description: The external identifier for a team or organization in the source
+ platform.
+ properties:
+ type:
+ $ref: '#/components/schemas/TeamSyncSelectionStateExternalIdType'
+ value:
+ $ref: '#/components/schemas/TeamSyncSelectionStateExternalIdValue'
+ required:
+ - type
+ - value
+ type: object
+ TeamSyncSelectionStateExternalIdType:
+ description: 'The type of external identifier for the selection state item.
+
+ For GitHub synchronization, the allowed values are `team` and
+
+ `organization`.'
+ enum:
+ - team
+ - organization
+ example: team
+ type: string
+ x-enum-varnames:
+ - TEAM
+ - ORGANIZATION
+ TeamSyncSelectionStateExternalIdValue:
+ description: 'The external identifier value from the source
+
+ platform. For GitHub, this is the string
+
+ representation of a GitHub organization ID or team
+
+ ID.'
+ example: '1'
+ type: string
+ TeamSyncSelectionStateItem:
+ description: Identifies a team or organization hierarchy to include in synchronization.
+ properties:
+ external_id:
+ $ref: '#/components/schemas/TeamSyncSelectionStateExternalId'
+ operation:
+ $ref: '#/components/schemas/TeamSyncSelectionStateOperation'
+ scope:
+ $ref: '#/components/schemas/TeamSyncSelectionStateScope'
+ required:
+ - external_id
+ type: object
+ TeamSyncSelectionStateOperation:
+ description: 'The operation to perform on the selected hierarchy.
+
+ When set to `include`, synchronization covers the
+
+ referenced teams or organizations.'
+ enum:
+ - include
+ example: include
+ type: string
+ x-enum-varnames:
+ - INCLUDE
+ TeamSyncSelectionStateScope:
+ description: 'The scope of the selection. When set to `subtree`,
+
+ synchronization includes the referenced team or
+
+ organization and everything nested under it.'
+ enum:
+ - subtree
+ example: subtree
+ type: string
+ x-enum-varnames:
+ - SUBTREE
TeamTarget:
description: Represents a team target for an escalation policy step, including
the team's ID and resource type.
@@ -96466,57 +96472,6 @@ paths:
operator: OR
permissions:
- timeseries_query
- /api/v2/reference-tables/queries/batch-rows:
- post:
- description: Batch query reference table rows by their primary key values. Returns
- only found rows in the included array.
- operationId: BatchRowsQuery
- requestBody:
- content:
- application/json:
- examples:
- happy_path:
- summary: Batch query reference table rows by their primary key values.
- value:
- data:
- attributes:
- row_ids:
- - row_id_1
- - row_id_2
- table_id: 00000000-0000-0000-0000-000000000000
- type: reference-tables-batch-rows-query
- schema:
- $ref: '#/components/schemas/BatchRowsQueryRequest'
- required: true
- responses:
- '200':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/BatchRowsQueryResponse'
- description: Successfully retrieved rows. Some or all requested rows were
- found. Response includes found rows in the included section.
- '400':
- $ref: '#/components/responses/BadRequestResponse'
- '403':
- $ref: '#/components/responses/ForbiddenResponse'
- '404':
- $ref: '#/components/responses/NotFoundResponse'
- '429':
- $ref: '#/components/responses/TooManyRequestsResponse'
- '500':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/APIErrorResponse'
- description: Internal Server Error
- security:
- - apiKeyAuth: []
- appKeyAuth: []
- - AuthZ: []
- summary: Batch rows query
- tags:
- - Reference Tables
/api/v2/reference-tables/tables:
get:
description: List all reference tables in this organization.
@@ -108064,12 +108019,6 @@ paths:
description: OK
'403':
$ref: '#/components/responses/ForbiddenResponse'
- '404':
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/APIErrorResponse'
- description: Team sync configurations not found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
@@ -108085,8 +108034,8 @@ paths:
permissions:
- teams_read
post:
- description: 'This endpoint attempts to link your existing Datadog teams with
- GitHub teams by matching their names.
+ description: 'This endpoint configures synchronization between your existing
+ Datadog teams and GitHub teams by matching their names.
It evaluates all current Datadog teams and compares them against teams in
the GitHub organization
@@ -108101,6 +108050,13 @@ paths:
or created.
+ Optionally, provide `selection_state` to limit synchronization
+
+ to specific teams or organizations and their subtrees, instead
+
+ of syncing all teams.
+
+
[A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/),
and the GitHub App integrated with Datadog must have the `Members Read` permission.
@@ -108122,6 +108078,8 @@ paths:
responses:
'200':
description: OK
+ '204':
+ description: No Content
'403':
$ref: '#/components/responses/ForbiddenResponse'
'429':
diff --git a/examples/v2/reference-tables/BatchRowsQuery.java b/examples/v2/reference-tables/BatchRowsQuery.java
deleted file mode 100644
index 191ca8d2da2..00000000000
--- a/examples/v2/reference-tables/BatchRowsQuery.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Batch rows query returns "Successfully retrieved rows. Some or all requested rows were found.
-// Response includes found
-// rows in the included section." response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.ReferenceTablesApi;
-import com.datadog.api.client.v2.model.BatchRowsQueryDataType;
-import com.datadog.api.client.v2.model.BatchRowsQueryRequest;
-import com.datadog.api.client.v2.model.BatchRowsQueryRequestData;
-import com.datadog.api.client.v2.model.BatchRowsQueryRequestDataAttributes;
-import com.datadog.api.client.v2.model.BatchRowsQueryResponse;
-import java.util.Arrays;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- ReferenceTablesApi apiInstance = new ReferenceTablesApi(defaultClient);
-
- BatchRowsQueryRequest body =
- new BatchRowsQueryRequest()
- .data(
- new BatchRowsQueryRequestData()
- .attributes(
- new BatchRowsQueryRequestDataAttributes()
- .rowIds(Arrays.asList("row_id_1", "row_id_2"))
- .tableId("00000000-0000-0000-0000-000000000000"))
- .type(BatchRowsQueryDataType.REFERENCE_TABLES_BATCH_ROWS_QUERY));
-
- try {
- BatchRowsQueryResponse result = apiInstance.batchRowsQuery(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ReferenceTablesApi#batchRowsQuery");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/reference-tables/DeleteRows.java b/examples/v2/reference-tables/DeleteRows.java
index cd1f3ae281f..55d2615ed0e 100644
--- a/examples/v2/reference-tables/DeleteRows.java
+++ b/examples/v2/reference-tables/DeleteRows.java
@@ -4,8 +4,8 @@
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.ReferenceTablesApi;
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestArray;
+import com.datadog.api.client.v2.model.BatchDeleteRowsRequestData;
import com.datadog.api.client.v2.model.TableRowResourceDataType;
-import com.datadog.api.client.v2.model.TableRowResourceIdentifier;
import java.util.Collections;
public class Example {
@@ -17,7 +17,7 @@ public static void main(String[] args) {
new BatchDeleteRowsRequestArray()
.data(
Collections.singletonList(
- new TableRowResourceIdentifier()
+ new BatchDeleteRowsRequestData()
.id("primary_key_value")
.type(TableRowResourceDataType.ROW)));
diff --git a/examples/v2/teams/SyncTeams_3215592344.java b/examples/v2/teams/SyncTeams_3215592344.java
deleted file mode 100644
index a71b55edbff..00000000000
--- a/examples/v2/teams/SyncTeams_3215592344.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Sync teams returns "OK" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.TeamsApi;
-import com.datadog.api.client.v2.model.TeamSyncAttributes;
-import com.datadog.api.client.v2.model.TeamSyncAttributesSource;
-import com.datadog.api.client.v2.model.TeamSyncAttributesType;
-import com.datadog.api.client.v2.model.TeamSyncBulkType;
-import com.datadog.api.client.v2.model.TeamSyncData;
-import com.datadog.api.client.v2.model.TeamSyncRequest;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- TeamsApi apiInstance = new TeamsApi(defaultClient);
-
- TeamSyncRequest body =
- new TeamSyncRequest()
- .data(
- new TeamSyncData()
- .attributes(
- new TeamSyncAttributes()
- .source(TeamSyncAttributesSource.GITHUB)
- .type(TeamSyncAttributesType.LINK))
- .type(TeamSyncBulkType.TEAM_SYNC_BULK));
-
- try {
- apiInstance.syncTeams(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling TeamsApi#syncTeams");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java b/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java
index 4008addc6f0..58b2be6ec88 100644
--- a/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/ReferenceTablesApi.java
@@ -5,8 +5,6 @@
import com.datadog.api.client.ApiResponse;
import com.datadog.api.client.Pair;
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestArray;
-import com.datadog.api.client.v2.model.BatchRowsQueryRequest;
-import com.datadog.api.client.v2.model.BatchRowsQueryResponse;
import com.datadog.api.client.v2.model.BatchUpsertRowsRequestArray;
import com.datadog.api.client.v2.model.CreateTableRequest;
import com.datadog.api.client.v2.model.CreateUploadRequest;
@@ -55,140 +53,6 @@ public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
- /**
- * Batch rows query.
- *
- *
See {@link #batchRowsQueryWithHttpInfo}.
- *
- * @param body (required)
- * @return BatchRowsQueryResponse
- * @throws ApiException if fails to make API call
- */
- public BatchRowsQueryResponse batchRowsQuery(BatchRowsQueryRequest body) throws ApiException {
- return batchRowsQueryWithHttpInfo(body).getData();
- }
-
- /**
- * Batch rows query.
- *
- *
See {@link #batchRowsQueryWithHttpInfoAsync}.
- *
- * @param body (required)
- * @return CompletableFuture<BatchRowsQueryResponse>
- */
- public CompletableFuture batchRowsQueryAsync(BatchRowsQueryRequest body) {
- return batchRowsQueryWithHttpInfoAsync(body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * Batch query reference table rows by their primary key values. Returns only found rows in the
- * included array.
- *
- * @param body (required)
- * @return ApiResponse<BatchRowsQueryResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 200 | Successfully retrieved rows. Some or all requested rows were found. Response includes found rows in the included section. | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too many requests | - |
- * | 500 | Internal Server Error | - |
- *
- */
- public ApiResponse batchRowsQueryWithHttpInfo(BatchRowsQueryRequest body)
- throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'body' when calling batchRowsQuery");
- }
- // create path and map variables
- String localVarPath = "/api/v2/reference-tables/queries/batch-rows";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.ReferenceTablesApi.batchRowsQuery",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Batch rows query.
- *
- * See {@link #batchRowsQueryWithHttpInfo}.
- *
- * @param body (required)
- * @return CompletableFuture<ApiResponse<BatchRowsQueryResponse>>
- */
- public CompletableFuture> batchRowsQueryWithHttpInfoAsync(
- BatchRowsQueryRequest body) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400, "Missing the required parameter 'body' when calling batchRowsQuery"));
- return result;
- }
- // create path and map variables
- String localVarPath = "/api/v2/reference-tables/queries/batch-rows";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.ReferenceTablesApi.batchRowsQuery",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- } catch (ApiException ex) {
- CompletableFuture> result = new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
/**
* Create reference table.
*
diff --git a/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java b/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java
index 59ea3516b4b..19ab6c45265 100644
--- a/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/TeamsApi.java
@@ -3211,7 +3211,6 @@ public CompletableFuture getTeamSyncAsync(
* | Status Code | Description | Response Headers |
* | 200 | OK | - |
* | 403 | Forbidden | - |
- * | 404 | Team sync configurations not found | - |
* | 429 | Too many requests | - |
*
*/
@@ -5019,13 +5018,16 @@ public CompletableFuture syncTeamsAsync(TeamSyncRequest body) {
}
/**
- * This endpoint attempts to link your existing Datadog teams with GitHub teams by matching their
- * names. It evaluates all current Datadog teams and compares them against teams in the GitHub
- * organization connected to your Datadog account, based on Datadog Team handle and GitHub Team
- * slug (lowercased and kebab-cased).
+ * This endpoint configures synchronization between your existing Datadog teams and GitHub teams
+ * by matching their names. It evaluates all current Datadog teams and compares them against teams
+ * in the GitHub organization connected to your Datadog account, based on Datadog Team handle and
+ * GitHub Team slug (lowercased and kebab-cased).
*
* This operation is read-only on the GitHub side, no teams will be modified or created.
*
+ *
Optionally, provide selection_state to limit synchronization to specific teams
+ * or organizations and their subtrees, instead of syncing all teams.
+ *
*
A GitHub organization must be
* connected to your Datadog account, and the GitHub App integrated with Datadog must have the
* Members Read permission. Matching is performed by comparing the Datadog team
@@ -5041,6 +5043,7 @@ public CompletableFuture syncTeamsAsync(TeamSyncRequest body) {
* Response details
* | Status Code | Description | Response Headers |
* | 200 | OK | - |
+ * | 204 | No Content | - |
* | 403 | Forbidden | - |
* | 429 | Too many requests | - |
* | 500 | Internal Server Error - Unexpected error during linking. | - |
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestArray.java b/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestArray.java
index 68c7e5a0222..530204fc198 100644
--- a/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestArray.java
+++ b/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestArray.java
@@ -26,26 +26,26 @@
public class BatchDeleteRowsRequestArray {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_DATA = "data";
- private List data = new ArrayList<>();
+ private List data = new ArrayList<>();
public BatchDeleteRowsRequestArray() {}
@JsonCreator
public BatchDeleteRowsRequestArray(
@JsonProperty(required = true, value = JSON_PROPERTY_DATA)
- List data) {
+ List data) {
this.data = data;
}
- public BatchDeleteRowsRequestArray data(List data) {
+ public BatchDeleteRowsRequestArray data(List data) {
this.data = data;
- for (TableRowResourceIdentifier item : data) {
+ for (BatchDeleteRowsRequestData item : data) {
this.unparsed |= item.unparsed;
}
return this;
}
- public BatchDeleteRowsRequestArray addDataItem(TableRowResourceIdentifier dataItem) {
+ public BatchDeleteRowsRequestArray addDataItem(BatchDeleteRowsRequestData dataItem) {
this.data.add(dataItem);
this.unparsed |= dataItem.unparsed;
return this;
@@ -58,11 +58,11 @@ public BatchDeleteRowsRequestArray addDataItem(TableRowResourceIdentifier dataIt
*/
@JsonProperty(JSON_PROPERTY_DATA)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getData() {
+ public List getData() {
return data;
}
- public void setData(List data) {
+ public void setData(List data) {
this.data = data;
}
diff --git a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceIdentifier.java b/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestData.java
similarity index 82%
rename from src/main/java/com/datadog/api/client/v2/model/TableRowResourceIdentifier.java
rename to src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestData.java
index 0fe6b76719a..41a4270f1ef 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TableRowResourceIdentifier.java
+++ b/src/main/java/com/datadog/api/client/v2/model/BatchDeleteRowsRequestData.java
@@ -17,14 +17,14 @@
import java.util.Map;
import java.util.Objects;
-/** Row resource containing a single row identifier. */
+/** Row resource containing a single row identifier for deletion. */
@JsonPropertyOrder({
- TableRowResourceIdentifier.JSON_PROPERTY_ID,
- TableRowResourceIdentifier.JSON_PROPERTY_TYPE
+ BatchDeleteRowsRequestData.JSON_PROPERTY_ID,
+ BatchDeleteRowsRequestData.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class TableRowResourceIdentifier {
+public class BatchDeleteRowsRequestData {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_ID = "id";
private String id;
@@ -32,10 +32,10 @@ public class TableRowResourceIdentifier {
public static final String JSON_PROPERTY_TYPE = "type";
private TableRowResourceDataType type = TableRowResourceDataType.ROW;
- public TableRowResourceIdentifier() {}
+ public BatchDeleteRowsRequestData() {}
@JsonCreator
- public TableRowResourceIdentifier(
+ public BatchDeleteRowsRequestData(
@JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) TableRowResourceDataType type) {
this.id = id;
@@ -43,7 +43,7 @@ public TableRowResourceIdentifier(
this.unparsed |= !type.isValid();
}
- public TableRowResourceIdentifier id(String id) {
+ public BatchDeleteRowsRequestData id(String id) {
this.id = id;
return this;
}
@@ -63,7 +63,7 @@ public void setId(String id) {
this.id = id;
}
- public TableRowResourceIdentifier type(TableRowResourceDataType type) {
+ public BatchDeleteRowsRequestData type(TableRowResourceDataType type) {
this.type = type;
this.unparsed |= !type.isValid();
return this;
@@ -99,10 +99,10 @@ public void setType(TableRowResourceDataType type) {
*
* @param key The arbitrary key to set
* @param value The associated value
- * @return TableRowResourceIdentifier
+ * @return BatchDeleteRowsRequestData
*/
@JsonAnySetter
- public TableRowResourceIdentifier putAdditionalProperty(String key, Object value) {
+ public BatchDeleteRowsRequestData putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap();
}
@@ -133,7 +133,7 @@ public Object getAdditionalProperty(String key) {
return this.additionalProperties.get(key);
}
- /** Return true if this TableRowResourceIdentifier object is equal to o. */
+ /** Return true if this BatchDeleteRowsRequestData object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -142,11 +142,11 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- TableRowResourceIdentifier tableRowResourceIdentifier = (TableRowResourceIdentifier) o;
- return Objects.equals(this.id, tableRowResourceIdentifier.id)
- && Objects.equals(this.type, tableRowResourceIdentifier.type)
+ BatchDeleteRowsRequestData batchDeleteRowsRequestData = (BatchDeleteRowsRequestData) o;
+ return Objects.equals(this.id, batchDeleteRowsRequestData.id)
+ && Objects.equals(this.type, batchDeleteRowsRequestData.type)
&& Objects.equals(
- this.additionalProperties, tableRowResourceIdentifier.additionalProperties);
+ this.additionalProperties, batchDeleteRowsRequestData.additionalProperties);
}
@Override
@@ -157,7 +157,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class TableRowResourceIdentifier {\n");
+ sb.append("class BatchDeleteRowsRequestData {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryDataType.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryDataType.java
deleted file mode 100644
index cfd7332a984..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryDataType.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** Resource type identifier for batch queries of reference table rows. */
-@JsonSerialize(using = BatchRowsQueryDataType.BatchRowsQueryDataTypeSerializer.class)
-public class BatchRowsQueryDataType extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("reference-tables-batch-rows-query"));
-
- public static final BatchRowsQueryDataType REFERENCE_TABLES_BATCH_ROWS_QUERY =
- new BatchRowsQueryDataType("reference-tables-batch-rows-query");
-
- BatchRowsQueryDataType(String value) {
- super(value, allowedValues);
- }
-
- public static class BatchRowsQueryDataTypeSerializer
- extends StdSerializer {
- public BatchRowsQueryDataTypeSerializer(Class t) {
- super(t);
- }
-
- public BatchRowsQueryDataTypeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- BatchRowsQueryDataType value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static BatchRowsQueryDataType fromValue(String value) {
- return new BatchRowsQueryDataType(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequest.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequest.java
deleted file mode 100644
index 8791984f8d9..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequest.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({BatchRowsQueryRequest.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryRequest {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private BatchRowsQueryRequestData data;
-
- public BatchRowsQueryRequest data(BatchRowsQueryRequestData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Getdata
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BatchRowsQueryRequestData getData() {
- return data;
- }
-
- public void setData(BatchRowsQueryRequestData data) {
- this.data = data;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryRequest
- */
- @JsonAnySetter
- public BatchRowsQueryRequest putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryRequest batchRowsQueryRequest = (BatchRowsQueryRequest) o;
- return Objects.equals(this.data, batchRowsQueryRequest.data)
- && Objects.equals(this.additionalProperties, batchRowsQueryRequest.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryRequest {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestDataAttributes.java
deleted file mode 100644
index c7315bf4043..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestDataAttributes.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({
- BatchRowsQueryRequestDataAttributes.JSON_PROPERTY_ROW_IDS,
- BatchRowsQueryRequestDataAttributes.JSON_PROPERTY_TABLE_ID
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryRequestDataAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ROW_IDS = "row_ids";
- private List rowIds = new ArrayList<>();
-
- public static final String JSON_PROPERTY_TABLE_ID = "table_id";
- private String tableId;
-
- public BatchRowsQueryRequestDataAttributes() {}
-
- @JsonCreator
- public BatchRowsQueryRequestDataAttributes(
- @JsonProperty(required = true, value = JSON_PROPERTY_ROW_IDS) List rowIds,
- @JsonProperty(required = true, value = JSON_PROPERTY_TABLE_ID) String tableId) {
- this.rowIds = rowIds;
- this.tableId = tableId;
- }
-
- public BatchRowsQueryRequestDataAttributes rowIds(List rowIds) {
- this.rowIds = rowIds;
- return this;
- }
-
- public BatchRowsQueryRequestDataAttributes addRowIdsItem(String rowIdsItem) {
- this.rowIds.add(rowIdsItem);
- return this;
- }
-
- /**
- * GetrowIds
- *
- * @return rowIds
- */
- @JsonProperty(JSON_PROPERTY_ROW_IDS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public List getRowIds() {
- return rowIds;
- }
-
- public void setRowIds(List rowIds) {
- this.rowIds = rowIds;
- }
-
- public BatchRowsQueryRequestDataAttributes tableId(String tableId) {
- this.tableId = tableId;
- return this;
- }
-
- /**
- * GettableId
- *
- * @return tableId
- */
- @JsonProperty(JSON_PROPERTY_TABLE_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getTableId() {
- return tableId;
- }
-
- public void setTableId(String tableId) {
- this.tableId = tableId;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryRequestDataAttributes
- */
- @JsonAnySetter
- public BatchRowsQueryRequestDataAttributes putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryRequestDataAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryRequestDataAttributes batchRowsQueryRequestDataAttributes =
- (BatchRowsQueryRequestDataAttributes) o;
- return Objects.equals(this.rowIds, batchRowsQueryRequestDataAttributes.rowIds)
- && Objects.equals(this.tableId, batchRowsQueryRequestDataAttributes.tableId)
- && Objects.equals(
- this.additionalProperties, batchRowsQueryRequestDataAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(rowIds, tableId, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryRequestDataAttributes {\n");
- sb.append(" rowIds: ").append(toIndentedString(rowIds)).append("\n");
- sb.append(" tableId: ").append(toIndentedString(tableId)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponse.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponse.java
deleted file mode 100644
index 87b72699a19..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponse.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({BatchRowsQueryResponse.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private BatchRowsQueryResponseData data;
-
- public BatchRowsQueryResponse data(BatchRowsQueryResponseData data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Getdata
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BatchRowsQueryResponseData getData() {
- return data;
- }
-
- public void setData(BatchRowsQueryResponseData data) {
- this.data = data;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryResponse
- */
- @JsonAnySetter
- public BatchRowsQueryResponse putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryResponse batchRowsQueryResponse = (BatchRowsQueryResponse) o;
- return Objects.equals(this.data, batchRowsQueryResponse.data)
- && Objects.equals(this.additionalProperties, batchRowsQueryResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryResponse {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseData.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseData.java
deleted file mode 100644
index 85802def1d4..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseData.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({
- BatchRowsQueryResponseData.JSON_PROPERTY_ID,
- BatchRowsQueryResponseData.JSON_PROPERTY_RELATIONSHIPS,
- BatchRowsQueryResponseData.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryResponseData {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships";
- private BatchRowsQueryResponseDataRelationships relationships;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private BatchRowsQueryDataType type = BatchRowsQueryDataType.REFERENCE_TABLES_BATCH_ROWS_QUERY;
-
- public BatchRowsQueryResponseData() {}
-
- @JsonCreator
- public BatchRowsQueryResponseData(
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) BatchRowsQueryDataType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public BatchRowsQueryResponseData id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Getid
- *
- * @return id
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public BatchRowsQueryResponseData relationships(
- BatchRowsQueryResponseDataRelationships relationships) {
- this.relationships = relationships;
- this.unparsed |= relationships.unparsed;
- return this;
- }
-
- /**
- * Getrelationships
- *
- * @return relationships
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_RELATIONSHIPS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BatchRowsQueryResponseDataRelationships getRelationships() {
- return relationships;
- }
-
- public void setRelationships(BatchRowsQueryResponseDataRelationships relationships) {
- this.relationships = relationships;
- }
-
- public BatchRowsQueryResponseData type(BatchRowsQueryDataType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * Resource type identifier for batch queries of reference table rows.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BatchRowsQueryDataType getType() {
- return type;
- }
-
- public void setType(BatchRowsQueryDataType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryResponseData
- */
- @JsonAnySetter
- public BatchRowsQueryResponseData putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryResponseData object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryResponseData batchRowsQueryResponseData = (BatchRowsQueryResponseData) o;
- return Objects.equals(this.id, batchRowsQueryResponseData.id)
- && Objects.equals(this.relationships, batchRowsQueryResponseData.relationships)
- && Objects.equals(this.type, batchRowsQueryResponseData.type)
- && Objects.equals(
- this.additionalProperties, batchRowsQueryResponseData.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, relationships, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryResponseData {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationships.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationships.java
deleted file mode 100644
index c535d451cb0..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationships.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({BatchRowsQueryResponseDataRelationships.JSON_PROPERTY_ROWS})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryResponseDataRelationships {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ROWS = "rows";
- private BatchRowsQueryResponseDataRelationshipsRows rows;
-
- public BatchRowsQueryResponseDataRelationships rows(
- BatchRowsQueryResponseDataRelationshipsRows rows) {
- this.rows = rows;
- this.unparsed |= rows.unparsed;
- return this;
- }
-
- /**
- * Getrows
- *
- * @return rows
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ROWS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BatchRowsQueryResponseDataRelationshipsRows getRows() {
- return rows;
- }
-
- public void setRows(BatchRowsQueryResponseDataRelationshipsRows rows) {
- this.rows = rows;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryResponseDataRelationships
- */
- @JsonAnySetter
- public BatchRowsQueryResponseDataRelationships putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryResponseDataRelationships object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryResponseDataRelationships batchRowsQueryResponseDataRelationships =
- (BatchRowsQueryResponseDataRelationships) o;
- return Objects.equals(this.rows, batchRowsQueryResponseDataRelationships.rows)
- && Objects.equals(
- this.additionalProperties,
- batchRowsQueryResponseDataRelationships.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(rows, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryResponseDataRelationships {\n");
- sb.append(" rows: ").append(toIndentedString(rows)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationshipsRows.java b/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationshipsRows.java
deleted file mode 100644
index 7f8b924ab03..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryResponseDataRelationshipsRows.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
- * Copyright 2019-Present Datadog, Inc.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** */
-@JsonPropertyOrder({BatchRowsQueryResponseDataRelationshipsRows.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryResponseDataRelationshipsRows {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private List data = null;
-
- public BatchRowsQueryResponseDataRelationshipsRows data(List data) {
- this.data = data;
- for (TableRowResourceIdentifier item : data) {
- this.unparsed |= item.unparsed;
- }
- return this;
- }
-
- public BatchRowsQueryResponseDataRelationshipsRows addDataItem(
- TableRowResourceIdentifier dataItem) {
- if (this.data == null) {
- this.data = new ArrayList<>();
- }
- this.data.add(dataItem);
- this.unparsed |= dataItem.unparsed;
- return this;
- }
-
- /**
- * Getdata
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getData() {
- return data;
- }
-
- public void setData(List data) {
- this.data = data;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return BatchRowsQueryResponseDataRelationshipsRows
- */
- @JsonAnySetter
- public BatchRowsQueryResponseDataRelationshipsRows putAdditionalProperty(
- String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this BatchRowsQueryResponseDataRelationshipsRows object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- BatchRowsQueryResponseDataRelationshipsRows batchRowsQueryResponseDataRelationshipsRows =
- (BatchRowsQueryResponseDataRelationshipsRows) o;
- return Objects.equals(this.data, batchRowsQueryResponseDataRelationshipsRows.data)
- && Objects.equals(
- this.additionalProperties,
- batchRowsQueryResponseDataRelationshipsRows.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryResponseDataRelationshipsRows {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamSyncAttributes.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncAttributes.java
index 54697890ee4..4a33c374453 100644
--- a/src/main/java/com/datadog/api/client/v2/model/TeamSyncAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncAttributes.java
@@ -13,13 +13,16 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.ArrayList;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
import java.util.Objects;
/** Team sync attributes. */
@JsonPropertyOrder({
TeamSyncAttributes.JSON_PROPERTY_FREQUENCY,
+ TeamSyncAttributes.JSON_PROPERTY_SELECTION_STATE,
TeamSyncAttributes.JSON_PROPERTY_SOURCE,
TeamSyncAttributes.JSON_PROPERTY_SYNC_MEMBERSHIP,
TeamSyncAttributes.JSON_PROPERTY_TYPE
@@ -31,11 +34,14 @@ public class TeamSyncAttributes {
public static final String JSON_PROPERTY_FREQUENCY = "frequency";
private TeamSyncAttributesFrequency frequency;
+ public static final String JSON_PROPERTY_SELECTION_STATE = "selection_state";
+ private List selectionState = null;
+
public static final String JSON_PROPERTY_SOURCE = "source";
private TeamSyncAttributesSource source;
public static final String JSON_PROPERTY_SYNC_MEMBERSHIP = "sync_membership";
- private Boolean syncMembership;
+ private Boolean syncMembership = false;
public static final String JSON_PROPERTY_TYPE = "type";
private TeamSyncAttributesType type;
@@ -77,6 +83,40 @@ public void setFrequency(TeamSyncAttributesFrequency frequency) {
this.frequency = frequency;
}
+ public TeamSyncAttributes selectionState(List selectionState) {
+ this.selectionState = selectionState;
+ for (TeamSyncSelectionStateItem item : selectionState) {
+ this.unparsed |= item.unparsed;
+ }
+ return this;
+ }
+
+ public TeamSyncAttributes addSelectionStateItem(TeamSyncSelectionStateItem selectionStateItem) {
+ if (this.selectionState == null) {
+ this.selectionState = new ArrayList<>();
+ }
+ this.selectionState.add(selectionStateItem);
+ this.unparsed |= selectionStateItem.unparsed;
+ return this;
+ }
+
+ /**
+ * Specifies which teams or organizations to sync. When provided, synchronization is limited to
+ * the specified items and their subtrees.
+ *
+ * @return selectionState
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SELECTION_STATE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public List getSelectionState() {
+ return selectionState;
+ }
+
+ public void setSelectionState(List selectionState) {
+ this.selectionState = selectionState;
+ }
+
public TeamSyncAttributes source(TeamSyncAttributesSource source) {
this.source = source;
this.unparsed |= !source.isValid();
@@ -205,6 +245,7 @@ public boolean equals(Object o) {
}
TeamSyncAttributes teamSyncAttributes = (TeamSyncAttributes) o;
return Objects.equals(this.frequency, teamSyncAttributes.frequency)
+ && Objects.equals(this.selectionState, teamSyncAttributes.selectionState)
&& Objects.equals(this.source, teamSyncAttributes.source)
&& Objects.equals(this.syncMembership, teamSyncAttributes.syncMembership)
&& Objects.equals(this.type, teamSyncAttributes.type)
@@ -213,7 +254,8 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(frequency, source, syncMembership, type, additionalProperties);
+ return Objects.hash(
+ frequency, selectionState, source, syncMembership, type, additionalProperties);
}
@Override
@@ -221,6 +263,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TeamSyncAttributes {\n");
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n");
+ sb.append(" selectionState: ").append(toIndentedString(selectionState)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" syncMembership: ").append(toIndentedString(syncMembership)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestData.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalId.java
similarity index 61%
rename from src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestData.java
rename to src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalId.java
index e0127626788..e47a6e073c4 100644
--- a/src/main/java/com/datadog/api/client/v2/model/BatchRowsQueryRequestData.java
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalId.java
@@ -17,74 +17,77 @@
import java.util.Map;
import java.util.Objects;
-/** */
+/** The external identifier for a team or organization in the source platform. */
@JsonPropertyOrder({
- BatchRowsQueryRequestData.JSON_PROPERTY_ATTRIBUTES,
- BatchRowsQueryRequestData.JSON_PROPERTY_TYPE
+ TeamSyncSelectionStateExternalId.JSON_PROPERTY_TYPE,
+ TeamSyncSelectionStateExternalId.JSON_PROPERTY_VALUE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class BatchRowsQueryRequestData {
+public class TeamSyncSelectionStateExternalId {
@JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private BatchRowsQueryRequestDataAttributes attributes;
-
public static final String JSON_PROPERTY_TYPE = "type";
- private BatchRowsQueryDataType type = BatchRowsQueryDataType.REFERENCE_TABLES_BATCH_ROWS_QUERY;
+ private TeamSyncSelectionStateExternalIdType type;
+
+ public static final String JSON_PROPERTY_VALUE = "value";
+ private String value;
- public BatchRowsQueryRequestData() {}
+ public TeamSyncSelectionStateExternalId() {}
@JsonCreator
- public BatchRowsQueryRequestData(
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) BatchRowsQueryDataType type) {
+ public TeamSyncSelectionStateExternalId(
+ @JsonProperty(required = true, value = JSON_PROPERTY_TYPE)
+ TeamSyncSelectionStateExternalIdType type,
+ @JsonProperty(required = true, value = JSON_PROPERTY_VALUE) String value) {
this.type = type;
this.unparsed |= !type.isValid();
+ this.value = value;
}
- public BatchRowsQueryRequestData attributes(BatchRowsQueryRequestDataAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
+ public TeamSyncSelectionStateExternalId type(TeamSyncSelectionStateExternalIdType type) {
+ this.type = type;
+ this.unparsed |= !type.isValid();
return this;
}
/**
- * Getattributes
+ * The type of external identifier for the selection state item. For GitHub synchronization, the
+ * allowed values are team and organization.
*
- * @return attributes
+ * @return type
*/
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public BatchRowsQueryRequestDataAttributes getAttributes() {
- return attributes;
+ @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public TeamSyncSelectionStateExternalIdType getType() {
+ return type;
}
- public void setAttributes(BatchRowsQueryRequestDataAttributes attributes) {
- this.attributes = attributes;
+ public void setType(TeamSyncSelectionStateExternalIdType type) {
+ if (!type.isValid()) {
+ this.unparsed = true;
+ }
+ this.type = type;
}
- public BatchRowsQueryRequestData type(BatchRowsQueryDataType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
+ public TeamSyncSelectionStateExternalId value(String value) {
+ this.value = value;
return this;
}
/**
- * Resource type identifier for batch queries of reference table rows.
+ * The external identifier value from the source platform. For GitHub, this is the string
+ * representation of a GitHub organization ID or team ID.
*
- * @return type
+ * @return value
*/
- @JsonProperty(JSON_PROPERTY_TYPE)
+ @JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
- public BatchRowsQueryDataType getType() {
- return type;
+ public String getValue() {
+ return value;
}
- public void setType(BatchRowsQueryDataType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
+ public void setValue(String value) {
+ this.value = value;
}
/**
@@ -99,10 +102,10 @@ public void setType(BatchRowsQueryDataType type) {
*
* @param key The arbitrary key to set
* @param value The associated value
- * @return BatchRowsQueryRequestData
+ * @return TeamSyncSelectionStateExternalId
*/
@JsonAnySetter
- public BatchRowsQueryRequestData putAdditionalProperty(String key, Object value) {
+ public TeamSyncSelectionStateExternalId putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap();
}
@@ -133,7 +136,7 @@ public Object getAdditionalProperty(String key) {
return this.additionalProperties.get(key);
}
- /** Return true if this BatchRowsQueryRequestData object is equal to o. */
+ /** Return true if this TeamSyncSelectionStateExternalId object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -142,24 +145,25 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- BatchRowsQueryRequestData batchRowsQueryRequestData = (BatchRowsQueryRequestData) o;
- return Objects.equals(this.attributes, batchRowsQueryRequestData.attributes)
- && Objects.equals(this.type, batchRowsQueryRequestData.type)
+ TeamSyncSelectionStateExternalId teamSyncSelectionStateExternalId =
+ (TeamSyncSelectionStateExternalId) o;
+ return Objects.equals(this.type, teamSyncSelectionStateExternalId.type)
+ && Objects.equals(this.value, teamSyncSelectionStateExternalId.value)
&& Objects.equals(
- this.additionalProperties, batchRowsQueryRequestData.additionalProperties);
+ this.additionalProperties, teamSyncSelectionStateExternalId.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(attributes, type, additionalProperties);
+ return Objects.hash(type, value, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class BatchRowsQueryRequestData {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
+ sb.append("class TeamSyncSelectionStateExternalId {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalIdType.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalIdType.java
new file mode 100644
index 00000000000..6dc60f50ec9
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateExternalIdType.java
@@ -0,0 +1,65 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * The type of external identifier for the selection state item. For GitHub synchronization, the
+ * allowed values are team and organization.
+ */
+@JsonSerialize(
+ using =
+ TeamSyncSelectionStateExternalIdType.TeamSyncSelectionStateExternalIdTypeSerializer.class)
+public class TeamSyncSelectionStateExternalIdType extends ModelEnum {
+
+ private static final Set allowedValues =
+ new HashSet(Arrays.asList("team", "organization"));
+
+ public static final TeamSyncSelectionStateExternalIdType TEAM =
+ new TeamSyncSelectionStateExternalIdType("team");
+ public static final TeamSyncSelectionStateExternalIdType ORGANIZATION =
+ new TeamSyncSelectionStateExternalIdType("organization");
+
+ TeamSyncSelectionStateExternalIdType(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class TeamSyncSelectionStateExternalIdTypeSerializer
+ extends StdSerializer {
+ public TeamSyncSelectionStateExternalIdTypeSerializer(
+ Class t) {
+ super(t);
+ }
+
+ public TeamSyncSelectionStateExternalIdTypeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ TeamSyncSelectionStateExternalIdType value, JsonGenerator jgen, SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static TeamSyncSelectionStateExternalIdType fromValue(String value) {
+ return new TeamSyncSelectionStateExternalIdType(value);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateItem.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateItem.java
new file mode 100644
index 00000000000..80d49861d95
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateItem.java
@@ -0,0 +1,213 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Objects;
+
+/** Identifies a team or organization hierarchy to include in synchronization. */
+@JsonPropertyOrder({
+ TeamSyncSelectionStateItem.JSON_PROPERTY_EXTERNAL_ID,
+ TeamSyncSelectionStateItem.JSON_PROPERTY_OPERATION,
+ TeamSyncSelectionStateItem.JSON_PROPERTY_SCOPE
+})
+@jakarta.annotation.Generated(
+ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
+public class TeamSyncSelectionStateItem {
+ @JsonIgnore public boolean unparsed = false;
+ public static final String JSON_PROPERTY_EXTERNAL_ID = "external_id";
+ private TeamSyncSelectionStateExternalId externalId;
+
+ public static final String JSON_PROPERTY_OPERATION = "operation";
+ private TeamSyncSelectionStateOperation operation;
+
+ public static final String JSON_PROPERTY_SCOPE = "scope";
+ private TeamSyncSelectionStateScope scope;
+
+ public TeamSyncSelectionStateItem() {}
+
+ @JsonCreator
+ public TeamSyncSelectionStateItem(
+ @JsonProperty(required = true, value = JSON_PROPERTY_EXTERNAL_ID)
+ TeamSyncSelectionStateExternalId externalId) {
+ this.externalId = externalId;
+ this.unparsed |= externalId.unparsed;
+ }
+
+ public TeamSyncSelectionStateItem externalId(TeamSyncSelectionStateExternalId externalId) {
+ this.externalId = externalId;
+ this.unparsed |= externalId.unparsed;
+ return this;
+ }
+
+ /**
+ * The external identifier for a team or organization in the source platform.
+ *
+ * @return externalId
+ */
+ @JsonProperty(JSON_PROPERTY_EXTERNAL_ID)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public TeamSyncSelectionStateExternalId getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(TeamSyncSelectionStateExternalId externalId) {
+ this.externalId = externalId;
+ }
+
+ public TeamSyncSelectionStateItem operation(TeamSyncSelectionStateOperation operation) {
+ this.operation = operation;
+ this.unparsed |= !operation.isValid();
+ return this;
+ }
+
+ /**
+ * The operation to perform on the selected hierarchy. When set to include,
+ * synchronization covers the referenced teams or organizations.
+ *
+ * @return operation
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_OPERATION)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public TeamSyncSelectionStateOperation getOperation() {
+ return operation;
+ }
+
+ public void setOperation(TeamSyncSelectionStateOperation operation) {
+ if (!operation.isValid()) {
+ this.unparsed = true;
+ }
+ this.operation = operation;
+ }
+
+ public TeamSyncSelectionStateItem scope(TeamSyncSelectionStateScope scope) {
+ this.scope = scope;
+ this.unparsed |= !scope.isValid();
+ return this;
+ }
+
+ /**
+ * The scope of the selection. When set to subtree, synchronization includes the
+ * referenced team or organization and everything nested under it.
+ *
+ * @return scope
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_SCOPE)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public TeamSyncSelectionStateScope getScope() {
+ return scope;
+ }
+
+ public void setScope(TeamSyncSelectionStateScope scope) {
+ if (!scope.isValid()) {
+ this.unparsed = true;
+ }
+ this.scope = scope;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key The arbitrary key to set
+ * @param value The associated value
+ * @return TeamSyncSelectionStateItem
+ */
+ @JsonAnySetter
+ public TeamSyncSelectionStateItem putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return The additional properties
+ */
+ @JsonAnyGetter
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key The arbitrary key to get
+ * @return The specific additional property for the given key
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ /** Return true if this TeamSyncSelectionStateItem object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TeamSyncSelectionStateItem teamSyncSelectionStateItem = (TeamSyncSelectionStateItem) o;
+ return Objects.equals(this.externalId, teamSyncSelectionStateItem.externalId)
+ && Objects.equals(this.operation, teamSyncSelectionStateItem.operation)
+ && Objects.equals(this.scope, teamSyncSelectionStateItem.scope)
+ && Objects.equals(
+ this.additionalProperties, teamSyncSelectionStateItem.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(externalId, operation, scope, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TeamSyncSelectionStateItem {\n");
+ sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n");
+ sb.append(" operation: ").append(toIndentedString(operation)).append("\n");
+ sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append('}');
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateOperation.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateOperation.java
new file mode 100644
index 00000000000..d96db1617c3
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateOperation.java
@@ -0,0 +1,60 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * The operation to perform on the selected hierarchy. When set to include,
+ * synchronization covers the referenced teams or organizations.
+ */
+@JsonSerialize(
+ using = TeamSyncSelectionStateOperation.TeamSyncSelectionStateOperationSerializer.class)
+public class TeamSyncSelectionStateOperation extends ModelEnum {
+
+ private static final Set allowedValues = new HashSet(Arrays.asList("include"));
+
+ public static final TeamSyncSelectionStateOperation INCLUDE =
+ new TeamSyncSelectionStateOperation("include");
+
+ TeamSyncSelectionStateOperation(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class TeamSyncSelectionStateOperationSerializer
+ extends StdSerializer {
+ public TeamSyncSelectionStateOperationSerializer(Class t) {
+ super(t);
+ }
+
+ public TeamSyncSelectionStateOperationSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ TeamSyncSelectionStateOperation value, JsonGenerator jgen, SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static TeamSyncSelectionStateOperation fromValue(String value) {
+ return new TeamSyncSelectionStateOperation(value);
+ }
+}
diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateScope.java b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateScope.java
new file mode 100644
index 00000000000..bd8b171ebc4
--- /dev/null
+++ b/src/main/java/com/datadog/api/client/v2/model/TeamSyncSelectionStateScope.java
@@ -0,0 +1,59 @@
+/*
+ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
+ * Copyright 2019-Present Datadog, Inc.
+ */
+
+package com.datadog.api.client.v2.model;
+
+import com.datadog.api.client.ModelEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * The scope of the selection. When set to subtree, synchronization includes the
+ * referenced team or organization and everything nested under it.
+ */
+@JsonSerialize(using = TeamSyncSelectionStateScope.TeamSyncSelectionStateScopeSerializer.class)
+public class TeamSyncSelectionStateScope extends ModelEnum {
+
+ private static final Set allowedValues = new HashSet(Arrays.asList("subtree"));
+
+ public static final TeamSyncSelectionStateScope SUBTREE =
+ new TeamSyncSelectionStateScope("subtree");
+
+ TeamSyncSelectionStateScope(String value) {
+ super(value, allowedValues);
+ }
+
+ public static class TeamSyncSelectionStateScopeSerializer
+ extends StdSerializer {
+ public TeamSyncSelectionStateScopeSerializer(Class t) {
+ super(t);
+ }
+
+ public TeamSyncSelectionStateScopeSerializer() {
+ this(null);
+ }
+
+ @Override
+ public void serialize(
+ TeamSyncSelectionStateScope value, JsonGenerator jgen, SerializerProvider provider)
+ throws IOException, JsonProcessingException {
+ jgen.writeObject(value.value);
+ }
+ }
+
+ @JsonCreator
+ public static TeamSyncSelectionStateScope fromValue(String value) {
+ return new TeamSyncSelectionStateScope(value);
+ }
+}
diff --git a/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.freeze
new file mode 100644
index 00000000000..1332175b3b7
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.freeze
@@ -0,0 +1 @@
+2026-03-04T16:01:00.945Z
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.json
new file mode 100644
index 00000000000..54fb294b980
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Get_team_sync_configurations_returns_OK_response.json
@@ -0,0 +1,33 @@
+[
+ {
+ "httpRequest": {
+ "headers": {},
+ "method": "GET",
+ "path": "/api/v2/team/sync",
+ "queryStringParameters": {
+ "filter[source]": [
+ "github"
+ ]
+ },
+ "keepAlive": false,
+ "secure": true
+ },
+ "httpResponse": {
+ "body": "{\"data\":[{\"id\":\"3d33cc55-aea4-4801-bb75-139d347298c9\",\"type\":\"team_sync_bulk\",\"attributes\":{\"frequency\":\"once\",\"selection_state\":[{\"external_id\":{\"type\":\"organization\",\"value\":\"1\"},\"operation\":\"include\",\"scope\":\"subtree\"}],\"source\":\"github\",\"sync_membership\":false,\"type\":\"link\"}}]}",
+ "headers": {
+ "Content-Type": [
+ "application/vnd.api+json"
+ ]
+ },
+ "statusCode": 200,
+ "reasonPhrase": "OK"
+ },
+ "times": {
+ "remainingTimes": 1
+ },
+ "timeToLive": {
+ "unlimited": true
+ },
+ "id": "9340a9d9-b12b-e826-1e72-ba1bbc945a32"
+ }
+]
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.freeze b/src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.freeze
new file mode 100644
index 00000000000..8e230ad6717
--- /dev/null
+++ b/src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.freeze
@@ -0,0 +1 @@
+2026-03-04T16:01:34.366Z
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.json
similarity index 50%
rename from src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.json
rename to src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.json
index 0bb7093b2e9..16337f2b68b 100644
--- a/src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.json
+++ b/src/test/resources/cassettes/features/v2/Link_Teams_with_GitHub_Teams_returns_No_Content_response.json
@@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
- "json": "{\"data\":{\"attributes\":{\"source\":\"github\",\"type\":\"link\"},\"type\":\"team_sync_bulk\"}}"
+ "json": "{\"data\":{\"attributes\":{\"selection_state\":[{\"external_id\":{\"type\":\"organization\",\"value\":\"1\"}}],\"source\":\"github\",\"type\":\"link\"},\"type\":\"team_sync_bulk\"}}"
},
"headers": {},
"method": "POST",
@@ -12,13 +12,9 @@
"secure": true
},
"httpResponse": {
- "headers": {
- "Content-Type": [
- "text/plain"
- ]
- },
- "statusCode": 200,
- "reasonPhrase": "OK"
+ "headers": {},
+ "statusCode": 204,
+ "reasonPhrase": "No Content"
},
"times": {
"remainingTimes": 1
@@ -26,6 +22,6 @@
"timeToLive": {
"unlimited": true
},
- "id": "39416307-2f49-be15-7e10-9223981e6839"
+ "id": "56fda770-a389-5f07-97c8-e26a49e8311d"
}
]
\ No newline at end of file
diff --git a/src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.freeze
deleted file mode 100644
index 8723edd4fb6..00000000000
--- a/src/test/resources/cassettes/features/v2/Sync_teams_returns_OK_response.freeze
+++ /dev/null
@@ -1 +0,0 @@
-2025-08-15T17:48:19.712Z
\ No newline at end of file
diff --git a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature
index 0ba8738c6b9..db0f84a6e55 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/reference_tables.feature
@@ -7,27 +7,6 @@ Feature: Reference Tables
And a valid "appKeyAuth" key in the system
And an instance of "ReferenceTables" API
- @generated @skip @team:DataDog/redapl-experiences
- Scenario: Batch rows query returns "Bad Request" response
- Given new "BatchRowsQuery" request
- And body with value {"data": {"attributes": {"row_ids": ["row_id_1", "row_id_2"], "table_id": "00000000-0000-0000-0000-000000000000"}, "type": "reference-tables-batch-rows-query"}}
- When the request is sent
- Then the response status is 400 Bad Request
-
- @generated @skip @team:DataDog/redapl-experiences
- Scenario: Batch rows query returns "Not Found" response
- Given new "BatchRowsQuery" request
- And body with value {"data": {"attributes": {"row_ids": ["row_id_1", "row_id_2"], "table_id": "00000000-0000-0000-0000-000000000000"}, "type": "reference-tables-batch-rows-query"}}
- When the request is sent
- Then the response status is 404 Not Found
-
- @generated @skip @team:DataDog/redapl-experiences
- Scenario: Batch rows query returns "Successfully retrieved rows. Some or all requested rows were found. Response includes found rows in the included section." response
- Given new "BatchRowsQuery" request
- And body with value {"data": {"attributes": {"row_ids": ["row_id_1", "row_id_2"], "table_id": "00000000-0000-0000-0000-000000000000"}, "type": "reference-tables-batch-rows-query"}}
- When the request is sent
- Then the response status is 200 Successfully retrieved rows. Some or all requested rows were found. Response includes found rows in the included section.
-
@generated @skip @team:DataDog/redapl-experiences
Scenario: Create reference table returns "Bad Request" response
Given new "CreateReferenceTable" request
diff --git a/src/test/resources/com/datadog/api/client/v2/api/teams.feature b/src/test/resources/com/datadog/api/client/v2/api/teams.feature
index 26bf0130d4e..480e3215e99 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/teams.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/teams.feature
@@ -431,20 +431,13 @@ Feature: Teams
Then the response status is 200 OK
And the response "data" has length 1
- @generated @skip @team:DataDog/aaa-omg
+ @team:DataDog/aaa-omg
Scenario: Get team sync configurations returns "OK" response
Given new "GetTeamSync" request
- And request contains "filter[source]" parameter from "REPLACE.ME"
+ And request contains "filter[source]" parameter with value "github"
When the request is sent
Then the response status is 200 OK
- @generated @skip @team:DataDog/aaa-omg
- Scenario: Get team sync configurations returns "Team sync configurations not found" response
- Given new "GetTeamSync" request
- And request contains "filter[source]" parameter from "REPLACE.ME"
- When the request is sent
- Then the response status is 404 Team sync configurations not found
-
@generated @skip @team:DataDog/aaa-omg
Scenario: Get user memberships returns "API error response." response
Given new "GetUserMemberships" request
@@ -461,6 +454,13 @@ Feature: Teams
Then the response status is 200 Represents a user's association to a team
And the response "data" has length 0
+ @team:DataDog/aaa-omg
+ Scenario: Link Teams with GitHub Teams returns "No Content" response
+ Given new "SyncTeams" request
+ And body with value {"data": {"attributes": {"source": "github", "type": "link", "selection_state": [{"external_id": {"type": "organization", "value": "1"}}]}, "type": "team_sync_bulk"}}
+ When the request is sent
+ Then the response status is 204 No Content
+
@generated @skip @team:DataDog/aaa-omg
Scenario: Link Teams with GitHub Teams returns "OK" response
Given new "SyncTeams" request
@@ -582,13 +582,6 @@ Feature: Teams
When the request is sent
Then the response status is 204 No Content
- @replay-only @team:DataDog/aaa-omg
- Scenario: Sync teams returns "OK" response
- Given new "SyncTeams" request
- And body with value {"data": {"attributes": {"source": "github", "type": "link"}, "type": "team_sync_bulk"}}
- When the request is sent
- Then the response status is 200 OK
-
@team:DataDog/aaa-omg
Scenario: Update a team link returns "API error response." response
Given new "UpdateTeamLink" request
diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json
index a04c9b283b9..e33094f9f8c 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/undo.json
+++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json
@@ -3963,12 +3963,6 @@
"type": "idempotent"
}
},
- "BatchRowsQuery": {
- "tag": "Reference Tables",
- "undo": {
- "type": "safe"
- }
- },
"ListTables": {
"tag": "Reference Tables",
"undo": {