gcore 0.6.0__py3-none-any.whl → 0.8.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.

Files changed (185) hide show
  1. gcore/_client.py +9 -0
  2. gcore/_models.py +24 -3
  3. gcore/_version.py +1 -1
  4. gcore/pagination.py +101 -63
  5. gcore/resources/__init__.py +14 -0
  6. gcore/resources/cloud/__init__.py +28 -0
  7. gcore/resources/cloud/cloud.py +64 -0
  8. gcore/resources/cloud/cost_reports.py +811 -0
  9. gcore/resources/cloud/file_shares/file_shares.py +10 -0
  10. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +61 -26
  11. gcore/resources/cloud/inference/registry_credentials.py +4 -6
  12. gcore/resources/cloud/usage_reports.py +337 -0
  13. gcore/resources/iam/users.py +5 -5
  14. gcore/resources/streaming/__init__.py +159 -0
  15. gcore/resources/streaming/ai_tasks.py +1288 -0
  16. gcore/resources/streaming/broadcasts.py +579 -0
  17. gcore/resources/streaming/directories.py +515 -0
  18. gcore/resources/streaming/players.py +577 -0
  19. gcore/resources/streaming/playlists.py +1059 -0
  20. gcore/resources/streaming/quality_sets.py +331 -0
  21. gcore/resources/streaming/restreams.py +484 -0
  22. gcore/resources/streaming/statistics.py +3224 -0
  23. gcore/resources/streaming/streaming.py +390 -0
  24. gcore/resources/streaming/streams/__init__.py +33 -0
  25. gcore/resources/streaming/streams/overlays.py +716 -0
  26. gcore/resources/streaming/streams/streams.py +1592 -0
  27. gcore/resources/streaming/videos/__init__.py +33 -0
  28. gcore/resources/streaming/videos/subtitles.py +623 -0
  29. gcore/resources/streaming/videos/videos.py +1553 -0
  30. gcore/resources/waap/ip_info.py +28 -10
  31. gcore/types/cloud/__init__.py +10 -0
  32. gcore/types/cloud/cost_report_aggregated.py +865 -0
  33. gcore/types/cloud/cost_report_aggregated_monthly.py +865 -0
  34. gcore/types/cloud/cost_report_detailed.py +1343 -0
  35. gcore/types/cloud/cost_report_get_aggregated_monthly_params.py +394 -0
  36. gcore/types/cloud/cost_report_get_aggregated_params.py +409 -0
  37. gcore/types/cloud/cost_report_get_detailed_params.py +435 -0
  38. gcore/types/cloud/file_share.py +37 -3
  39. gcore/types/cloud/file_share_create_params.py +16 -0
  40. gcore/types/cloud/floating_ip.py +0 -9
  41. gcore/types/cloud/floating_ip_detailed.py +0 -9
  42. gcore/types/cloud/gpu_baremetal_cluster.py +2 -2
  43. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +9 -0
  44. gcore/types/cloud/quota_get_all_response.py +24 -2
  45. gcore/types/cloud/quota_get_by_region_response.py +24 -2
  46. gcore/types/cloud/quotas/request_create_params.py +12 -1
  47. gcore/types/cloud/quotas/request_get_response.py +12 -1
  48. gcore/types/cloud/quotas/request_list_response.py +12 -1
  49. gcore/types/cloud/subnet.py +1 -1
  50. gcore/types/cloud/usage_report.py +1612 -0
  51. gcore/types/cloud/usage_report_get_params.py +432 -0
  52. gcore/types/streaming/__init__.py +143 -0
  53. gcore/types/streaming/ai_contentmoderation_casm.py +39 -0
  54. gcore/types/streaming/ai_contentmoderation_hardnudity.py +54 -0
  55. gcore/types/streaming/ai_contentmoderation_nsfw.py +39 -0
  56. gcore/types/streaming/ai_contentmoderation_softnudity.py +66 -0
  57. gcore/types/streaming/ai_contentmoderation_sport.py +39 -0
  58. gcore/types/streaming/ai_contentmoderation_weapon.py +39 -0
  59. gcore/types/streaming/ai_task.py +205 -0
  60. gcore/types/streaming/ai_task_cancel_response.py +12 -0
  61. gcore/types/streaming/ai_task_create_params.py +168 -0
  62. gcore/types/streaming/ai_task_create_response.py +10 -0
  63. gcore/types/streaming/ai_task_get_ai_settings_params.py +27 -0
  64. gcore/types/streaming/ai_task_get_ai_settings_response.py +12 -0
  65. gcore/types/streaming/ai_task_get_response.py +313 -0
  66. gcore/types/streaming/ai_task_list_params.py +50 -0
  67. gcore/types/streaming/broadcast.py +71 -0
  68. gcore/types/streaming/broadcast_create_params.py +76 -0
  69. gcore/types/streaming/broadcast_list_params.py +12 -0
  70. gcore/types/streaming/broadcast_spectators_count.py +12 -0
  71. gcore/types/streaming/broadcast_update_params.py +76 -0
  72. gcore/types/streaming/clip.py +78 -0
  73. gcore/types/streaming/create_video_param.py +214 -0
  74. gcore/types/streaming/direct_upload_parameters.py +33 -0
  75. gcore/types/streaming/directories_tree.py +19 -0
  76. gcore/types/streaming/directory_base.py +31 -0
  77. gcore/types/streaming/directory_create_params.py +15 -0
  78. gcore/types/streaming/directory_get_response.py +19 -0
  79. gcore/types/streaming/directory_item.py +13 -0
  80. gcore/types/streaming/directory_update_params.py +18 -0
  81. gcore/types/streaming/directory_video.py +13 -0
  82. gcore/types/streaming/ffprobes.py +25 -0
  83. gcore/types/streaming/max_stream_series.py +21 -0
  84. gcore/types/streaming/meet_series.py +23 -0
  85. gcore/types/streaming/player.py +114 -0
  86. gcore/types/streaming/player_create_params.py +18 -0
  87. gcore/types/streaming/player_list_params.py +12 -0
  88. gcore/types/streaming/player_param.py +114 -0
  89. gcore/types/streaming/player_update_params.py +18 -0
  90. gcore/types/streaming/playlist.py +102 -0
  91. gcore/types/streaming/playlist_create.py +12 -0
  92. gcore/types/streaming/playlist_create_params.py +102 -0
  93. gcore/types/streaming/playlist_list_params.py +12 -0
  94. gcore/types/streaming/playlist_list_videos_response.py +10 -0
  95. gcore/types/streaming/playlist_update_params.py +102 -0
  96. gcore/types/streaming/playlist_video.py +215 -0
  97. gcore/types/streaming/popular_videos.py +17 -0
  98. gcore/types/streaming/quality_set_set_default_params.py +23 -0
  99. gcore/types/streaming/quality_sets.py +57 -0
  100. gcore/types/streaming/restream.py +37 -0
  101. gcore/types/streaming/restream_create_params.py +41 -0
  102. gcore/types/streaming/restream_list_params.py +12 -0
  103. gcore/types/streaming/restream_update_params.py +41 -0
  104. gcore/types/streaming/statistic_get_ffprobes_params.py +22 -0
  105. gcore/types/streaming/statistic_get_live_unique_viewers_params.py +26 -0
  106. gcore/types/streaming/statistic_get_live_unique_viewers_response.py +25 -0
  107. gcore/types/streaming/statistic_get_live_watch_time_cdn_params.py +32 -0
  108. gcore/types/streaming/statistic_get_live_watch_time_total_cdn_params.py +30 -0
  109. gcore/types/streaming/statistic_get_max_streams_series_params.py +20 -0
  110. gcore/types/streaming/statistic_get_meet_series_params.py +20 -0
  111. gcore/types/streaming/statistic_get_popular_videos_params.py +15 -0
  112. gcore/types/streaming/statistic_get_storage_series_params.py +20 -0
  113. gcore/types/streaming/statistic_get_stream_series_params.py +20 -0
  114. gcore/types/streaming/statistic_get_unique_viewers_cdn_params.py +27 -0
  115. gcore/types/streaming/statistic_get_unique_viewers_params.py +34 -0
  116. gcore/types/streaming/statistic_get_views_by_browsers_params.py +15 -0
  117. gcore/types/streaming/statistic_get_views_by_country_params.py +15 -0
  118. gcore/types/streaming/statistic_get_views_by_hostname_params.py +15 -0
  119. gcore/types/streaming/statistic_get_views_by_operating_system_params.py +15 -0
  120. gcore/types/streaming/statistic_get_views_by_referer_params.py +15 -0
  121. gcore/types/streaming/statistic_get_views_by_region_params.py +15 -0
  122. gcore/types/streaming/statistic_get_views_heatmap_params.py +21 -0
  123. gcore/types/streaming/statistic_get_views_params.py +34 -0
  124. gcore/types/streaming/statistic_get_vod_storage_volume_params.py +17 -0
  125. gcore/types/streaming/statistic_get_vod_transcoding_duration_params.py +17 -0
  126. gcore/types/streaming/statistic_get_vod_unique_viewers_cdn_params.py +26 -0
  127. gcore/types/streaming/statistic_get_vod_watch_time_cdn_params.py +32 -0
  128. gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_params.py +30 -0
  129. gcore/types/streaming/statistic_get_vod_watch_time_total_cdn_response.py +22 -0
  130. gcore/types/streaming/storage_series.py +23 -0
  131. gcore/types/streaming/stream.py +420 -0
  132. gcore/types/streaming/stream_create_clip_params.py +48 -0
  133. gcore/types/streaming/stream_create_params.py +165 -0
  134. gcore/types/streaming/stream_list_clips_response.py +10 -0
  135. gcore/types/streaming/stream_list_params.py +18 -0
  136. gcore/types/streaming/stream_series.py +21 -0
  137. gcore/types/streaming/stream_start_recording_response.py +76 -0
  138. gcore/types/streaming/stream_update_params.py +169 -0
  139. gcore/types/streaming/streams/__init__.py +11 -0
  140. gcore/types/streaming/streams/overlay.py +43 -0
  141. gcore/types/streaming/streams/overlay_create_params.py +36 -0
  142. gcore/types/streaming/streams/overlay_create_response.py +10 -0
  143. gcore/types/streaming/streams/overlay_list_response.py +10 -0
  144. gcore/types/streaming/streams/overlay_update_multiple_params.py +39 -0
  145. gcore/types/streaming/streams/overlay_update_multiple_response.py +10 -0
  146. gcore/types/streaming/streams/overlay_update_params.py +33 -0
  147. gcore/types/streaming/subtitle.py +12 -0
  148. gcore/types/streaming/subtitle_base.py +18 -0
  149. gcore/types/streaming/subtitle_base_param.py +18 -0
  150. gcore/types/streaming/unique_viewers.py +35 -0
  151. gcore/types/streaming/unique_viewers_cdn.py +17 -0
  152. gcore/types/streaming/video.py +444 -0
  153. gcore/types/streaming/video_create_multiple_params.py +28 -0
  154. gcore/types/streaming/video_create_multiple_response.py +10 -0
  155. gcore/types/streaming/video_create_params.py +13 -0
  156. gcore/types/streaming/video_create_response.py +10 -0
  157. gcore/types/streaming/video_list_names_params.py +13 -0
  158. gcore/types/streaming/video_list_params.py +59 -0
  159. gcore/types/streaming/video_update_params.py +214 -0
  160. gcore/types/streaming/videos/__init__.py +7 -0
  161. gcore/types/streaming/videos/subtitle_create_params.py +17 -0
  162. gcore/types/streaming/videos/subtitle_list_response.py +10 -0
  163. gcore/types/streaming/videos/subtitle_update_params.py +20 -0
  164. gcore/types/streaming/views.py +35 -0
  165. gcore/types/streaming/views_by_browser.py +17 -0
  166. gcore/types/streaming/views_by_country.py +19 -0
  167. gcore/types/streaming/views_by_hostname.py +17 -0
  168. gcore/types/streaming/views_by_operating_system.py +17 -0
  169. gcore/types/streaming/views_by_referer.py +17 -0
  170. gcore/types/streaming/views_by_region.py +19 -0
  171. gcore/types/streaming/views_heatmap.py +19 -0
  172. gcore/types/streaming/vod_statistics_series.py +21 -0
  173. gcore/types/streaming/vod_total_stream_duration_series.py +22 -0
  174. gcore/types/waap/domains/custom_rule_create_params.py +4 -4
  175. gcore/types/waap/domains/custom_rule_update_params.py +4 -4
  176. gcore/types/waap/ip_info_get_blocked_requests_params.py +5 -1
  177. gcore/types/waap/ip_info_get_counts_params.py +2 -1
  178. gcore/types/waap/ip_info_get_top_sessions_params.py +5 -1
  179. gcore/types/waap/ip_info_get_top_urls_params.py +5 -1
  180. gcore/types/waap/ip_info_get_top_user_agents_params.py +5 -1
  181. gcore/types/waap/waap_custom_rule.py +4 -4
  182. {gcore-0.6.0.dist-info → gcore-0.8.0.dist-info}/METADATA +1 -1
  183. {gcore-0.6.0.dist-info → gcore-0.8.0.dist-info}/RECORD +185 -37
  184. {gcore-0.6.0.dist-info → gcore-0.8.0.dist-info}/WHEEL +0 -0
  185. {gcore-0.6.0.dist-info → gcore-0.8.0.dist-info}/licenses/LICENSE +0 -0
@@ -2,6 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Optional
6
+
5
7
  import httpx
6
8
 
7
9
  from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -155,7 +157,9 @@ class IPInfoResource(SyncAPIResource):
155
157
  corresponding action that was executed.
156
158
 
157
159
  Args:
158
- domain_id: The domain ID
160
+ domain_id: The identifier for a domain. When specified, the response will exclusively
161
+ contain data pertinent to the indicated domain, filtering out information from
162
+ other domains.
159
163
 
160
164
  ip: The IP address to check
161
165
 
@@ -189,7 +193,7 @@ class IPInfoResource(SyncAPIResource):
189
193
  self,
190
194
  *,
191
195
  ip: str,
192
- domain_id: int | NotGiven = NOT_GIVEN,
196
+ domain_id: Optional[int] | NotGiven = NOT_GIVEN,
193
197
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194
198
  # The extra values given here take precedence over values defined on the client or passed to this method.
195
199
  extra_headers: Headers | None = None,
@@ -296,7 +300,9 @@ class IPInfoResource(SyncAPIResource):
296
300
  by IP.
297
301
 
298
302
  Args:
299
- domain_id: The domain ID
303
+ domain_id: The identifier for a domain. When specified, the response will exclusively
304
+ contain data pertinent to the indicated domain, filtering out information from
305
+ other domains.
300
306
 
301
307
  ip: The IP address to check
302
308
 
@@ -345,7 +351,9 @@ class IPInfoResource(SyncAPIResource):
345
351
  security monitoring based on URL popularity.
346
352
 
347
353
  Args:
348
- domain_id: The domain ID
354
+ domain_id: The identifier for a domain. When specified, the response will exclusively
355
+ contain data pertinent to the indicated domain, filtering out information from
356
+ other domains.
349
357
 
350
358
  ip: The IP address to check
351
359
 
@@ -392,7 +400,9 @@ class IPInfoResource(SyncAPIResource):
392
400
  IP.
393
401
 
394
402
  Args:
395
- domain_id: The domain ID
403
+ domain_id: The identifier for a domain. When specified, the response will exclusively
404
+ contain data pertinent to the indicated domain, filtering out information from
405
+ other domains.
396
406
 
397
407
  ip: The IP address to check
398
408
 
@@ -578,7 +588,9 @@ class AsyncIPInfoResource(AsyncAPIResource):
578
588
  corresponding action that was executed.
579
589
 
580
590
  Args:
581
- domain_id: The domain ID
591
+ domain_id: The identifier for a domain. When specified, the response will exclusively
592
+ contain data pertinent to the indicated domain, filtering out information from
593
+ other domains.
582
594
 
583
595
  ip: The IP address to check
584
596
 
@@ -612,7 +624,7 @@ class AsyncIPInfoResource(AsyncAPIResource):
612
624
  self,
613
625
  *,
614
626
  ip: str,
615
- domain_id: int | NotGiven = NOT_GIVEN,
627
+ domain_id: Optional[int] | NotGiven = NOT_GIVEN,
616
628
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
617
629
  # The extra values given here take precedence over values defined on the client or passed to this method.
618
630
  extra_headers: Headers | None = None,
@@ -719,7 +731,9 @@ class AsyncIPInfoResource(AsyncAPIResource):
719
731
  by IP.
720
732
 
721
733
  Args:
722
- domain_id: The domain ID
734
+ domain_id: The identifier for a domain. When specified, the response will exclusively
735
+ contain data pertinent to the indicated domain, filtering out information from
736
+ other domains.
723
737
 
724
738
  ip: The IP address to check
725
739
 
@@ -768,7 +782,9 @@ class AsyncIPInfoResource(AsyncAPIResource):
768
782
  security monitoring based on URL popularity.
769
783
 
770
784
  Args:
771
- domain_id: The domain ID
785
+ domain_id: The identifier for a domain. When specified, the response will exclusively
786
+ contain data pertinent to the indicated domain, filtering out information from
787
+ other domains.
772
788
 
773
789
  ip: The IP address to check
774
790
 
@@ -815,7 +831,9 @@ class AsyncIPInfoResource(AsyncAPIResource):
815
831
  IP.
816
832
 
817
833
  Args:
818
- domain_id: The domain ID
834
+ domain_id: The identifier for a domain. When specified, the response will exclusively
835
+ contain data pertinent to the indicated domain, filtering out information from
836
+ other domains.
819
837
 
820
838
  ip: The IP address to check
821
839
 
@@ -30,6 +30,7 @@ from .ddos_profile import DDOSProfile as DDOSProfile
30
30
  from .lb_algorithm import LbAlgorithm as LbAlgorithm
31
31
  from .registry_tag import RegistryTag as RegistryTag
32
32
  from .task_id_list import TaskIDList as TaskIDList
33
+ from .usage_report import UsageReport as UsageReport
33
34
  from .fixed_address import FixedAddress as FixedAddress
34
35
  from .instance_list import InstanceList as InstanceList
35
36
  from .ip_assignment import IPAssignment as IPAssignment
@@ -70,6 +71,7 @@ from .provisioning_status import ProvisioningStatus as ProvisioningStatus
70
71
  from .security_group_rule import SecurityGroupRule as SecurityGroupRule
71
72
  from .session_persistence import SessionPersistence as SessionPersistence
72
73
  from .ssh_key_list_params import SSHKeyListParams as SSHKeyListParams
74
+ from .cost_report_detailed import CostReportDetailed as CostReportDetailed
73
75
  from .floating_ip_detailed import FloatingIPDetailed as FloatingIPDetailed
74
76
  from .gpu_baremetal_flavor import GPUBaremetalFlavor as GPUBaremetalFlavor
75
77
  from .instance_list_params import InstanceListParams as InstanceListParams
@@ -94,6 +96,7 @@ from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
94
96
  from .project_create_params import ProjectCreateParams as ProjectCreateParams
95
97
  from .ssh_key_create_params import SSHKeyCreateParams as SSHKeyCreateParams
96
98
  from .ssh_key_update_params import SSHKeyUpdateParams as SSHKeyUpdateParams
99
+ from .cost_report_aggregated import CostReportAggregated as CostReportAggregated
97
100
  from .file_share_list_params import FileShareListParams as FileShareListParams
98
101
  from .instance_action_params import InstanceActionParams as InstanceActionParams
99
102
  from .instance_create_params import InstanceCreateParams as InstanceCreateParams
@@ -109,6 +112,7 @@ from .registry_resize_params import RegistryResizeParams as RegistryResizeParams
109
112
  from .floating_ip_list_params import FloatingIPListParams as FloatingIPListParams
110
113
  from .load_balancer_l7_policy import LoadBalancerL7Policy as LoadBalancerL7Policy
111
114
  from .load_balancer_pool_list import LoadBalancerPoolList as LoadBalancerPoolList
115
+ from .usage_report_get_params import UsageReportGetParams as UsageReportGetParams
112
116
  from .ddos_profile_option_list import DDOSProfileOptionList as DDOSProfileOptionList
113
117
  from .file_share_create_params import FileShareCreateParams as FileShareCreateParams
114
118
  from .file_share_resize_params import FileShareResizeParams as FileShareResizeParams
@@ -150,11 +154,14 @@ from .load_balancer_failover_params import LoadBalancerFailoverParams as LoadBal
150
154
  from .load_balancer_listener_detail import LoadBalancerListenerDetail as LoadBalancerListenerDetail
151
155
  from .placement_group_create_params import PlacementGroupCreateParams as PlacementGroupCreateParams
152
156
  from .reserved_fixed_ip_list_params import ReservedFixedIPListParams as ReservedFixedIPListParams
157
+ from .cost_report_aggregated_monthly import CostReportAggregatedMonthly as CostReportAggregatedMonthly
153
158
  from .inference_region_capacity_list import InferenceRegionCapacityList as InferenceRegionCapacityList
154
159
  from .load_balancer_operating_status import LoadBalancerOperatingStatus as LoadBalancerOperatingStatus
155
160
  from .billing_reservation_list_params import BillingReservationListParams as BillingReservationListParams
161
+ from .cost_report_get_detailed_params import CostReportGetDetailedParams as CostReportGetDetailedParams
156
162
  from .reserved_fixed_ip_create_params import ReservedFixedIPCreateParams as ReservedFixedIPCreateParams
157
163
  from .volume_attach_to_instance_params import VolumeAttachToInstanceParams as VolumeAttachToInstanceParams
164
+ from .cost_report_get_aggregated_params import CostReportGetAggregatedParams as CostReportGetAggregatedParams
158
165
  from .gpu_baremetal_cluster_list_params import GPUBaremetalClusterListParams as GPUBaremetalClusterListParams
159
166
  from .gpu_baremetal_cluster_server_list import GPUBaremetalClusterServerList as GPUBaremetalClusterServerList
160
167
  from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam as LaasIndexRetentionPolicyParam
@@ -174,3 +181,6 @@ from .instance_add_to_placement_group_params import (
174
181
  from .instance_unassign_security_group_params import (
175
182
  InstanceUnassignSecurityGroupParams as InstanceUnassignSecurityGroupParams,
176
183
  )
184
+ from .cost_report_get_aggregated_monthly_params import (
185
+ CostReportGetAggregatedMonthlyParams as CostReportGetAggregatedMonthlyParams,
186
+ )