Skip to content

Commit 26bea3f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0ae8452 of spec repo
1 parent 8aec44e commit 26bea3f

29 files changed

+675
-1501
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 101 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -7475,89 +7475,23 @@ components:
74757475
properties:
74767476
data:
74777477
items:
7478-
$ref: '#/components/schemas/TableRowResourceIdentifier'
7478+
$ref: '#/components/schemas/BatchDeleteRowsRequestData'
74797479
maxItems: 200
74807480
type: array
74817481
required:
74827482
- data
74837483
type: object
7484-
BatchRowsQueryDataType:
7485-
default: reference-tables-batch-rows-query
7486-
description: Resource type identifier for batch queries of reference table rows.
7487-
enum:
7488-
- reference-tables-batch-rows-query
7489-
example: reference-tables-batch-rows-query
7490-
type: string
7491-
x-enum-varnames:
7492-
- REFERENCE_TABLES_BATCH_ROWS_QUERY
7493-
BatchRowsQueryRequest:
7494-
properties:
7495-
data:
7496-
$ref: '#/components/schemas/BatchRowsQueryRequestData'
7497-
type: object
7498-
BatchRowsQueryRequestData:
7499-
properties:
7500-
attributes:
7501-
$ref: '#/components/schemas/BatchRowsQueryRequestDataAttributes'
7502-
type:
7503-
$ref: '#/components/schemas/BatchRowsQueryDataType'
7504-
required:
7505-
- type
7506-
type: object
7507-
BatchRowsQueryRequestDataAttributes:
7508-
properties:
7509-
row_ids:
7510-
example:
7511-
- row_id_1
7512-
- row_id_2
7513-
items:
7514-
type: string
7515-
type: array
7516-
table_id:
7517-
example: 00000000-0000-0000-0000-000000000000
7518-
type: string
7519-
required:
7520-
- row_ids
7521-
- table_id
7522-
type: object
7523-
BatchRowsQueryResponse:
7524-
example:
7525-
data:
7526-
id: 00000000-0000-0000-0000-000000000000
7527-
relationships:
7528-
rows:
7529-
data:
7530-
- id: row_id_1
7531-
type: row
7532-
- id: row_id_2
7533-
type: row
7534-
type: reference-tables-batch-rows-query
7535-
properties:
7536-
data:
7537-
$ref: '#/components/schemas/BatchRowsQueryResponseData'
7538-
type: object
7539-
BatchRowsQueryResponseData:
7484+
BatchDeleteRowsRequestData:
7485+
description: Row resource containing a single row identifier for deletion.
75407486
properties:
75417487
id:
7488+
example: primary_key_value
75427489
type: string
7543-
relationships:
7544-
$ref: '#/components/schemas/BatchRowsQueryResponseDataRelationships'
75457490
type:
7546-
$ref: '#/components/schemas/BatchRowsQueryDataType'
7491+
$ref: '#/components/schemas/TableRowResourceDataType'
75477492
required:
75487493
- type
7549-
type: object
7550-
BatchRowsQueryResponseDataRelationships:
7551-
properties:
7552-
rows:
7553-
$ref: '#/components/schemas/BatchRowsQueryResponseDataRelationshipsRows'
7554-
type: object
7555-
BatchRowsQueryResponseDataRelationshipsRows:
7556-
properties:
7557-
data:
7558-
items:
7559-
$ref: '#/components/schemas/TableRowResourceIdentifier'
7560-
type: array
7494+
- id
75617495
type: object
75627496
BatchUpsertRowsRequestArray:
75637497
description: The request body for creating or updating multiple rows into a
@@ -67019,18 +66953,6 @@ components:
6701966953
type: string
6702066954
x-enum-varnames:
6702166955
- ROW
67022-
TableRowResourceIdentifier:
67023-
description: Row resource containing a single row identifier.
67024-
properties:
67025-
id:
67026-
example: primary_key_value
67027-
type: string
67028-
type:
67029-
$ref: '#/components/schemas/TableRowResourceDataType'
67030-
required:
67031-
- type
67032-
- id
67033-
type: object
6703466956
TagsEventAttribute:
6703566957
description: Array of tags associated with your event.
6703666958
example:
@@ -68309,6 +68231,8 @@ components:
6830968231
properties:
6831068232
frequency:
6831168233
$ref: '#/components/schemas/TeamSyncAttributesFrequency'
68234+
selection_state:
68235+
$ref: '#/components/schemas/TeamSyncAttributesSelectionState'
6831268236
source:
6831368237
$ref: '#/components/schemas/TeamSyncAttributesSource'
6831468238
sync_membership:
@@ -68332,6 +68256,15 @@ components:
6833268256
- ONCE
6833368257
- CONTINUOUSLY
6833468258
- PAUSED
68259+
TeamSyncAttributesSelectionState:
68260+
description: 'Specifies which teams or organizations to sync. When
68261+
68262+
provided, synchronization is limited to the specified
68263+
68264+
items and their subtrees.'
68265+
items:
68266+
$ref: '#/components/schemas/TeamSyncSelectionStateItem'
68267+
type: array
6833568268
TeamSyncAttributesSource:
6833668269
description: The external source platform for team synchronization. Only "github"
6833768270
is supported.
@@ -68342,6 +68275,7 @@ components:
6834268275
x-enum-varnames:
6834368276
- GITHUB
6834468277
TeamSyncAttributesSyncMembership:
68278+
default: false
6834568279
description: Whether to sync members from the external team to the Datadog team.
6834668280
Defaults to `false` when not provided.
6834768281
example: true
@@ -68404,6 +68338,78 @@ components:
6840468338
$ref: '#/components/schemas/TeamSyncData'
6840568339
type: array
6840668340
type: object
68341+
TeamSyncSelectionStateExternalId:
68342+
description: The external identifier for a team or organization in the source
68343+
platform.
68344+
properties:
68345+
type:
68346+
$ref: '#/components/schemas/TeamSyncSelectionStateExternalIdType'
68347+
value:
68348+
$ref: '#/components/schemas/TeamSyncSelectionStateExternalIdValue'
68349+
required:
68350+
- type
68351+
- value
68352+
type: object
68353+
TeamSyncSelectionStateExternalIdType:
68354+
description: 'The type of external identifier for the selection state item.
68355+
68356+
For GitHub synchronization, the allowed values are `team` and
68357+
68358+
`organization`.'
68359+
enum:
68360+
- team
68361+
- organization
68362+
example: team
68363+
type: string
68364+
x-enum-varnames:
68365+
- TEAM
68366+
- ORGANIZATION
68367+
TeamSyncSelectionStateExternalIdValue:
68368+
description: 'The external identifier value from the source
68369+
68370+
platform. For GitHub, this is the string
68371+
68372+
representation of a GitHub organization ID or team
68373+
68374+
ID.'
68375+
example: '1'
68376+
type: string
68377+
TeamSyncSelectionStateItem:
68378+
description: Identifies a team or organization hierarchy to include in synchronization.
68379+
properties:
68380+
external_id:
68381+
$ref: '#/components/schemas/TeamSyncSelectionStateExternalId'
68382+
operation:
68383+
$ref: '#/components/schemas/TeamSyncSelectionStateOperation'
68384+
scope:
68385+
$ref: '#/components/schemas/TeamSyncSelectionStateScope'
68386+
required:
68387+
- external_id
68388+
type: object
68389+
TeamSyncSelectionStateOperation:
68390+
description: 'The operation to perform on the selected hierarchy.
68391+
68392+
When set to `include`, synchronization covers the
68393+
68394+
referenced teams or organizations.'
68395+
enum:
68396+
- include
68397+
example: include
68398+
type: string
68399+
x-enum-varnames:
68400+
- INCLUDE
68401+
TeamSyncSelectionStateScope:
68402+
description: 'The scope of the selection. When set to `subtree`,
68403+
68404+
synchronization includes the referenced team or
68405+
68406+
organization and everything nested under it.'
68407+
enum:
68408+
- subtree
68409+
example: subtree
68410+
type: string
68411+
x-enum-varnames:
68412+
- SUBTREE
6840768413
TeamTarget:
6840868414
description: Represents a team target for an escalation policy step, including
6840968415
the team's ID and resource type.
@@ -96466,57 +96472,6 @@ paths:
9646696472
operator: OR
9646796473
permissions:
9646896474
- timeseries_query
96469-
/api/v2/reference-tables/queries/batch-rows:
96470-
post:
96471-
description: Batch query reference table rows by their primary key values. Returns
96472-
only found rows in the included array.
96473-
operationId: BatchRowsQuery
96474-
requestBody:
96475-
content:
96476-
application/json:
96477-
examples:
96478-
happy_path:
96479-
summary: Batch query reference table rows by their primary key values.
96480-
value:
96481-
data:
96482-
attributes:
96483-
row_ids:
96484-
- row_id_1
96485-
- row_id_2
96486-
table_id: 00000000-0000-0000-0000-000000000000
96487-
type: reference-tables-batch-rows-query
96488-
schema:
96489-
$ref: '#/components/schemas/BatchRowsQueryRequest'
96490-
required: true
96491-
responses:
96492-
'200':
96493-
content:
96494-
application/json:
96495-
schema:
96496-
$ref: '#/components/schemas/BatchRowsQueryResponse'
96497-
description: Successfully retrieved rows. Some or all requested rows were
96498-
found. Response includes found rows in the included section.
96499-
'400':
96500-
$ref: '#/components/responses/BadRequestResponse'
96501-
'403':
96502-
$ref: '#/components/responses/ForbiddenResponse'
96503-
'404':
96504-
$ref: '#/components/responses/NotFoundResponse'
96505-
'429':
96506-
$ref: '#/components/responses/TooManyRequestsResponse'
96507-
'500':
96508-
content:
96509-
application/json:
96510-
schema:
96511-
$ref: '#/components/schemas/APIErrorResponse'
96512-
description: Internal Server Error
96513-
security:
96514-
- apiKeyAuth: []
96515-
appKeyAuth: []
96516-
- AuthZ: []
96517-
summary: Batch rows query
96518-
tags:
96519-
- Reference Tables
9652096475
/api/v2/reference-tables/tables:
9652196476
get:
9652296477
description: List all reference tables in this organization.
@@ -108064,12 +108019,6 @@ paths:
108064108019
description: OK
108065108020
'403':
108066108021
$ref: '#/components/responses/ForbiddenResponse'
108067-
'404':
108068-
content:
108069-
application/json:
108070-
schema:
108071-
$ref: '#/components/schemas/APIErrorResponse'
108072-
description: Team sync configurations not found
108073108022
'429':
108074108023
$ref: '#/components/responses/TooManyRequestsResponse'
108075108024
security:
@@ -108085,8 +108034,8 @@ paths:
108085108034
permissions:
108086108035
- teams_read
108087108036
post:
108088-
description: 'This endpoint attempts to link your existing Datadog teams with
108089-
GitHub teams by matching their names.
108037+
description: 'This endpoint configures synchronization between your existing
108038+
Datadog teams and GitHub teams by matching their names.
108090108039

108091108040
It evaluates all current Datadog teams and compares them against teams in
108092108041
the GitHub organization
@@ -108101,6 +108050,13 @@ paths:
108101108050
or created.
108102108051

108103108052

108053+
Optionally, provide `selection_state` to limit synchronization
108054+
108055+
to specific teams or organizations and their subtrees, instead
108056+
108057+
of syncing all teams.
108058+
108059+
108104108060
[A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/),
108105108061

108106108062
and the GitHub App integrated with Datadog must have the `Members Read` permission.
@@ -108122,6 +108078,8 @@ paths:
108122108078
responses:
108123108079
'200':
108124108080
description: OK
108081+
'204':
108082+
description: No Content
108125108083
'403':
108126108084
$ref: '#/components/responses/ForbiddenResponse'
108127108085
'429':

examples/v2/reference-tables/BatchRowsQuery.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/v2/reference-tables/DeleteRows.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v2.api.ReferenceTablesApi;
66
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestArray;
7+
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestData;
78
import com.datadog.api.client.v2.model.TableRowResourceDataType;
8-
import com.datadog.api.client.v2.model.TableRowResourceIdentifier;
99
import java.util.Collections;
1010

1111
public class Example {
@@ -17,7 +17,7 @@ public static void main(String[] args) {
1717
new BatchDeleteRowsRequestArray()
1818
.data(
1919
Collections.singletonList(
20-
new TableRowResourceIdentifier()
20+
new BatchDeleteRowsRequestData()
2121
.id("primary_key_value")
2222
.type(TableRowResourceDataType.ROW)));
2323

0 commit comments

Comments
 (0)