Skip to content

Commit 990f89b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0de9bce5 of spec repo
1 parent 8d9228b commit 990f89b

18 files changed

+97
-49
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.2",
7-
"regenerated": "2022-03-16 14:22:15.397892",
8-
"spec_repo_commit": "a7afd4c8"
7+
"regenerated": "2022-03-16 16:29:50.979582",
8+
"spec_repo_commit": "0de9bce5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-03-16 14:22:15.412827",
13-
"spec_repo_commit": "a7afd4c8"
12+
"regenerated": "2022-03-16 16:29:50.994414",
13+
"spec_repo_commit": "0de9bce5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5619,12 +5619,8 @@ components:
56195619
example: avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100
56205620
type: string
56215621
restricted_roles:
5622-
description: A list of unique role identifiers to define which roles are
5623-
allowed to edit the monitor. Editing a monitor includes any updates to
5624-
the monitor configuration, monitor deletion, and muting of the monitor
5625-
for any amount of time. Roles unique identifiers can be pulled from the
5626-
[Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) in
5627-
the `data.id` field.
5622+
description: A list of role identifiers that can be pulled from the Roles
5623+
API. Cannot be used with `locked` option.
56285624
items:
56295625
description: A role UUID.
56305626
type: string
@@ -5949,9 +5945,8 @@ components:
59495945
- If `False`, `[Triggered] Monitor Title`'
59505946
type: boolean
59515947
locked:
5952-
deprecated: true
59535948
description: Whether or not the monitor is locked (only editable by creator
5954-
and admins). Use `restricted_roles` instead.
5949+
and admins).
59555950
type: boolean
59565951
min_failure_duration:
59575952
default: 0
@@ -6558,12 +6553,8 @@ components:
65586553
description: The monitor query.
65596554
type: string
65606555
restricted_roles:
6561-
description: A list of unique role identifiers to define which roles are
6562-
allowed to edit the monitor. Editing a monitor includes any updates to
6563-
the monitor configuration, monitor deletion, and muting of the monitor
6564-
for any amount of time. Roles unique identifiers can be pulled from the
6565-
[Roles API](https://docs.datadoghq.com/api/latest/roles/#list-roles) in
6566-
the `data.id` field.
6556+
description: A list of role identifiers that can be pulled from the Roles
6557+
API. Cannot be used with `locked` option.
65676558
items:
65686559
description: A role UUID.
65696560
type: string

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ components:
255255
format: int64
256256
type: integer
257257
RoleID:
258-
description: The unique identifier of the role.
258+
description: The ID of the role.
259259
in: path
260260
name: role_id
261261
required: true
@@ -4851,7 +4851,7 @@ components:
48514851
description: Relationship to role object.
48524852
properties:
48534853
id:
4854-
description: The unique identifier of the role.
4854+
description: ID of the role.
48554855
example: 3653d3c6-0c75-11ea-ad28-fb5701eabc7d
48564856
type: string
48574857
type:
@@ -4861,7 +4861,7 @@ components:
48614861
description: Relationship to roles.
48624862
properties:
48634863
data:
4864-
description: An array containing type and the unique identifier of a role.
4864+
description: An array containing type and ID of a role.
48654865
items:
48664866
$ref: '#/components/schemas/RelationshipToRoleData'
48674867
type: array
@@ -4934,7 +4934,7 @@ components:
49344934
attributes:
49354935
$ref: '#/components/schemas/RoleAttributes'
49364936
id:
4937-
description: The unique identifier of the role.
4937+
description: ID of the role.
49384938
type: string
49394939
relationships:
49404940
$ref: '#/components/schemas/RoleResponseRelationships'
@@ -4957,8 +4957,7 @@ components:
49574957
readOnly: true
49584958
type: string
49594959
name:
4960-
description: The name of the role. The name is neither unique nor a stable
4961-
identifier of the role.
4960+
description: Name of the role.
49624961
type: string
49634962
user_count:
49644963
description: Number of users with that role.
@@ -5048,7 +5047,7 @@ components:
50485047
attributes:
50495048
$ref: '#/components/schemas/RoleCreateAttributes'
50505049
id:
5051-
description: The unique identifier of the role.
5050+
description: ID of the role.
50525051
type: string
50535052
relationships:
50545053
$ref: '#/components/schemas/RoleResponseRelationships'
@@ -5100,7 +5099,7 @@ components:
51005099
attributes:
51015100
$ref: '#/components/schemas/RoleUpdateAttributes'
51025101
id:
5103-
description: The unique identifier of the role.
5102+
description: ID of the role.
51045103
example: 00000000-0000-1111-0000-000000000000
51055104
type: string
51065105
type:
@@ -5130,7 +5129,7 @@ components:
51305129
attributes:
51315130
$ref: '#/components/schemas/RoleUpdateAttributes'
51325131
id:
5133-
description: The unique identifier of the role.
5132+
description: ID of the role.
51345133
type: string
51355134
relationships:
51365135
$ref: '#/components/schemas/RoleResponseRelationships'
@@ -9438,7 +9437,7 @@ paths:
94389437
type: safe
94399438
/api/v2/roles:
94409439
get:
9441-
description: Returns all roles, including their names and their unique identifiers.
9440+
description: Returns all roles, including their names and IDs.
94429441
operationId: ListRoles
94439442
parameters:
94449443
- $ref: '#/components/parameters/PageSize'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""
2+
Search test logs returns "OK" response
3+
"""
4+
5+
from datetime import datetime
6+
from dateutil.relativedelta import relativedelta
7+
from datadog_api_client.v1 import ApiClient, Configuration
8+
from datadog_api_client.v1.api.logs_api import LogsApi
9+
from datadog_api_client.v1.model.logs_list_request import LogsListRequest
10+
from datadog_api_client.v1.model.logs_list_request_time import LogsListRequestTime
11+
from datadog_api_client.v1.model.logs_sort import LogsSort
12+
13+
body = LogsListRequest(
14+
index="main",
15+
query="service:web*",
16+
sort=LogsSort("asc"),
17+
time=LogsListRequestTime(
18+
_from=(datetime.now() + relativedelta(hours=-1)).timestamp(),
19+
timezone="Europe/Paris",
20+
to=datetime.now().timestamp(),
21+
),
22+
)
23+
24+
configuration = Configuration()
25+
with ApiClient(configuration) as api_client:
26+
api_instance = LogsApi(api_client)
27+
response = api_instance.list_logs(body=body)
28+
29+
print(response)

src/datadog_api_client/v1/model/monitor.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/monitor_options.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/monitor_update_request.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v2/api/roles_api.py

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v2/model/relationship_to_role_data.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v2/model/relationship_to_roles.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)