Skip to content

Commit fb34ef7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a87e717d of spec repo (#948)
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 d3cc20a commit fb34ef7

17 files changed

+656
-4
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-11 09:38:33.062000",
8-
"spec_repo_commit": "d02e4e05"
7+
"regenerated": "2022-04-13 07:37:36.635647",
8+
"spec_repo_commit": "a87e717d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-04-11 09:38:33.074708",
13-
"spec_repo_commit": "d02e4e05"
12+
"regenerated": "2022-04-13 07:37:36.647488",
13+
"spec_repo_commit": "a87e717d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,15 @@ components:
15941594
required:
15951595
- name
15961596
type: object
1597+
IdPMetadataFormData:
1598+
description: The form data submitted to upload IdP metadata
1599+
properties:
1600+
idp_file:
1601+
description: The IdP metadata XML file
1602+
format: binary
1603+
type: string
1604+
x-mimetype: application/xml
1605+
type: object
15971606
IncidentCreateAttributes:
15981607
description: The incident's attributes for a create request.
15991608
properties:
@@ -10534,6 +10543,43 @@ paths:
1053410543
resultsPath: data
1053510544
x-undo:
1053610545
type: safe
10546+
/api/v2/saml_configurations/idp_metadata:
10547+
post:
10548+
description: 'Endpoint for uploading IdP metadata for SAML setup.
10549+
10550+
10551+
Use this endpoint to upload or replace IdP metadata for SAML login configuration.'
10552+
operationId: UploadIdPMetadata
10553+
requestBody:
10554+
content:
10555+
multipart/form-data:
10556+
schema:
10557+
$ref: '#/components/schemas/IdPMetadataFormData'
10558+
required: true
10559+
responses:
10560+
'200':
10561+
description: OK
10562+
'400':
10563+
content:
10564+
application/json:
10565+
schema:
10566+
$ref: '#/components/schemas/APIErrorResponse'
10567+
description: Bad Request
10568+
'403':
10569+
content:
10570+
application/json:
10571+
schema:
10572+
$ref: '#/components/schemas/APIErrorResponse'
10573+
description: Forbidden
10574+
'429':
10575+
$ref: '#/components/responses/TooManyRequestsResponse'
10576+
summary: Upload IdP metadata
10577+
tags:
10578+
- Organizations
10579+
x-codegen-request-body-name: body
10580+
x-menu-order: 1
10581+
x-undo:
10582+
type: idempotent
1053710583
/api/v2/security/cloud_workload/policy/download:
1053810584
get:
1053910585
description: 'The download endpoint generates a Cloud Workload Security policy
@@ -12424,6 +12470,12 @@ tags:
1242412470
that set number.\n\nThe Post, Patch, and Delete `manage_tags` API methods can
1242512471
only be performed by\na user who has the `Manage Tags for Metrics` permission."
1242612472
name: Metrics
12473+
- description: Create, edit, and manage your organizations. Read more about [multi-org
12474+
accounts](https://docs.datadoghq.com/account_management/multi_organization).
12475+
externalDocs:
12476+
description: Find out more at
12477+
url: https://docs.datadoghq.com/account_management/multi_organization
12478+
name: Organizations
1242712479
- description: The processes API allows you to query processes data for your organization.
1242812480
name: Processes
1242912481
- description: Search or aggregate your RUM events over HTTP.

docs/datadog_api_client.v2.api.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ metrics\_api
9797
:undoc-members:
9898
:show-inheritance:
9999

100+
organizations\_api
101+
------------------
102+
103+
.. automodule:: datadog_api_client.v2.api.organizations_api
104+
:members:
105+
:undoc-members:
106+
:show-inheritance:
107+
100108
processes\_api
101109
--------------
102110

docs/datadog_api_client.v2.model.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,14 @@ http\_log\_item
705705
:undoc-members:
706706
:show-inheritance:
707707

708+
idp\_metadata\_form\_data
709+
-------------------------
710+
711+
.. automodule:: datadog_api_client.v2.model.idp_metadata_form_data
712+
:members:
713+
:undoc-members:
714+
:show-inheritance:
715+
708716
incident\_create\_attributes
709717
----------------------------
710718

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Upload IdP metadata returns "OK" response
3+
"""
4+
5+
from datadog_api_client.v2 import ApiClient, Configuration
6+
from datadog_api_client.v2.api.organizations_api import OrganizationsApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = OrganizationsApi(api_client)
11+
api_instance.upload_idp_metadata(
12+
idp_file=open("fixtures/organizations/saml_configurations/valid_idp_metadata.xml", "rb")
13+
)

src/datadog_api_client/v2/api/organizations_api.py

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

src/datadog_api_client/v2/apis/__init__.py

Lines changed: 1 addition & 0 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/idp_metadata_form_data.py

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

src/datadog_api_client/v2/models/__init__.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-04-12T17:45:26.223Z

0 commit comments

Comments
 (0)