Skip to content

Commit 212454e

Browse files
api-clients-generation-pipeline[bot]jirikuncarci.datadog-api-spec
authored
Add x-given extension (#192)
* Regenerate client from commit 36e65d3 of spec repo Co-authored-by: Jiri Kuncar <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c0009a8 commit 212454e

File tree

131 files changed

+1382
-1576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+1382
-1576
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.4.0",
7-
"regenerated": "2020-12-16 12:20:23.743894",
8-
"spec_repo_commit": "4796132"
7+
"regenerated": "2020-12-16 15:39:29.745801",
8+
"spec_repo_commit": "36e65d3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.0",
12-
"regenerated": "2020-12-16 12:20:34.655262",
13-
"spec_repo_commit": "4796132"
12+
"regenerated": "2020-12-16 15:39:42.092651",
13+
"spec_repo_commit": "36e65d3"
1414
}
1515
}
1616
}

.azure-pipelines/all.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
- script: |
5050
python -m pip install --upgrade pip setuptools
5151
python -m pip install cython
52-
python -m pip install -e .[tests]
53-
python -m pip install --pre --find-links=https://s3.amazonaws.com/pypi.datadoghq.com/trace-dev/index.html ddtrace
52+
python -m pip install -e .[apm,tests]
5453
displayName: Install package
5554
- script: ./run-tests.sh
5655
displayName: Run integration tests

Dockerfile.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ ENTRYPOINT [/datadog-api-client-python/run-tests.sh]
33

44
COPY . /datadog-api-client-python
55
WORKDIR /datadog-api-client-python/
6-
RUN pip install -U --pre --find-links=https://s3.amazonaws.com/pypi.datadoghq.com/trace-dev/index.html ddtrace && \
7-
pip install -e .[tests]
6+
RUN pip install -e .[tests]

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ setup_requires =
4949

5050
[options.extras_require]
5151
apm =
52-
ddtrace>=0.40.0
52+
ddtrace>=0.45.0
5353
tests =
5454
glom
5555
flexmock>=0.10.4
@@ -60,7 +60,7 @@ tests =
6060
pytest-black
6161
pytest-cov
6262
pytest-randomly
63-
pytest-vcr
63+
pytest-recording
6464
python-dateutil
6565

6666
[options.packages.find]

src/datadog_api_client/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3818,6 +3818,14 @@ paths:
38183818
tags:
38193819
- Incidents
38203820
x-codegen-request-body-name: body
3821+
x-given:
3822+
incident:
3823+
parameters:
3824+
- name: body
3825+
value: "{\n \"data\": {\n \"attributes\": {\n \"title\": \"{{\
3826+
\ unique }}\",\n \"customer_impacted\": false\n },\n \"\
3827+
type\": \"incidents\"\n }\n}"
3828+
step: there is a valid "incident" in the system
38213829
x-undo:
38223830
operationId: DeleteIncident
38233831
parameters:
@@ -4494,6 +4502,10 @@ paths:
44944502
summary: List permissions
44954503
tags:
44964504
- Roles
4505+
x-given:
4506+
permission:
4507+
source: data[0]
4508+
step: there is a valid "permission" in the system
44974509
x-undo:
44984510
type: safe
44994511
/api/v2/processes:
@@ -4657,6 +4669,13 @@ paths:
46574669
tags:
46584670
- Roles
46594671
x-codegen-request-body-name: body
4672+
x-given:
4673+
role:
4674+
parameters:
4675+
- name: body
4676+
value: "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{\
4677+
\ unique }}\"\n },\n \"type\": \"roles\"\n }\n}"
4678+
step: there is a valid "role" in the system
46604679
x-undo:
46614680
operationId: DeleteRole
46624681
parameters:
@@ -4882,6 +4901,15 @@ paths:
48824901
tags:
48834902
- Roles
48844903
x-codegen-request-body-name: body
4904+
x-given:
4905+
permission_role:
4906+
parameters:
4907+
- name: role_id
4908+
source: role.data.id
4909+
- name: body
4910+
value: "{\n \"data\": {\n \"id\": \"{{ permission.id }}\",\n \"\
4911+
type\": \"{{ permission.type }}\"\n }\n}"
4912+
step: the "permission" is granted to the "role"
48854913
x-undo:
48864914
type: safe
48874915
/api/v2/roles/{role_id}/users:
@@ -5016,6 +5044,15 @@ paths:
50165044
tags:
50175045
- Roles
50185046
x-codegen-request-body-name: body
5047+
x-given:
5048+
permission_role:
5049+
parameters:
5050+
- name: role_id
5051+
source: role.data.id
5052+
- name: body
5053+
value: "{\n \"data\": {\n \"id\": \"{{ user.data.id }}\",\n \"\
5054+
type\": \"{{ user.data.type }}\"\n }\n}"
5055+
step: the "user" has the "role"
50195056
x-undo:
50205057
type: safe
50215058
/api/v2/security_monitoring/rules:
@@ -5317,6 +5354,13 @@ paths:
53175354
tags:
53185355
- Incident Services
53195356
x-codegen-request-body-name: body
5357+
x-given:
5358+
service:
5359+
parameters:
5360+
- name: body
5361+
value: "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{\
5362+
\ unique }}\"\n },\n \"type\": \"services\"\n }\n}"
5363+
step: there is a valid "service" in the system
53205364
x-undo:
53215365
operationId: DeleteIncidentService
53225366
parameters:
@@ -5483,6 +5527,13 @@ paths:
54835527
tags:
54845528
- Incident Teams
54855529
x-codegen-request-body-name: body
5530+
x-given:
5531+
team:
5532+
parameters:
5533+
- name: body
5534+
value: "{\n \"data\": {\n \"attributes\": {\n \"name\": \"{{\
5535+
\ unique }}\"\n },\n \"type\": \"teams\"\n }\n}"
5536+
step: there is a valid "team" in the system
54865537
x-undo:
54875538
operationId: DeleteIncidentTeam
54885539
parameters:
@@ -5619,6 +5670,16 @@ paths:
56195670
tags:
56205671
- Users
56215672
x-codegen-request-body-name: body
5673+
x-given:
5674+
user_invitation:
5675+
parameters:
5676+
- name: body
5677+
value: "{\n \"data\": [\n {\n \"relationships\": {\"user\": {\"\
5678+
data\": {\n \"id\": \"{{ user.data.id }}\",\n \"type\"\
5679+
: \"{{ user.data.type }}\"\n }}},\n \"type\": \"user_invitations\"\
5680+
\n }\n ]\n}"
5681+
source: data[0]
5682+
step: the "user" has a "user_invitation"
56225683
x-undo:
56235684
type: safe
56245685
/api/v2/user_invitations/{user_invitation_uuid}:
@@ -5759,6 +5820,14 @@ paths:
57595820
tags:
57605821
- Users
57615822
x-codegen-request-body-name: body
5823+
x-given:
5824+
user:
5825+
parameters:
5826+
- name: body
5827+
value: "{\n \"data\": {\n \"attributes\": {\n \"email\": \"{{\
5828+
\ unique }}@datadoghq.com\"\n },\n \"type\": \"users\"\n }\n\
5829+
}"
5830+
step: there is a valid "user" in the system
57625831
x-undo:
57635832
operationId: DisableUser
57645833
parameters:

0 commit comments

Comments
 (0)