Skip to content

Commit 07f2af9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4658c95 of spec repo
1 parent bef6090 commit 07f2af9

File tree

44 files changed

+2341
-32
lines changed

Some content is hidden

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

44 files changed

+2341
-32
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 408 additions & 4 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
@@ -277,6 +277,13 @@ datadog\_api\_client.v2.api.gcp\_integration\_api module
277277
:members:
278278
:show-inheritance:
279279

280+
datadog\_api\_client.v2.api.google\_chat\_integration\_api module
281+
-----------------------------------------------------------------
282+
283+
.. automodule:: datadog_api_client.v2.api.google_chat_integration_api
284+
:members:
285+
:show-inheritance:
286+
280287
datadog\_api\_client.v2.api.high\_availability\_multi\_region\_api module
281288
-------------------------------------------------------------------------
282289

docs/datadog_api_client.v2.model.rst

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

11543+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response module
11544+
------------------------------------------------------------------------------
11545+
11546+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response
11547+
:members:
11548+
:show-inheritance:
11549+
11550+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_attributes module
11551+
------------------------------------------------------------------------------------------
11552+
11553+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_attributes
11554+
:members:
11555+
:show-inheritance:
11556+
11557+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_data module
11558+
------------------------------------------------------------------------------------
11559+
11560+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_data
11561+
:members:
11562+
:show-inheritance:
11563+
11564+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_type module
11565+
--------------------------------------------------------------------------
11566+
11567+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_type
11568+
:members:
11569+
:show-inheritance:
11570+
11571+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request module
11572+
----------------------------------------------------------------------------------------
11573+
11574+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request
11575+
:members:
11576+
:show-inheritance:
11577+
11578+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_attributes module
11579+
----------------------------------------------------------------------------------------------------
11580+
11581+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_attributes
11582+
:members:
11583+
:show-inheritance:
11584+
11585+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_data module
11586+
----------------------------------------------------------------------------------------------
11587+
11588+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_data
11589+
:members:
11590+
:show-inheritance:
11591+
11592+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response module
11593+
---------------------------------------------------------------------------------
11594+
11595+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response
11596+
:members:
11597+
:show-inheritance:
11598+
11599+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_attributes module
11600+
---------------------------------------------------------------------------------------------
11601+
11602+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_attributes
11603+
:members:
11604+
:show-inheritance:
11605+
11606+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_data module
11607+
---------------------------------------------------------------------------------------
11608+
11609+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_data
11610+
:members:
11611+
:show-inheritance:
11612+
11613+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_type module
11614+
-----------------------------------------------------------------------------
11615+
11616+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_type
11617+
:members:
11618+
:show-inheritance:
11619+
11620+
datadog\_api\_client.v2.model.google\_chat\_organization\_handles\_response module
11621+
----------------------------------------------------------------------------------
11622+
11623+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handles_response
11624+
:members:
11625+
:show-inheritance:
11626+
11627+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request module
11628+
----------------------------------------------------------------------------------------
11629+
11630+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request
11631+
:members:
11632+
:show-inheritance:
11633+
11634+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_attributes module
11635+
----------------------------------------------------------------------------------------------------
11636+
11637+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_attributes
11638+
:members:
11639+
:show-inheritance:
11640+
11641+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_data module
11642+
----------------------------------------------------------------------------------------------
11643+
11644+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_data
11645+
:members:
11646+
:show-inheritance:
11647+
1154311648
datadog\_api\_client.v2.model.google\_meet\_configuration\_reference module
1154411649
---------------------------------------------------------------------------
1154511650

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)