Skip to content

Commit 760a0bf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b8c9cdd of spec repo
1 parent 87cfa93 commit 760a0bf

File tree

42 files changed

+2340
-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

+2340
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 407 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
@@ -298,6 +298,13 @@ datadog\_api\_client.v2.api.gcp\_integration\_api module
298298
:members:
299299
:show-inheritance:
300300

301+
datadog\_api\_client.v2.api.google\_chat\_integration\_api module
302+
-----------------------------------------------------------------
303+
304+
.. automodule:: datadog_api_client.v2.api.google_chat_integration_api
305+
:members:
306+
:show-inheritance:
307+
301308
datadog\_api\_client.v2.api.high\_availability\_multi\_region\_api module
302309
-------------------------------------------------------------------------
303310

docs/datadog_api_client.v2.model.rst

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

12040+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response module
12041+
------------------------------------------------------------------------------
12042+
12043+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response
12044+
:members:
12045+
:show-inheritance:
12046+
12047+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_attributes module
12048+
------------------------------------------------------------------------------------------
12049+
12050+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_attributes
12051+
:members:
12052+
:show-inheritance:
12053+
12054+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_response\_data module
12055+
------------------------------------------------------------------------------------
12056+
12057+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_response_data
12058+
:members:
12059+
:show-inheritance:
12060+
12061+
datadog\_api\_client.v2.model.google\_chat\_app\_named\_space\_type module
12062+
--------------------------------------------------------------------------
12063+
12064+
.. automodule:: datadog_api_client.v2.model.google_chat_app_named_space_type
12065+
:members:
12066+
:show-inheritance:
12067+
12068+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request module
12069+
----------------------------------------------------------------------------------------
12070+
12071+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request
12072+
:members:
12073+
:show-inheritance:
12074+
12075+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_attributes module
12076+
----------------------------------------------------------------------------------------------------
12077+
12078+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_attributes
12079+
:members:
12080+
:show-inheritance:
12081+
12082+
datadog\_api\_client.v2.model.google\_chat\_create\_organization\_handle\_request\_data module
12083+
----------------------------------------------------------------------------------------------
12084+
12085+
.. automodule:: datadog_api_client.v2.model.google_chat_create_organization_handle_request_data
12086+
:members:
12087+
:show-inheritance:
12088+
12089+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response module
12090+
---------------------------------------------------------------------------------
12091+
12092+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response
12093+
:members:
12094+
:show-inheritance:
12095+
12096+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_attributes module
12097+
---------------------------------------------------------------------------------------------
12098+
12099+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_attributes
12100+
:members:
12101+
:show-inheritance:
12102+
12103+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_response\_data module
12104+
---------------------------------------------------------------------------------------
12105+
12106+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_response_data
12107+
:members:
12108+
:show-inheritance:
12109+
12110+
datadog\_api\_client.v2.model.google\_chat\_organization\_handle\_type module
12111+
-----------------------------------------------------------------------------
12112+
12113+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handle_type
12114+
:members:
12115+
:show-inheritance:
12116+
12117+
datadog\_api\_client.v2.model.google\_chat\_organization\_handles\_response module
12118+
----------------------------------------------------------------------------------
12119+
12120+
.. automodule:: datadog_api_client.v2.model.google_chat_organization_handles_response
12121+
:members:
12122+
:show-inheritance:
12123+
12124+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request module
12125+
----------------------------------------------------------------------------------------
12126+
12127+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request
12128+
:members:
12129+
:show-inheritance:
12130+
12131+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_attributes module
12132+
----------------------------------------------------------------------------------------------------
12133+
12134+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_attributes
12135+
:members:
12136+
:show-inheritance:
12137+
12138+
datadog\_api\_client.v2.model.google\_chat\_update\_organization\_handle\_request\_data module
12139+
----------------------------------------------------------------------------------------------
12140+
12141+
.. automodule:: datadog_api_client.v2.model.google_chat_update_organization_handle_request_data
12142+
:members:
12143+
:show-inheritance:
12144+
1204012145
datadog\_api\_client.v2.model.google\_meet\_configuration\_reference module
1204112146
---------------------------------------------------------------------------
1204212147

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)