gcore 0.15.0__py3-none-any.whl → 0.16.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/_client.py +2 -8
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -12
- gcore/resources/cdn/cdn.py +10 -18
- gcore/resources/cdn/certificates.py +16 -40
- gcore/resources/cdn/ip_ranges.py +4 -8
- gcore/resources/cdn/logs/__init__.py +0 -14
- gcore/resources/cdn/logs/logs.py +4 -44
- gcore/resources/cdn/logs_uploader/configs.py +14 -42
- gcore/resources/cdn/logs_uploader/policies.py +14 -42
- gcore/resources/cdn/logs_uploader/targets.py +14 -42
- gcore/resources/cdn/metrics.py +2 -6
- gcore/resources/cdn/network_capacity.py +2 -6
- gcore/resources/cdn/origin_groups.py +12 -32
- gcore/resources/cdn/resources/resources.py +18 -46
- gcore/resources/cdn/resources/rules.py +12 -36
- gcore/resources/cdn/resources/shield.py +4 -12
- gcore/resources/cdn/rule_templates.py +12 -36
- gcore/resources/cdn/shields.py +2 -6
- gcore/resources/cdn/statistics.py +16 -40
- gcore/resources/cdn/trusted_ca_certificates.py +10 -30
- gcore/resources/cloud/audit_logs.py +2 -6
- gcore/resources/cloud/baremetal/flavors.py +2 -6
- gcore/resources/cloud/baremetal/images.py +2 -6
- gcore/resources/cloud/baremetal/servers.py +6 -18
- gcore/resources/cloud/billing_reservations.py +25 -208
- gcore/resources/cloud/cost_reports.py +44 -62
- gcore/resources/cloud/file_shares/access_rules.py +6 -18
- gcore/resources/cloud/file_shares/file_shares.py +37 -44
- gcore/resources/cloud/floating_ips.py +14 -42
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +18 -54
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +8 -24
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +14 -42
- gcore/resources/cloud/inference/api_keys.py +10 -30
- gcore/resources/cloud/inference/applications/deployments.py +135 -155
- gcore/resources/cloud/inference/applications/templates.py +4 -12
- gcore/resources/cloud/inference/deployments/deployments.py +16 -48
- gcore/resources/cloud/inference/deployments/logs.py +2 -6
- gcore/resources/cloud/inference/flavors.py +4 -12
- gcore/resources/cloud/inference/inference.py +2 -6
- gcore/resources/cloud/inference/registry_credentials.py +10 -30
- gcore/resources/cloud/inference/secrets.py +10 -30
- gcore/resources/cloud/instances/flavors.py +2 -6
- gcore/resources/cloud/instances/images.py +12 -36
- gcore/resources/cloud/instances/instances.py +99 -94
- gcore/resources/cloud/instances/interfaces.py +6 -18
- gcore/resources/cloud/instances/metrics.py +2 -6
- gcore/resources/cloud/ip_ranges.py +2 -6
- gcore/resources/cloud/k8s/clusters/clusters.py +18 -54
- gcore/resources/cloud/k8s/clusters/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/pools.py +12 -36
- gcore/resources/cloud/k8s/flavors.py +2 -6
- gcore/resources/cloud/k8s/k8s.py +2 -6
- gcore/resources/cloud/load_balancers/flavors.py +2 -6
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -30
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +10 -30
- gcore/resources/cloud/load_balancers/listeners.py +26 -46
- gcore/resources/cloud/load_balancers/load_balancers.py +493 -521
- gcore/resources/cloud/load_balancers/metrics.py +8 -12
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +4 -12
- gcore/resources/cloud/load_balancers/pools/members.py +4 -12
- gcore/resources/cloud/load_balancers/pools/pools.py +26 -46
- gcore/resources/cloud/load_balancers/statuses.py +10 -18
- gcore/resources/cloud/networks/networks.py +10 -30
- gcore/resources/cloud/networks/routers.py +14 -42
- gcore/resources/cloud/networks/subnets.py +10 -30
- gcore/resources/cloud/placement_groups.py +8 -24
- gcore/resources/cloud/projects.py +10 -22
- gcore/resources/cloud/quotas/quotas.py +6 -18
- gcore/resources/cloud/quotas/requests.py +8 -24
- gcore/resources/cloud/regions.py +4 -8
- gcore/resources/cloud/registries/artifacts.py +4 -12
- gcore/resources/cloud/registries/registries.py +10 -30
- gcore/resources/cloud/registries/repositories.py +4 -12
- gcore/resources/cloud/registries/tags.py +2 -6
- gcore/resources/cloud/registries/users.py +12 -36
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +10 -30
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -30
- gcore/resources/cloud/secrets.py +8 -24
- gcore/resources/cloud/security_groups/rules.py +6 -18
- gcore/resources/cloud/security_groups/security_groups.py +14 -42
- gcore/resources/cloud/ssh_keys.py +10 -30
- gcore/resources/cloud/tasks.py +14 -26
- gcore/resources/cloud/usage_reports.py +18 -24
- gcore/resources/cloud/users/role_assignments.py +8 -24
- gcore/resources/cloud/volumes.py +20 -60
- gcore/resources/dns/dns.py +4 -8
- gcore/resources/dns/locations.py +8 -20
- gcore/resources/dns/metrics.py +2 -6
- gcore/resources/dns/pickers/pickers.py +2 -2
- gcore/resources/dns/pickers/presets.py +2 -6
- gcore/resources/dns/zones/dnssec.py +4 -12
- gcore/resources/dns/zones/rrsets.py +12 -36
- gcore/resources/dns/zones/zones.py +22 -58
- gcore/resources/fastedge/apps/apps.py +12 -28
- gcore/resources/fastedge/apps/logs.py +2 -6
- gcore/resources/fastedge/binaries.py +8 -24
- gcore/resources/fastedge/fastedge.py +2 -2
- gcore/resources/fastedge/kv_stores.py +10 -22
- gcore/resources/fastedge/secrets.py +12 -36
- gcore/resources/fastedge/statistics.py +4 -12
- gcore/resources/fastedge/templates.py +10 -30
- gcore/resources/iam/api_tokens.py +8 -24
- gcore/resources/iam/iam.py +2 -2
- gcore/resources/iam/users.py +10 -26
- gcore/resources/security/bgp_announces.py +4 -12
- gcore/resources/security/events.py +2 -6
- gcore/resources/security/profile_templates.py +2 -6
- gcore/resources/security/profiles.py +16 -40
- gcore/resources/storage/buckets/buckets.py +6 -18
- gcore/resources/storage/buckets/cors.py +4 -12
- gcore/resources/storage/buckets/lifecycle.py +4 -12
- gcore/resources/storage/buckets/policy.py +6 -18
- gcore/resources/storage/credentials.py +2 -6
- gcore/resources/storage/locations.py +2 -6
- gcore/resources/storage/statistics.py +4 -12
- gcore/resources/storage/storage.py +16 -48
- gcore/resources/streaming/ai_tasks.py +10 -18
- gcore/resources/streaming/broadcasts.py +12 -36
- gcore/resources/streaming/directories.py +10 -30
- gcore/resources/streaming/players.py +12 -28
- gcore/resources/streaming/playlists.py +12 -36
- gcore/resources/streaming/quality_sets.py +4 -12
- gcore/resources/streaming/restreams.py +10 -30
- gcore/resources/streaming/statistics.py +46 -138
- gcore/resources/streaming/streams/overlays.py +12 -36
- gcore/resources/streaming/streams/streams.py +20 -52
- gcore/resources/streaming/videos/subtitles.py +10 -30
- gcore/resources/streaming/videos/videos.py +16 -40
- gcore/resources/waap/advanced_rules.py +2 -6
- gcore/resources/waap/custom_page_sets.py +12 -36
- gcore/resources/waap/domains/advanced_rules.py +12 -36
- gcore/resources/waap/domains/api_discovery.py +12 -36
- gcore/resources/waap/domains/api_path_groups.py +2 -6
- gcore/resources/waap/domains/api_paths.py +10 -30
- gcore/resources/waap/domains/custom_rules.py +14 -42
- gcore/resources/waap/domains/domains.py +12 -32
- gcore/resources/waap/domains/firewall_rules.py +14 -42
- gcore/resources/waap/domains/insight_silences.py +10 -30
- gcore/resources/waap/domains/insights.py +6 -18
- gcore/resources/waap/domains/settings.py +4 -12
- gcore/resources/waap/domains/statistics.py +12 -36
- gcore/resources/waap/insights.py +2 -6
- gcore/resources/waap/ip_info/ip_info.py +16 -48
- gcore/resources/waap/ip_info/metrics.py +2 -6
- gcore/resources/waap/organizations.py +2 -6
- gcore/resources/waap/statistics.py +2 -6
- gcore/resources/waap/tags.py +2 -2
- gcore/resources/waap/waap.py +2 -2
- gcore/types/cdn/logs/__init__.py +0 -4
- gcore/types/cdn/logs_aggregated_stats.py +1 -1
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/billing_reservation.py +52 -114
- gcore/types/cloud/billing_reservation_list_params.py +4 -42
- gcore/types/cloud/billing_reservations.py +16 -0
- gcore/types/cloud/cost_report_get_aggregated_params.py +2 -2
- gcore/types/cloud/cost_report_get_detailed_params.py +2 -2
- gcore/types/cloud/inference/applications/__init__.py +1 -1
- gcore/types/cloud/inference/applications/{deployment_patch_params.py → deployment_update_params.py} +2 -2
- gcore/types/cloud/instance_list_params.py +1 -1
- gcore/types/cloud/instance_update_params.py +31 -3
- gcore/types/cloud/load_balancer_create_params.py +1 -1
- gcore/types/cloud/load_balancer_listener_detail.py +1 -1
- gcore/types/cloud/load_balancers/listener_create_params.py +1 -1
- gcore/types/cloud/load_balancers/listener_list_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_list_params.py +1 -1
- gcore/types/cloud/task_list_params.py +3 -3
- gcore/types/cloud/usage_report_get_params.py +2 -2
- gcore/types/security/profile_create_params.py +2 -2
- {gcore-0.15.0.dist-info → gcore-0.16.0.dist-info}/METADATA +1 -1
- {gcore-0.15.0.dist-info → gcore-0.16.0.dist-info}/RECORD +177 -180
- gcore/resources/cdn/logs/settings.py +0 -1081
- gcore/types/cdn/logs/log_settings.py +0 -172
- gcore/types/cdn/logs/setting_create_params.py +0 -200
- gcore/types/cdn/logs/setting_update_params.py +0 -200
- {gcore-0.15.0.dist-info → gcore-0.16.0.dist-info}/WHEEL +0 -0
- {gcore-0.15.0.dist-info → gcore-0.16.0.dist-info}/licenses/LICENSE +0 -0
gcore/resources/waap/insights.py
CHANGED
|
@@ -87,9 +87,7 @@ class InsightsResource(SyncAPIResource):
|
|
|
87
87
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
88
88
|
"""
|
|
89
89
|
return self._get_api_list(
|
|
90
|
-
"/waap/v1/security-insights/types"
|
|
91
|
-
if self._client._base_url_overridden
|
|
92
|
-
else "https://api.gcore.com//waap/v1/security-insights/types",
|
|
90
|
+
"/waap/v1/security-insights/types",
|
|
93
91
|
page=SyncOffsetPage[WaapInsightType],
|
|
94
92
|
options=make_request_options(
|
|
95
93
|
extra_headers=extra_headers,
|
|
@@ -174,9 +172,7 @@ class AsyncInsightsResource(AsyncAPIResource):
|
|
|
174
172
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
175
173
|
"""
|
|
176
174
|
return self._get_api_list(
|
|
177
|
-
"/waap/v1/security-insights/types"
|
|
178
|
-
if self._client._base_url_overridden
|
|
179
|
-
else "https://api.gcore.com//waap/v1/security-insights/types",
|
|
175
|
+
"/waap/v1/security-insights/types",
|
|
180
176
|
page=AsyncOffsetPage[WaapInsightType],
|
|
181
177
|
options=make_request_options(
|
|
182
178
|
extra_headers=extra_headers,
|
|
@@ -95,9 +95,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
95
95
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
96
96
|
"""
|
|
97
97
|
return self._get(
|
|
98
|
-
"/waap/v1/ip-info/attack-time-series"
|
|
99
|
-
if self._client._base_url_overridden
|
|
100
|
-
else "https://api.gcore.com//waap/v1/ip-info/attack-time-series",
|
|
98
|
+
"/waap/v1/ip-info/attack-time-series",
|
|
101
99
|
options=make_request_options(
|
|
102
100
|
extra_headers=extra_headers,
|
|
103
101
|
extra_query=extra_query,
|
|
@@ -144,9 +142,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
144
142
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
145
143
|
"""
|
|
146
144
|
return self._get(
|
|
147
|
-
"/waap/v1/ip-info/blocked-requests"
|
|
148
|
-
if self._client._base_url_overridden
|
|
149
|
-
else "https://api.gcore.com//waap/v1/ip-info/blocked-requests",
|
|
145
|
+
"/waap/v1/ip-info/blocked-requests",
|
|
150
146
|
options=make_request_options(
|
|
151
147
|
extra_headers=extra_headers,
|
|
152
148
|
extra_query=extra_query,
|
|
@@ -193,9 +189,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
193
189
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
194
190
|
"""
|
|
195
191
|
return self._get(
|
|
196
|
-
"/waap/v1/ip-info/ddos"
|
|
197
|
-
if self._client._base_url_overridden
|
|
198
|
-
else "https://api.gcore.com//waap/v1/ip-info/ddos",
|
|
192
|
+
"/waap/v1/ip-info/ddos",
|
|
199
193
|
options=make_request_options(
|
|
200
194
|
extra_headers=extra_headers,
|
|
201
195
|
extra_query=extra_query,
|
|
@@ -235,9 +229,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
235
229
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
236
230
|
"""
|
|
237
231
|
return self._get(
|
|
238
|
-
"/waap/v1/ip-info/ip-info"
|
|
239
|
-
if self._client._base_url_overridden
|
|
240
|
-
else "https://api.gcore.com//waap/v1/ip-info/ip-info",
|
|
232
|
+
"/waap/v1/ip-info/ip-info",
|
|
241
233
|
options=make_request_options(
|
|
242
234
|
extra_headers=extra_headers,
|
|
243
235
|
extra_query=extra_query,
|
|
@@ -282,9 +274,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
282
274
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
283
275
|
"""
|
|
284
276
|
return self._get(
|
|
285
|
-
"/waap/v1/ip-info/top-urls"
|
|
286
|
-
if self._client._base_url_overridden
|
|
287
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-urls",
|
|
277
|
+
"/waap/v1/ip-info/top-urls",
|
|
288
278
|
options=make_request_options(
|
|
289
279
|
extra_headers=extra_headers,
|
|
290
280
|
extra_query=extra_query,
|
|
@@ -333,9 +323,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
333
323
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
334
324
|
"""
|
|
335
325
|
return self._get(
|
|
336
|
-
"/waap/v1/ip-info/top-user-agents"
|
|
337
|
-
if self._client._base_url_overridden
|
|
338
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-user-agents",
|
|
326
|
+
"/waap/v1/ip-info/top-user-agents",
|
|
339
327
|
options=make_request_options(
|
|
340
328
|
extra_headers=extra_headers,
|
|
341
329
|
extra_query=extra_query,
|
|
@@ -384,9 +372,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
384
372
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
385
373
|
"""
|
|
386
374
|
return self._get(
|
|
387
|
-
"/waap/v1/ip-info/top-sessions"
|
|
388
|
-
if self._client._base_url_overridden
|
|
389
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-sessions",
|
|
375
|
+
"/waap/v1/ip-info/top-sessions",
|
|
390
376
|
options=make_request_options(
|
|
391
377
|
extra_headers=extra_headers,
|
|
392
378
|
extra_query=extra_query,
|
|
@@ -429,9 +415,7 @@ class IPInfoResource(SyncAPIResource):
|
|
|
429
415
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
430
416
|
"""
|
|
431
417
|
return self._get(
|
|
432
|
-
"/waap/v1/ip-info/attack-map"
|
|
433
|
-
if self._client._base_url_overridden
|
|
434
|
-
else "https://api.gcore.com//waap/v1/ip-info/attack-map",
|
|
418
|
+
"/waap/v1/ip-info/attack-map",
|
|
435
419
|
options=make_request_options(
|
|
436
420
|
extra_headers=extra_headers,
|
|
437
421
|
extra_query=extra_query,
|
|
@@ -495,9 +479,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
495
479
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
496
480
|
"""
|
|
497
481
|
return await self._get(
|
|
498
|
-
"/waap/v1/ip-info/attack-time-series"
|
|
499
|
-
if self._client._base_url_overridden
|
|
500
|
-
else "https://api.gcore.com//waap/v1/ip-info/attack-time-series",
|
|
482
|
+
"/waap/v1/ip-info/attack-time-series",
|
|
501
483
|
options=make_request_options(
|
|
502
484
|
extra_headers=extra_headers,
|
|
503
485
|
extra_query=extra_query,
|
|
@@ -544,9 +526,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
544
526
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
545
527
|
"""
|
|
546
528
|
return await self._get(
|
|
547
|
-
"/waap/v1/ip-info/blocked-requests"
|
|
548
|
-
if self._client._base_url_overridden
|
|
549
|
-
else "https://api.gcore.com//waap/v1/ip-info/blocked-requests",
|
|
529
|
+
"/waap/v1/ip-info/blocked-requests",
|
|
550
530
|
options=make_request_options(
|
|
551
531
|
extra_headers=extra_headers,
|
|
552
532
|
extra_query=extra_query,
|
|
@@ -593,9 +573,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
593
573
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
594
574
|
"""
|
|
595
575
|
return await self._get(
|
|
596
|
-
"/waap/v1/ip-info/ddos"
|
|
597
|
-
if self._client._base_url_overridden
|
|
598
|
-
else "https://api.gcore.com//waap/v1/ip-info/ddos",
|
|
576
|
+
"/waap/v1/ip-info/ddos",
|
|
599
577
|
options=make_request_options(
|
|
600
578
|
extra_headers=extra_headers,
|
|
601
579
|
extra_query=extra_query,
|
|
@@ -635,9 +613,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
635
613
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
636
614
|
"""
|
|
637
615
|
return await self._get(
|
|
638
|
-
"/waap/v1/ip-info/ip-info"
|
|
639
|
-
if self._client._base_url_overridden
|
|
640
|
-
else "https://api.gcore.com//waap/v1/ip-info/ip-info",
|
|
616
|
+
"/waap/v1/ip-info/ip-info",
|
|
641
617
|
options=make_request_options(
|
|
642
618
|
extra_headers=extra_headers,
|
|
643
619
|
extra_query=extra_query,
|
|
@@ -682,9 +658,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
682
658
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
683
659
|
"""
|
|
684
660
|
return await self._get(
|
|
685
|
-
"/waap/v1/ip-info/top-urls"
|
|
686
|
-
if self._client._base_url_overridden
|
|
687
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-urls",
|
|
661
|
+
"/waap/v1/ip-info/top-urls",
|
|
688
662
|
options=make_request_options(
|
|
689
663
|
extra_headers=extra_headers,
|
|
690
664
|
extra_query=extra_query,
|
|
@@ -733,9 +707,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
733
707
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
734
708
|
"""
|
|
735
709
|
return await self._get(
|
|
736
|
-
"/waap/v1/ip-info/top-user-agents"
|
|
737
|
-
if self._client._base_url_overridden
|
|
738
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-user-agents",
|
|
710
|
+
"/waap/v1/ip-info/top-user-agents",
|
|
739
711
|
options=make_request_options(
|
|
740
712
|
extra_headers=extra_headers,
|
|
741
713
|
extra_query=extra_query,
|
|
@@ -784,9 +756,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
784
756
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
785
757
|
"""
|
|
786
758
|
return await self._get(
|
|
787
|
-
"/waap/v1/ip-info/top-sessions"
|
|
788
|
-
if self._client._base_url_overridden
|
|
789
|
-
else "https://api.gcore.com//waap/v1/ip-info/top-sessions",
|
|
759
|
+
"/waap/v1/ip-info/top-sessions",
|
|
790
760
|
options=make_request_options(
|
|
791
761
|
extra_headers=extra_headers,
|
|
792
762
|
extra_query=extra_query,
|
|
@@ -829,9 +799,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
|
|
|
829
799
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
830
800
|
"""
|
|
831
801
|
return await self._get(
|
|
832
|
-
"/waap/v1/ip-info/attack-map"
|
|
833
|
-
if self._client._base_url_overridden
|
|
834
|
-
else "https://api.gcore.com//waap/v1/ip-info/attack-map",
|
|
802
|
+
"/waap/v1/ip-info/attack-map",
|
|
835
803
|
options=make_request_options(
|
|
836
804
|
extra_headers=extra_headers,
|
|
837
805
|
extra_query=extra_query,
|
|
@@ -77,9 +77,7 @@ class MetricsResource(SyncAPIResource):
|
|
|
77
77
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
78
78
|
"""
|
|
79
79
|
return self._get(
|
|
80
|
-
"/waap/v1/ip-info/counts"
|
|
81
|
-
if self._client._base_url_overridden
|
|
82
|
-
else "https://api.gcore.com//waap/v1/ip-info/counts",
|
|
80
|
+
"/waap/v1/ip-info/counts",
|
|
83
81
|
options=make_request_options(
|
|
84
82
|
extra_headers=extra_headers,
|
|
85
83
|
extra_query=extra_query,
|
|
@@ -151,9 +149,7 @@ class AsyncMetricsResource(AsyncAPIResource):
|
|
|
151
149
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
152
150
|
"""
|
|
153
151
|
return await self._get(
|
|
154
|
-
"/waap/v1/ip-info/counts"
|
|
155
|
-
if self._client._base_url_overridden
|
|
156
|
-
else "https://api.gcore.com//waap/v1/ip-info/counts",
|
|
152
|
+
"/waap/v1/ip-info/counts",
|
|
157
153
|
options=make_request_options(
|
|
158
154
|
extra_headers=extra_headers,
|
|
159
155
|
extra_query=extra_query,
|
|
@@ -82,9 +82,7 @@ class OrganizationsResource(SyncAPIResource):
|
|
|
82
82
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
83
83
|
"""
|
|
84
84
|
return self._get_api_list(
|
|
85
|
-
"/waap/v1/organizations"
|
|
86
|
-
if self._client._base_url_overridden
|
|
87
|
-
else "https://api.gcore.com//waap/v1/organizations",
|
|
85
|
+
"/waap/v1/organizations",
|
|
88
86
|
page=SyncOffsetPage[WaapOrganization],
|
|
89
87
|
options=make_request_options(
|
|
90
88
|
extra_headers=extra_headers,
|
|
@@ -162,9 +160,7 @@ class AsyncOrganizationsResource(AsyncAPIResource):
|
|
|
162
160
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
163
161
|
"""
|
|
164
162
|
return self._get_api_list(
|
|
165
|
-
"/waap/v1/organizations"
|
|
166
|
-
if self._client._base_url_overridden
|
|
167
|
-
else "https://api.gcore.com//waap/v1/organizations",
|
|
163
|
+
"/waap/v1/organizations",
|
|
168
164
|
page=AsyncOffsetPage[WaapOrganization],
|
|
169
165
|
options=make_request_options(
|
|
170
166
|
extra_headers=extra_headers,
|
|
@@ -87,9 +87,7 @@ class StatisticsResource(SyncAPIResource):
|
|
|
87
87
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
88
88
|
"""
|
|
89
89
|
return self._get(
|
|
90
|
-
"/waap/v1/statistics/series"
|
|
91
|
-
if self._client._base_url_overridden
|
|
92
|
-
else "https://api.gcore.com//waap/v1/statistics/series",
|
|
90
|
+
"/waap/v1/statistics/series",
|
|
93
91
|
options=make_request_options(
|
|
94
92
|
extra_headers=extra_headers,
|
|
95
93
|
extra_query=extra_query,
|
|
@@ -171,9 +169,7 @@ class AsyncStatisticsResource(AsyncAPIResource):
|
|
|
171
169
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
172
170
|
"""
|
|
173
171
|
return await self._get(
|
|
174
|
-
"/waap/v1/statistics/series"
|
|
175
|
-
if self._client._base_url_overridden
|
|
176
|
-
else "https://api.gcore.com//waap/v1/statistics/series",
|
|
172
|
+
"/waap/v1/statistics/series",
|
|
177
173
|
options=make_request_options(
|
|
178
174
|
extra_headers=extra_headers,
|
|
179
175
|
extra_query=extra_query,
|
gcore/resources/waap/tags.py
CHANGED
|
@@ -88,7 +88,7 @@ class TagsResource(SyncAPIResource):
|
|
|
88
88
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
89
89
|
"""
|
|
90
90
|
return self._get_api_list(
|
|
91
|
-
"/waap/v1/tags"
|
|
91
|
+
"/waap/v1/tags",
|
|
92
92
|
page=SyncOffsetPage[WaapTag],
|
|
93
93
|
options=make_request_options(
|
|
94
94
|
extra_headers=extra_headers,
|
|
@@ -174,7 +174,7 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
174
174
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
175
175
|
"""
|
|
176
176
|
return self._get_api_list(
|
|
177
|
-
"/waap/v1/tags"
|
|
177
|
+
"/waap/v1/tags",
|
|
178
178
|
page=AsyncOffsetPage[WaapTag],
|
|
179
179
|
options=make_request_options(
|
|
180
180
|
extra_headers=extra_headers,
|
gcore/resources/waap/waap.py
CHANGED
|
@@ -147,7 +147,7 @@ class WaapResource(SyncAPIResource):
|
|
|
147
147
|
) -> WaapGetAccountOverviewResponse:
|
|
148
148
|
"""Get information about WAAP service for the client"""
|
|
149
149
|
return self._get(
|
|
150
|
-
"/waap/v1/clients/me"
|
|
150
|
+
"/waap/v1/clients/me",
|
|
151
151
|
options=make_request_options(
|
|
152
152
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
153
153
|
),
|
|
@@ -219,7 +219,7 @@ class AsyncWaapResource(AsyncAPIResource):
|
|
|
219
219
|
) -> WaapGetAccountOverviewResponse:
|
|
220
220
|
"""Get information about WAAP service for the client"""
|
|
221
221
|
return await self._get(
|
|
222
|
-
"/waap/v1/clients/me"
|
|
222
|
+
"/waap/v1/clients/me",
|
|
223
223
|
options=make_request_options(
|
|
224
224
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
225
225
|
),
|
gcore/types/cdn/logs/__init__.py
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .log_settings import LogSettings as LogSettings
|
|
6
|
-
from .setting_create_params import SettingCreateParams as SettingCreateParams
|
|
7
|
-
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
|
|
@@ -17,7 +17,7 @@ class LogsAggregatedStats(BaseModel):
|
|
|
17
17
|
"""Statistics parameters."""
|
|
18
18
|
|
|
19
19
|
raw_logs_usage: Optional[str] = None
|
|
20
|
-
"""Number of resources that used
|
|
20
|
+
"""Number of resources that used Logs uploader."""
|
|
21
21
|
|
|
22
22
|
resource: Optional[object] = None
|
|
23
23
|
"""Resources IDs by which statistics data is grouped.."""
|
gcore/types/cloud/__init__.py
CHANGED
|
@@ -72,6 +72,7 @@ from .provisioning_status import ProvisioningStatus as ProvisioningStatus
|
|
|
72
72
|
from .security_group_rule import SecurityGroupRule as SecurityGroupRule
|
|
73
73
|
from .session_persistence import SessionPersistence as SessionPersistence
|
|
74
74
|
from .ssh_key_list_params import SSHKeyListParams as SSHKeyListParams
|
|
75
|
+
from .billing_reservations import BillingReservations as BillingReservations
|
|
75
76
|
from .cost_report_detailed import CostReportDetailed as CostReportDetailed
|
|
76
77
|
from .floating_ip_detailed import FloatingIPDetailed as FloatingIPDetailed
|
|
77
78
|
from .instance_list_params import InstanceListParams as InstanceListParams
|
|
@@ -1,153 +1,91 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
4
|
-
from datetime import
|
|
5
|
-
from typing_extensions import Literal
|
|
3
|
+
from typing import Optional
|
|
4
|
+
from datetime import datetime
|
|
6
5
|
|
|
7
6
|
from ..._models import BaseModel
|
|
8
7
|
|
|
9
|
-
__all__ = ["BillingReservation", "
|
|
8
|
+
__all__ = ["BillingReservation", "ActiveOvercommit", "Commit", "HardwareInfo"]
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
"""
|
|
11
|
+
class ActiveOvercommit(BaseModel):
|
|
12
|
+
active_from: datetime
|
|
13
|
+
"""Billing subscription active from date"""
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
"""
|
|
15
|
+
plan_item_id: Optional[int] = None
|
|
16
|
+
"""Billing plan item ID"""
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
"""
|
|
18
|
+
price_per_month: str
|
|
19
|
+
"""Price per month"""
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
"""
|
|
21
|
+
price_per_unit: str
|
|
22
|
+
"""Price per unit (hourly)"""
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
"""
|
|
24
|
+
price_total: str
|
|
25
|
+
"""Total price for the reservation period"""
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
"""
|
|
27
|
+
subscription_id: Optional[int] = None
|
|
28
|
+
"""Billing subscription ID for overcommit"""
|
|
30
29
|
|
|
31
|
-
overcommit_price_total: str
|
|
32
|
-
"""Overcommit price of the item charged for all period reservation"""
|
|
33
30
|
|
|
31
|
+
class Commit(BaseModel):
|
|
32
|
+
active_from: datetime
|
|
33
|
+
"""Billing subscription active from date"""
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"""Name of the billing period, e.g month"""
|
|
35
|
+
active_to: Optional[datetime] = None
|
|
36
|
+
"""Billing subscription active to date"""
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
"""
|
|
38
|
+
price_per_month: str
|
|
39
|
+
"""Price per month, per one resource"""
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
"""
|
|
41
|
+
price_per_unit: str
|
|
42
|
+
"""Price per unit, per one resource (hourly)"""
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
"""
|
|
44
|
+
price_total: str
|
|
45
|
+
"""Total price for the reservation period for the full reserved amount"""
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
"""
|
|
47
|
+
subscription_id: int
|
|
48
|
+
"""Billing subscription ID for commit"""
|
|
50
49
|
|
|
51
|
-
commit_price_total: str
|
|
52
|
-
"""Commit price of the item charged for all period reservation"""
|
|
53
|
-
|
|
54
|
-
overcommit_billing_plan_item_id: int
|
|
55
|
-
"""Overcommit billing plan item id"""
|
|
56
|
-
|
|
57
|
-
overcommit_price_per_month: str
|
|
58
|
-
"""Overcommit price of the item charged per month"""
|
|
59
|
-
|
|
60
|
-
overcommit_price_per_unit: str
|
|
61
|
-
"""Overcommit price of the item charged per hour"""
|
|
62
|
-
|
|
63
|
-
overcommit_price_total: str
|
|
64
|
-
"""Overcommit price of the item charged for all period reservation"""
|
|
65
|
-
|
|
66
|
-
resource_count: int
|
|
67
|
-
"""Number of reserved resource items"""
|
|
68
|
-
|
|
69
|
-
resource_name: str
|
|
70
|
-
"""Resource name"""
|
|
71
|
-
|
|
72
|
-
resource_type: Literal["flavor"]
|
|
73
|
-
"""Resource type"""
|
|
74
|
-
|
|
75
|
-
unit_name: str
|
|
76
|
-
"""Billing unit name"""
|
|
77
|
-
|
|
78
|
-
unit_size_month: str
|
|
79
|
-
"""Minimal billing size, for example it is 744 hours per 1 month."""
|
|
80
|
-
|
|
81
|
-
unit_size_total: str
|
|
82
|
-
"""Unit size month multiplied by count of resources in the reservation"""
|
|
83
50
|
|
|
51
|
+
class HardwareInfo(BaseModel):
|
|
84
52
|
cpu: Optional[str] = None
|
|
85
|
-
"""
|
|
53
|
+
"""CPU specification"""
|
|
86
54
|
|
|
87
55
|
disk: Optional[str] = None
|
|
88
|
-
"""
|
|
56
|
+
"""Disk specification"""
|
|
89
57
|
|
|
90
58
|
ram: Optional[str] = None
|
|
91
|
-
"""
|
|
59
|
+
"""RAM specification"""
|
|
92
60
|
|
|
93
61
|
|
|
94
62
|
class BillingReservation(BaseModel):
|
|
95
|
-
|
|
96
|
-
"""
|
|
97
|
-
|
|
98
|
-
active_from: date
|
|
99
|
-
"""Reservation active from date"""
|
|
63
|
+
active_billing_plan_id: int
|
|
64
|
+
"""Active billing plan ID"""
|
|
100
65
|
|
|
101
|
-
|
|
102
|
-
"""
|
|
66
|
+
active_overcommit: ActiveOvercommit
|
|
67
|
+
"""Overcommit pricing details"""
|
|
103
68
|
|
|
104
|
-
|
|
105
|
-
"""
|
|
69
|
+
commit: Commit
|
|
70
|
+
"""Commit pricing details"""
|
|
106
71
|
|
|
107
|
-
|
|
108
|
-
"""
|
|
109
|
-
|
|
110
|
-
amount_prices: AmountPrices
|
|
111
|
-
"""Reservation amount prices"""
|
|
112
|
-
|
|
113
|
-
billing_plan_id: int
|
|
114
|
-
"""Billing plan id"""
|
|
115
|
-
|
|
116
|
-
created_at: datetime
|
|
117
|
-
"""Reservation creation date"""
|
|
118
|
-
|
|
119
|
-
error: Optional[str] = None
|
|
120
|
-
"""Error message if any occured during reservation"""
|
|
121
|
-
|
|
122
|
-
eta: Optional[date] = None
|
|
123
|
-
"""ETA delivery if bare metal out of stock.
|
|
124
|
-
|
|
125
|
-
Value None means that bare metal in stock.
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
is_expiration_message_visible: bool
|
|
129
|
-
"""Hide or show expiration message to customer."""
|
|
130
|
-
|
|
131
|
-
name: str
|
|
132
|
-
"""Reservation name"""
|
|
133
|
-
|
|
134
|
-
next_statuses: List[str]
|
|
135
|
-
"""List of possible next reservation statuses"""
|
|
136
|
-
|
|
137
|
-
region_id: int
|
|
138
|
-
"""Region id"""
|
|
72
|
+
hardware_info: HardwareInfo
|
|
73
|
+
"""Hardware specifications"""
|
|
139
74
|
|
|
140
75
|
region_name: str
|
|
141
76
|
"""Region name"""
|
|
142
77
|
|
|
143
|
-
|
|
144
|
-
"""
|
|
78
|
+
resource_count: int
|
|
79
|
+
"""Number of reserved resource items"""
|
|
145
80
|
|
|
146
|
-
|
|
147
|
-
"""
|
|
81
|
+
resource_name: str
|
|
82
|
+
"""Resource name"""
|
|
148
83
|
|
|
149
|
-
|
|
150
|
-
"""
|
|
84
|
+
unit_name: str
|
|
85
|
+
"""Unit name (e.g., 'H' for hours)"""
|
|
151
86
|
|
|
152
|
-
|
|
153
|
-
"""
|
|
87
|
+
unit_size_month: str
|
|
88
|
+
"""Unit size per month (e.g., 744 hours)"""
|
|
89
|
+
|
|
90
|
+
unit_size_total: str
|
|
91
|
+
"""Unit size month multiplied by count of resources in the reservation"""
|
|
@@ -2,58 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from datetime import date, datetime
|
|
7
|
-
from typing_extensions import Literal, Annotated, TypedDict
|
|
8
|
-
|
|
9
|
-
from ..._utils import PropertyInfo
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
10
6
|
|
|
11
7
|
__all__ = ["BillingReservationListParams"]
|
|
12
8
|
|
|
13
9
|
|
|
14
10
|
class BillingReservationListParams(TypedDict, total=False):
|
|
15
|
-
activated_from: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
|
|
16
|
-
"""Lower bound, starting from what date the reservation was/will be activated"""
|
|
17
|
-
|
|
18
|
-
activated_to: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
|
|
19
|
-
"""High bound, before what date the reservation was/will be activated"""
|
|
20
|
-
|
|
21
|
-
created_from: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
22
|
-
"""
|
|
23
|
-
Lower bound the filter, showing result(s) equal to or greater than date the
|
|
24
|
-
reservation was created
|
|
25
|
-
"""
|
|
26
|
-
|
|
27
|
-
created_to: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
28
|
-
"""
|
|
29
|
-
High bound the filter, showing result(s) equal to or less date the reservation
|
|
30
|
-
was created
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
deactivated_from: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
|
|
34
|
-
"""Lower bound, starting from what date the reservation was/will be deactivated"""
|
|
35
|
-
|
|
36
|
-
deactivated_to: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
|
|
37
|
-
"""High bound, before what date the reservation was/will be deactivated"""
|
|
38
|
-
|
|
39
|
-
limit: int
|
|
40
|
-
"""Limit of reservation list page"""
|
|
41
|
-
|
|
42
11
|
metric_name: str
|
|
43
12
|
"""Name from billing features for specific resource"""
|
|
44
13
|
|
|
45
|
-
|
|
46
|
-
"""Offset in reservation list"""
|
|
47
|
-
|
|
48
|
-
order_by: Literal[
|
|
49
|
-
"active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc", "created_at.asc", "created_at.desc"
|
|
50
|
-
]
|
|
14
|
+
order_by: Literal["active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc"]
|
|
51
15
|
"""Order by field and direction."""
|
|
52
16
|
|
|
53
17
|
region_id: int
|
|
54
18
|
"""Region for reservation"""
|
|
55
19
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
]
|
|
59
|
-
"""Field for fixed a status by reservation workflow"""
|
|
20
|
+
show_inactive: bool
|
|
21
|
+
"""Include inactive commits in the response"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
from .billing_reservation import BillingReservation
|
|
7
|
+
|
|
8
|
+
__all__ = ["BillingReservations"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BillingReservations(BaseModel):
|
|
12
|
+
count: int
|
|
13
|
+
"""Number of objects"""
|
|
14
|
+
|
|
15
|
+
results: List[BillingReservation]
|
|
16
|
+
"""Objects"""
|
|
@@ -46,13 +46,13 @@ class CostReportGetAggregatedParams(TypedDict, total=False):
|
|
|
46
46
|
time_from: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
47
47
|
"""The start date of the report period (ISO 8601).
|
|
48
48
|
|
|
49
|
-
The report starts from the beginning of this day.
|
|
49
|
+
The report starts from the beginning of this day in UTC.
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
time_to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
53
53
|
"""The end date of the report period (ISO 8601).
|
|
54
54
|
|
|
55
|
-
The report ends just before the beginning of this day.
|
|
55
|
+
The report ends just before the beginning of this day in UTC.
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
58
|
enable_last_day: bool
|
|
@@ -47,13 +47,13 @@ class CostReportGetDetailedParams(TypedDict, total=False):
|
|
|
47
47
|
time_from: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
48
48
|
"""The start date of the report period (ISO 8601).
|
|
49
49
|
|
|
50
|
-
The report starts from the beginning of this day.
|
|
50
|
+
The report starts from the beginning of this day in UTC.
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
time_to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
54
54
|
"""The end date of the report period (ISO 8601).
|
|
55
55
|
|
|
56
|
-
The report ends just before the beginning of this day.
|
|
56
|
+
The report ends just before the beginning of this day in UTC.
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
enable_last_day: bool
|