Skip to content

Commit 450eb8e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Support GRPC unary calls in Synthetics (#1253)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 266e7c9 commit 450eb8e

17 files changed

+99
-117
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.4",
7-
"regenerated": "2022-12-08 13:18:32.017696",
8-
"spec_repo_commit": "65b2053a"
7+
"regenerated": "2022-12-09 09:29:11.062861",
8+
"spec_repo_commit": "68c90324"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-08 13:18:32.032677",
13-
"spec_repo_commit": "65b2053a"
12+
"regenerated": "2022-12-09 09:29:11.074112",
13+
"spec_repo_commit": "68c90324"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,26 +3116,6 @@ components:
31163116
required:
31173117
- message
31183118
type: object
3119-
HTTPMethod:
3120-
description: The HTTP method.
3121-
enum:
3122-
- GET
3123-
- POST
3124-
- PATCH
3125-
- PUT
3126-
- DELETE
3127-
- HEAD
3128-
- OPTIONS
3129-
example: GET
3130-
type: string
3131-
x-enum-varnames:
3132-
- GET
3133-
- POST
3134-
- PATCH
3135-
- PUT
3136-
- DELETE
3137-
- HEAD
3138-
- OPTIONS
31393119
HeatMapWidgetDefinition:
31403120
description: The heat map visualization shows metrics aggregated across many
31413121
tags, such as hosts. The more hosts that have a particular value, the darker
@@ -13141,6 +13121,16 @@ components:
1314113121
- TYPE_TEXT
1314213122
- UPLOAD_FILES
1314313123
- WAIT
13124+
SyntheticsTestCallType:
13125+
description: The type of gRPC call to perform.
13126+
enum:
13127+
- healthcheck
13128+
- unary
13129+
example: unary
13130+
type: string
13131+
x-enum-varnames:
13132+
- HEALTHCHECK
13133+
- UNARY
1314413134
SyntheticsTestCiOptions:
1314513135
description: CI/CD options for a Synthetic test.
1314613136
properties:
@@ -13448,6 +13438,8 @@ components:
1344813438
type: string
1344913439
bodyType:
1345013440
$ref: '#/components/schemas/SyntheticsTestRequestBodyType'
13441+
callType:
13442+
$ref: '#/components/schemas/SyntheticsTestCallType'
1345113443
certificate:
1345213444
$ref: '#/components/schemas/SyntheticsTestRequestCertificate'
1345313445
certificateDomains:
@@ -13483,7 +13475,10 @@ components:
1348313475
metadata:
1348413476
$ref: '#/components/schemas/SyntheticsTestMetadata'
1348513477
method:
13486-
$ref: '#/components/schemas/HTTPMethod'
13478+
description: Either the HTTP method/verb to use or a gRPC method available
13479+
on the service set in the `service` field. Required if `subtype` is `HTTP`
13480+
or if `subtype` is `grpc` and `callType` is `unary`.
13481+
type: string
1348713482
noSavingResponseBody:
1348813483
description: Determines whether or not to save the response body.
1348913484
type: boolean
@@ -13511,7 +13506,8 @@ components:
1351113506
the same IP address and TCP port number.'
1351213507
type: string
1351313508
service:
13514-
description: gRPC service on which you want to perform the healthcheck.
13509+
description: The gRPC service on which you want to perform the gRPC call.
13510+
example: Greeter
1351513511
type: string
1351613512
shouldTrackHops:
1351713513
description: Turns on a traceroute probe to discover all gateways along

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,13 +1107,6 @@ http\_log\_item
11071107
:members:
11081108
:show-inheritance:
11091109

1110-
http\_method
1111-
------------
1112-
1113-
.. automodule:: datadog_api_client.v1.model.http_method
1114-
:members:
1115-
:show-inheritance:
1116-
11171110
i\_frame\_widget\_definition
11181111
----------------------------
11191112

@@ -3942,6 +3935,13 @@ synthetics\_step\_type
39423935
:members:
39433936
:show-inheritance:
39443937

3938+
synthetics\_test\_call\_type
3939+
----------------------------
3940+
3941+
.. automodule:: datadog_api_client.v1.model.synthetics_test_call_type
3942+
:members:
3943+
:show-inheritance:
3944+
39453945
synthetics\_test\_ci\_options
39463946
-----------------------------
39473947

examples/v1/synthetics/CreateSyntheticsAPITest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
98
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
109
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
@@ -33,7 +32,7 @@
3332
),
3433
],
3534
request=SyntheticsTestRequest(
36-
method=HTTPMethod.GET,
35+
method="GET",
3736
url="https://example.com",
3837
),
3938
),

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_api_step import SyntheticsAPIStep
98
from datadog_api_client.v1.model.synthetics_api_step_subtype import SyntheticsAPIStepSubtype
109
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
@@ -59,7 +58,7 @@
5958
is_critical=True,
6059
name="request is sent",
6160
request=SyntheticsTestRequest(
62-
method=HTTPMethod.GET,
61+
method="GET",
6362
timeout=10.0,
6463
url="https://datadoghq.com",
6564
),

examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
98
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
109
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
@@ -30,7 +29,7 @@
3029
host="localhost",
3130
port=50051,
3231
service="Hello",
33-
method=HTTPMethod.GET,
32+
method="GET",
3433
message="",
3534
metadata=SyntheticsTestMetadata(),
3635
),

examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
98
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
109
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
@@ -92,7 +91,7 @@
9291
headers=SyntheticsTestHeaders(
9392
unique="examplecreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse",
9493
),
95-
method=HTTPMethod.GET,
94+
method="GET",
9695
timeout=10.0,
9796
url="https://datadoghq.com",
9897
proxy=SyntheticsTestRequestProxy(

examples/v1/synthetics/CreateSyntheticsAPITest_960766374.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
98
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
109
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
@@ -92,7 +91,7 @@
9291
headers=SyntheticsTestHeaders(
9392
unique="examplecreateanapihttpwithoauthroptestreturnsokreturnsthecreatedtestdetailsresponse",
9493
),
95-
method=HTTPMethod.GET,
94+
method="GET",
9695
timeout=10.0,
9796
url="https://datadoghq.com",
9897
proxy=SyntheticsTestRequestProxy(

examples/v1/synthetics/CreateSyntheticsBrowserTest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_browser_test import SyntheticsBrowserTest
98
from datadog_api_client.v1.model.synthetics_browser_test_config import SyntheticsBrowserTestConfig
109
from datadog_api_client.v1.model.synthetics_browser_test_type import SyntheticsBrowserTestType
@@ -29,7 +28,7 @@
2928
),
3029
],
3130
request=SyntheticsTestRequest(
32-
method=HTTPMethod.GET,
31+
method="GET",
3332
url="https://datadoghq.com",
3433
),
3534
set_cookie="name:test",

examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datadog_api_client import ApiClient, Configuration
66
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7-
from datadog_api_client.v1.model.http_method import HTTPMethod
87
from datadog_api_client.v1.model.synthetics_browser_test import SyntheticsBrowserTest
98
from datadog_api_client.v1.model.synthetics_browser_test_config import SyntheticsBrowserTestConfig
109
from datadog_api_client.v1.model.synthetics_browser_test_rum_settings import SyntheticsBrowserTestRumSettings
@@ -32,7 +31,7 @@
3231
),
3332
],
3433
request=SyntheticsTestRequest(
35-
method=HTTPMethod.GET,
34+
method="GET",
3635
url="https://datadoghq.com",
3736
certificate_domains=[
3837
"https://datadoghq.com",

0 commit comments

Comments
 (0)