Skip to content

Commit d9ff43e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4de504a of spec repo
1 parent 4cf2076 commit d9ff43e

File tree

2 files changed

+83
-2
lines changed

2 files changed

+83
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62396,6 +62396,39 @@ paths:
6239662396
get:
6239762397
description: Returns a list of org connections.
6239862398
operationId: ListOrgConnections
62399+
parameters:
62400+
- description: The Org ID of the sink org.
62401+
example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1
62402+
in: query
62403+
name: sink_org_id
62404+
required: false
62405+
schema:
62406+
type: string
62407+
- description: The Org ID of the source org.
62408+
example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1
62409+
in: query
62410+
name: source_org_id
62411+
required: false
62412+
schema:
62413+
type: string
62414+
- description: The limit of number of entries you want to return. Default is
62415+
1000.
62416+
example: 1000
62417+
in: query
62418+
name: limit
62419+
required: false
62420+
schema:
62421+
format: int64
62422+
type: integer
62423+
- description: The pagination offset which you want to query from. Default is
62424+
0.
62425+
example: 0
62426+
in: query
62427+
name: offset
62428+
required: false
62429+
schema:
62430+
format: int64
62431+
type: integer
6239962432
responses:
6240062433
'200':
6240162434
content:

src/datadog_api_client/v2/api/org_connections_api.py

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Any, Dict
6+
from typing import Any, Dict, Union
77

88
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
99
from datadog_api_client.configuration import Configuration
1010
from datadog_api_client.model_utils import (
11+
UnsetType,
12+
unset,
1113
UUID,
1214
)
1315
from datadog_api_client.v2.model.org_connection_list_response import OrgConnectionListResponse
@@ -78,7 +80,28 @@ def __init__(self, api_client=None):
7880
"http_method": "GET",
7981
"version": "v2",
8082
},
81-
params_map={},
83+
params_map={
84+
"sink_org_id": {
85+
"openapi_types": (str,),
86+
"attribute": "sink_org_id",
87+
"location": "query",
88+
},
89+
"source_org_id": {
90+
"openapi_types": (str,),
91+
"attribute": "source_org_id",
92+
"location": "query",
93+
},
94+
"limit": {
95+
"openapi_types": (int,),
96+
"attribute": "limit",
97+
"location": "query",
98+
},
99+
"offset": {
100+
"openapi_types": (int,),
101+
"attribute": "offset",
102+
"location": "query",
103+
},
104+
},
82105
headers_map={
83106
"accept": ["application/json"],
84107
},
@@ -146,14 +169,39 @@ def delete_org_connections(
146169

147170
def list_org_connections(
148171
self,
172+
*,
173+
sink_org_id: Union[str, UnsetType] = unset,
174+
source_org_id: Union[str, UnsetType] = unset,
175+
limit: Union[int, UnsetType] = unset,
176+
offset: Union[int, UnsetType] = unset,
149177
) -> OrgConnectionListResponse:
150178
"""List Org Connections.
151179
152180
Returns a list of org connections.
153181
182+
:param sink_org_id: The Org ID of the sink org.
183+
:type sink_org_id: str, optional
184+
:param source_org_id: The Org ID of the source org.
185+
:type source_org_id: str, optional
186+
:param limit: The limit of number of entries you want to return. Default is 1000.
187+
:type limit: int, optional
188+
:param offset: The pagination offset which you want to query from. Default is 0.
189+
:type offset: int, optional
154190
:rtype: OrgConnectionListResponse
155191
"""
156192
kwargs: Dict[str, Any] = {}
193+
if sink_org_id is not unset:
194+
kwargs["sink_org_id"] = sink_org_id
195+
196+
if source_org_id is not unset:
197+
kwargs["source_org_id"] = source_org_id
198+
199+
if limit is not unset:
200+
kwargs["limit"] = limit
201+
202+
if offset is not unset:
203+
kwargs["offset"] = offset
204+
157205
return self._list_org_connections_endpoint.call_with_http_info(**kwargs)
158206

159207
def update_org_connections(

0 commit comments

Comments
 (0)