gcore 0.4.0__py3-none-any.whl → 0.6.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gcore might be problematic. Click here for more details.

Files changed (145) hide show
  1. gcore/_base_client.py +9 -2
  2. gcore/_client.py +9 -0
  3. gcore/_constants.py +2 -2
  4. gcore/_models.py +8 -5
  5. gcore/_version.py +1 -1
  6. gcore/pagination.py +192 -1
  7. gcore/resources/__init__.py +14 -0
  8. gcore/resources/cloud/__init__.py +14 -0
  9. gcore/resources/cloud/audit_logs.py +480 -0
  10. gcore/resources/cloud/baremetal/servers.py +2 -2
  11. gcore/resources/cloud/cloud.py +32 -0
  12. gcore/resources/cloud/file_shares/file_shares.py +64 -9
  13. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +2 -2
  14. gcore/resources/cloud/inference/__init__.py +14 -0
  15. gcore/resources/cloud/inference/api_keys.py +621 -0
  16. gcore/resources/cloud/inference/deployments/deployments.py +66 -33
  17. gcore/resources/cloud/inference/deployments/logs.py +7 -7
  18. gcore/resources/cloud/inference/inference.py +37 -5
  19. gcore/resources/cloud/inference/models.py +16 -15
  20. gcore/resources/cloud/inference/registry_credentials.py +16 -16
  21. gcore/resources/cloud/inference/secrets.py +4 -5
  22. gcore/resources/cloud/instances/instances.py +2 -2
  23. gcore/resources/cloud/load_balancers/pools/members.py +22 -6
  24. gcore/resources/cloud/secrets.py +14 -224
  25. gcore/resources/cloud/tasks.py +30 -28
  26. gcore/resources/fastedge/__init__.py +103 -0
  27. gcore/resources/fastedge/apps/__init__.py +33 -0
  28. gcore/resources/fastedge/apps/apps.py +932 -0
  29. gcore/resources/fastedge/apps/logs.py +248 -0
  30. gcore/resources/fastedge/binaries.py +286 -0
  31. gcore/resources/fastedge/fastedge.py +327 -0
  32. gcore/resources/fastedge/kv_stores.py +523 -0
  33. gcore/resources/fastedge/secrets.py +687 -0
  34. gcore/resources/fastedge/statistics.py +347 -0
  35. gcore/resources/fastedge/templates.py +652 -0
  36. gcore/types/cloud/__init__.py +4 -28
  37. gcore/types/cloud/audit_log_entry.py +254 -0
  38. gcore/types/cloud/audit_log_list_params.py +158 -0
  39. gcore/types/cloud/baremetal/server_create_params.py +1 -1
  40. gcore/types/cloud/file_share_update_params.py +29 -3
  41. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +1 -1
  42. gcore/types/cloud/inference/__init__.py +17 -8
  43. gcore/types/cloud/inference/api_key_create_params.py +21 -0
  44. gcore/types/cloud/inference/api_key_list_params.py +21 -0
  45. gcore/types/cloud/inference/api_key_update_params.py +16 -0
  46. gcore/types/cloud/inference/deployment_create_params.py +224 -7
  47. gcore/types/cloud/inference/deployment_update_params.py +24 -3
  48. gcore/types/cloud/inference/deployments/__init__.py +1 -0
  49. gcore/types/cloud/inference/{inference_log.py → deployments/inference_deployment_log.py} +3 -3
  50. gcore/types/cloud/inference/inference_api_key.py +24 -0
  51. gcore/types/cloud/inference/inference_api_key_create.py +27 -0
  52. gcore/types/cloud/inference/inference_deployment.py +266 -0
  53. gcore/types/cloud/inference/{inference_apikey_secret.py → inference_deployment_api_key.py} +2 -2
  54. gcore/types/cloud/inference/{mlcatalog_model_card.py → inference_model.py} +2 -2
  55. gcore/types/cloud/inference/{inference_registry_credential.py → inference_registry_credentials.py} +2 -2
  56. gcore/types/cloud/inference/{inference_registry_credential_full.py → inference_registry_credentials_create.py} +2 -2
  57. gcore/types/cloud/inference/inference_secret.py +10 -3
  58. gcore/types/cloud/inference/model_list_params.py +2 -4
  59. gcore/types/cloud/{container_probe.py → inference/probe.py} +9 -9
  60. gcore/types/cloud/{container_probe_config.py → inference/probe_config.py} +5 -5
  61. gcore/types/cloud/{container_probe_exec.py → inference/probe_exec.py} +3 -3
  62. gcore/types/cloud/{container_probe_http_get.py → inference/probe_http_get.py} +3 -3
  63. gcore/types/cloud/{container_probe_tcp_socket.py → inference/probe_tcp_socket.py} +3 -3
  64. gcore/types/cloud/inference/secret_create_params.py +10 -4
  65. gcore/types/cloud/inference/secret_replace_params.py +10 -4
  66. gcore/types/cloud/{region_capacity.py → inference_region_capacity.py} +10 -3
  67. gcore/types/cloud/{region_capacity_list.py → inference_region_capacity_list.py} +4 -4
  68. gcore/types/cloud/instance_create_params.py +1 -1
  69. gcore/types/cloud/load_balancer_create_params.py +14 -3
  70. gcore/types/cloud/load_balancers/pool_create_params.py +14 -3
  71. gcore/types/cloud/load_balancers/pool_update_params.py +14 -3
  72. gcore/types/cloud/load_balancers/pools/member_add_params.py +14 -3
  73. gcore/types/cloud/member.py +12 -4
  74. gcore/types/cloud/task_list_params.py +15 -14
  75. gcore/types/fastedge/__init__.py +48 -0
  76. gcore/types/fastedge/app.py +81 -0
  77. gcore/types/fastedge/app_create_params.py +56 -0
  78. gcore/types/fastedge/app_list_params.py +50 -0
  79. gcore/types/fastedge/app_param.py +56 -0
  80. gcore/types/fastedge/app_replace_params.py +17 -0
  81. gcore/types/fastedge/app_short.py +60 -0
  82. gcore/types/fastedge/app_update_params.py +56 -0
  83. gcore/types/fastedge/apps/__init__.py +6 -0
  84. gcore/types/fastedge/apps/log.py +28 -0
  85. gcore/types/fastedge/apps/log_list_params.py +37 -0
  86. gcore/types/fastedge/binary.py +40 -0
  87. gcore/types/fastedge/binary_list_response.py +12 -0
  88. gcore/types/fastedge/binary_short.py +32 -0
  89. gcore/types/fastedge/call_status.py +24 -0
  90. gcore/types/fastedge/client.py +57 -0
  91. gcore/types/fastedge/duration_stats.py +30 -0
  92. gcore/types/fastedge/kv_store.py +33 -0
  93. gcore/types/fastedge/kv_store_create_params.py +23 -0
  94. gcore/types/fastedge/kv_store_get_response.py +10 -0
  95. gcore/types/fastedge/kv_store_list_params.py +12 -0
  96. gcore/types/fastedge/kv_store_list_response.py +15 -0
  97. gcore/types/fastedge/kv_store_replace_params.py +23 -0
  98. gcore/types/fastedge/kv_store_short.py +19 -0
  99. gcore/types/fastedge/kv_store_stats.py +26 -0
  100. gcore/types/fastedge/secret.py +29 -0
  101. gcore/types/fastedge/secret_create_params.py +27 -0
  102. gcore/types/fastedge/secret_create_response.py +12 -0
  103. gcore/types/fastedge/secret_delete_params.py +12 -0
  104. gcore/types/fastedge/secret_list_params.py +15 -0
  105. gcore/types/{cloud → fastedge}/secret_list_response.py +2 -6
  106. gcore/types/fastedge/secret_replace_params.py +27 -0
  107. gcore/types/fastedge/secret_short.py +21 -0
  108. gcore/types/fastedge/secret_update_params.py +27 -0
  109. gcore/types/fastedge/statistic_get_call_series_params.py +28 -0
  110. gcore/types/fastedge/statistic_get_call_series_response.py +12 -0
  111. gcore/types/fastedge/statistic_get_duration_series_params.py +28 -0
  112. gcore/types/fastedge/statistic_get_duration_series_response.py +12 -0
  113. gcore/types/fastedge/template.py +31 -0
  114. gcore/types/fastedge/template_create_params.py +30 -0
  115. gcore/types/fastedge/template_delete_params.py +12 -0
  116. gcore/types/fastedge/template_list_params.py +25 -0
  117. gcore/types/fastedge/template_parameter.py +22 -0
  118. gcore/types/fastedge/template_parameter_param.py +21 -0
  119. gcore/types/fastedge/template_replace_params.py +30 -0
  120. gcore/types/fastedge/template_short.py +27 -0
  121. {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/METADATA +8 -7
  122. {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/RECORD +124 -80
  123. gcore/types/cloud/aws_iam_data.py +0 -13
  124. gcore/types/cloud/aws_iam_data_param.py +0 -15
  125. gcore/types/cloud/capacity.py +0 -13
  126. gcore/types/cloud/container_probe_config_create_param.py +0 -17
  127. gcore/types/cloud/container_probe_create_param.py +0 -38
  128. gcore/types/cloud/container_probe_exec_create_param.py +0 -13
  129. gcore/types/cloud/container_probe_http_get_create_param.py +0 -25
  130. gcore/types/cloud/container_probe_tcp_socket_create_param.py +0 -12
  131. gcore/types/cloud/container_scale.py +0 -25
  132. gcore/types/cloud/container_scale_trigger_rate.py +0 -13
  133. gcore/types/cloud/container_scale_trigger_sqs.py +0 -33
  134. gcore/types/cloud/container_scale_trigger_threshold.py +0 -10
  135. gcore/types/cloud/container_scale_triggers.py +0 -36
  136. gcore/types/cloud/deploy_status.py +0 -13
  137. gcore/types/cloud/inference/container.py +0 -26
  138. gcore/types/cloud/inference/inference.py +0 -95
  139. gcore/types/cloud/inference/mlcatalog_order_by_choices.py +0 -7
  140. gcore/types/cloud/inference_probes.py +0 -19
  141. gcore/types/cloud/ingress_opts_out.py +0 -16
  142. gcore/types/cloud/ingress_opts_param.py +0 -18
  143. gcore/types/cloud/secret_create_params.py +0 -66
  144. {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/WHEEL +0 -0
  145. {gcore-0.4.0.dist-info → gcore-0.6.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,40 @@
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__ = ["Binary"]
8
+
9
+
10
+ class Binary(BaseModel):
11
+ id: int
12
+ """Binary ID"""
13
+
14
+ api_type: str
15
+ """Wasm API type"""
16
+
17
+ source: int
18
+ """
19
+ Source language:
20
+ 0 - unknown
21
+ 1 - Rust
22
+ 2 - JavaScript
23
+ """
24
+
25
+ status: int
26
+ """
27
+ Status code:
28
+ 0 - pending
29
+ 1 - compiled
30
+ 2 - compilation failed (errors available)
31
+ 3 - compilation failed (errors not available)
32
+ 4 - resulting binary exceeded the limit
33
+ 5 - unsupported source language
34
+ """
35
+
36
+ checksum: Optional[str] = None
37
+ """MD5 hash of the binary"""
38
+
39
+ unref_since: Optional[str] = None
40
+ """Not used since (UTC)"""
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ..._models import BaseModel
6
+ from .binary_short import BinaryShort
7
+
8
+ __all__ = ["BinaryListResponse"]
9
+
10
+
11
+ class BinaryListResponse(BaseModel):
12
+ binaries: List[BinaryShort]
@@ -0,0 +1,32 @@
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__ = ["BinaryShort"]
8
+
9
+
10
+ class BinaryShort(BaseModel):
11
+ id: int
12
+ """Binary ID"""
13
+
14
+ api_type: str
15
+ """Wasm API type"""
16
+
17
+ status: int
18
+ """
19
+ Status code:
20
+ 0 - pending
21
+ 1 - compiled
22
+ 2 - compilation failed (errors available)
23
+ 3 - compilation failed (errors not available)
24
+ 4 - resulting binary exceeded the limit
25
+ 5 - unsupported source language
26
+ """
27
+
28
+ checksum: Optional[str] = None
29
+ """MD5 hash of the binary"""
30
+
31
+ unref_since: Optional[str] = None
32
+ """Not used since (UTC)"""
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["CallStatus", "CountByStatus"]
9
+
10
+
11
+ class CountByStatus(BaseModel):
12
+ count: int
13
+ """Number of app calls"""
14
+
15
+ status: int
16
+ """HTTP status"""
17
+
18
+
19
+ class CallStatus(BaseModel):
20
+ count_by_status: List[CountByStatus]
21
+ """Count by status"""
22
+
23
+ time: datetime
24
+ """Beginning ot reporting slot"""
@@ -0,0 +1,57 @@
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
+
7
+ __all__ = ["Client", "Network"]
8
+
9
+
10
+ class Network(BaseModel):
11
+ is_default: bool
12
+ """Is network is default"""
13
+
14
+ name: str
15
+ """Network name"""
16
+
17
+
18
+ class Client(BaseModel):
19
+ app_count: int
20
+ """Actual allowed number of apps"""
21
+
22
+ app_limit: int
23
+ """Max allowed number of apps"""
24
+
25
+ daily_consumption: int
26
+ """Actual number of calls for all apps during the current day (UTC)"""
27
+
28
+ daily_limit: int
29
+ """Max allowed calls for all apps during a day (UTC)"""
30
+
31
+ hourly_consumption: int
32
+ """Actual number of calls for all apps during the current hour"""
33
+
34
+ hourly_limit: int
35
+ """Max allowed calls for all apps during an hour"""
36
+
37
+ monthly_consumption: int
38
+ """Actual number of calls for all apps during the current calendar month (UTC)"""
39
+
40
+ networks: List[Network]
41
+ """List of enabled networks"""
42
+
43
+ plan_id: int
44
+ """Plan ID"""
45
+
46
+ status: int
47
+ """
48
+ Status code:
49
+ 1 - enabled
50
+ 2 - disabled
51
+ 3 - hourly call limit exceeded
52
+ 4 - daily call limit exceeded
53
+ 5 - suspended
54
+ """
55
+
56
+ plan: Optional[str] = None
57
+ """Plan name"""
@@ -0,0 +1,30 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from datetime import datetime
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["DurationStats"]
8
+
9
+
10
+ class DurationStats(BaseModel):
11
+ avg: int
12
+ """Average duration in usec"""
13
+
14
+ max: int
15
+ """Max duration in usec"""
16
+
17
+ median: int
18
+ """Median (50% percentile) duration in usec"""
19
+
20
+ min: int
21
+ """Min duration in usec"""
22
+
23
+ perc75: int
24
+ """75% percentile duration in usec"""
25
+
26
+ perc90: int
27
+ """90% percentile duration in usec"""
28
+
29
+ time: datetime
30
+ """Beginning ot reporting slot"""
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["KvStore", "Byod"]
9
+
10
+
11
+ class Byod(BaseModel):
12
+ prefix: str
13
+ """Key prefix"""
14
+
15
+ url: str
16
+ """URL to connect to"""
17
+
18
+
19
+ class KvStore(BaseModel):
20
+ id: Optional[int] = None
21
+ """The unique identifier of the store"""
22
+
23
+ app_count: Optional[int] = None
24
+ """The number of applications that use this store"""
25
+
26
+ byod: Optional[Byod] = None
27
+ """BYOD (Bring Your Own Data) settings"""
28
+
29
+ comment: Optional[str] = None
30
+ """A description of the store"""
31
+
32
+ updated: Optional[datetime] = None
33
+ """Last update time"""
@@ -0,0 +1,23 @@
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__ = ["KvStoreCreateParams", "Byod"]
8
+
9
+
10
+ class KvStoreCreateParams(TypedDict, total=False):
11
+ byod: Byod
12
+ """BYOD (Bring Your Own Data) settings"""
13
+
14
+ comment: str
15
+ """A description of the store"""
16
+
17
+
18
+ class Byod(TypedDict, total=False):
19
+ prefix: Required[str]
20
+ """Key prefix"""
21
+
22
+ url: Required[str]
23
+ """URL to connect to"""
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .kv_store import KvStore
4
+ from .kv_store_stats import KvStoreStats
5
+
6
+ __all__ = ["KvStoreGetResponse"]
7
+
8
+
9
+ class KvStoreGetResponse(KvStore, KvStoreStats):
10
+ pass
@@ -0,0 +1,12 @@
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__ = ["KvStoreListParams"]
8
+
9
+
10
+ class KvStoreListParams(TypedDict, total=False):
11
+ app_id: int
12
+ """App ID"""
@@ -0,0 +1,15 @@
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 .kv_store_short import KvStoreShort
7
+
8
+ __all__ = ["KvStoreListResponse"]
9
+
10
+
11
+ class KvStoreListResponse(BaseModel):
12
+ count: int
13
+ """Total number of stores"""
14
+
15
+ stores: Optional[List[KvStoreShort]] = None
@@ -0,0 +1,23 @@
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__ = ["KvStoreReplaceParams", "Byod"]
8
+
9
+
10
+ class KvStoreReplaceParams(TypedDict, total=False):
11
+ byod: Byod
12
+ """BYOD (Bring Your Own Data) settings"""
13
+
14
+ comment: str
15
+ """A description of the store"""
16
+
17
+
18
+ class Byod(TypedDict, total=False):
19
+ prefix: Required[str]
20
+ """Key prefix"""
21
+
22
+ url: Required[str]
23
+ """URL to connect to"""
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["KvStoreShort"]
9
+
10
+
11
+ class KvStoreShort(BaseModel):
12
+ id: Optional[int] = None
13
+ """The unique identifier of the store"""
14
+
15
+ comment: Optional[str] = None
16
+ """A description of the store"""
17
+
18
+ updated: Optional[datetime] = None
19
+ """Last update time"""
@@ -0,0 +1,26 @@
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__ = ["KvStoreStats", "Stats"]
8
+
9
+
10
+ class Stats(BaseModel):
11
+ cf_count: int
12
+ """Total number of Cuckoo filter entries"""
13
+
14
+ kv_count: int
15
+ """Total number of KV entries"""
16
+
17
+ size: int
18
+ """Total store size in bytes"""
19
+
20
+ zset_count: int
21
+ """Total number of sorted set entries"""
22
+
23
+
24
+ class KvStoreStats(BaseModel):
25
+ stats: Optional[Stats] = None
26
+ """Store statistics"""
@@ -0,0 +1,29 @@
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
+
7
+ __all__ = ["Secret", "SecretSlot"]
8
+
9
+
10
+ class SecretSlot(BaseModel):
11
+ slot: int
12
+ """Secret slot ID."""
13
+
14
+ checksum: Optional[str] = None
15
+ """A checksum of the secret value for integrity verification."""
16
+
17
+
18
+ class Secret(BaseModel):
19
+ app_count: Optional[int] = None
20
+ """The number of applications that use this secret."""
21
+
22
+ comment: Optional[str] = None
23
+ """A description or comment about the secret."""
24
+
25
+ name: Optional[str] = None
26
+ """The unique name of the secret."""
27
+
28
+ secret_slots: Optional[List[SecretSlot]] = None
29
+ """A list of secret slots associated with this secret."""
@@ -0,0 +1,27 @@
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 Iterable
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["SecretCreateParams", "SecretSlot"]
9
+
10
+
11
+ class SecretCreateParams(TypedDict, total=False):
12
+ name: Required[str]
13
+ """The unique name of the secret."""
14
+
15
+ comment: str
16
+ """A description or comment about the secret."""
17
+
18
+ secret_slots: Iterable[SecretSlot]
19
+ """A list of secret slots associated with this secret."""
20
+
21
+
22
+ class SecretSlot(TypedDict, total=False):
23
+ slot: Required[int]
24
+ """Secret slot ID."""
25
+
26
+ value: str
27
+ """The value of the secret."""
@@ -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 .secret import Secret
6
+
7
+ __all__ = ["SecretCreateResponse"]
8
+
9
+
10
+ class SecretCreateResponse(Secret):
11
+ id: Optional[int] = None
12
+ """The unique identifier of the secret."""
@@ -0,0 +1,12 @@
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__ = ["SecretDeleteParams"]
8
+
9
+
10
+ class SecretDeleteParams(TypedDict, total=False):
11
+ force: bool
12
+ """Force delete secret even if it is used in slots"""
@@ -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__ = ["SecretListParams"]
8
+
9
+
10
+ class SecretListParams(TypedDict, total=False):
11
+ app_id: int
12
+ """App ID"""
13
+
14
+ secret_name: str
15
+ """Secret name"""
@@ -2,15 +2,11 @@
2
2
 
3
3
  from typing import List
4
4
 
5
- from .secret import Secret
6
5
  from ..._models import BaseModel
6
+ from .secret_short import SecretShort
7
7
 
8
8
  __all__ = ["SecretListResponse"]
9
9
 
10
10
 
11
11
  class SecretListResponse(BaseModel):
12
- count: int
13
- """Number of objects"""
14
-
15
- results: List[Secret]
16
- """Objects"""
12
+ secrets: List[SecretShort]
@@ -0,0 +1,27 @@
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 Iterable
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["SecretReplaceParams", "SecretSlot"]
9
+
10
+
11
+ class SecretReplaceParams(TypedDict, total=False):
12
+ name: Required[str]
13
+ """The unique name of the secret."""
14
+
15
+ comment: str
16
+ """A description or comment about the secret."""
17
+
18
+ secret_slots: Iterable[SecretSlot]
19
+ """A list of secret slots associated with this secret."""
20
+
21
+
22
+ class SecretSlot(TypedDict, total=False):
23
+ slot: Required[int]
24
+ """Secret slot ID."""
25
+
26
+ value: str
27
+ """The value of the secret."""
@@ -0,0 +1,21 @@
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__ = ["SecretShort"]
8
+
9
+
10
+ class SecretShort(BaseModel):
11
+ name: str
12
+ """The unique name of the secret."""
13
+
14
+ id: Optional[int] = None
15
+ """The unique identifier of the secret."""
16
+
17
+ app_count: Optional[int] = None
18
+ """The number of applications that use this secret."""
19
+
20
+ comment: Optional[str] = None
21
+ """A description or comment about the secret."""
@@ -0,0 +1,27 @@
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 Iterable
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["SecretUpdateParams", "SecretSlot"]
9
+
10
+
11
+ class SecretUpdateParams(TypedDict, total=False):
12
+ comment: str
13
+ """A description or comment about the secret."""
14
+
15
+ name: str
16
+ """The unique name of the secret."""
17
+
18
+ secret_slots: Iterable[SecretSlot]
19
+ """A list of secret slots associated with this secret."""
20
+
21
+
22
+ class SecretSlot(TypedDict, total=False):
23
+ slot: Required[int]
24
+ """Secret slot ID."""
25
+
26
+ value: str
27
+ """The value of the secret."""
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union
6
+ from datetime import datetime
7
+ from typing_extensions import Required, Annotated, TypedDict
8
+
9
+ from ..._utils import PropertyInfo
10
+
11
+ __all__ = ["StatisticGetCallSeriesParams"]
12
+
13
+
14
+ class StatisticGetCallSeriesParams(TypedDict, total=False):
15
+ from_: Required[Annotated[Union[str, datetime], PropertyInfo(alias="from", format="iso8601")]]
16
+ """Reporting period start time, RFC3339 format"""
17
+
18
+ step: Required[int]
19
+ """Reporting granularity, in seconds"""
20
+
21
+ to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
22
+ """Reporting period end time (not included into reporting period), RFC3339 format"""
23
+
24
+ id: int
25
+ """App ID"""
26
+
27
+ network: str
28
+ """Network name"""
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ..._models import BaseModel
6
+ from .call_status import CallStatus
7
+
8
+ __all__ = ["StatisticGetCallSeriesResponse"]
9
+
10
+
11
+ class StatisticGetCallSeriesResponse(BaseModel):
12
+ stats: List[CallStatus]
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union
6
+ from datetime import datetime
7
+ from typing_extensions import Required, Annotated, TypedDict
8
+
9
+ from ..._utils import PropertyInfo
10
+
11
+ __all__ = ["StatisticGetDurationSeriesParams"]
12
+
13
+
14
+ class StatisticGetDurationSeriesParams(TypedDict, total=False):
15
+ from_: Required[Annotated[Union[str, datetime], PropertyInfo(alias="from", format="iso8601")]]
16
+ """Reporting period start time, RFC3339 format"""
17
+
18
+ step: Required[int]
19
+ """Reporting granularity, in seconds"""
20
+
21
+ to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
22
+ """Reporting period end time (not included into reporting period), RFC3339 format"""
23
+
24
+ id: int
25
+ """App ID"""
26
+
27
+ network: str
28
+ """Network name"""
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ..._models import BaseModel
6
+ from .duration_stats import DurationStats
7
+
8
+ __all__ = ["StatisticGetDurationSeriesResponse"]
9
+
10
+
11
+ class StatisticGetDurationSeriesResponse(BaseModel):
12
+ stats: List[DurationStats]