gcore 0.10.0__py3-none-any.whl → 0.12.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 +3 -3
- gcore/_client.py +18 -0
- gcore/_compat.py +48 -48
- gcore/_models.py +41 -41
- gcore/_types.py +35 -1
- gcore/_utils/__init__.py +9 -2
- gcore/_utils/_compat.py +45 -0
- gcore/_utils/_datetime_parse.py +136 -0
- gcore/_utils/_transform.py +11 -1
- gcore/_utils/_typing.py +6 -1
- gcore/_utils/_utils.py +0 -1
- gcore/_version.py +1 -1
- gcore/resources/__init__.py +28 -0
- gcore/resources/cloud/__init__.py +14 -0
- gcore/resources/cloud/audit_logs.py +3 -3
- gcore/resources/cloud/baremetal/images.py +3 -4
- gcore/resources/cloud/baremetal/servers.py +16 -4
- gcore/resources/cloud/cloud.py +32 -0
- gcore/resources/cloud/cost_reports.py +24 -16
- gcore/resources/cloud/file_shares/access_rules.py +2 -2
- gcore/resources/cloud/file_shares/file_shares.py +30 -14
- gcore/resources/cloud/floating_ips.py +196 -4
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +1 -1
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +166 -190
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +268 -12
- gcore/resources/cloud/inference/__init__.py +14 -14
- gcore/resources/cloud/inference/applications/__init__.py +47 -0
- gcore/resources/cloud/inference/applications/applications.py +134 -0
- gcore/resources/cloud/inference/applications/deployments.py +649 -0
- gcore/resources/cloud/inference/applications/templates.py +238 -0
- gcore/resources/cloud/inference/deployments/deployments.py +41 -22
- gcore/resources/cloud/inference/inference.py +32 -32
- gcore/resources/cloud/inference/registry_credentials.py +8 -9
- gcore/resources/cloud/instances/images.py +4 -4
- gcore/resources/cloud/instances/instances.py +254 -4
- gcore/resources/cloud/instances/interfaces.py +544 -0
- gcore/resources/cloud/k8s/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/__init__.py +47 -0
- gcore/resources/cloud/k8s/clusters/clusters.py +1391 -0
- gcore/resources/cloud/k8s/clusters/nodes.py +291 -0
- gcore/resources/cloud/k8s/clusters/pools/__init__.py +33 -0
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +303 -0
- gcore/resources/cloud/k8s/clusters/pools/pools.py +870 -0
- gcore/resources/cloud/k8s/flavors.py +209 -0
- gcore/resources/cloud/k8s/k8s.py +233 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +11 -12
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +9 -10
- gcore/resources/cloud/load_balancers/listeners.py +18 -18
- gcore/resources/cloud/load_balancers/load_balancers.py +4 -4
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +18 -6
- gcore/resources/cloud/load_balancers/pools/members.py +32 -2
- gcore/resources/cloud/load_balancers/pools/pools.py +32 -8
- gcore/resources/cloud/networks/networks.py +192 -4
- gcore/resources/cloud/networks/subnets.py +140 -8
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +608 -0
- gcore/resources/cloud/reserved_fixed_ips/vip.py +5 -7
- gcore/resources/cloud/security_groups/security_groups.py +6 -6
- gcore/resources/cloud/tasks.py +46 -46
- gcore/resources/cloud/users/role_assignments.py +5 -4
- gcore/resources/cloud/volumes.py +1125 -223
- gcore/resources/dns/__init__.py +75 -0
- gcore/resources/dns/dns.py +374 -0
- gcore/resources/dns/locations.py +288 -0
- gcore/resources/dns/metrics.py +214 -0
- gcore/resources/dns/pickers/__init__.py +33 -0
- gcore/resources/dns/pickers/pickers.py +167 -0
- gcore/resources/dns/pickers/presets.py +135 -0
- gcore/resources/dns/zones/__init__.py +47 -0
- gcore/resources/{cloud/inference/models.py → dns/zones/dnssec.py} +80 -122
- gcore/resources/dns/zones/rrsets.py +1005 -0
- gcore/resources/dns/zones/zones.py +1493 -0
- gcore/resources/storage/__init__.py +75 -0
- gcore/resources/storage/buckets/__init__.py +61 -0
- gcore/resources/storage/buckets/buckets.py +470 -0
- gcore/resources/storage/buckets/cors.py +265 -0
- gcore/resources/storage/buckets/lifecycle.py +276 -0
- gcore/resources/storage/buckets/policy.py +345 -0
- gcore/resources/storage/credentials.py +221 -0
- gcore/resources/storage/locations.py +190 -0
- gcore/resources/storage/statistics.py +364 -0
- gcore/resources/storage/storage.py +1046 -0
- gcore/resources/streaming/ai_tasks.py +56 -70
- gcore/resources/streaming/playlists.py +18 -18
- gcore/resources/streaming/quality_sets.py +8 -8
- gcore/resources/streaming/statistics.py +4 -122
- gcore/resources/streaming/streams/overlays.py +6 -6
- gcore/resources/streaming/streams/streams.py +40 -64
- gcore/resources/streaming/videos/subtitles.py +32 -30
- gcore/resources/streaming/videos/videos.py +78 -72
- gcore/resources/waap/domains/advanced_rules.py +2 -2
- gcore/resources/waap/domains/api_paths.py +13 -13
- gcore/resources/waap/domains/custom_rules.py +2 -2
- gcore/resources/waap/domains/domains.py +4 -4
- gcore/resources/waap/domains/firewall_rules.py +2 -2
- gcore/resources/waap/domains/insight_silences.py +6 -6
- gcore/resources/waap/domains/insights.py +7 -7
- gcore/resources/waap/domains/statistics.py +47 -47
- gcore/types/cloud/__init__.py +2 -4
- gcore/types/cloud/audit_log_list_params.py +2 -1
- gcore/types/cloud/baremetal/image_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_create_params.py +8 -6
- gcore/types/cloud/baremetal/server_list_params.py +3 -2
- gcore/types/cloud/baremetal/server_rebuild_params.py +2 -0
- gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +35 -31
- gcore/types/cloud/cost_report_get_aggregated_params.py +26 -25
- gcore/types/cloud/cost_report_get_detailed_params.py +26 -25
- gcore/types/cloud/ddos_profile.py +13 -7
- gcore/types/cloud/ddos_profile_field.py +21 -8
- gcore/types/cloud/ddos_profile_option_list.py +7 -6
- gcore/types/cloud/ddos_profile_status.py +2 -2
- gcore/types/cloud/ddos_profile_template.py +7 -3
- gcore/types/cloud/ddos_profile_template_field.py +12 -3
- gcore/types/cloud/file_share.py +2 -2
- gcore/types/cloud/file_share_create_params.py +12 -6
- gcore/types/cloud/floating_ip_list_params.py +3 -2
- gcore/types/cloud/gpu_baremetal_cluster.py +101 -74
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +76 -93
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +17 -10
- gcore/types/cloud/gpu_baremetal_cluster_list_params.py +14 -3
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +4 -2
- gcore/types/cloud/gpu_baremetal_clusters/__init__.py +6 -0
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +74 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server.py → gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1.py} +10 -10
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server_v1_list.py +16 -0
- gcore/types/cloud/{gpu_baremetal_flavor.py → gpu_baremetal_clusters/gpu_baremetal_flavor.py} +1 -1
- gcore/types/cloud/{gpu_baremetal_flavor_list.py → gpu_baremetal_clusters/gpu_baremetal_flavor_list.py} +1 -1
- gcore/types/cloud/gpu_baremetal_clusters/server_list_params.py +75 -0
- gcore/types/cloud/inference/__init__.py +0 -5
- gcore/types/cloud/inference/applications/__init__.py +12 -0
- gcore/types/cloud/inference/applications/deployment_create_params.py +68 -0
- gcore/types/cloud/inference/applications/deployment_patch_params.py +62 -0
- gcore/types/cloud/inference/applications/inference_application_deployment.py +111 -0
- gcore/types/cloud/inference/applications/inference_application_deployment_list.py +16 -0
- gcore/types/cloud/inference/applications/inference_application_template.py +94 -0
- gcore/types/cloud/inference/applications/inference_application_template_list.py +16 -0
- gcore/types/cloud/inference/deployment_create_params.py +7 -6
- gcore/types/cloud/inference/deployment_update_params.py +7 -6
- gcore/types/cloud/instance_assign_security_group_params.py +4 -2
- gcore/types/cloud/instance_list_params.py +3 -2
- gcore/types/cloud/instance_unassign_security_group_params.py +4 -2
- gcore/types/cloud/instances/image_list_params.py +3 -2
- gcore/types/cloud/k8s/__init__.py +13 -0
- gcore/types/cloud/k8s/cluster_create_params.py +299 -0
- gcore/types/cloud/k8s/cluster_delete_params.py +16 -0
- gcore/types/cloud/k8s/cluster_update_params.py +203 -0
- gcore/types/cloud/k8s/cluster_upgrade_params.py +16 -0
- gcore/types/cloud/k8s/clusters/__init__.py +10 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +66 -0
- gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +16 -0
- gcore/types/cloud/k8s/clusters/node_list_params.py +16 -0
- gcore/types/cloud/k8s/clusters/pool_create_params.py +53 -0
- gcore/types/cloud/k8s/clusters/pool_resize_params.py +18 -0
- gcore/types/cloud/k8s/clusters/pool_update_params.py +34 -0
- gcore/types/cloud/k8s/clusters/pools/__init__.py +5 -0
- gcore/types/cloud/k8s/clusters/pools/node_list_params.py +18 -0
- gcore/types/cloud/k8s/flavor_list_params.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster.py +209 -0
- gcore/types/cloud/k8s/k8s_cluster_certificate.py +13 -0
- gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +19 -0
- gcore/types/cloud/k8s/k8s_cluster_list.py +16 -0
- gcore/types/cloud/k8s_cluster_version.py +10 -0
- gcore/types/cloud/{gpu_baremetal_cluster_server_list.py → k8s_cluster_version_list.py} +4 -4
- gcore/types/cloud/load_balancer_create_params.py +23 -4
- gcore/types/cloud/load_balancer_list_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +3 -2
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +3 -2
- gcore/types/cloud/load_balancers/listener_create_params.py +4 -3
- gcore/types/cloud/load_balancers/listener_update_params.py +5 -3
- gcore/types/cloud/load_balancers/pool_create_params.py +19 -1
- gcore/types/cloud/load_balancers/pool_update_params.py +19 -1
- gcore/types/cloud/load_balancers/pools/member_add_params.py +19 -1
- gcore/types/cloud/member.py +19 -1
- gcore/types/cloud/network_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_create_params.py +3 -2
- gcore/types/cloud/networks/subnet_list_params.py +3 -2
- gcore/types/cloud/networks/subnet_update_params.py +3 -2
- gcore/types/cloud/project.py +9 -9
- gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +3 -2
- gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +3 -2
- gcore/types/cloud/security_group_create_params.py +4 -2
- gcore/types/cloud/security_group_list_params.py +3 -2
- gcore/types/cloud/task_id_list.py +8 -1
- gcore/types/cloud/task_list_params.py +23 -23
- gcore/types/cloud/usage_report_get_params.py +26 -25
- gcore/types/cloud/users/role_assignment.py +2 -1
- gcore/types/cloud/users/role_assignment_create_params.py +4 -2
- gcore/types/cloud/users/role_assignment_update_params.py +4 -2
- gcore/types/cloud/volume_list_params.py +3 -2
- gcore/types/dns/__init__.py +31 -0
- gcore/types/dns/dns_get_account_overview_response.py +21 -0
- gcore/types/dns/dns_label_name.py +13 -0
- gcore/types/dns/dns_location_translations.py +11 -0
- gcore/types/dns/dns_lookup_params.py +15 -0
- gcore/types/dns/dns_lookup_response.py +21 -0
- gcore/types/dns/dns_name_server.py +17 -0
- gcore/types/dns/location_list_continents_response.py +10 -0
- gcore/types/dns/location_list_countries_response.py +10 -0
- gcore/types/dns/location_list_regions_response.py +10 -0
- gcore/types/dns/location_list_response.py +16 -0
- gcore/types/dns/metric_list_params.py +24 -0
- gcore/types/dns/metric_list_response.py +7 -0
- gcore/types/dns/picker_list_response.py +10 -0
- gcore/types/dns/pickers/__init__.py +5 -0
- gcore/types/dns/pickers/preset_list_response.py +10 -0
- gcore/types/dns/zone_check_delegation_status_response.py +20 -0
- gcore/types/dns/zone_create_params.py +59 -0
- gcore/types/dns/zone_create_response.py +13 -0
- gcore/types/dns/zone_export_response.py +11 -0
- gcore/types/dns/zone_get_response.py +106 -0
- gcore/types/dns/zone_get_statistics_params.py +43 -0
- gcore/types/dns/zone_get_statistics_response.py +19 -0
- gcore/types/dns/zone_import_params.py +32 -0
- gcore/types/dns/zone_import_response.py +26 -0
- gcore/types/dns/zone_list_params.py +57 -0
- gcore/types/dns/zone_list_response.py +105 -0
- gcore/types/dns/zone_replace_params.py +61 -0
- gcore/types/dns/zones/__init__.py +15 -0
- gcore/types/dns/zones/dns_failover_log.py +19 -0
- gcore/types/dns/zones/dns_output_rrset.py +123 -0
- gcore/types/dns/zones/dnssec_get_response.py +38 -0
- gcore/types/dns/zones/dnssec_update_params.py +11 -0
- gcore/types/dns/zones/dnssec_update_response.py +38 -0
- gcore/types/dns/zones/rrset_create_params.py +82 -0
- gcore/types/dns/zones/rrset_get_failover_logs_params.py +21 -0
- gcore/types/dns/zones/rrset_get_failover_logs_response.py +15 -0
- gcore/types/dns/zones/rrset_list_params.py +21 -0
- gcore/types/dns/zones/rrset_list_response.py +14 -0
- gcore/types/dns/zones/rrset_replace_params.py +82 -0
- gcore/types/security/client_profile.py +1 -1
- gcore/types/security/profile_create_params.py +2 -2
- gcore/types/security/profile_recreate_params.py +2 -2
- gcore/types/security/profile_replace_params.py +2 -2
- gcore/types/storage/__init__.py +21 -0
- gcore/types/storage/bucket.py +15 -0
- gcore/types/storage/bucket_list_params.py +15 -0
- gcore/types/storage/buckets/__init__.py +9 -0
- gcore/types/storage/buckets/bucket_cors.py +18 -0
- gcore/types/storage/buckets/bucket_policy.py +7 -0
- gcore/types/storage/buckets/cor_create_params.py +17 -0
- gcore/types/storage/buckets/lifecycle_create_params.py +18 -0
- gcore/types/storage/buckets/policy_get_response.py +7 -0
- gcore/types/storage/credential_recreate_params.py +36 -0
- gcore/types/storage/location.py +24 -0
- gcore/types/storage/location_list_params.py +13 -0
- gcore/types/storage/statistic_get_usage_aggregated_params.py +24 -0
- gcore/types/storage/statistic_get_usage_series_params.py +38 -0
- gcore/types/storage/statistic_get_usage_series_response.py +12 -0
- gcore/types/storage/storage.py +101 -0
- gcore/types/storage/storage_create_params.py +44 -0
- gcore/types/storage/storage_list_params.py +39 -0
- gcore/types/storage/storage_restore_params.py +11 -0
- gcore/types/storage/storage_update_params.py +18 -0
- gcore/types/storage/usage_series.py +201 -0
- gcore/types/storage/usage_total.py +54 -0
- gcore/types/streaming/__init__.py +0 -4
- gcore/types/streaming/ai_contentmoderation_hardnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_nsfw.py +1 -1
- gcore/types/streaming/ai_contentmoderation_softnudity.py +1 -1
- gcore/types/streaming/ai_contentmoderation_sport.py +1 -1
- gcore/types/streaming/ai_task.py +1 -5
- gcore/types/streaming/ai_task_create_params.py +2 -2
- gcore/types/streaming/ai_task_get_response.py +0 -46
- gcore/types/streaming/clip.py +2 -1
- gcore/types/streaming/create_video_param.py +13 -12
- gcore/types/streaming/max_stream_series.py +5 -5
- gcore/types/streaming/playlist.py +1 -1
- gcore/types/streaming/playlist_create_params.py +1 -1
- gcore/types/streaming/playlist_update_params.py +1 -1
- gcore/types/streaming/playlist_video.py +13 -12
- gcore/types/streaming/storage_series.py +5 -5
- gcore/types/streaming/stream.py +86 -49
- gcore/types/streaming/stream_create_clip_params.py +2 -1
- gcore/types/streaming/stream_create_params.py +9 -23
- gcore/types/streaming/stream_series.py +5 -5
- gcore/types/streaming/stream_update_params.py +9 -23
- gcore/types/streaming/video.py +53 -42
- gcore/types/streaming/video_update_params.py +13 -12
- gcore/types/streaming/vod_statistics_series.py +5 -5
- gcore/types/streaming/vod_total_stream_duration_series.py +3 -3
- gcore/types/waap/domain_list_params.py +1 -1
- gcore/types/waap/domain_update_params.py +1 -1
- gcore/types/waap/domains/advanced_rule_create_params.py +7 -4
- gcore/types/waap/domains/advanced_rule_update_params.py +6 -3
- gcore/types/waap/domains/api_path_create_params.py +4 -3
- gcore/types/waap/domains/api_path_list_params.py +3 -1
- gcore/types/waap/domains/api_path_update_params.py +5 -4
- gcore/types/waap/domains/custom_rule_create_params.py +13 -14
- gcore/types/waap/domains/custom_rule_update_params.py +12 -13
- gcore/types/waap/domains/firewall_rule_create_params.py +3 -2
- gcore/types/waap/domains/firewall_rule_update_params.py +2 -1
- gcore/types/waap/domains/insight_list_params.py +4 -2
- gcore/types/waap/domains/insight_replace_params.py +1 -1
- gcore/types/waap/domains/insight_silence_list_params.py +5 -3
- gcore/types/waap/domains/setting_update_params.py +3 -2
- gcore/types/waap/domains/statistic_get_ddos_info_params.py +6 -9
- gcore/types/waap/domains/statistic_get_events_aggregated_params.py +9 -10
- gcore/types/waap/domains/statistic_get_requests_series_params.py +8 -9
- gcore/types/waap/domains/statistic_get_traffic_series_params.py +6 -9
- gcore/types/waap/domains/waap_advanced_rule.py +3 -2
- gcore/types/waap/domains/waap_api_path.py +4 -4
- gcore/types/waap/domains/waap_api_scan_result.py +2 -2
- gcore/types/waap/domains/waap_custom_rule.py +4 -7
- gcore/types/waap/domains/waap_firewall_rule.py +3 -2
- gcore/types/waap/domains/waap_insight.py +1 -1
- gcore/types/waap/domains/waap_request_details.py +5 -4
- gcore/types/waap/waap_ip_ddos_info_model.py +3 -3
- gcore/types/waap/waap_rule_set.py +1 -1
- {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/METADATA +7 -2
- {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/RECORD +313 -193
- gcore/types/cloud/inference/inference_model.py +0 -65
- gcore/types/cloud/inference/inference_registry_credentials_create.py +0 -22
- gcore/types/cloud/inference/model_list_params.py +0 -21
- gcore/types/streaming/ai_contentmoderation_casm.py +0 -39
- gcore/types/streaming/ai_contentmoderation_weapon.py +0 -39
- gcore/types/streaming/meet_series.py +0 -23
- gcore/types/streaming/statistic_get_meet_series_params.py +0 -20
- {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/WHEEL +0 -0
- {gcore-0.10.0.dist-info → gcore-0.12.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["DnssecUpdateResponse"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DnssecUpdateResponse(BaseModel):
|
|
11
|
+
algorithm: Optional[str] = None
|
|
12
|
+
"""Specifies the algorithm used for the key."""
|
|
13
|
+
|
|
14
|
+
digest: Optional[str] = None
|
|
15
|
+
"""Represents the hashed value of the DS record."""
|
|
16
|
+
|
|
17
|
+
digest_algorithm: Optional[str] = None
|
|
18
|
+
"""Specifies the algorithm used to generate the digest."""
|
|
19
|
+
|
|
20
|
+
digest_type: Optional[str] = None
|
|
21
|
+
"""Specifies the type of the digest algorithm used."""
|
|
22
|
+
|
|
23
|
+
ds: Optional[str] = None
|
|
24
|
+
"""Represents the complete DS record."""
|
|
25
|
+
|
|
26
|
+
flags: Optional[int] = None
|
|
27
|
+
"""Represents the flag for DNSSEC record."""
|
|
28
|
+
|
|
29
|
+
key_tag: Optional[int] = None
|
|
30
|
+
"""Represents the identifier of the DNSKEY record."""
|
|
31
|
+
|
|
32
|
+
key_type: Optional[str] = None
|
|
33
|
+
"""Specifies the type of the key used in the algorithm."""
|
|
34
|
+
|
|
35
|
+
message: Optional[str] = None
|
|
36
|
+
|
|
37
|
+
public_key: Optional[str] = None
|
|
38
|
+
"""Represents the public key used in the DS record."""
|
|
@@ -0,0 +1,82 @@
|
|
|
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 Dict, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["RrsetCreateParams", "ResourceRecord", "Picker"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class RrsetCreateParams(TypedDict, total=False):
|
|
14
|
+
zone_name: Required[Annotated[str, PropertyInfo(alias="zoneName")]]
|
|
15
|
+
|
|
16
|
+
rrset_name: Required[Annotated[str, PropertyInfo(alias="rrsetName")]]
|
|
17
|
+
|
|
18
|
+
resource_records: Required[Iterable[ResourceRecord]]
|
|
19
|
+
"""List of resource record from rrset"""
|
|
20
|
+
|
|
21
|
+
meta: Dict[str, object]
|
|
22
|
+
"""Meta information for rrset"""
|
|
23
|
+
|
|
24
|
+
pickers: Iterable[Picker]
|
|
25
|
+
"""Set of pickers"""
|
|
26
|
+
|
|
27
|
+
ttl: int
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ResourceRecord(TypedDict, total=False):
|
|
31
|
+
content: Required[Iterable[object]]
|
|
32
|
+
"""
|
|
33
|
+
Content of resource record The exact length of the array depends on the type of
|
|
34
|
+
rrset, each individual record parameter must be a separate element of the array.
|
|
35
|
+
For example
|
|
36
|
+
|
|
37
|
+
- SRV-record: `[100, 1, 5061, "example.com"]`
|
|
38
|
+
- CNAME-record: `[ "the.target.domain" ]`
|
|
39
|
+
- A-record: `[ "1.2.3.4", "5.6.7.8" ]`
|
|
40
|
+
- AAAA-record: `[ "2001:db8::1", "2001:db8::2" ]`
|
|
41
|
+
- MX-record: `[ "mail1.example.com", "mail2.example.com" ]`
|
|
42
|
+
- SVCB/HTTPS-record:
|
|
43
|
+
`[ 1, ".", ["alpn", "h3", "h2"], [ "port", 1443 ], [ "ipv4hint", "10.0.0.1" ], [ "ech", "AEn+DQBFKwAgACABWIHUGj4u+PIggYXcR5JF0gYk3dCRioBW8uJq9H4mKAAIAAEAAQABAANAEnB1YmxpYy50bHMtZWNoLmRldgAA" ] ]`
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
enabled: bool
|
|
47
|
+
|
|
48
|
+
meta: Dict[str, object]
|
|
49
|
+
"""
|
|
50
|
+
This meta will be used to decide which resource record should pass through
|
|
51
|
+
filters from the filter set
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Picker(TypedDict, total=False):
|
|
56
|
+
type: Required[
|
|
57
|
+
Literal[
|
|
58
|
+
"geodns",
|
|
59
|
+
"asn",
|
|
60
|
+
"country",
|
|
61
|
+
"continent",
|
|
62
|
+
"region",
|
|
63
|
+
"ip",
|
|
64
|
+
"geodistance",
|
|
65
|
+
"weighted_shuffle",
|
|
66
|
+
"default",
|
|
67
|
+
"first_n",
|
|
68
|
+
]
|
|
69
|
+
]
|
|
70
|
+
"""Filter type"""
|
|
71
|
+
|
|
72
|
+
limit: int
|
|
73
|
+
"""
|
|
74
|
+
Limits the number of records returned by the filter Can be a positive value for
|
|
75
|
+
a specific limit. Use zero or leave it blank to indicate no limits.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
strict: bool
|
|
79
|
+
"""
|
|
80
|
+
if strict=false, then the filter will return all records if no records match the
|
|
81
|
+
filter
|
|
82
|
+
"""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ...._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["RrsetGetFailoverLogsParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RrsetGetFailoverLogsParams(TypedDict, total=False):
|
|
13
|
+
zone_name: Required[Annotated[str, PropertyInfo(alias="zoneName")]]
|
|
14
|
+
|
|
15
|
+
rrset_name: Required[Annotated[str, PropertyInfo(alias="rrsetName")]]
|
|
16
|
+
|
|
17
|
+
limit: int
|
|
18
|
+
"""Max number of records in response"""
|
|
19
|
+
|
|
20
|
+
offset: int
|
|
21
|
+
"""Amount of records to skip before beginning to write in response."""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .dns_failover_log import DNSFailoverLog
|
|
7
|
+
|
|
8
|
+
__all__ = ["RrsetGetFailoverLogsResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RrsetGetFailoverLogsResponse(BaseModel):
|
|
12
|
+
log: Optional[DNSFailoverLog] = None
|
|
13
|
+
"""FailoverLog"""
|
|
14
|
+
|
|
15
|
+
total_amount: Optional[int] = None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["RrsetListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RrsetListParams(TypedDict, total=False):
|
|
11
|
+
limit: int
|
|
12
|
+
"""Max number of records in response"""
|
|
13
|
+
|
|
14
|
+
offset: int
|
|
15
|
+
"""Amount of records to skip before beginning to write in response."""
|
|
16
|
+
|
|
17
|
+
order_by: str
|
|
18
|
+
"""Field name to sort by"""
|
|
19
|
+
|
|
20
|
+
order_direction: Literal["asc", "desc"]
|
|
21
|
+
"""Ascending or descending order"""
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
from .dns_output_rrset import DNSOutputRrset
|
|
7
|
+
|
|
8
|
+
__all__ = ["RrsetListResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RrsetListResponse(BaseModel):
|
|
12
|
+
rrsets: Optional[List[DNSOutputRrset]] = None
|
|
13
|
+
|
|
14
|
+
total_amount: Optional[int] = None
|
|
@@ -0,0 +1,82 @@
|
|
|
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 Dict, Iterable
|
|
6
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["RrsetReplaceParams", "ResourceRecord", "Picker"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class RrsetReplaceParams(TypedDict, total=False):
|
|
14
|
+
zone_name: Required[Annotated[str, PropertyInfo(alias="zoneName")]]
|
|
15
|
+
|
|
16
|
+
rrset_name: Required[Annotated[str, PropertyInfo(alias="rrsetName")]]
|
|
17
|
+
|
|
18
|
+
resource_records: Required[Iterable[ResourceRecord]]
|
|
19
|
+
"""List of resource record from rrset"""
|
|
20
|
+
|
|
21
|
+
meta: Dict[str, object]
|
|
22
|
+
"""Meta information for rrset"""
|
|
23
|
+
|
|
24
|
+
pickers: Iterable[Picker]
|
|
25
|
+
"""Set of pickers"""
|
|
26
|
+
|
|
27
|
+
ttl: int
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ResourceRecord(TypedDict, total=False):
|
|
31
|
+
content: Required[Iterable[object]]
|
|
32
|
+
"""
|
|
33
|
+
Content of resource record The exact length of the array depends on the type of
|
|
34
|
+
rrset, each individual record parameter must be a separate element of the array.
|
|
35
|
+
For example
|
|
36
|
+
|
|
37
|
+
- SRV-record: `[100, 1, 5061, "example.com"]`
|
|
38
|
+
- CNAME-record: `[ "the.target.domain" ]`
|
|
39
|
+
- A-record: `[ "1.2.3.4", "5.6.7.8" ]`
|
|
40
|
+
- AAAA-record: `[ "2001:db8::1", "2001:db8::2" ]`
|
|
41
|
+
- MX-record: `[ "mail1.example.com", "mail2.example.com" ]`
|
|
42
|
+
- SVCB/HTTPS-record:
|
|
43
|
+
`[ 1, ".", ["alpn", "h3", "h2"], [ "port", 1443 ], [ "ipv4hint", "10.0.0.1" ], [ "ech", "AEn+DQBFKwAgACABWIHUGj4u+PIggYXcR5JF0gYk3dCRioBW8uJq9H4mKAAIAAEAAQABAANAEnB1YmxpYy50bHMtZWNoLmRldgAA" ] ]`
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
enabled: bool
|
|
47
|
+
|
|
48
|
+
meta: Dict[str, object]
|
|
49
|
+
"""
|
|
50
|
+
This meta will be used to decide which resource record should pass through
|
|
51
|
+
filters from the filter set
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class Picker(TypedDict, total=False):
|
|
56
|
+
type: Required[
|
|
57
|
+
Literal[
|
|
58
|
+
"geodns",
|
|
59
|
+
"asn",
|
|
60
|
+
"country",
|
|
61
|
+
"continent",
|
|
62
|
+
"region",
|
|
63
|
+
"ip",
|
|
64
|
+
"geodistance",
|
|
65
|
+
"weighted_shuffle",
|
|
66
|
+
"default",
|
|
67
|
+
"first_n",
|
|
68
|
+
]
|
|
69
|
+
]
|
|
70
|
+
"""Filter type"""
|
|
71
|
+
|
|
72
|
+
limit: int
|
|
73
|
+
"""
|
|
74
|
+
Limits the number of records returned by the filter Can be a positive value for
|
|
75
|
+
a specific limit. Use zero or leave it blank to indicate no limits.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
strict: bool
|
|
79
|
+
"""
|
|
80
|
+
if strict=false, then the filter will return all records if no records match the
|
|
81
|
+
filter
|
|
82
|
+
"""
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["ProfileCreateParams", "Field"]
|
|
@@ -21,4 +21,4 @@ class ProfileCreateParams(TypedDict, total=False):
|
|
|
21
21
|
class Field(TypedDict, total=False):
|
|
22
22
|
base_field: Required[int]
|
|
23
23
|
|
|
24
|
-
field_value:
|
|
24
|
+
field_value: object
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["ProfileRecreateParams", "Field"]
|
|
@@ -21,4 +21,4 @@ class ProfileRecreateParams(TypedDict, total=False):
|
|
|
21
21
|
class Field(TypedDict, total=False):
|
|
22
22
|
base_field: Required[int]
|
|
23
23
|
|
|
24
|
-
field_value:
|
|
24
|
+
field_value: object
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable, Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
8
|
__all__ = ["ProfileReplaceParams", "Field"]
|
|
@@ -21,4 +21,4 @@ class ProfileReplaceParams(TypedDict, total=False):
|
|
|
21
21
|
class Field(TypedDict, total=False):
|
|
22
22
|
base_field: Required[int]
|
|
23
23
|
|
|
24
|
-
field_value:
|
|
24
|
+
field_value: object
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .bucket import Bucket as Bucket
|
|
6
|
+
from .storage import Storage as Storage
|
|
7
|
+
from .location import Location as Location
|
|
8
|
+
from .usage_total import UsageTotal as UsageTotal
|
|
9
|
+
from .usage_series import UsageSeries as UsageSeries
|
|
10
|
+
from .bucket_list_params import BucketListParams as BucketListParams
|
|
11
|
+
from .storage_list_params import StorageListParams as StorageListParams
|
|
12
|
+
from .location_list_params import LocationListParams as LocationListParams
|
|
13
|
+
from .storage_create_params import StorageCreateParams as StorageCreateParams
|
|
14
|
+
from .storage_update_params import StorageUpdateParams as StorageUpdateParams
|
|
15
|
+
from .storage_restore_params import StorageRestoreParams as StorageRestoreParams
|
|
16
|
+
from .credential_recreate_params import CredentialRecreateParams as CredentialRecreateParams
|
|
17
|
+
from .statistic_get_usage_series_params import StatisticGetUsageSeriesParams as StatisticGetUsageSeriesParams
|
|
18
|
+
from .statistic_get_usage_series_response import StatisticGetUsageSeriesResponse as StatisticGetUsageSeriesResponse
|
|
19
|
+
from .statistic_get_usage_aggregated_params import (
|
|
20
|
+
StatisticGetUsageAggregatedParams as StatisticGetUsageAggregatedParams,
|
|
21
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["Bucket"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Bucket(BaseModel):
|
|
11
|
+
name: str
|
|
12
|
+
"""Name of the S3 bucket"""
|
|
13
|
+
|
|
14
|
+
lifecycle: Optional[int] = None
|
|
15
|
+
"""Lifecycle policy expiration days (zero if not set)"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["BucketListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BucketListParams(TypedDict, total=False):
|
|
11
|
+
limit: int
|
|
12
|
+
"""Max number of records in response"""
|
|
13
|
+
|
|
14
|
+
offset: int
|
|
15
|
+
"""Number of records to skip before beginning to write in response."""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .bucket_cors import BucketCors as BucketCors
|
|
6
|
+
from .bucket_policy import BucketPolicy as BucketPolicy
|
|
7
|
+
from .cor_create_params import CorCreateParams as CorCreateParams
|
|
8
|
+
from .policy_get_response import PolicyGetResponse as PolicyGetResponse
|
|
9
|
+
from .lifecycle_create_params import LifecycleCreateParams as LifecycleCreateParams
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
|
|
5
|
+
from pydantic import Field as FieldInfo
|
|
6
|
+
|
|
7
|
+
from ...._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["BucketCors"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BucketCors(BaseModel):
|
|
13
|
+
allowed_origins: Optional[List[str]] = FieldInfo(alias="allowedOrigins", default=None)
|
|
14
|
+
"""
|
|
15
|
+
List of allowed origins for Cross-Origin Resource Sharing (CORS) requests.
|
|
16
|
+
Contains domains/URLs that are permitted to make cross-origin requests to this
|
|
17
|
+
bucket.
|
|
18
|
+
"""
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ...._types import SequenceNotStr
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["CorCreateParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CorCreateParams(TypedDict, total=False):
|
|
14
|
+
storage_id: Required[int]
|
|
15
|
+
|
|
16
|
+
allowed_origins: Annotated[SequenceNotStr[str], PropertyInfo(alias="allowedOrigins")]
|
|
17
|
+
"""List of allowed origins for CORS requests"""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["LifecycleCreateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LifecycleCreateParams(TypedDict, total=False):
|
|
11
|
+
storage_id: Required[int]
|
|
12
|
+
|
|
13
|
+
expiration_days: int
|
|
14
|
+
"""
|
|
15
|
+
Number of days after which objects will be automatically deleted from the
|
|
16
|
+
bucket. Must be a positive integer. Common values: 30 for monthly cleanup, 365
|
|
17
|
+
for yearly retention.
|
|
18
|
+
"""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["CredentialRecreateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CredentialRecreateParams(TypedDict, total=False):
|
|
11
|
+
delete_sftp_password: bool
|
|
12
|
+
"""Remove the SFTP password, disabling password authentication.
|
|
13
|
+
|
|
14
|
+
Only applicable to SFTP storage type.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
generate_s3_keys: bool
|
|
18
|
+
"""Generate new S3 access and secret keys for S3 storage.
|
|
19
|
+
|
|
20
|
+
Only applicable to S3 storage type.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
generate_sftp_password: bool
|
|
24
|
+
"""Generate a new random password for SFTP access.
|
|
25
|
+
|
|
26
|
+
Only applicable to SFTP storage type.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
reset_sftp_keys: bool
|
|
30
|
+
"""Reset/remove all SSH keys associated with the SFTP storage.
|
|
31
|
+
|
|
32
|
+
Only applicable to SFTP storage type.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
sftp_password: str
|
|
36
|
+
"""Set a custom password for SFTP access. Only applicable to SFTP storage type."""
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["Location"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Location(BaseModel):
|
|
11
|
+
address: str
|
|
12
|
+
"""Full hostname/address for accessing the storage endpoint in this location"""
|
|
13
|
+
|
|
14
|
+
allow_for_new_storage: Literal["deny", "allow"]
|
|
15
|
+
"""Indicates whether new storage can be created in this location"""
|
|
16
|
+
|
|
17
|
+
name: str
|
|
18
|
+
"""Location code (region identifier)"""
|
|
19
|
+
|
|
20
|
+
title: str
|
|
21
|
+
"""Human-readable title for the location"""
|
|
22
|
+
|
|
23
|
+
type: Literal["s3", "sftp"]
|
|
24
|
+
"""Storage protocol type supported in this location"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["LocationListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LocationListParams(TypedDict, total=False):
|
|
11
|
+
limit: int
|
|
12
|
+
|
|
13
|
+
offset: int
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._types import SequenceNotStr
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["StatisticGetUsageAggregatedParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class StatisticGetUsageAggregatedParams(TypedDict, total=False):
|
|
14
|
+
from_: Annotated[str, PropertyInfo(alias="from")]
|
|
15
|
+
"""a From date filter"""
|
|
16
|
+
|
|
17
|
+
locations: SequenceNotStr[str]
|
|
18
|
+
"""a Locations list of filter"""
|
|
19
|
+
|
|
20
|
+
storages: SequenceNotStr[str]
|
|
21
|
+
"""a Storages list of filter"""
|
|
22
|
+
|
|
23
|
+
to: str
|
|
24
|
+
"""a To date filter"""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from ..._types import SequenceNotStr
|
|
8
|
+
from ..._utils import PropertyInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["StatisticGetUsageSeriesParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class StatisticGetUsageSeriesParams(TypedDict, total=False):
|
|
14
|
+
from_: Annotated[str, PropertyInfo(alias="from")]
|
|
15
|
+
"""a From date filter"""
|
|
16
|
+
|
|
17
|
+
granularity: str
|
|
18
|
+
"""
|
|
19
|
+
a Granularity is period of time for grouping data Valid values are: 1h, 12h, 24h
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
locations: SequenceNotStr[str]
|
|
23
|
+
"""a Locations list of filter"""
|
|
24
|
+
|
|
25
|
+
source: int
|
|
26
|
+
"""a Source is deprecated parameter"""
|
|
27
|
+
|
|
28
|
+
storages: SequenceNotStr[str]
|
|
29
|
+
"""a Storages list of filter"""
|
|
30
|
+
|
|
31
|
+
to: str
|
|
32
|
+
"""a To date filter"""
|
|
33
|
+
|
|
34
|
+
ts_string: bool
|
|
35
|
+
"""
|
|
36
|
+
a TsString is configurator of response time format switch response from unix
|
|
37
|
+
time format to RFC3339 (2006-01-02T15:04:05Z07:00)
|
|
38
|
+
"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from ..._models import BaseModel
|
|
6
|
+
from .usage_series import UsageSeries
|
|
7
|
+
|
|
8
|
+
__all__ = ["StatisticGetUsageSeriesResponse"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StatisticGetUsageSeriesResponse(BaseModel):
|
|
12
|
+
data: Optional[UsageSeries] = None
|