Skip to content

Commit 869d45f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 5ed02dad of spec repo (#941)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 8547dfc commit 869d45f

19 files changed

+299
-40
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-04-06 13:53:30.372196",
8-
"spec_repo_commit": "0c154010"
7+
"regenerated": "2022-04-07 18:07:23.251818",
8+
"spec_repo_commit": "5ed02dad"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-04-06 13:53:30.384412",
13-
"spec_repo_commit": "0c154010"
12+
"regenerated": "2022-04-07 18:07:23.263542",
13+
"spec_repo_commit": "5ed02dad"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11257,12 +11257,7 @@ components:
1125711257
description: Attributes of the global variable.
1125811258
properties:
1125911259
restricted_roles:
11260-
description: List of role identifiers that can be pulled from the Roles
11261-
API.
11262-
items:
11263-
description: UUID for a role.
11264-
type: string
11265-
type: array
11260+
$ref: '#/components/schemas/SyntheticsRestrictedRoles'
1126611261
type: object
1126711262
SyntheticsGlobalVariableParseTestOptions:
1126811263
description: Parser options to use for retrieving a Synthetics global variable
@@ -11407,6 +11402,8 @@ components:
1140711402
description: Unique identifier of the private location.
1140811403
readOnly: true
1140911404
type: string
11405+
metadata:
11406+
$ref: '#/components/schemas/SyntheticsPrivateLocationMetadata'
1141011407
name:
1141111408
description: Name of the private location.
1141211409
example: New private location
@@ -11450,6 +11447,12 @@ components:
1145011447
description: Public key for result encryption.
1145111448
type: string
1145211449
type: object
11450+
SyntheticsPrivateLocationMetadata:
11451+
description: Object containing metadata about the private location.
11452+
properties:
11453+
restricted_roles:
11454+
$ref: '#/components/schemas/SyntheticsRestrictedRoles'
11455+
type: object
1145311456
SyntheticsPrivateLocationSecrets:
1145411457
description: Secrets for the private location. Only present in the response
1145511458
when creating the private location.
@@ -11480,6 +11483,16 @@ components:
1148011483
readOnly: true
1148111484
type: string
1148211485
type: object
11486+
SyntheticsRestrictedRoles:
11487+
description: A list of role identifiers that can be pulled from the Roles API,
11488+
for restricting read and write access.
11489+
example:
11490+
- xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
11491+
items:
11492+
description: UUID for a role.
11493+
example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
11494+
type: string
11495+
type: array
1148311496
SyntheticsSSLCertificate:
1148411497
description: Object describing the SSL certificate used for a Synthetic test.
1148511498
properties:
@@ -11933,6 +11946,8 @@ components:
1193311946
noScreenshot:
1193411947
description: Prevents saving screenshots of the steps.
1193511948
type: boolean
11949+
restricted_roles:
11950+
$ref: '#/components/schemas/SyntheticsRestrictedRoles'
1193611951
retry:
1193711952
$ref: '#/components/schemas/SyntheticsTestOptionsRetry'
1193811953
tick_every:
@@ -24005,7 +24020,7 @@ paths:
2400524020
operationId: DeletePrivateLocation
2400624021
parameters:
2400724022
- name: location_id
24008-
source: private_location
24023+
source: private_location.id
2400924024
type: unsafe
2401024025
/api/v1/synthetics/private-locations/{location_id}:
2401124026
delete:

docs/datadog_api_client.v1.model.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3977,6 +3977,14 @@ synthetics\_private\_location\_creation\_response\_result\_encryption
39773977
:undoc-members:
39783978
:show-inheritance:
39793979

3980+
synthetics\_private\_location\_metadata
3981+
---------------------------------------
3982+
3983+
.. automodule:: datadog_api_client.v1.model.synthetics_private_location_metadata
3984+
:members:
3985+
:undoc-members:
3986+
:show-inheritance:
3987+
39803988
synthetics\_private\_location\_secrets
39813989
--------------------------------------
39823990

@@ -4001,6 +4009,14 @@ synthetics\_private\_location\_secrets\_config\_decryption
40014009
:undoc-members:
40024010
:show-inheritance:
40034011

4012+
synthetics\_restricted\_roles
4013+
-----------------------------
4014+
4015+
.. automodule:: datadog_api_client.v1.model.synthetics_restricted_roles
4016+
:members:
4017+
:undoc-members:
4018+
:show-inheritance:
4019+
40044020
synthetics\_ssl\_certificate
40054021
----------------------------
40064022

examples/v1/synthetics/CreateGlobalVariable.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
)
1515
from datadog_api_client.v1.model.synthetics_global_variable_parser_type import SyntheticsGlobalVariableParserType
1616
from datadog_api_client.v1.model.synthetics_global_variable_value import SyntheticsGlobalVariableValue
17+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
1718
from datadog_api_client.v1.model.synthetics_variable_parser import SyntheticsVariableParser
1819

1920
body = SyntheticsGlobalVariable(
20-
attributes=SyntheticsGlobalVariableAttributes(restricted_roles=[]),
21+
attributes=SyntheticsGlobalVariableAttributes(
22+
restricted_roles=SyntheticsRestrictedRoles(["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"])
23+
),
2124
description="Example description",
2225
name="MY_VARIABLE",
2326
parse_test_options=SyntheticsGlobalVariableParseTestOptions(

examples/v1/synthetics/CreatePrivateLocation.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@
22
Create a private location returns "OK" response
33
"""
44

5+
from os import environ
56
from datadog_api_client.v1 import ApiClient, Configuration
67
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
78
from datadog_api_client.v1.model.synthetics_private_location import SyntheticsPrivateLocation
9+
from datadog_api_client.v1.model.synthetics_private_location_metadata import SyntheticsPrivateLocationMetadata
10+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
11+
12+
# there is a valid "role" in the system
13+
ROLE_DATA_ID = environ["ROLE_DATA_ID"]
814

915
body = SyntheticsPrivateLocation(
10-
description="Description of private location", name="New private location", tags=["team:front"]
16+
description="Test Example-Create_a_private_location_returns_OK_response description",
17+
metadata=SyntheticsPrivateLocationMetadata(restricted_roles=SyntheticsRestrictedRoles([ROLE_DATA_ID])),
18+
name="Example-Create_a_private_location_returns_OK_response",
19+
tags=["test:examplecreateaprivatelocationreturnsokresponse"],
1120
)
1221

1322
configuration = Configuration()

examples/v1/synthetics/CreateSyntheticsAPITest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget
1313
from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType
1414
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
15+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
1516
from datadog_api_client.v1.model.synthetics_test_details_sub_type import SyntheticsTestDetailsSubType
1617
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
1718
from datadog_api_client.v1.model.synthetics_test_options_monitor_options import SyntheticsTestOptionsMonitorOptions
@@ -36,6 +37,7 @@
3637
options=SyntheticsTestOptions(
3738
device_ids=[SyntheticsDeviceID("laptop_large")],
3839
monitor_options=SyntheticsTestOptionsMonitorOptions(),
40+
restricted_roles=SyntheticsRestrictedRoles(["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]),
3941
retry=SyntheticsTestOptionsRetry(),
4042
),
4143
status=SyntheticsTestPauseStatus("live"),

examples/v1/synthetics/EditGlobalVariable.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
)
1515
from datadog_api_client.v1.model.synthetics_global_variable_parser_type import SyntheticsGlobalVariableParserType
1616
from datadog_api_client.v1.model.synthetics_global_variable_value import SyntheticsGlobalVariableValue
17+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
1718
from datadog_api_client.v1.model.synthetics_variable_parser import SyntheticsVariableParser
1819

1920
body = SyntheticsGlobalVariable(
20-
attributes=SyntheticsGlobalVariableAttributes(restricted_roles=[]),
21+
attributes=SyntheticsGlobalVariableAttributes(
22+
restricted_roles=SyntheticsRestrictedRoles(["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"])
23+
),
2124
description="Example description",
2225
name="MY_VARIABLE",
2326
parse_test_options=SyntheticsGlobalVariableParseTestOptions(

examples/v1/synthetics/UpdateBrowserTest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable
1616
from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType
1717
from datadog_api_client.v1.model.synthetics_device_id import SyntheticsDeviceID
18+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
1819
from datadog_api_client.v1.model.synthetics_step import SyntheticsStep
1920
from datadog_api_client.v1.model.synthetics_step_type import SyntheticsStepType
2021
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
@@ -49,6 +50,7 @@
4950
options=SyntheticsTestOptions(
5051
device_ids=[SyntheticsDeviceID("laptop_large")],
5152
monitor_options=SyntheticsTestOptionsMonitorOptions(),
53+
restricted_roles=SyntheticsRestrictedRoles(["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]),
5254
retry=SyntheticsTestOptionsRetry(),
5355
),
5456
status=SyntheticsTestPauseStatus("live"),

examples/v1/synthetics/UpdatePrivateLocation.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
from datadog_api_client.v1 import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
77
from datadog_api_client.v1.model.synthetics_private_location import SyntheticsPrivateLocation
8+
from datadog_api_client.v1.model.synthetics_private_location_metadata import SyntheticsPrivateLocationMetadata
9+
from datadog_api_client.v1.model.synthetics_restricted_roles import SyntheticsRestrictedRoles
810

911
body = SyntheticsPrivateLocation(
10-
description="Description of private location", name="New private location", tags=["team:front"]
12+
description="Description of private location",
13+
metadata=SyntheticsPrivateLocationMetadata(
14+
restricted_roles=SyntheticsRestrictedRoles(["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"])
15+
),
16+
name="New private location",
17+
tags=["team:front"],
1118
)
1219

1320
configuration = Configuration()

src/datadog_api_client/v1/model/synthetics_global_variable_attributes.py

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

0 commit comments

Comments
 (0)