gcore 0.4.0__py3-none-any.whl → 0.6.0__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.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/_base_client.py +9 -2
- gcore/_client.py +9 -0
- gcore/_constants.py +2 -2
- gcore/_models.py +8 -5
- gcore/_version.py +1 -1
- gcore/pagination.py +192 -1
- gcore/resources/__init__.py +14 -0
- gcore/resources/cloud/__init__.py +14 -0
- gcore/resources/cloud/audit_logs.py +480 -0
- gcore/resources/cloud/baremetal/servers.py +2 -2
- gcore/resources/cloud/cloud.py +32 -0
- gcore/resources/cloud/file_shares/file_shares.py +64 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +2 -2
- gcore/resources/cloud/inference/__init__.py +14 -0
- gcore/resources/cloud/inference/api_keys.py +621 -0
- gcore/resources/cloud/inference/deployments/deployments.py +66 -33
- gcore/resources/cloud/inference/deployments/logs.py +7 -7
- gcore/resources/cloud/inference/inference.py +37 -5
- gcore/resources/cloud/inference/models.py +16 -15
- gcore/resources/cloud/inference/registry_credentials.py +16 -16
- gcore/resources/cloud/inference/secrets.py +4 -5
- gcore/resources/cloud/instances/instances.py +2 -2
- gcore/resources/cloud/load_balancers/pools/members.py +22 -6
- gcore/resources/cloud/secrets.py +14 -224
- gcore/resources/cloud/tasks.py +30 -28
- gcore/resources/fastedge/__init__.py +103 -0
- gcore/resources/fastedge/apps/__init__.py +33 -0
- gcore/resources/fastedge/apps/apps.py +932 -0
- gcore/resources/fastedge/apps/logs.py +248 -0
- gcore/resources/fastedge/binaries.py +286 -0
- gcore/resources/fastedge/fastedge.py +327 -0
- gcore/resources/fastedge/kv_stores.py +523 -0
- gcore/resources/fastedge/secrets.py +687 -0
- gcore/resources/fastedge/statistics.py +347 -0
- gcore/resources/fastedge/templates.py +652 -0
- gcore/types/cloud/__init__.py +4 -28
- gcore/types/cloud/audit_log_entry.py +254 -0
- gcore/types/cloud/audit_log_list_params.py +158 -0
- gcore/types/cloud/baremetal/server_create_params.py +1 -1
- gcore/types/cloud/file_share_update_params.py +29 -3
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +1 -1
- gcore/types/cloud/inference/__init__.py +17 -8
- gcore/types/cloud/inference/api_key_create_params.py +21 -0
- gcore/types/cloud/inference/api_key_list_params.py +21 -0
- gcore/types/cloud/inference/api_key_update_params.py +16 -0
- gcore/types/cloud/inference/deployment_create_params.py +224 -7
- gcore/types/cloud/inference/deployment_update_params.py +24 -3
- gcore/types/cloud/inference/deployments/__init__.py +1 -0
- gcore/types/cloud/inference/{inference_log.py → deployments/inference_deployment_log.py} +3 -3
- gcore/types/cloud/inference/inference_api_key.py +24 -0
- gcore/types/cloud/inference/inference_api_key_create.py +27 -0
- gcore/types/cloud/inference/inference_deployment.py +266 -0
- gcore/types/cloud/inference/{inference_apikey_secret.py → inference_deployment_api_key.py} +2 -2
- gcore/types/cloud/inference/{mlcatalog_model_card.py → inference_model.py} +2 -2
- gcore/types/cloud/inference/{inference_registry_credential.py → inference_registry_credentials.py} +2 -2
- gcore/types/cloud/inference/{inference_registry_credential_full.py → inference_registry_credentials_create.py} +2 -2
- gcore/types/cloud/inference/inference_secret.py +10 -3
- gcore/types/cloud/inference/model_list_params.py +2 -4
- gcore/types/cloud/{container_probe.py → inference/probe.py} +9 -9
- gcore/types/cloud/{container_probe_config.py → inference/probe_config.py} +5 -5
- gcore/types/cloud/{container_probe_exec.py → inference/probe_exec.py} +3 -3
- gcore/types/cloud/{container_probe_http_get.py → inference/probe_http_get.py} +3 -3
- gcore/types/cloud/{container_probe_tcp_socket.py → inference/probe_tcp_socket.py} +3 -3
- gcore/types/cloud/inference/secret_create_params.py +10 -4
- gcore/types/cloud/inference/secret_replace_params.py +10 -4
- gcore/types/cloud/{region_capacity.py → inference_region_capacity.py} +10 -3
- gcore/types/cloud/{region_capacity_list.py → inference_region_capacity_list.py} +4 -4
- gcore/types/cloud/instance_create_params.py +1 -1
- gcore/types/cloud/load_balancer_create_params.py +14 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +14 -3
- gcore/types/cloud/load_balancers/pool_update_params.py +14 -3
- gcore/types/cloud/load_balancers/pools/member_add_params.py +14 -3
- gcore/types/cloud/member.py +12 -4
- gcore/types/cloud/task_list_params.py +15 -14
- gcore/types/fastedge/__init__.py +48 -0
- gcore/types/fastedge/app.py +81 -0
- gcore/types/fastedge/app_create_params.py +56 -0
- gcore/types/fastedge/app_list_params.py +50 -0
- gcore/types/fastedge/app_param.py +56 -0
- gcore/types/fastedge/app_replace_params.py +17 -0
- gcore/types/fastedge/app_short.py +60 -0
- gcore/types/fastedge/app_update_params.py +56 -0
- gcore/types/fastedge/apps/__init__.py +6 -0
- gcore/types/fastedge/apps/log.py +28 -0
- gcore/types/fastedge/apps/log_list_params.py +37 -0
- gcore/types/fastedge/binary.py +40 -0
- gcore/types/fastedge/binary_list_response.py +12 -0
- gcore/types/fastedge/binary_short.py +32 -0
- gcore/types/fastedge/call_status.py +24 -0
- gcore/types/fastedge/client.py +57 -0
- gcore/types/fastedge/duration_stats.py +30 -0
- gcore/types/fastedge/kv_store.py +33 -0
- gcore/types/fastedge/kv_store_create_params.py +23 -0
- gcore/types/fastedge/kv_store_get_response.py +10 -0
- gcore/types/fastedge/kv_store_list_params.py +12 -0
- gcore/types/fastedge/kv_store_list_response.py +15 -0
- gcore/types/fastedge/kv_store_replace_params.py +23 -0
- gcore/types/fastedge/kv_store_short.py +19 -0
- gcore/types/fastedge/kv_store_stats.py +26 -0
- gcore/types/fastedge/secret.py +29 -0
- gcore/types/fastedge/secret_create_params.py +27 -0
- gcore/types/fastedge/secret_create_response.py +12 -0
- gcore/types/fastedge/secret_delete_params.py +12 -0
- gcore/types/fastedge/secret_list_params.py +15 -0
- gcore/types/{cloud → fastedge}/secret_list_response.py +2 -6
- gcore/types/fastedge/secret_replace_params.py +27 -0
- gcore/types/fastedge/secret_short.py +21 -0
- gcore/types/fastedge/secret_update_params.py +27 -0
- gcore/types/fastedge/statistic_get_call_series_params.py +28 -0
- gcore/types/fastedge/statistic_get_call_series_response.py +12 -0
- gcore/types/fastedge/statistic_get_duration_series_params.py +28 -0
- gcore/types/fastedge/statistic_get_duration_series_response.py +12 -0
- gcore/types/fastedge/template.py +31 -0
- gcore/types/fastedge/template_create_params.py +30 -0
- gcore/types/fastedge/template_delete_params.py +12 -0
- gcore/types/fastedge/template_list_params.py +25 -0
- gcore/types/fastedge/template_parameter.py +22 -0
- gcore/types/fastedge/template_parameter_param.py +21 -0
- gcore/types/fastedge/template_replace_params.py +30 -0
- gcore/types/fastedge/template_short.py +27 -0
- {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/METADATA +8 -7
- {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/RECORD +124 -80
- gcore/types/cloud/aws_iam_data.py +0 -13
- gcore/types/cloud/aws_iam_data_param.py +0 -15
- gcore/types/cloud/capacity.py +0 -13
- gcore/types/cloud/container_probe_config_create_param.py +0 -17
- gcore/types/cloud/container_probe_create_param.py +0 -38
- gcore/types/cloud/container_probe_exec_create_param.py +0 -13
- gcore/types/cloud/container_probe_http_get_create_param.py +0 -25
- gcore/types/cloud/container_probe_tcp_socket_create_param.py +0 -12
- gcore/types/cloud/container_scale.py +0 -25
- gcore/types/cloud/container_scale_trigger_rate.py +0 -13
- gcore/types/cloud/container_scale_trigger_sqs.py +0 -33
- gcore/types/cloud/container_scale_trigger_threshold.py +0 -10
- gcore/types/cloud/container_scale_triggers.py +0 -36
- gcore/types/cloud/deploy_status.py +0 -13
- gcore/types/cloud/inference/container.py +0 -26
- gcore/types/cloud/inference/inference.py +0 -95
- gcore/types/cloud/inference/mlcatalog_order_by_choices.py +0 -7
- gcore/types/cloud/inference_probes.py +0 -19
- gcore/types/cloud/ingress_opts_out.py +0 -16
- gcore/types/cloud/ingress_opts_param.py +0 -18
- gcore/types/cloud/secret_create_params.py +0 -66
- {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/WHEEL +0 -0
- {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
|
+
from ..._compat import cached_property
|
|
13
|
+
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
14
|
+
from ..._response import (
|
|
15
|
+
to_raw_response_wrapper,
|
|
16
|
+
to_streamed_response_wrapper,
|
|
17
|
+
async_to_raw_response_wrapper,
|
|
18
|
+
async_to_streamed_response_wrapper,
|
|
19
|
+
)
|
|
20
|
+
from ..._base_client import make_request_options
|
|
21
|
+
from ...types.fastedge import statistic_get_call_series_params, statistic_get_duration_series_params
|
|
22
|
+
from ...types.fastedge.statistic_get_call_series_response import StatisticGetCallSeriesResponse
|
|
23
|
+
from ...types.fastedge.statistic_get_duration_series_response import StatisticGetDurationSeriesResponse
|
|
24
|
+
|
|
25
|
+
__all__ = ["StatisticsResource", "AsyncStatisticsResource"]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class StatisticsResource(SyncAPIResource):
|
|
29
|
+
@cached_property
|
|
30
|
+
def with_raw_response(self) -> StatisticsResourceWithRawResponse:
|
|
31
|
+
"""
|
|
32
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
33
|
+
the raw response object instead of the parsed content.
|
|
34
|
+
|
|
35
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
36
|
+
"""
|
|
37
|
+
return StatisticsResourceWithRawResponse(self)
|
|
38
|
+
|
|
39
|
+
@cached_property
|
|
40
|
+
def with_streaming_response(self) -> StatisticsResourceWithStreamingResponse:
|
|
41
|
+
"""
|
|
42
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
43
|
+
|
|
44
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
45
|
+
"""
|
|
46
|
+
return StatisticsResourceWithStreamingResponse(self)
|
|
47
|
+
|
|
48
|
+
def get_call_series(
|
|
49
|
+
self,
|
|
50
|
+
*,
|
|
51
|
+
from_: Union[str, datetime],
|
|
52
|
+
step: int,
|
|
53
|
+
to: Union[str, datetime],
|
|
54
|
+
id: int | NotGiven = NOT_GIVEN,
|
|
55
|
+
network: str | NotGiven = NOT_GIVEN,
|
|
56
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
57
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
58
|
+
extra_headers: Headers | None = None,
|
|
59
|
+
extra_query: Query | None = None,
|
|
60
|
+
extra_body: Body | None = None,
|
|
61
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
62
|
+
) -> StatisticGetCallSeriesResponse:
|
|
63
|
+
"""
|
|
64
|
+
Call statistics
|
|
65
|
+
|
|
66
|
+
Args:
|
|
67
|
+
from_: Reporting period start time, RFC3339 format
|
|
68
|
+
|
|
69
|
+
step: Reporting granularity, in seconds
|
|
70
|
+
|
|
71
|
+
to: Reporting period end time (not included into reporting period), RFC3339 format
|
|
72
|
+
|
|
73
|
+
id: App ID
|
|
74
|
+
|
|
75
|
+
network: Network name
|
|
76
|
+
|
|
77
|
+
extra_headers: Send extra headers
|
|
78
|
+
|
|
79
|
+
extra_query: Add additional query parameters to the request
|
|
80
|
+
|
|
81
|
+
extra_body: Add additional JSON properties to the request
|
|
82
|
+
|
|
83
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
84
|
+
"""
|
|
85
|
+
return self._get(
|
|
86
|
+
"/fastedge/v1/stats/calls",
|
|
87
|
+
options=make_request_options(
|
|
88
|
+
extra_headers=extra_headers,
|
|
89
|
+
extra_query=extra_query,
|
|
90
|
+
extra_body=extra_body,
|
|
91
|
+
timeout=timeout,
|
|
92
|
+
query=maybe_transform(
|
|
93
|
+
{
|
|
94
|
+
"from_": from_,
|
|
95
|
+
"step": step,
|
|
96
|
+
"to": to,
|
|
97
|
+
"id": id,
|
|
98
|
+
"network": network,
|
|
99
|
+
},
|
|
100
|
+
statistic_get_call_series_params.StatisticGetCallSeriesParams,
|
|
101
|
+
),
|
|
102
|
+
),
|
|
103
|
+
cast_to=StatisticGetCallSeriesResponse,
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
def get_duration_series(
|
|
107
|
+
self,
|
|
108
|
+
*,
|
|
109
|
+
from_: Union[str, datetime],
|
|
110
|
+
step: int,
|
|
111
|
+
to: Union[str, datetime],
|
|
112
|
+
id: int | NotGiven = NOT_GIVEN,
|
|
113
|
+
network: str | NotGiven = NOT_GIVEN,
|
|
114
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
115
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
116
|
+
extra_headers: Headers | None = None,
|
|
117
|
+
extra_query: Query | None = None,
|
|
118
|
+
extra_body: Body | None = None,
|
|
119
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
120
|
+
) -> StatisticGetDurationSeriesResponse:
|
|
121
|
+
"""
|
|
122
|
+
Execution duration statistics
|
|
123
|
+
|
|
124
|
+
Args:
|
|
125
|
+
from_: Reporting period start time, RFC3339 format
|
|
126
|
+
|
|
127
|
+
step: Reporting granularity, in seconds
|
|
128
|
+
|
|
129
|
+
to: Reporting period end time (not included into reporting period), RFC3339 format
|
|
130
|
+
|
|
131
|
+
id: App ID
|
|
132
|
+
|
|
133
|
+
network: Network name
|
|
134
|
+
|
|
135
|
+
extra_headers: Send extra headers
|
|
136
|
+
|
|
137
|
+
extra_query: Add additional query parameters to the request
|
|
138
|
+
|
|
139
|
+
extra_body: Add additional JSON properties to the request
|
|
140
|
+
|
|
141
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
142
|
+
"""
|
|
143
|
+
return self._get(
|
|
144
|
+
"/fastedge/v1/stats/app_duration",
|
|
145
|
+
options=make_request_options(
|
|
146
|
+
extra_headers=extra_headers,
|
|
147
|
+
extra_query=extra_query,
|
|
148
|
+
extra_body=extra_body,
|
|
149
|
+
timeout=timeout,
|
|
150
|
+
query=maybe_transform(
|
|
151
|
+
{
|
|
152
|
+
"from_": from_,
|
|
153
|
+
"step": step,
|
|
154
|
+
"to": to,
|
|
155
|
+
"id": id,
|
|
156
|
+
"network": network,
|
|
157
|
+
},
|
|
158
|
+
statistic_get_duration_series_params.StatisticGetDurationSeriesParams,
|
|
159
|
+
),
|
|
160
|
+
),
|
|
161
|
+
cast_to=StatisticGetDurationSeriesResponse,
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class AsyncStatisticsResource(AsyncAPIResource):
|
|
166
|
+
@cached_property
|
|
167
|
+
def with_raw_response(self) -> AsyncStatisticsResourceWithRawResponse:
|
|
168
|
+
"""
|
|
169
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
170
|
+
the raw response object instead of the parsed content.
|
|
171
|
+
|
|
172
|
+
For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
|
|
173
|
+
"""
|
|
174
|
+
return AsyncStatisticsResourceWithRawResponse(self)
|
|
175
|
+
|
|
176
|
+
@cached_property
|
|
177
|
+
def with_streaming_response(self) -> AsyncStatisticsResourceWithStreamingResponse:
|
|
178
|
+
"""
|
|
179
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
180
|
+
|
|
181
|
+
For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
|
|
182
|
+
"""
|
|
183
|
+
return AsyncStatisticsResourceWithStreamingResponse(self)
|
|
184
|
+
|
|
185
|
+
async def get_call_series(
|
|
186
|
+
self,
|
|
187
|
+
*,
|
|
188
|
+
from_: Union[str, datetime],
|
|
189
|
+
step: int,
|
|
190
|
+
to: Union[str, datetime],
|
|
191
|
+
id: int | NotGiven = NOT_GIVEN,
|
|
192
|
+
network: str | NotGiven = NOT_GIVEN,
|
|
193
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
194
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
195
|
+
extra_headers: Headers | None = None,
|
|
196
|
+
extra_query: Query | None = None,
|
|
197
|
+
extra_body: Body | None = None,
|
|
198
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
199
|
+
) -> StatisticGetCallSeriesResponse:
|
|
200
|
+
"""
|
|
201
|
+
Call statistics
|
|
202
|
+
|
|
203
|
+
Args:
|
|
204
|
+
from_: Reporting period start time, RFC3339 format
|
|
205
|
+
|
|
206
|
+
step: Reporting granularity, in seconds
|
|
207
|
+
|
|
208
|
+
to: Reporting period end time (not included into reporting period), RFC3339 format
|
|
209
|
+
|
|
210
|
+
id: App ID
|
|
211
|
+
|
|
212
|
+
network: Network name
|
|
213
|
+
|
|
214
|
+
extra_headers: Send extra headers
|
|
215
|
+
|
|
216
|
+
extra_query: Add additional query parameters to the request
|
|
217
|
+
|
|
218
|
+
extra_body: Add additional JSON properties to the request
|
|
219
|
+
|
|
220
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
221
|
+
"""
|
|
222
|
+
return await self._get(
|
|
223
|
+
"/fastedge/v1/stats/calls",
|
|
224
|
+
options=make_request_options(
|
|
225
|
+
extra_headers=extra_headers,
|
|
226
|
+
extra_query=extra_query,
|
|
227
|
+
extra_body=extra_body,
|
|
228
|
+
timeout=timeout,
|
|
229
|
+
query=await async_maybe_transform(
|
|
230
|
+
{
|
|
231
|
+
"from_": from_,
|
|
232
|
+
"step": step,
|
|
233
|
+
"to": to,
|
|
234
|
+
"id": id,
|
|
235
|
+
"network": network,
|
|
236
|
+
},
|
|
237
|
+
statistic_get_call_series_params.StatisticGetCallSeriesParams,
|
|
238
|
+
),
|
|
239
|
+
),
|
|
240
|
+
cast_to=StatisticGetCallSeriesResponse,
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
async def get_duration_series(
|
|
244
|
+
self,
|
|
245
|
+
*,
|
|
246
|
+
from_: Union[str, datetime],
|
|
247
|
+
step: int,
|
|
248
|
+
to: Union[str, datetime],
|
|
249
|
+
id: int | NotGiven = NOT_GIVEN,
|
|
250
|
+
network: str | NotGiven = NOT_GIVEN,
|
|
251
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
252
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
253
|
+
extra_headers: Headers | None = None,
|
|
254
|
+
extra_query: Query | None = None,
|
|
255
|
+
extra_body: Body | None = None,
|
|
256
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
257
|
+
) -> StatisticGetDurationSeriesResponse:
|
|
258
|
+
"""
|
|
259
|
+
Execution duration statistics
|
|
260
|
+
|
|
261
|
+
Args:
|
|
262
|
+
from_: Reporting period start time, RFC3339 format
|
|
263
|
+
|
|
264
|
+
step: Reporting granularity, in seconds
|
|
265
|
+
|
|
266
|
+
to: Reporting period end time (not included into reporting period), RFC3339 format
|
|
267
|
+
|
|
268
|
+
id: App ID
|
|
269
|
+
|
|
270
|
+
network: Network name
|
|
271
|
+
|
|
272
|
+
extra_headers: Send extra headers
|
|
273
|
+
|
|
274
|
+
extra_query: Add additional query parameters to the request
|
|
275
|
+
|
|
276
|
+
extra_body: Add additional JSON properties to the request
|
|
277
|
+
|
|
278
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
279
|
+
"""
|
|
280
|
+
return await self._get(
|
|
281
|
+
"/fastedge/v1/stats/app_duration",
|
|
282
|
+
options=make_request_options(
|
|
283
|
+
extra_headers=extra_headers,
|
|
284
|
+
extra_query=extra_query,
|
|
285
|
+
extra_body=extra_body,
|
|
286
|
+
timeout=timeout,
|
|
287
|
+
query=await async_maybe_transform(
|
|
288
|
+
{
|
|
289
|
+
"from_": from_,
|
|
290
|
+
"step": step,
|
|
291
|
+
"to": to,
|
|
292
|
+
"id": id,
|
|
293
|
+
"network": network,
|
|
294
|
+
},
|
|
295
|
+
statistic_get_duration_series_params.StatisticGetDurationSeriesParams,
|
|
296
|
+
),
|
|
297
|
+
),
|
|
298
|
+
cast_to=StatisticGetDurationSeriesResponse,
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class StatisticsResourceWithRawResponse:
|
|
303
|
+
def __init__(self, statistics: StatisticsResource) -> None:
|
|
304
|
+
self._statistics = statistics
|
|
305
|
+
|
|
306
|
+
self.get_call_series = to_raw_response_wrapper(
|
|
307
|
+
statistics.get_call_series,
|
|
308
|
+
)
|
|
309
|
+
self.get_duration_series = to_raw_response_wrapper(
|
|
310
|
+
statistics.get_duration_series,
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
class AsyncStatisticsResourceWithRawResponse:
|
|
315
|
+
def __init__(self, statistics: AsyncStatisticsResource) -> None:
|
|
316
|
+
self._statistics = statistics
|
|
317
|
+
|
|
318
|
+
self.get_call_series = async_to_raw_response_wrapper(
|
|
319
|
+
statistics.get_call_series,
|
|
320
|
+
)
|
|
321
|
+
self.get_duration_series = async_to_raw_response_wrapper(
|
|
322
|
+
statistics.get_duration_series,
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
class StatisticsResourceWithStreamingResponse:
|
|
327
|
+
def __init__(self, statistics: StatisticsResource) -> None:
|
|
328
|
+
self._statistics = statistics
|
|
329
|
+
|
|
330
|
+
self.get_call_series = to_streamed_response_wrapper(
|
|
331
|
+
statistics.get_call_series,
|
|
332
|
+
)
|
|
333
|
+
self.get_duration_series = to_streamed_response_wrapper(
|
|
334
|
+
statistics.get_duration_series,
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
class AsyncStatisticsResourceWithStreamingResponse:
|
|
339
|
+
def __init__(self, statistics: AsyncStatisticsResource) -> None:
|
|
340
|
+
self._statistics = statistics
|
|
341
|
+
|
|
342
|
+
self.get_call_series = async_to_streamed_response_wrapper(
|
|
343
|
+
statistics.get_call_series,
|
|
344
|
+
)
|
|
345
|
+
self.get_duration_series = async_to_streamed_response_wrapper(
|
|
346
|
+
statistics.get_duration_series,
|
|
347
|
+
)
|