scope-client 1.4.965__py3-none-any.whl → 1.4.967__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scope_client/api_bindings/__init__.py +1 -0
- scope_client/api_bindings/api/__init__.py +1 -0
- scope_client/api_bindings/api/feature_flags_v1_api.py +284 -0
- scope_client/api_bindings/models/connector_type.py +1 -0
- {scope_client-1.4.965.dist-info → scope_client-1.4.967.dist-info}/METADATA +1 -1
- {scope_client-1.4.965.dist-info → scope_client-1.4.967.dist-info}/RECORD +8 -7
- {scope_client-1.4.965.dist-info → scope_client-1.4.967.dist-info}/WHEEL +0 -0
- {scope_client-1.4.965.dist-info → scope_client-1.4.967.dist-info}/top_level.txt +0 -0
|
@@ -26,6 +26,7 @@ from scope_client.api_bindings.api.data_plane_associations_v1_api import DataPla
|
|
|
26
26
|
from scope_client.api_bindings.api.data_planes_v1_api import DataPlanesV1Api
|
|
27
27
|
from scope_client.api_bindings.api.data_retrieval_v1_api import DataRetrievalV1Api
|
|
28
28
|
from scope_client.api_bindings.api.datasets_v1_api import DatasetsV1Api
|
|
29
|
+
from scope_client.api_bindings.api.feature_flags_v1_api import FeatureFlagsV1Api
|
|
29
30
|
from scope_client.api_bindings.api.groups_v1_api import GroupsV1Api
|
|
30
31
|
from scope_client.api_bindings.api.jobs_v1_api import JobsV1Api
|
|
31
32
|
from scope_client.api_bindings.api.metric_functions_v1_api import MetricFunctionsV1Api
|
|
@@ -10,6 +10,7 @@ from scope_client.api_bindings.api.data_plane_associations_v1_api import DataPla
|
|
|
10
10
|
from scope_client.api_bindings.api.data_planes_v1_api import DataPlanesV1Api
|
|
11
11
|
from scope_client.api_bindings.api.data_retrieval_v1_api import DataRetrievalV1Api
|
|
12
12
|
from scope_client.api_bindings.api.datasets_v1_api import DatasetsV1Api
|
|
13
|
+
from scope_client.api_bindings.api.feature_flags_v1_api import FeatureFlagsV1Api
|
|
13
14
|
from scope_client.api_bindings.api.groups_v1_api import GroupsV1Api
|
|
14
15
|
from scope_client.api_bindings.api.jobs_v1_api import JobsV1Api
|
|
15
16
|
from scope_client.api_bindings.api.metric_functions_v1_api import MetricFunctionsV1Api
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Arthur Scope
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from typing import Any, Dict
|
|
20
|
+
|
|
21
|
+
from scope_client.api_bindings.api_client import ApiClient, RequestSerialized
|
|
22
|
+
from scope_client.api_bindings.api_response import ApiResponse
|
|
23
|
+
from scope_client.api_bindings.rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class FeatureFlagsV1Api:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
def get_feature_flags(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> Dict[str, object]:
|
|
55
|
+
"""Get Feature Flags.
|
|
56
|
+
|
|
57
|
+
Retrieves all feature flags in the environment.
|
|
58
|
+
|
|
59
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
+
number provided, it will be total request
|
|
61
|
+
timeout. It can also be a pair (tuple) of
|
|
62
|
+
(connection, read) timeouts.
|
|
63
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
+
request; this effectively ignores the
|
|
66
|
+
authentication in the spec for a single request.
|
|
67
|
+
:type _request_auth: dict, optional
|
|
68
|
+
:param _content_type: force content-type for the request.
|
|
69
|
+
:type _content_type: str, Optional
|
|
70
|
+
:param _headers: set to override the headers for a single
|
|
71
|
+
request; this effectively ignores the headers
|
|
72
|
+
in the spec for a single request.
|
|
73
|
+
:type _headers: dict, optional
|
|
74
|
+
:param _host_index: set to override the host_index for a single
|
|
75
|
+
request; this effectively ignores the host_index
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _host_index: int, optional
|
|
78
|
+
:return: Returns the result object.
|
|
79
|
+
""" # noqa: E501
|
|
80
|
+
|
|
81
|
+
_param = self._get_feature_flags_serialize(
|
|
82
|
+
_request_auth=_request_auth,
|
|
83
|
+
_content_type=_content_type,
|
|
84
|
+
_headers=_headers,
|
|
85
|
+
_host_index=_host_index
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
+
'200': "Dict[str, object]",
|
|
90
|
+
'500': "InternalServerError",
|
|
91
|
+
}
|
|
92
|
+
response_data = self.api_client.call_api(
|
|
93
|
+
*_param,
|
|
94
|
+
_request_timeout=_request_timeout
|
|
95
|
+
)
|
|
96
|
+
response_data.read()
|
|
97
|
+
return self.api_client.response_deserialize(
|
|
98
|
+
response_data=response_data,
|
|
99
|
+
response_types_map=_response_types_map,
|
|
100
|
+
).data
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
def get_feature_flags_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
_request_timeout: Union[
|
|
107
|
+
None,
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Tuple[
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
112
|
+
]
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
119
|
+
"""Get Feature Flags.
|
|
120
|
+
|
|
121
|
+
Retrieves all feature flags in the environment.
|
|
122
|
+
|
|
123
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
124
|
+
number provided, it will be total request
|
|
125
|
+
timeout. It can also be a pair (tuple) of
|
|
126
|
+
(connection, read) timeouts.
|
|
127
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
129
|
+
request; this effectively ignores the
|
|
130
|
+
authentication in the spec for a single request.
|
|
131
|
+
:type _request_auth: dict, optional
|
|
132
|
+
:param _content_type: force content-type for the request.
|
|
133
|
+
:type _content_type: str, Optional
|
|
134
|
+
:param _headers: set to override the headers for a single
|
|
135
|
+
request; this effectively ignores the headers
|
|
136
|
+
in the spec for a single request.
|
|
137
|
+
:type _headers: dict, optional
|
|
138
|
+
:param _host_index: set to override the host_index for a single
|
|
139
|
+
request; this effectively ignores the host_index
|
|
140
|
+
in the spec for a single request.
|
|
141
|
+
:type _host_index: int, optional
|
|
142
|
+
:return: Returns the result object.
|
|
143
|
+
""" # noqa: E501
|
|
144
|
+
|
|
145
|
+
_param = self._get_feature_flags_serialize(
|
|
146
|
+
_request_auth=_request_auth,
|
|
147
|
+
_content_type=_content_type,
|
|
148
|
+
_headers=_headers,
|
|
149
|
+
_host_index=_host_index
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
153
|
+
'200': "Dict[str, object]",
|
|
154
|
+
'500': "InternalServerError",
|
|
155
|
+
}
|
|
156
|
+
response_data = self.api_client.call_api(
|
|
157
|
+
*_param,
|
|
158
|
+
_request_timeout=_request_timeout
|
|
159
|
+
)
|
|
160
|
+
response_data.read()
|
|
161
|
+
return self.api_client.response_deserialize(
|
|
162
|
+
response_data=response_data,
|
|
163
|
+
response_types_map=_response_types_map,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@validate_call
|
|
168
|
+
def get_feature_flags_without_preload_content(
|
|
169
|
+
self,
|
|
170
|
+
_request_timeout: Union[
|
|
171
|
+
None,
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Tuple[
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
176
|
+
]
|
|
177
|
+
] = None,
|
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
182
|
+
) -> RESTResponseType:
|
|
183
|
+
"""Get Feature Flags.
|
|
184
|
+
|
|
185
|
+
Retrieves all feature flags in the environment.
|
|
186
|
+
|
|
187
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
188
|
+
number provided, it will be total request
|
|
189
|
+
timeout. It can also be a pair (tuple) of
|
|
190
|
+
(connection, read) timeouts.
|
|
191
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
192
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
193
|
+
request; this effectively ignores the
|
|
194
|
+
authentication in the spec for a single request.
|
|
195
|
+
:type _request_auth: dict, optional
|
|
196
|
+
:param _content_type: force content-type for the request.
|
|
197
|
+
:type _content_type: str, Optional
|
|
198
|
+
:param _headers: set to override the headers for a single
|
|
199
|
+
request; this effectively ignores the headers
|
|
200
|
+
in the spec for a single request.
|
|
201
|
+
:type _headers: dict, optional
|
|
202
|
+
:param _host_index: set to override the host_index for a single
|
|
203
|
+
request; this effectively ignores the host_index
|
|
204
|
+
in the spec for a single request.
|
|
205
|
+
:type _host_index: int, optional
|
|
206
|
+
:return: Returns the result object.
|
|
207
|
+
""" # noqa: E501
|
|
208
|
+
|
|
209
|
+
_param = self._get_feature_flags_serialize(
|
|
210
|
+
_request_auth=_request_auth,
|
|
211
|
+
_content_type=_content_type,
|
|
212
|
+
_headers=_headers,
|
|
213
|
+
_host_index=_host_index
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
217
|
+
'200': "Dict[str, object]",
|
|
218
|
+
'500': "InternalServerError",
|
|
219
|
+
}
|
|
220
|
+
response_data = self.api_client.call_api(
|
|
221
|
+
*_param,
|
|
222
|
+
_request_timeout=_request_timeout
|
|
223
|
+
)
|
|
224
|
+
return response_data.response
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
def _get_feature_flags_serialize(
|
|
228
|
+
self,
|
|
229
|
+
_request_auth,
|
|
230
|
+
_content_type,
|
|
231
|
+
_headers,
|
|
232
|
+
_host_index,
|
|
233
|
+
) -> RequestSerialized:
|
|
234
|
+
|
|
235
|
+
_host = None
|
|
236
|
+
|
|
237
|
+
_collection_formats: Dict[str, str] = {
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
_path_params: Dict[str, str] = {}
|
|
241
|
+
_query_params: List[Tuple[str, str]] = []
|
|
242
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
243
|
+
_form_params: List[Tuple[str, str]] = []
|
|
244
|
+
_files: Dict[
|
|
245
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
246
|
+
] = {}
|
|
247
|
+
_body_params: Optional[bytes] = None
|
|
248
|
+
|
|
249
|
+
# process the path parameters
|
|
250
|
+
# process the query parameters
|
|
251
|
+
# process the header parameters
|
|
252
|
+
# process the form parameters
|
|
253
|
+
# process the body parameter
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
# set the HTTP header `Accept`
|
|
257
|
+
if 'Accept' not in _header_params:
|
|
258
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
259
|
+
[
|
|
260
|
+
'application/json'
|
|
261
|
+
]
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
# authentication setting
|
|
266
|
+
_auth_settings: List[str] = [
|
|
267
|
+
]
|
|
268
|
+
|
|
269
|
+
return self.api_client.param_serialize(
|
|
270
|
+
method='GET',
|
|
271
|
+
resource_path='/api/v1/feature-flags',
|
|
272
|
+
path_params=_path_params,
|
|
273
|
+
query_params=_query_params,
|
|
274
|
+
header_params=_header_params,
|
|
275
|
+
body=_body_params,
|
|
276
|
+
post_params=_form_params,
|
|
277
|
+
files=_files,
|
|
278
|
+
auth_settings=_auth_settings,
|
|
279
|
+
collection_formats=_collection_formats,
|
|
280
|
+
_host=_host,
|
|
281
|
+
_request_auth=_request_auth
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
scope_client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
scope_client/api_bindings/__init__.py,sha256=
|
|
2
|
+
scope_client/api_bindings/__init__.py,sha256=_iAagaxIAzP-MCUlxgadM7mpJkITph1bAY8kN6Kq6-Y,23985
|
|
3
3
|
scope_client/api_bindings/api_client.py,sha256=nkt88XDyPiuURu94lnI4MtOfMeYXd_jazGUde0T4xVU,27538
|
|
4
4
|
scope_client/api_bindings/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
5
5
|
scope_client/api_bindings/configuration.py,sha256=a0o2OhNYo7GdZscfNtFKW2kfgoln1mcWE-8E_UeiWv8,15338
|
|
6
6
|
scope_client/api_bindings/exceptions.py,sha256=yy0Uot-WkcM6-PbNo2KDnrKAUL_PFmeCTD2tvq_gFp4,5977
|
|
7
7
|
scope_client/api_bindings/rest.py,sha256=WjYLgwpOMypfMPuivIUYSaIJLd8YxqIIFx8BTA3RwXA,9428
|
|
8
|
-
scope_client/api_bindings/api/__init__.py,sha256=
|
|
8
|
+
scope_client/api_bindings/api/__init__.py,sha256=j2pVJcLDLQrhMZkLemyUh9_RKuYyjJyJ3rYB35pZmo4,1992
|
|
9
9
|
scope_client/api_bindings/api/alert_rules_v1_api.py,sha256=9_4RLl8yXbGasjviiAyGDCrUVn3Pz0UeiRcFGfPIEog,64935
|
|
10
10
|
scope_client/api_bindings/api/alerts_v1_api.py,sha256=hAyljzNdtm3ruaN1C5qyTCZJF5u0LqmxPraZoACockk,41281
|
|
11
11
|
scope_client/api_bindings/api/authorization_v1_api.py,sha256=0hHddXMvsw87SV-VE87mTp1afVyb8AB2pcCIjie4emg,168384
|
|
@@ -16,6 +16,7 @@ scope_client/api_bindings/api/data_planes_v1_api.py,sha256=NmJTxXGRecT6XNZntWXos
|
|
|
16
16
|
scope_client/api_bindings/api/data_retrieval_v1_api.py,sha256=o8yKv-rw3E0KVa2nyePR8jR83FYpPUxqQTq00cCDVyM,97313
|
|
17
17
|
scope_client/api_bindings/api/datasets_v1_api.py,sha256=xV-6MfwUiPo8wp0VOCxOBXrG91LVYrQuHiWMF25Fx54,173726
|
|
18
18
|
scope_client/api_bindings/api/default_api.py,sha256=N2kYEK0fkvWQVIUYyFgRfsdUvpK0lI3G3Yl3Iz4R2oM,10588
|
|
19
|
+
scope_client/api_bindings/api/feature_flags_v1_api.py,sha256=3LDDlmC9_Vdw7Ucq3DnMF7bUKJdJfvat6JWqHbbYvLA,10547
|
|
19
20
|
scope_client/api_bindings/api/groups_v1_api.py,sha256=2c2G1Zd0ML1B4qHsNBBG2J9TsFpRGj1xL_vVQgOwq-4,111689
|
|
20
21
|
scope_client/api_bindings/api/jobs_v1_api.py,sha256=ZdeRvKJLLRf9E9sBxJouXLwkU3XN4Tvhs6Aqak6zypw,162577
|
|
21
22
|
scope_client/api_bindings/api/metric_functions_v1_api.py,sha256=45LccTGUq20MocyPk5rzbngTtAFRfyIw_Adck4RSP7s,10836
|
|
@@ -65,7 +66,7 @@ scope_client/api_bindings/models/connector_spec_field.py,sha256=Zi5uAFgWVTOALOiF
|
|
|
65
66
|
scope_client/api_bindings/models/connector_spec_field_with_metadata.py,sha256=fZSB45jBgFLDFDsWuu9xx3AjM8vY3r6CYMXkxJf_wkI,3118
|
|
66
67
|
scope_client/api_bindings/models/connector_spec_schema.py,sha256=JH998qMIcyEKRrN8zO4iEyjLlO0MbYmfRM-VAC8mn3E,4575
|
|
67
68
|
scope_client/api_bindings/models/connector_spec_schema_field.py,sha256=KA_WA-6L4pf4ePSxXnHvr7VWxgDEX36cqb_xxdwp3iA,3660
|
|
68
|
-
scope_client/api_bindings/models/connector_type.py,sha256=
|
|
69
|
+
scope_client/api_bindings/models/connector_type.py,sha256=FmpXqfN_1iw3iSU9KOhcQiPayi_OoEV1A7JMc3dl1fk,831
|
|
69
70
|
scope_client/api_bindings/models/connectors_sort.py,sha256=F3uMScMW0SrVBscHsUczrwRjEQlpc1cnIZgkds3N-qo,794
|
|
70
71
|
scope_client/api_bindings/models/create_model_task_job_spec.py,sha256=WqQPt8I5nA8l0j5YE-u56qLuq6w482nfuINJUY2XnP4,4418
|
|
71
72
|
scope_client/api_bindings/models/created_alerts.py,sha256=HEU8jGJvowCbwZgU7wUn410lNiJAAox5SYRyDd2uglw,3949
|
|
@@ -297,7 +298,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
|
|
|
297
298
|
scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
|
|
298
299
|
scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
|
|
299
300
|
scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
|
|
300
|
-
scope_client-1.4.
|
|
301
|
-
scope_client-1.4.
|
|
302
|
-
scope_client-1.4.
|
|
303
|
-
scope_client-1.4.
|
|
301
|
+
scope_client-1.4.967.dist-info/METADATA,sha256=CITeH5kFxk7kEo3xcKU3fNX5xIbvX8sECGsm30I-8hg,1776
|
|
302
|
+
scope_client-1.4.967.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
303
|
+
scope_client-1.4.967.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
|
|
304
|
+
scope_client-1.4.967.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|