Skip to content

Commit dc6467a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f202d5e of spec repo
1 parent 541ea5f commit dc6467a

File tree

6 files changed

+23
-42
lines changed

6 files changed

+23
-42
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6968,15 +6968,21 @@ components:
69686968
BatchUpsertRowsRequestDataAttributes:
69696969
description: Attributes containing row data values for row creation or update
69706970
operations.
6971+
example:
6972+
values:
6973+
age: 25
6974+
example_key_value: primary_key_value
6975+
name: row_name
69716976
properties:
69726977
values:
69736978
additionalProperties:
6974-
x-required-field: true
6975-
description: Key-value pairs representing row data, where keys are field
6976-
names from the schema.
6977-
example:
6978-
example_key_value: primary_key_value
6979-
name: row_name
6979+
oneOf:
6980+
- type: string
6981+
- format: int32
6982+
maximum: 2147483647
6983+
type: integer
6984+
description: Key-value pairs representing row data, where keys are schema
6985+
field names and values match the corresponding column types.
69806986
type: object
69816987
required:
69826988
- values
@@ -69084,9 +69090,6 @@ paths:
6908469090
operator: OR
6908569091
permissions:
6908669092
- incident_read
69087-
x-unstable: '**Note**: This endpoint is in Preview.
69088-
69089-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6909069093
post:
6909169094
description: Create an impact for an incident.
6909269095
operationId: CreateIncidentImpact
@@ -69130,9 +69133,6 @@ paths:
6913069133
operator: OR
6913169134
permissions:
6913269135
- incident_write
69133-
x-unstable: '**Note**: This endpoint is in Preview.
69134-
69135-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6913669136
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6913769137
delete:
6913869138
description: Delete an incident impact.
@@ -69163,9 +69163,6 @@ paths:
6916369163
operator: OR
6916469164
permissions:
6916569165
- incident_write
69166-
x-unstable: '**Note**: This endpoint is in Preview.
69167-
69168-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6916969166
/api/v2/incidents/{incident_id}/relationships/integrations:
6917069167
get:
6917169168
description: Get all integration metadata for an incident.

examples/v2/reference-tables/UpsertRows.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
BatchUpsertRowsRequestData(
1515
attributes=BatchUpsertRowsRequestDataAttributes(
1616
values=dict(
17+
age=25,
1718
example_key_value="primary_key_value",
1819
name="row_name",
1920
),

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,12 @@ def __init__(
307307
"v2.update_deployment_gate": False,
308308
"v2.update_deployment_rule": False,
309309
"v2.create_incident": False,
310-
"v2.create_incident_impact": False,
311310
"v2.create_incident_integration": False,
312311
"v2.create_incident_notification_rule": False,
313312
"v2.create_incident_notification_template": False,
314313
"v2.create_incident_todo": False,
315314
"v2.create_incident_type": False,
316315
"v2.delete_incident": False,
317-
"v2.delete_incident_impact": False,
318316
"v2.delete_incident_integration": False,
319317
"v2.delete_incident_notification_rule": False,
320318
"v2.delete_incident_notification_template": False,
@@ -327,7 +325,6 @@ def __init__(
327325
"v2.get_incident_todo": False,
328326
"v2.get_incident_type": False,
329327
"v2.list_incident_attachments": False,
330-
"v2.list_incident_impacts": False,
331328
"v2.list_incident_integrations": False,
332329
"v2.list_incident_notification_rules": False,
333330
"v2.list_incident_notification_templates": False,

src/datadog_api_client/v2/model/batch_upsert_rows_request_data_attributes.py

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Any, Dict
6+
from typing import Dict, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11-
date,
12-
datetime,
13-
none_type,
14-
UUID,
1511
)
1612

1713

@@ -22,16 +18,8 @@ def openapi_types(_):
2218
"values": (
2319
{
2420
str: (
25-
bool,
26-
date,
27-
datetime,
28-
dict,
29-
float,
30-
int,
31-
list,
3221
str,
33-
UUID,
34-
none_type,
22+
int,
3523
)
3624
},
3725
),
@@ -41,12 +29,12 @@ def openapi_types(_):
4129
"values": "values",
4230
}
4331

44-
def __init__(self_, values: Dict[str, Any], **kwargs):
32+
def __init__(self_, values: Dict[str, Union[str, int]], **kwargs):
4533
"""
4634
Attributes containing row data values for row creation or update operations.
4735
48-
:param values: Key-value pairs representing row data, where keys are field names from the schema.
49-
:type values: {str: (bool, date, datetime, dict, float, int, list, str, UUID, none_type,)}
36+
:param values: Key-value pairs representing row data, where keys are schema field names and values match the corresponding column types.
37+
:type values: {str: (str, int,)}
5038
"""
5139
super().__init__(kwargs)
5240

tests/v2/features/incidents.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,14 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given operation "ListIncidentImpacts" enabled
810-
And new "ListIncidentImpacts" request
809+
Given new "ListIncidentImpacts" request
811810
And request contains "incident_id" parameter from "REPLACE.ME"
812811
When the request is sent
813812
Then the response status is 400 Bad Request
814813

815814
@generated @skip @team:DataDog/incident-app
816815
Scenario: List an incident's impacts returns "Not Found" response
817-
Given operation "ListIncidentImpacts" enabled
818-
And new "ListIncidentImpacts" request
816+
Given new "ListIncidentImpacts" request
819817
And request contains "incident_id" parameter from "REPLACE.ME"
820818
When the request is sent
821819
Then the response status is 404 Not Found

tests/v2/features/reference_tables.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,22 @@ Feature: Reference Tables
148148
Scenario: Upsert rows returns "Bad Request" response
149149
Given new "UpsertRows" request
150150
And request contains "id" parameter from "REPLACE.ME"
151-
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
151+
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
152152
When the request is sent
153153
Then the response status is 400 Bad Request
154154

155155
@generated @skip @team:DataDog/redapl-experiences
156156
Scenario: Upsert rows returns "Not Found" response
157157
Given new "UpsertRows" request
158158
And request contains "id" parameter from "REPLACE.ME"
159-
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
159+
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
160160
When the request is sent
161161
Then the response status is 404 Not Found
162162

163163
@generated @skip @team:DataDog/redapl-experiences
164164
Scenario: Upsert rows returns "Rows created or updated successfully" response
165165
Given new "UpsertRows" request
166166
And request contains "id" parameter from "REPLACE.ME"
167-
And body with value {"data": [{"attributes": {"values": {"example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
167+
And body with value {"data": [{"attributes": {"values": {"age": 25, "example_key_value": "primary_key_value", "name": "row_name"}}, "id": "primary_key_value", "type": "row"}]}
168168
When the request is sent
169169
Then the response status is 200 Rows created or updated successfully

0 commit comments

Comments
 (0)