Skip to content

Commit 9803c95

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bd211eb of spec repo
1 parent 52579f2 commit 9803c95

File tree

42 files changed

+2341
-0
lines changed

Some content is hidden

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

42 files changed

+2341
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 408 additions & 0 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ datadog\_api\_client.v2.api.gcp\_integration\_api module
284284
:members:
285285
:show-inheritance:
286286

287+
datadog\_api\_client.v2.api.google\_chat\_integration\_api module
288+
-----------------------------------------------------------------
289+
290+
.. automodule:: datadog_api_client.v2.api.google_chat_integration_api
291+
:members:
292+
:show-inheritance:
293+
287294
datadog\_api\_client.v2.api.high\_availability\_multi\_region\_api module
288295
-------------------------------------------------------------------------
289296

docs/datadog_api_client.v2.model.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11645,6 +11645,111 @@ datadog\_api\_client.v2.model.global\_variable\_type module
1164511645
:members:
1164611646
:show-inheritance:
1164711647

11648+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response module
11649+
------------------------------------------------------------------------------
11650+
11651+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response
11652+
:members:
11653+
:show-inheritance:
11654+
11655+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_attributes module
11656+
------------------------------------------------------------------------------------------
11657+
11658+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_attributes
11659+
:members:
11660+
:show-inheritance:
11661+
11662+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_data module
11663+
------------------------------------------------------------------------------------
11664+
11665+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_data
11666+
:members:
11667+
:show-inheritance:
11668+
11669+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_type module
11670+
--------------------------------------------------------------------------
11671+
11672+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_type
11673+
:members:
11674+
:show-inheritance:
11675+
11676+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request module
11677+
----------------------------------------------------------------------------------------
11678+
11679+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request
11680+
:members:
11681+
:show-inheritance:
11682+
11683+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_attributes module
11684+
----------------------------------------------------------------------------------------------------
11685+
11686+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_attributes
11687+
:members:
11688+
:show-inheritance:
11689+
11690+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_data module
11691+
----------------------------------------------------------------------------------------------
11692+
11693+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_data
11694+
:members:
11695+
:show-inheritance:
11696+
11697+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response module
11698+
---------------------------------------------------------------------------------
11699+
11700+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response
11701+
:members:
11702+
:show-inheritance:
11703+
11704+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_attributes module
11705+
---------------------------------------------------------------------------------------------
11706+
11707+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_attributes
11708+
:members:
11709+
:show-inheritance:
11710+
11711+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_data module
11712+
---------------------------------------------------------------------------------------
11713+
11714+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_data
11715+
:members:
11716+
:show-inheritance:
11717+
11718+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_type module
11719+
-----------------------------------------------------------------------------
11720+
11721+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_type
11722+
:members:
11723+
:show-inheritance:
11724+
11725+
datadog\_api\_client.v2.model.google\_chat\_organization\_handles\_response module
11726+
----------------------------------------------------------------------------------
11727+
11728+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handles_response
11729+
:members:
11730+
:show-inheritance:
11731+
11732+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request module
11733+
----------------------------------------------------------------------------------------
11734+
11735+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request
11736+
:members:
11737+
:show-inheritance:
11738+
11739+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_attributes module
11740+
----------------------------------------------------------------------------------------------------
11741+
11742+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_attributes
11743+
:members:
11744+
:show-inheritance:
11745+
11746+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_data module
11747+
----------------------------------------------------------------------------------------------
11748+
11749+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_data
11750+
:members:
11751+
:show-inheritance:
11752+
1164811753
datadog\_api\_client.v2.model.google\_meet\_configuration\_reference module
1164911754
---------------------------------------------------------------------------
1165011755

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""
2+
Create organization handle returns "CREATED" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
7+
from datadog_api_client.v2.model.google_chat_create_organization_handle_request import (
8+
GoogleChatCreateOrganizationHandleRequest,
9+
)
10+
from datadog_api_client.v2.model.google_chat_create_organization_handle_request_attributes import (
11+
GoogleChatCreateOrganizationHandleRequestAttributes,
12+
)
13+
from datadog_api_client.v2.model.google_chat_create_organization_handle_request_data import (
14+
GoogleChatCreateOrganizationHandleRequestData,
15+
)
16+
from datadog_api_client.v2.model.google_chat_organization_handle_type import GoogleChatOrganizationHandleType
17+
18+
body = GoogleChatCreateOrganizationHandleRequest(
19+
data=GoogleChatCreateOrganizationHandleRequestData(
20+
attributes=GoogleChatCreateOrganizationHandleRequestAttributes(
21+
name="Example-Google-Chat-Integration",
22+
space_resource_name="spaces/AAQA-zFIks8",
23+
),
24+
),
25+
type=GoogleChatOrganizationHandleType.GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE,
26+
)
27+
28+
configuration = Configuration()
29+
with ApiClient(configuration) as api_client:
30+
api_instance = GoogleChatIntegrationApi(api_client)
31+
response = api_instance.create_organization_handle(
32+
organization_binding_id="e54cb570-c674-529c-769d-84b312288ed7", body=body
33+
)
34+
35+
print(response)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Delete organization handle returns "OK" response
3+
"""
4+
5+
from os import environ
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
8+
9+
# there is a valid "organization_handle" in the system
10+
ORGANIZATION_HANDLE_DATA_ID = environ["ORGANIZATION_HANDLE_DATA_ID"]
11+
12+
configuration = Configuration()
13+
with ApiClient(configuration) as api_client:
14+
api_instance = GoogleChatIntegrationApi(api_client)
15+
api_instance.delete_organization_handle(
16+
organization_binding_id="e54cb570-c674-529c-769d-84b312288ed7",
17+
handle_id=ORGANIZATION_HANDLE_DATA_ID,
18+
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Get organization handle returns "OK" response
3+
"""
4+
5+
from os import environ
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
8+
9+
# there is a valid "organization_handle" in the system
10+
ORGANIZATION_HANDLE_DATA_ID = environ["ORGANIZATION_HANDLE_DATA_ID"]
11+
12+
configuration = Configuration()
13+
with ApiClient(configuration) as api_client:
14+
api_instance = GoogleChatIntegrationApi(api_client)
15+
response = api_instance.get_organization_handle(
16+
organization_binding_id="e54cb570-c674-529c-769d-84b312288ed7",
17+
handle_id=ORGANIZATION_HANDLE_DATA_ID,
18+
)
19+
20+
print(response)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
Get space information by display name returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = GoogleChatIntegrationApi(api_client)
11+
response = api_instance.get_space_by_display_name(
12+
domain_name="datadog.ninja",
13+
space_display_name="api-test-space",
14+
)
15+
16+
print(response)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Get all organization handles returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = GoogleChatIntegrationApi(api_client)
11+
response = api_instance.list_organization_handles(
12+
organization_binding_id="e54cb570-c674-529c-769d-84b312288ed7",
13+
)
14+
15+
print(response)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"""
2+
Update organization handle returns "OK" response
3+
"""
4+
5+
from os import environ
6+
from datadog_api_client import ApiClient, Configuration
7+
from datadog_api_client.v2.api.google_chat_integration_api import GoogleChatIntegrationApi
8+
from datadog_api_client.v2.model.google_chat_organization_handle_type import GoogleChatOrganizationHandleType
9+
from datadog_api_client.v2.model.google_chat_update_organization_handle_request import (
10+
GoogleChatUpdateOrganizationHandleRequest,
11+
)
12+
from datadog_api_client.v2.model.google_chat_update_organization_handle_request_attributes import (
13+
GoogleChatUpdateOrganizationHandleRequestAttributes,
14+
)
15+
from datadog_api_client.v2.model.google_chat_update_organization_handle_request_data import (
16+
GoogleChatUpdateOrganizationHandleRequestData,
17+
)
18+
19+
# there is a valid "organization_handle" in the system
20+
ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME = environ["ORGANIZATION_HANDLE_DATA_ATTRIBUTES_NAME"]
21+
ORGANIZATION_HANDLE_DATA_ID = environ["ORGANIZATION_HANDLE_DATA_ID"]
22+
23+
body = GoogleChatUpdateOrganizationHandleRequest(
24+
data=GoogleChatUpdateOrganizationHandleRequestData(
25+
attributes=GoogleChatUpdateOrganizationHandleRequestAttributes(
26+
name="fake-handle-name--updated",
27+
),
28+
),
29+
type=GoogleChatOrganizationHandleType.GOOGLE_CHAT_ORGANIZATION_HANDLE_TYPE,
30+
)
31+
32+
configuration = Configuration()
33+
with ApiClient(configuration) as api_client:
34+
api_instance = GoogleChatIntegrationApi(api_client)
35+
response = api_instance.update_organization_handle(
36+
organization_binding_id="e54cb570-c674-529c-769d-84b312288ed7", handle_id=ORGANIZATION_HANDLE_DATA_ID, body=body
37+
)
38+
39+
print(response)

0 commit comments

Comments
 (0)