gcore 0.13.0__py3-none-any.whl → 0.14.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/__init__.py +3 -1
- gcore/_base_client.py +9 -9
- gcore/_client.py +25 -10
- gcore/_models.py +10 -4
- gcore/_qs.py +7 -7
- gcore/_types.py +18 -11
- gcore/_utils/_transform.py +2 -2
- gcore/_utils/_utils.py +4 -4
- gcore/_version.py +1 -1
- gcore/pagination.py +137 -0
- gcore/resources/__init__.py +14 -0
- gcore/resources/cdn/__init__.py +201 -0
- gcore/resources/cdn/audit_log.py +406 -0
- gcore/resources/cdn/cdn.py +957 -0
- gcore/resources/cdn/certificates.py +1062 -0
- gcore/resources/cdn/ip_ranges.py +224 -0
- gcore/resources/cdn/logs/__init__.py +33 -0
- gcore/resources/cdn/logs/logs.py +1424 -0
- gcore/resources/cdn/logs/settings.py +1081 -0
- gcore/resources/cdn/logs_uploader/__init__.py +61 -0
- gcore/resources/cdn/logs_uploader/configs.py +868 -0
- gcore/resources/cdn/logs_uploader/logs_uploader.py +166 -0
- gcore/resources/cdn/logs_uploader/policies.py +1060 -0
- gcore/resources/cdn/logs_uploader/targets.py +811 -0
- gcore/resources/cdn/metrics.py +419 -0
- gcore/resources/cdn/network_capacity.py +139 -0
- gcore/resources/cdn/origin_groups.py +1496 -0
- gcore/resources/cdn/resources/__init__.py +47 -0
- gcore/resources/cdn/resources/resources.py +2060 -0
- gcore/resources/cdn/resources/rules.py +1027 -0
- gcore/resources/cdn/resources/shield.py +259 -0
- gcore/resources/cdn/rule_templates.py +883 -0
- gcore/resources/cdn/shields.py +139 -0
- gcore/resources/cdn/statistics.py +1408 -0
- gcore/resources/cdn/trusted_ca_certificates.py +592 -0
- gcore/resources/cloud/audit_logs.py +33 -29
- gcore/resources/cloud/baremetal/flavors.py +21 -17
- gcore/resources/cloud/baremetal/images.py +19 -15
- gcore/resources/cloud/baremetal/servers.py +141 -119
- gcore/resources/cloud/billing_reservations.py +41 -33
- gcore/resources/cloud/cloud.py +24 -0
- gcore/resources/cloud/cost_reports.py +149 -119
- gcore/resources/cloud/file_shares/access_rules.py +25 -13
- gcore/resources/cloud/file_shares/file_shares.py +107 -71
- gcore/resources/cloud/floating_ips.py +101 -59
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +13 -9
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +275 -65
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +69 -53
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +9 -5
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +151 -127
- gcore/resources/cloud/inference/api_keys.py +51 -31
- gcore/resources/cloud/inference/applications/deployments.py +49 -31
- gcore/resources/cloud/inference/applications/templates.py +17 -9
- gcore/resources/cloud/inference/deployments/deployments.py +171 -139
- gcore/resources/cloud/inference/deployments/logs.py +17 -13
- gcore/resources/cloud/inference/flavors.py +21 -13
- gcore/resources/cloud/inference/inference.py +9 -5
- gcore/resources/cloud/inference/registry_credentials.py +45 -25
- gcore/resources/cloud/inference/secrets.py +45 -25
- gcore/resources/cloud/instances/flavors.py +17 -13
- gcore/resources/cloud/instances/images.py +153 -129
- gcore/resources/cloud/instances/instances.py +287 -213
- gcore/resources/cloud/instances/interfaces.py +165 -161
- gcore/resources/cloud/instances/metrics.py +9 -5
- gcore/resources/cloud/ip_ranges.py +25 -15
- gcore/resources/cloud/k8s/clusters/clusters.py +151 -87
- gcore/resources/cloud/k8s/clusters/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +19 -11
- gcore/resources/cloud/k8s/clusters/pools/pools.py +83 -59
- gcore/resources/cloud/k8s/flavors.py +13 -9
- gcore/resources/cloud/k8s/k8s.py +9 -5
- gcore/resources/cloud/load_balancers/flavors.py +11 -7
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +103 -83
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +77 -57
- gcore/resources/cloud/load_balancers/listeners.py +125 -105
- gcore/resources/cloud/load_balancers/load_balancers.py +155 -123
- gcore/resources/cloud/load_balancers/metrics.py +9 -5
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +25 -17
- gcore/resources/cloud/load_balancers/pools/members.py +31 -23
- gcore/resources/cloud/load_balancers/pools/pools.py +155 -129
- gcore/resources/cloud/load_balancers/statuses.py +17 -9
- gcore/resources/cloud/networks/networks.py +79 -55
- gcore/resources/cloud/networks/routers.py +75 -47
- gcore/resources/cloud/networks/subnets.py +105 -81
- gcore/resources/cloud/placement_groups.py +33 -17
- gcore/resources/cloud/projects.py +53 -41
- gcore/resources/cloud/quotas/quotas.py +25 -13
- gcore/resources/cloud/quotas/requests.py +41 -25
- gcore/resources/cloud/regions.py +25 -23
- gcore/resources/cloud/registries/artifacts.py +17 -9
- gcore/resources/cloud/registries/registries.py +55 -29
- gcore/resources/cloud/registries/repositories.py +17 -9
- gcore/resources/cloud/registries/tags.py +9 -5
- gcore/resources/cloud/registries/users.py +65 -35
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +123 -107
- gcore/resources/cloud/reserved_fixed_ips/vip.py +45 -25
- gcore/resources/cloud/secrets.py +43 -27
- gcore/resources/cloud/security_groups/rules.py +55 -43
- gcore/resources/cloud/security_groups/security_groups.py +79 -47
- gcore/resources/cloud/ssh_keys.py +51 -31
- gcore/resources/cloud/tasks.py +57 -45
- gcore/resources/cloud/usage_reports.py +27 -23
- gcore/resources/cloud/users/role_assignments.py +49 -33
- gcore/resources/cloud/volumes.py +237 -201
- gcore/resources/dns/dns.py +17 -13
- gcore/resources/dns/locations.py +29 -17
- gcore/resources/dns/metrics.py +13 -9
- gcore/resources/dns/pickers/pickers.py +5 -5
- gcore/resources/dns/pickers/presets.py +9 -5
- gcore/resources/dns/zones/dnssec.py +19 -11
- gcore/resources/dns/zones/rrsets.py +149 -91
- gcore/resources/dns/zones/zones.py +245 -187
- gcore/resources/fastedge/apps/apps.py +105 -89
- gcore/resources/fastedge/apps/logs.py +25 -21
- gcore/resources/fastedge/binaries.py +33 -17
- gcore/resources/fastedge/fastedge.py +5 -5
- gcore/resources/fastedge/kv_stores.py +43 -31
- gcore/resources/fastedge/secrets.py +69 -45
- gcore/resources/fastedge/statistics.py +25 -17
- gcore/resources/fastedge/templates.py +59 -39
- gcore/resources/iam/api_tokens.py +43 -27
- gcore/resources/iam/iam.py +5 -5
- gcore/resources/iam/users.py +97 -65
- gcore/resources/security/bgp_announces.py +27 -19
- gcore/resources/security/events.py +23 -19
- gcore/resources/security/profile_templates.py +9 -5
- gcore/resources/security/profiles.py +69 -45
- gcore/resources/storage/buckets/buckets.py +37 -25
- gcore/resources/storage/buckets/cors.py +19 -11
- gcore/resources/storage/buckets/lifecycle.py +19 -11
- gcore/resources/storage/buckets/policy.py +25 -13
- gcore/resources/storage/credentials.py +19 -15
- gcore/resources/storage/locations.py +13 -9
- gcore/resources/storage/statistics.py +39 -31
- gcore/resources/storage/storage.py +105 -69
- gcore/resources/streaming/ai_tasks.py +307 -197
- gcore/resources/streaming/broadcasts.py +63 -35
- gcore/resources/streaming/directories.py +65 -39
- gcore/resources/streaming/players.py +47 -31
- gcore/resources/streaming/playlists.py +189 -123
- gcore/resources/streaming/quality_sets.py +69 -39
- gcore/resources/streaming/restreams.py +47 -27
- gcore/resources/streaming/statistics.py +613 -407
- gcore/resources/streaming/streams/overlays.py +107 -67
- gcore/resources/streaming/streams/streams.py +403 -263
- gcore/resources/streaming/videos/subtitles.py +131 -75
- gcore/resources/streaming/videos/videos.py +429 -279
- gcore/resources/waap/advanced_rules.py +9 -5
- gcore/resources/waap/custom_page_sets.py +99 -75
- gcore/resources/waap/domains/advanced_rules.py +157 -99
- gcore/resources/waap/domains/api_discovery.py +71 -47
- gcore/resources/waap/domains/api_path_groups.py +9 -5
- gcore/resources/waap/domains/api_paths.py +79 -83
- gcore/resources/waap/domains/custom_rules.py +89 -59
- gcore/resources/waap/domains/domains.py +59 -41
- gcore/resources/waap/domains/firewall_rules.py +83 -55
- gcore/resources/waap/domains/insight_silences.py +59 -39
- gcore/resources/waap/domains/insights.py +39 -27
- gcore/resources/waap/domains/settings.py +21 -13
- gcore/resources/waap/domains/statistics.py +99 -75
- gcore/resources/waap/insights.py +23 -21
- gcore/resources/waap/ip_info/ip_info.py +65 -33
- gcore/resources/waap/ip_info/metrics.py +11 -7
- gcore/resources/waap/organizations.py +17 -13
- gcore/resources/waap/statistics.py +9 -5
- gcore/resources/waap/tags.py +17 -17
- gcore/resources/waap/waap.py +5 -5
- gcore/types/cdn/__init__.py +80 -0
- gcore/types/cdn/audit_log_list_params.py +73 -0
- gcore/types/cdn/ca_certificate.py +53 -0
- gcore/types/cdn/ca_certificate_list.py +10 -0
- gcore/types/cdn/cdn_account.py +86 -0
- gcore/types/cdn/cdn_account_limits.py +27 -0
- gcore/types/cdn/cdn_audit_log_entry.py +66 -0
- gcore/types/cdn/cdn_available_features.py +46 -0
- gcore/types/cdn/cdn_list_purge_statuses_params.py +67 -0
- gcore/types/cdn/cdn_log_entry.py +70 -0
- gcore/types/cdn/cdn_metrics.py +22 -0
- gcore/types/cdn/cdn_metrics_groups.py +13 -0
- gcore/types/cdn/cdn_metrics_values.py +19 -0
- gcore/types/cdn/cdn_resource.py +1977 -0
- gcore/types/cdn/cdn_resource_list.py +10 -0
- gcore/types/cdn/cdn_update_account_params.py +15 -0
- gcore/types/cdn/certificate_create_params.py +51 -0
- gcore/types/cdn/certificate_get_status_params.py +14 -0
- gcore/types/cdn/certificate_list_params.py +29 -0
- gcore/types/cdn/certificate_replace_params.py +39 -0
- gcore/types/cdn/log_download_params.py +279 -0
- gcore/types/cdn/log_list_params.py +273 -0
- gcore/types/cdn/logs/__init__.py +7 -0
- gcore/types/cdn/logs/log_settings.py +172 -0
- gcore/types/cdn/logs/setting_create_params.py +200 -0
- gcore/types/cdn/logs/setting_update_params.py +200 -0
- gcore/types/cdn/logs_aggregated_stats.py +23 -0
- gcore/types/cdn/logs_uploader/__init__.py +23 -0
- gcore/types/cdn/logs_uploader/config_create_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/config_replace_params.py +32 -0
- gcore/types/cdn/logs_uploader/config_update_params.py +32 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config.py +51 -0
- gcore/types/cdn/logs_uploader/logs_uploader_config_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy.py +73 -0
- gcore/types/cdn/logs_uploader/logs_uploader_policy_list.py +10 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target.py +236 -0
- gcore/types/cdn/logs_uploader/logs_uploader_target_list.py +10 -0
- gcore/types/cdn/logs_uploader/policy_create_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_list_fields_response.py +8 -0
- gcore/types/cdn/logs_uploader/policy_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/policy_replace_params.py +61 -0
- gcore/types/cdn/logs_uploader/policy_update_params.py +61 -0
- gcore/types/cdn/logs_uploader/target_create_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_list_params.py +16 -0
- gcore/types/cdn/logs_uploader/target_replace_params.py +249 -0
- gcore/types/cdn/logs_uploader/target_update_params.py +249 -0
- gcore/types/cdn/logs_uploader_validation.py +23 -0
- gcore/types/cdn/metric_list_params.py +168 -0
- gcore/types/cdn/network_capacity.py +22 -0
- gcore/types/cdn/origin_group_create_params.py +184 -0
- gcore/types/cdn/origin_group_list_params.py +24 -0
- gcore/types/cdn/origin_group_replace_params.py +190 -0
- gcore/types/cdn/origin_group_update_params.py +190 -0
- gcore/types/cdn/origin_groups.py +212 -0
- gcore/types/cdn/origin_groups_list.py +10 -0
- gcore/types/cdn/public_ip_list.py +15 -0
- gcore/types/cdn/public_network_list.py +15 -0
- gcore/types/cdn/purge_status.py +55 -0
- gcore/types/cdn/resource_aggregated_stats.py +80 -0
- gcore/types/cdn/resource_create_params.py +1825 -0
- gcore/types/cdn/resource_list_params.py +107 -0
- gcore/types/cdn/resource_prefetch_params.py +17 -0
- gcore/types/cdn/resource_purge_params.py +71 -0
- gcore/types/cdn/resource_replace_params.py +1803 -0
- gcore/types/cdn/resource_update_params.py +1794 -0
- gcore/types/cdn/resource_usage_stats.py +111 -0
- gcore/types/cdn/resources/__init__.py +11 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +1695 -0
- gcore/types/cdn/resources/origin_shielding.py +15 -0
- gcore/types/cdn/resources/rule_create_params.py +1652 -0
- gcore/types/cdn/resources/rule_list_response.py +10 -0
- gcore/types/cdn/resources/rule_replace_params.py +1654 -0
- gcore/types/cdn/resources/rule_update_params.py +1654 -0
- gcore/types/cdn/resources/shield_replace_params.py +16 -0
- gcore/types/cdn/rule_template.py +1666 -0
- gcore/types/cdn/rule_template_create_params.py +1636 -0
- gcore/types/cdn/rule_template_list.py +10 -0
- gcore/types/cdn/rule_template_replace_params.py +1636 -0
- gcore/types/cdn/rule_template_update_params.py +1636 -0
- gcore/types/cdn/shield_aggregated_stats.py +23 -0
- gcore/types/cdn/shield_list_response.py +25 -0
- gcore/types/cdn/ssl_detail.py +62 -0
- gcore/types/cdn/ssl_detail_list.py +10 -0
- gcore/types/cdn/ssl_request_status.py +135 -0
- gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_logs_usage_series_params.py +35 -0
- gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +151 -0
- gcore/types/cdn/statistic_get_resource_usage_series_params.py +131 -0
- gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +42 -0
- gcore/types/cdn/statistic_get_shield_usage_series_params.py +25 -0
- gcore/types/cdn/trusted_ca_certificate_create_params.py +23 -0
- gcore/types/cdn/trusted_ca_certificate_list_params.py +29 -0
- gcore/types/cdn/trusted_ca_certificate_replace_params.py +15 -0
- gcore/types/cdn/usage_series_stats.py +31 -0
- gcore/types/cloud/__init__.py +1 -0
- gcore/types/cloud/file_share.py +4 -0
- gcore/types/cloud/file_share_create_params.py +20 -0
- gcore/types/cloud/file_share_update_params.py +40 -3
- gcore/types/cloud/floating_ip_update_params.py +3 -1
- gcore/types/cloud/gpu_baremetal_cluster_action_params.py +46 -0
- gcore/types/cloud/inference/inference_deployment.py +3 -1
- gcore/types/cloud/instance_create_params.py +3 -1
- gcore/types/cloud/k8s/cluster_create_params.py +46 -4
- gcore/types/cloud/k8s/cluster_update_params.py +60 -6
- gcore/types/cloud/k8s/clusters/pool_update_params.py +1 -1
- gcore/types/cloud/k8s/k8s_cluster.py +40 -3
- gcore/types/cloud/load_balancer_update_params.py +3 -1
- gcore/types/cloud/network_update_params.py +3 -1
- gcore/types/cloud/networks/subnet_update_params.py +3 -1
- gcore/types/cloud/registries/user_create_multiple_params.py +5 -3
- gcore/types/cloud/registries/user_create_params.py +5 -3
- gcore/types/cloud/registry_create_params.py +5 -3
- gcore/types/cloud/security_group_update_params.py +3 -1
- gcore/types/cloud/ssh_key_created.py +6 -3
- gcore/types/cloud/volume_update_params.py +3 -1
- gcore/types/dns/zone_get_statistics_params.py +12 -9
- gcore/types/dns/zone_get_statistics_response.py +3 -1
- gcore/types/dns/zone_import_params.py +21 -15
- gcore/types/dns/zones/dns_output_rrset.py +7 -3
- gcore/types/iam/account_overview.py +7 -2
- gcore/types/iam/user.py +7 -2
- gcore/types/iam/user_detailed.py +7 -2
- gcore/types/iam/user_invite_params.py +4 -1
- gcore/types/iam/user_update.py +7 -2
- gcore/types/iam/user_update_params.py +7 -2
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_nsfw.py +6 -4
- gcore/types/streaming/ai_contentmoderation_softnudity.py +6 -4
- gcore/types/streaming/ai_contentmoderation_sport.py +6 -4
- gcore/types/streaming/ai_task.py +20 -11
- gcore/types/streaming/ai_task_create_params.py +20 -11
- gcore/types/streaming/ai_task_get_response.py +5 -4
- gcore/types/streaming/ai_task_list_params.py +11 -5
- gcore/types/streaming/clip.py +33 -22
- gcore/types/streaming/create_video_param.py +75 -43
- gcore/types/streaming/playlist.py +7 -5
- gcore/types/streaming/playlist_create_params.py +7 -5
- gcore/types/streaming/playlist_update_params.py +7 -5
- gcore/types/streaming/playlist_video.py +75 -43
- gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +7 -4
- gcore/types/streaming/stream.py +207 -136
- gcore/types/streaming/stream_create_clip_params.py +33 -22
- gcore/types/streaming/stream_create_params.py +41 -24
- gcore/types/streaming/stream_update_params.py +41 -24
- gcore/types/streaming/video.py +138 -76
- gcore/types/streaming/video_list_params.py +4 -2
- gcore/types/streaming/video_update_params.py +75 -43
- gcore/types/waap/domain_update_params.py +2 -2
- gcore/types/waap/domains/advanced_rule_create_params.py +26 -18
- gcore/types/waap/domains/advanced_rule_list_params.py +10 -7
- gcore/types/waap/domains/advanced_rule_update_params.py +22 -17
- gcore/types/waap/domains/api_path_create_params.py +0 -3
- gcore/types/waap/domains/api_path_update_params.py +1 -3
- gcore/types/waap/domains/custom_rule_create_params.py +36 -35
- gcore/types/waap/domains/custom_rule_update_params.py +31 -33
- gcore/types/waap/domains/firewall_rule_create_params.py +6 -6
- gcore/types/waap/domains/firewall_rule_update_params.py +5 -5
- gcore/types/waap/domains/waap_advanced_rule.py +17 -9
- gcore/types/waap/domains/waap_custom_rule.py +5 -2
- gcore/types/waap/domains/waap_firewall_rule.py +1 -1
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/insight_list_types_params.py +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/METADATA +1 -1
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/RECORD +334 -214
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/WHEEL +0 -0
- {gcore-0.13.0.dist-info → gcore-0.14.0.dist-info}/licenses/LICENSE +0 -0
gcore/resources/cloud/cloud.py
CHANGED
|
@@ -263,6 +263,10 @@ class CloudResource(SyncAPIResource):
|
|
|
263
263
|
|
|
264
264
|
@cached_property
|
|
265
265
|
def floating_ips(self) -> FloatingIPsResource:
|
|
266
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
267
|
+
|
|
268
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
269
|
+
"""
|
|
266
270
|
return FloatingIPsResource(self._client)
|
|
267
271
|
|
|
268
272
|
@cached_property
|
|
@@ -388,6 +392,10 @@ class AsyncCloudResource(AsyncAPIResource):
|
|
|
388
392
|
|
|
389
393
|
@cached_property
|
|
390
394
|
def floating_ips(self) -> AsyncFloatingIPsResource:
|
|
395
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
396
|
+
|
|
397
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
398
|
+
"""
|
|
391
399
|
return AsyncFloatingIPsResource(self._client)
|
|
392
400
|
|
|
393
401
|
@cached_property
|
|
@@ -516,6 +524,10 @@ class CloudResourceWithRawResponse:
|
|
|
516
524
|
|
|
517
525
|
@cached_property
|
|
518
526
|
def floating_ips(self) -> FloatingIPsResourceWithRawResponse:
|
|
527
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
528
|
+
|
|
529
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
530
|
+
"""
|
|
519
531
|
return FloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
|
|
520
532
|
|
|
521
533
|
@cached_property
|
|
@@ -625,6 +637,10 @@ class AsyncCloudResourceWithRawResponse:
|
|
|
625
637
|
|
|
626
638
|
@cached_property
|
|
627
639
|
def floating_ips(self) -> AsyncFloatingIPsResourceWithRawResponse:
|
|
640
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
641
|
+
|
|
642
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
643
|
+
"""
|
|
628
644
|
return AsyncFloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
|
|
629
645
|
|
|
630
646
|
@cached_property
|
|
@@ -734,6 +750,10 @@ class CloudResourceWithStreamingResponse:
|
|
|
734
750
|
|
|
735
751
|
@cached_property
|
|
736
752
|
def floating_ips(self) -> FloatingIPsResourceWithStreamingResponse:
|
|
753
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
754
|
+
|
|
755
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
756
|
+
"""
|
|
737
757
|
return FloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
|
|
738
758
|
|
|
739
759
|
@cached_property
|
|
@@ -843,6 +863,10 @@ class AsyncCloudResourceWithStreamingResponse:
|
|
|
843
863
|
|
|
844
864
|
@cached_property
|
|
845
865
|
def floating_ips(self) -> AsyncFloatingIPsResourceWithStreamingResponse:
|
|
866
|
+
"""A floating IP is a static IP address that points to one of your Instances.
|
|
867
|
+
|
|
868
|
+
It allows you to redirect network traffic to any of your Instances in the same datacenter.
|
|
869
|
+
"""
|
|
846
870
|
return AsyncFloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
|
|
847
871
|
|
|
848
872
|
@cached_property
|
|
@@ -8,7 +8,7 @@ from typing_extensions import Literal
|
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
10
10
|
|
|
11
|
-
from ..._types import
|
|
11
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
12
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
13
13
|
from ..._compat import cached_property
|
|
14
14
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -56,13 +56,13 @@ class CostReportsResource(SyncAPIResource):
|
|
|
56
56
|
*,
|
|
57
57
|
time_from: Union[str, datetime],
|
|
58
58
|
time_to: Union[str, datetime],
|
|
59
|
-
enable_last_day: bool |
|
|
60
|
-
projects: Iterable[int] |
|
|
61
|
-
regions: Iterable[int] |
|
|
62
|
-
response_format: Literal["csv_totals", "json"] |
|
|
63
|
-
rounding: bool |
|
|
64
|
-
schema_filter: cost_report_get_aggregated_params.SchemaFilter |
|
|
65
|
-
tags: cost_report_get_aggregated_params.Tags |
|
|
59
|
+
enable_last_day: bool | Omit = omit,
|
|
60
|
+
projects: Iterable[int] | Omit = omit,
|
|
61
|
+
regions: Iterable[int] | Omit = omit,
|
|
62
|
+
response_format: Literal["csv_totals", "json"] | Omit = omit,
|
|
63
|
+
rounding: bool | Omit = omit,
|
|
64
|
+
schema_filter: cost_report_get_aggregated_params.SchemaFilter | Omit = omit,
|
|
65
|
+
tags: cost_report_get_aggregated_params.Tags | Omit = omit,
|
|
66
66
|
types: List[
|
|
67
67
|
Literal[
|
|
68
68
|
"ai_cluster",
|
|
@@ -92,26 +92,30 @@ class CostReportsResource(SyncAPIResource):
|
|
|
92
92
|
"volume",
|
|
93
93
|
]
|
|
94
94
|
]
|
|
95
|
-
|
|
|
95
|
+
| Omit = omit,
|
|
96
96
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
97
97
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
98
98
|
extra_headers: Headers | None = None,
|
|
99
99
|
extra_query: Query | None = None,
|
|
100
100
|
extra_body: Body | None = None,
|
|
101
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
101
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
102
102
|
) -> CostReportAggregated:
|
|
103
103
|
"""Get cost report totals (aggregated costs) for a given period.
|
|
104
104
|
|
|
105
105
|
Requested period
|
|
106
|
-
should not exceed 31 days.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
should not exceed 31 days.
|
|
107
|
+
|
|
108
|
+
Note: This report assumes there are no active commit features in the billing
|
|
109
|
+
plan. If there are active commit features (pre-paid resources) in your plan, use
|
|
110
|
+
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
111
|
+
be accurate.
|
|
112
|
+
|
|
113
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
114
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
115
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
116
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
117
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
118
|
+
missing data is filled in.
|
|
115
119
|
|
|
116
120
|
Args:
|
|
117
121
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
@@ -146,7 +150,9 @@ class CostReportsResource(SyncAPIResource):
|
|
|
146
150
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
147
151
|
"""
|
|
148
152
|
return self._post(
|
|
149
|
-
"/cloud/v1/cost_report/totals"
|
|
153
|
+
"/cloud/v1/cost_report/totals"
|
|
154
|
+
if self._client._base_url_overridden
|
|
155
|
+
else "https://api.gcore.com//cloud/v1/cost_report/totals",
|
|
150
156
|
body=maybe_transform(
|
|
151
157
|
{
|
|
152
158
|
"time_from": time_from,
|
|
@@ -171,13 +177,13 @@ class CostReportsResource(SyncAPIResource):
|
|
|
171
177
|
def get_aggregated_monthly(
|
|
172
178
|
self,
|
|
173
179
|
*,
|
|
174
|
-
regions: Iterable[int] |
|
|
175
|
-
response_format: Literal["csv_totals", "json"] |
|
|
176
|
-
rounding: bool |
|
|
177
|
-
schema_filter: cost_report_get_aggregated_monthly_params.SchemaFilter |
|
|
178
|
-
tags: cost_report_get_aggregated_monthly_params.Tags |
|
|
179
|
-
time_from: Union[str, datetime] |
|
|
180
|
-
time_to: Union[str, datetime] |
|
|
180
|
+
regions: Iterable[int] | Omit = omit,
|
|
181
|
+
response_format: Literal["csv_totals", "json"] | Omit = omit,
|
|
182
|
+
rounding: bool | Omit = omit,
|
|
183
|
+
schema_filter: cost_report_get_aggregated_monthly_params.SchemaFilter | Omit = omit,
|
|
184
|
+
tags: cost_report_get_aggregated_monthly_params.Tags | Omit = omit,
|
|
185
|
+
time_from: Union[str, datetime] | Omit = omit,
|
|
186
|
+
time_to: Union[str, datetime] | Omit = omit,
|
|
181
187
|
types: List[
|
|
182
188
|
Literal[
|
|
183
189
|
"ai_cluster",
|
|
@@ -207,25 +213,27 @@ class CostReportsResource(SyncAPIResource):
|
|
|
207
213
|
"volume",
|
|
208
214
|
]
|
|
209
215
|
]
|
|
210
|
-
|
|
|
211
|
-
year_month: str |
|
|
216
|
+
| Omit = omit,
|
|
217
|
+
year_month: str | Omit = omit,
|
|
212
218
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
213
219
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
214
220
|
extra_headers: Headers | None = None,
|
|
215
221
|
extra_query: Query | None = None,
|
|
216
222
|
extra_body: Body | None = None,
|
|
217
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
223
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
218
224
|
) -> CostReportAggregatedMonthly:
|
|
219
225
|
"""
|
|
220
226
|
Retrieve a detailed cost report totals for a specified month, which includes
|
|
221
227
|
both commit and pay-as-you-go (overcommit) prices. Additionally, it provides the
|
|
222
228
|
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
|
|
223
|
-
represents all days in the specified month.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
represents all days in the specified month.
|
|
230
|
+
|
|
231
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
232
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
233
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
234
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
235
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
236
|
+
missing data is filled in.
|
|
229
237
|
|
|
230
238
|
Args:
|
|
231
239
|
regions: List of region IDs.
|
|
@@ -255,7 +263,9 @@ class CostReportsResource(SyncAPIResource):
|
|
|
255
263
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
256
264
|
"""
|
|
257
265
|
return self._post(
|
|
258
|
-
"/cloud/v1/reservation_cost_report/totals"
|
|
266
|
+
"/cloud/v1/reservation_cost_report/totals"
|
|
267
|
+
if self._client._base_url_overridden
|
|
268
|
+
else "https://api.gcore.com//cloud/v1/reservation_cost_report/totals",
|
|
259
269
|
body=maybe_transform(
|
|
260
270
|
{
|
|
261
271
|
"regions": regions,
|
|
@@ -281,16 +291,16 @@ class CostReportsResource(SyncAPIResource):
|
|
|
281
291
|
*,
|
|
282
292
|
time_from: Union[str, datetime],
|
|
283
293
|
time_to: Union[str, datetime],
|
|
284
|
-
enable_last_day: bool |
|
|
285
|
-
limit: int |
|
|
286
|
-
offset: int |
|
|
287
|
-
projects: Iterable[int] |
|
|
288
|
-
regions: Iterable[int] |
|
|
289
|
-
response_format: Literal["csv_records", "json"] |
|
|
290
|
-
rounding: bool |
|
|
291
|
-
schema_filter: cost_report_get_detailed_params.SchemaFilter |
|
|
292
|
-
sorting: Iterable[cost_report_get_detailed_params.Sorting] |
|
|
293
|
-
tags: cost_report_get_detailed_params.Tags |
|
|
294
|
+
enable_last_day: bool | Omit = omit,
|
|
295
|
+
limit: int | Omit = omit,
|
|
296
|
+
offset: int | Omit = omit,
|
|
297
|
+
projects: Iterable[int] | Omit = omit,
|
|
298
|
+
regions: Iterable[int] | Omit = omit,
|
|
299
|
+
response_format: Literal["csv_records", "json"] | Omit = omit,
|
|
300
|
+
rounding: bool | Omit = omit,
|
|
301
|
+
schema_filter: cost_report_get_detailed_params.SchemaFilter | Omit = omit,
|
|
302
|
+
sorting: Iterable[cost_report_get_detailed_params.Sorting] | Omit = omit,
|
|
303
|
+
tags: cost_report_get_detailed_params.Tags | Omit = omit,
|
|
294
304
|
types: List[
|
|
295
305
|
Literal[
|
|
296
306
|
"ai_cluster",
|
|
@@ -320,27 +330,30 @@ class CostReportsResource(SyncAPIResource):
|
|
|
320
330
|
"volume",
|
|
321
331
|
]
|
|
322
332
|
]
|
|
323
|
-
|
|
|
333
|
+
| Omit = omit,
|
|
324
334
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
325
335
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
326
336
|
extra_headers: Headers | None = None,
|
|
327
337
|
extra_query: Query | None = None,
|
|
328
338
|
extra_body: Body | None = None,
|
|
329
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
339
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
330
340
|
) -> CostReportDetailed:
|
|
331
341
|
"""Get a detailed cost report for a given period and specific resources.
|
|
332
342
|
|
|
333
343
|
Requested
|
|
334
|
-
period should not exceed 31 days.
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
+
period should not exceed 31 days.
|
|
345
|
+
|
|
346
|
+
Note: This report assumes there are no active commit features in the billing
|
|
347
|
+
plan. If there are active commit features (pre-paid resources) in your plan, use
|
|
348
|
+
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
349
|
+
be accurate.
|
|
350
|
+
|
|
351
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
352
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
353
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
354
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
355
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
356
|
+
missing data is filled in.
|
|
344
357
|
|
|
345
358
|
Args:
|
|
346
359
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
@@ -381,7 +394,9 @@ class CostReportsResource(SyncAPIResource):
|
|
|
381
394
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
382
395
|
"""
|
|
383
396
|
return self._post(
|
|
384
|
-
"/cloud/v1/cost_report/resources"
|
|
397
|
+
"/cloud/v1/cost_report/resources"
|
|
398
|
+
if self._client._base_url_overridden
|
|
399
|
+
else "https://api.gcore.com//cloud/v1/cost_report/resources",
|
|
385
400
|
body=maybe_transform(
|
|
386
401
|
{
|
|
387
402
|
"time_from": time_from,
|
|
@@ -432,13 +447,13 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
432
447
|
*,
|
|
433
448
|
time_from: Union[str, datetime],
|
|
434
449
|
time_to: Union[str, datetime],
|
|
435
|
-
enable_last_day: bool |
|
|
436
|
-
projects: Iterable[int] |
|
|
437
|
-
regions: Iterable[int] |
|
|
438
|
-
response_format: Literal["csv_totals", "json"] |
|
|
439
|
-
rounding: bool |
|
|
440
|
-
schema_filter: cost_report_get_aggregated_params.SchemaFilter |
|
|
441
|
-
tags: cost_report_get_aggregated_params.Tags |
|
|
450
|
+
enable_last_day: bool | Omit = omit,
|
|
451
|
+
projects: Iterable[int] | Omit = omit,
|
|
452
|
+
regions: Iterable[int] | Omit = omit,
|
|
453
|
+
response_format: Literal["csv_totals", "json"] | Omit = omit,
|
|
454
|
+
rounding: bool | Omit = omit,
|
|
455
|
+
schema_filter: cost_report_get_aggregated_params.SchemaFilter | Omit = omit,
|
|
456
|
+
tags: cost_report_get_aggregated_params.Tags | Omit = omit,
|
|
442
457
|
types: List[
|
|
443
458
|
Literal[
|
|
444
459
|
"ai_cluster",
|
|
@@ -468,26 +483,30 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
468
483
|
"volume",
|
|
469
484
|
]
|
|
470
485
|
]
|
|
471
|
-
|
|
|
486
|
+
| Omit = omit,
|
|
472
487
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
473
488
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
474
489
|
extra_headers: Headers | None = None,
|
|
475
490
|
extra_query: Query | None = None,
|
|
476
491
|
extra_body: Body | None = None,
|
|
477
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
492
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
478
493
|
) -> CostReportAggregated:
|
|
479
494
|
"""Get cost report totals (aggregated costs) for a given period.
|
|
480
495
|
|
|
481
496
|
Requested period
|
|
482
|
-
should not exceed 31 days.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
497
|
+
should not exceed 31 days.
|
|
498
|
+
|
|
499
|
+
Note: This report assumes there are no active commit features in the billing
|
|
500
|
+
plan. If there are active commit features (pre-paid resources) in your plan, use
|
|
501
|
+
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
502
|
+
be accurate.
|
|
503
|
+
|
|
504
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
505
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
506
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
507
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
508
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
509
|
+
missing data is filled in.
|
|
491
510
|
|
|
492
511
|
Args:
|
|
493
512
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
@@ -522,7 +541,9 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
522
541
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
523
542
|
"""
|
|
524
543
|
return await self._post(
|
|
525
|
-
"/cloud/v1/cost_report/totals"
|
|
544
|
+
"/cloud/v1/cost_report/totals"
|
|
545
|
+
if self._client._base_url_overridden
|
|
546
|
+
else "https://api.gcore.com//cloud/v1/cost_report/totals",
|
|
526
547
|
body=await async_maybe_transform(
|
|
527
548
|
{
|
|
528
549
|
"time_from": time_from,
|
|
@@ -547,13 +568,13 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
547
568
|
async def get_aggregated_monthly(
|
|
548
569
|
self,
|
|
549
570
|
*,
|
|
550
|
-
regions: Iterable[int] |
|
|
551
|
-
response_format: Literal["csv_totals", "json"] |
|
|
552
|
-
rounding: bool |
|
|
553
|
-
schema_filter: cost_report_get_aggregated_monthly_params.SchemaFilter |
|
|
554
|
-
tags: cost_report_get_aggregated_monthly_params.Tags |
|
|
555
|
-
time_from: Union[str, datetime] |
|
|
556
|
-
time_to: Union[str, datetime] |
|
|
571
|
+
regions: Iterable[int] | Omit = omit,
|
|
572
|
+
response_format: Literal["csv_totals", "json"] | Omit = omit,
|
|
573
|
+
rounding: bool | Omit = omit,
|
|
574
|
+
schema_filter: cost_report_get_aggregated_monthly_params.SchemaFilter | Omit = omit,
|
|
575
|
+
tags: cost_report_get_aggregated_monthly_params.Tags | Omit = omit,
|
|
576
|
+
time_from: Union[str, datetime] | Omit = omit,
|
|
577
|
+
time_to: Union[str, datetime] | Omit = omit,
|
|
557
578
|
types: List[
|
|
558
579
|
Literal[
|
|
559
580
|
"ai_cluster",
|
|
@@ -583,25 +604,27 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
583
604
|
"volume",
|
|
584
605
|
]
|
|
585
606
|
]
|
|
586
|
-
|
|
|
587
|
-
year_month: str |
|
|
607
|
+
| Omit = omit,
|
|
608
|
+
year_month: str | Omit = omit,
|
|
588
609
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
589
610
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
590
611
|
extra_headers: Headers | None = None,
|
|
591
612
|
extra_query: Query | None = None,
|
|
592
613
|
extra_body: Body | None = None,
|
|
593
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
614
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
594
615
|
) -> CostReportAggregatedMonthly:
|
|
595
616
|
"""
|
|
596
617
|
Retrieve a detailed cost report totals for a specified month, which includes
|
|
597
618
|
both commit and pay-as-you-go (overcommit) prices. Additionally, it provides the
|
|
598
619
|
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
|
|
599
|
-
represents all days in the specified month.
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
620
|
+
represents all days in the specified month.
|
|
621
|
+
|
|
622
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
623
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
624
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
625
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
626
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
627
|
+
missing data is filled in.
|
|
605
628
|
|
|
606
629
|
Args:
|
|
607
630
|
regions: List of region IDs.
|
|
@@ -631,7 +654,9 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
631
654
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
632
655
|
"""
|
|
633
656
|
return await self._post(
|
|
634
|
-
"/cloud/v1/reservation_cost_report/totals"
|
|
657
|
+
"/cloud/v1/reservation_cost_report/totals"
|
|
658
|
+
if self._client._base_url_overridden
|
|
659
|
+
else "https://api.gcore.com//cloud/v1/reservation_cost_report/totals",
|
|
635
660
|
body=await async_maybe_transform(
|
|
636
661
|
{
|
|
637
662
|
"regions": regions,
|
|
@@ -657,16 +682,16 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
657
682
|
*,
|
|
658
683
|
time_from: Union[str, datetime],
|
|
659
684
|
time_to: Union[str, datetime],
|
|
660
|
-
enable_last_day: bool |
|
|
661
|
-
limit: int |
|
|
662
|
-
offset: int |
|
|
663
|
-
projects: Iterable[int] |
|
|
664
|
-
regions: Iterable[int] |
|
|
665
|
-
response_format: Literal["csv_records", "json"] |
|
|
666
|
-
rounding: bool |
|
|
667
|
-
schema_filter: cost_report_get_detailed_params.SchemaFilter |
|
|
668
|
-
sorting: Iterable[cost_report_get_detailed_params.Sorting] |
|
|
669
|
-
tags: cost_report_get_detailed_params.Tags |
|
|
685
|
+
enable_last_day: bool | Omit = omit,
|
|
686
|
+
limit: int | Omit = omit,
|
|
687
|
+
offset: int | Omit = omit,
|
|
688
|
+
projects: Iterable[int] | Omit = omit,
|
|
689
|
+
regions: Iterable[int] | Omit = omit,
|
|
690
|
+
response_format: Literal["csv_records", "json"] | Omit = omit,
|
|
691
|
+
rounding: bool | Omit = omit,
|
|
692
|
+
schema_filter: cost_report_get_detailed_params.SchemaFilter | Omit = omit,
|
|
693
|
+
sorting: Iterable[cost_report_get_detailed_params.Sorting] | Omit = omit,
|
|
694
|
+
tags: cost_report_get_detailed_params.Tags | Omit = omit,
|
|
670
695
|
types: List[
|
|
671
696
|
Literal[
|
|
672
697
|
"ai_cluster",
|
|
@@ -696,27 +721,30 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
696
721
|
"volume",
|
|
697
722
|
]
|
|
698
723
|
]
|
|
699
|
-
|
|
|
724
|
+
| Omit = omit,
|
|
700
725
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
701
726
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
702
727
|
extra_headers: Headers | None = None,
|
|
703
728
|
extra_query: Query | None = None,
|
|
704
729
|
extra_body: Body | None = None,
|
|
705
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
730
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
706
731
|
) -> CostReportDetailed:
|
|
707
732
|
"""Get a detailed cost report for a given period and specific resources.
|
|
708
733
|
|
|
709
734
|
Requested
|
|
710
|
-
period should not exceed 31 days.
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
735
|
+
period should not exceed 31 days.
|
|
736
|
+
|
|
737
|
+
Note: This report assumes there are no active commit features in the billing
|
|
738
|
+
plan. If there are active commit features (pre-paid resources) in your plan, use
|
|
739
|
+
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
740
|
+
be accurate.
|
|
741
|
+
|
|
742
|
+
Receiving data from the past hour might lead to incomplete statistics. For the
|
|
743
|
+
most accurate data, we recommend accessing the statistics after at least one
|
|
744
|
+
hour. Typically, updates are available within a 24-hour period, although the
|
|
745
|
+
frequency can vary. Maintenance periods or other exceptions may cause delays,
|
|
746
|
+
potentially extending beyond 24 hours until the servers are back online and the
|
|
747
|
+
missing data is filled in.
|
|
720
748
|
|
|
721
749
|
Args:
|
|
722
750
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
@@ -757,7 +785,9 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
757
785
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
758
786
|
"""
|
|
759
787
|
return await self._post(
|
|
760
|
-
"/cloud/v1/cost_report/resources"
|
|
788
|
+
"/cloud/v1/cost_report/resources"
|
|
789
|
+
if self._client._base_url_overridden
|
|
790
|
+
else "https://api.gcore.com//cloud/v1/cost_report/resources",
|
|
761
791
|
body=await async_maybe_transform(
|
|
762
792
|
{
|
|
763
793
|
"time_from": time_from,
|