|
3 | 3 | # Copyright 2019-Present Datadog, Inc.
|
4 | 4 | from __future__ import annotations
|
5 | 5 |
|
6 |
| -from typing import Any, Dict |
| 6 | +from typing import Any, Dict, Union |
7 | 7 |
|
8 | 8 | from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
|
9 | 9 | from datadog_api_client.configuration import Configuration
|
10 | 10 | from datadog_api_client.model_utils import (
|
| 11 | + UnsetType, |
| 12 | + unset, |
11 | 13 | UUID,
|
12 | 14 | )
|
13 | 15 | from datadog_api_client.v2.model.org_connection_list_response import OrgConnectionListResponse
|
@@ -78,7 +80,28 @@ def __init__(self, api_client=None):
|
78 | 80 | "http_method": "GET",
|
79 | 81 | "version": "v2",
|
80 | 82 | },
|
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 | + }, |
82 | 105 | headers_map={
|
83 | 106 | "accept": ["application/json"],
|
84 | 107 | },
|
@@ -146,14 +169,39 @@ def delete_org_connections(
|
146 | 169 |
|
147 | 170 | def list_org_connections(
|
148 | 171 | 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, |
149 | 177 | ) -> OrgConnectionListResponse:
|
150 | 178 | """List Org Connections.
|
151 | 179 |
|
152 | 180 | Returns a list of org connections.
|
153 | 181 |
|
| 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 |
154 | 190 | :rtype: OrgConnectionListResponse
|
155 | 191 | """
|
156 | 192 | 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 | + |
157 | 205 | return self._list_org_connections_endpoint.call_with_http_info(**kwargs)
|
158 | 206 |
|
159 | 207 | def update_org_connections(
|
|
0 commit comments