gcore 0.4.0__py3-none-any.whl → 0.5.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 (125) 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/baremetal/servers.py +2 -2
  9. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +2 -2
  10. gcore/resources/cloud/inference/deployments/deployments.py +66 -33
  11. gcore/resources/cloud/inference/deployments/logs.py +7 -7
  12. gcore/resources/cloud/inference/inference.py +5 -5
  13. gcore/resources/cloud/inference/models.py +16 -15
  14. gcore/resources/cloud/inference/registry_credentials.py +16 -16
  15. gcore/resources/cloud/inference/secrets.py +4 -5
  16. gcore/resources/cloud/instances/instances.py +2 -2
  17. gcore/resources/cloud/secrets.py +14 -224
  18. gcore/resources/cloud/tasks.py +30 -28
  19. gcore/resources/fastedge/__init__.py +103 -0
  20. gcore/resources/fastedge/apps/__init__.py +33 -0
  21. gcore/resources/fastedge/apps/apps.py +932 -0
  22. gcore/resources/fastedge/apps/logs.py +248 -0
  23. gcore/resources/fastedge/binaries.py +286 -0
  24. gcore/resources/fastedge/fastedge.py +327 -0
  25. gcore/resources/fastedge/kv_stores.py +523 -0
  26. gcore/resources/fastedge/secrets.py +687 -0
  27. gcore/resources/fastedge/statistics.py +347 -0
  28. gcore/resources/fastedge/templates.py +652 -0
  29. gcore/types/cloud/__init__.py +2 -28
  30. gcore/types/cloud/baremetal/server_create_params.py +1 -1
  31. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +1 -1
  32. gcore/types/cloud/inference/__init__.py +12 -8
  33. gcore/types/cloud/inference/deployment_create_params.py +224 -7
  34. gcore/types/cloud/inference/deployment_update_params.py +24 -3
  35. gcore/types/cloud/inference/deployments/__init__.py +1 -0
  36. gcore/types/cloud/inference/{inference_log.py → deployments/inference_deployment_log.py} +3 -3
  37. gcore/types/cloud/inference/inference_deployment.py +266 -0
  38. gcore/types/cloud/inference/{inference_apikey_secret.py → inference_deployment_api_key.py} +2 -2
  39. gcore/types/cloud/inference/{mlcatalog_model_card.py → inference_model.py} +2 -2
  40. gcore/types/cloud/inference/{inference_registry_credential.py → inference_registry_credentials.py} +2 -2
  41. gcore/types/cloud/inference/{inference_registry_credential_full.py → inference_registry_credentials_create.py} +2 -2
  42. gcore/types/cloud/inference/inference_secret.py +10 -3
  43. gcore/types/cloud/inference/model_list_params.py +2 -4
  44. gcore/types/cloud/{container_probe.py → inference/probe.py} +9 -9
  45. gcore/types/cloud/{container_probe_config.py → inference/probe_config.py} +5 -5
  46. gcore/types/cloud/{container_probe_exec.py → inference/probe_exec.py} +3 -3
  47. gcore/types/cloud/{container_probe_http_get.py → inference/probe_http_get.py} +3 -3
  48. gcore/types/cloud/{container_probe_tcp_socket.py → inference/probe_tcp_socket.py} +3 -3
  49. gcore/types/cloud/inference/secret_create_params.py +10 -4
  50. gcore/types/cloud/inference/secret_replace_params.py +10 -4
  51. gcore/types/cloud/{region_capacity.py → inference_region_capacity.py} +10 -3
  52. gcore/types/cloud/{region_capacity_list.py → inference_region_capacity_list.py} +4 -4
  53. gcore/types/cloud/instance_create_params.py +1 -1
  54. gcore/types/cloud/task_list_params.py +15 -14
  55. gcore/types/fastedge/__init__.py +48 -0
  56. gcore/types/fastedge/app.py +81 -0
  57. gcore/types/fastedge/app_create_params.py +56 -0
  58. gcore/types/fastedge/app_list_params.py +50 -0
  59. gcore/types/fastedge/app_param.py +56 -0
  60. gcore/types/fastedge/app_replace_params.py +17 -0
  61. gcore/types/fastedge/app_short.py +60 -0
  62. gcore/types/fastedge/app_update_params.py +56 -0
  63. gcore/types/fastedge/apps/__init__.py +6 -0
  64. gcore/types/fastedge/apps/log.py +28 -0
  65. gcore/types/fastedge/apps/log_list_params.py +37 -0
  66. gcore/types/fastedge/binary.py +40 -0
  67. gcore/types/fastedge/binary_list_response.py +12 -0
  68. gcore/types/fastedge/binary_short.py +32 -0
  69. gcore/types/fastedge/call_status.py +24 -0
  70. gcore/types/fastedge/client.py +57 -0
  71. gcore/types/fastedge/duration_stats.py +30 -0
  72. gcore/types/fastedge/kv_store.py +33 -0
  73. gcore/types/fastedge/kv_store_create_params.py +23 -0
  74. gcore/types/fastedge/kv_store_get_response.py +10 -0
  75. gcore/types/fastedge/kv_store_list_params.py +12 -0
  76. gcore/types/fastedge/kv_store_list_response.py +15 -0
  77. gcore/types/fastedge/kv_store_replace_params.py +23 -0
  78. gcore/types/fastedge/kv_store_short.py +19 -0
  79. gcore/types/fastedge/kv_store_stats.py +26 -0
  80. gcore/types/fastedge/secret.py +29 -0
  81. gcore/types/fastedge/secret_create_params.py +27 -0
  82. gcore/types/fastedge/secret_create_response.py +12 -0
  83. gcore/types/fastedge/secret_delete_params.py +12 -0
  84. gcore/types/fastedge/secret_list_params.py +15 -0
  85. gcore/types/{cloud → fastedge}/secret_list_response.py +2 -6
  86. gcore/types/fastedge/secret_replace_params.py +27 -0
  87. gcore/types/fastedge/secret_short.py +21 -0
  88. gcore/types/fastedge/secret_update_params.py +27 -0
  89. gcore/types/fastedge/statistic_get_call_series_params.py +28 -0
  90. gcore/types/fastedge/statistic_get_call_series_response.py +12 -0
  91. gcore/types/fastedge/statistic_get_duration_series_params.py +28 -0
  92. gcore/types/fastedge/statistic_get_duration_series_response.py +12 -0
  93. gcore/types/fastedge/template.py +31 -0
  94. gcore/types/fastedge/template_create_params.py +30 -0
  95. gcore/types/fastedge/template_delete_params.py +12 -0
  96. gcore/types/fastedge/template_list_params.py +25 -0
  97. gcore/types/fastedge/template_parameter.py +22 -0
  98. gcore/types/fastedge/template_parameter_param.py +21 -0
  99. gcore/types/fastedge/template_replace_params.py +30 -0
  100. gcore/types/fastedge/template_short.py +27 -0
  101. {gcore-0.4.0.dist-info → gcore-0.5.0.dist-info}/METADATA +7 -5
  102. {gcore-0.4.0.dist-info → gcore-0.5.0.dist-info}/RECORD +104 -69
  103. gcore/types/cloud/aws_iam_data.py +0 -13
  104. gcore/types/cloud/aws_iam_data_param.py +0 -15
  105. gcore/types/cloud/capacity.py +0 -13
  106. gcore/types/cloud/container_probe_config_create_param.py +0 -17
  107. gcore/types/cloud/container_probe_create_param.py +0 -38
  108. gcore/types/cloud/container_probe_exec_create_param.py +0 -13
  109. gcore/types/cloud/container_probe_http_get_create_param.py +0 -25
  110. gcore/types/cloud/container_probe_tcp_socket_create_param.py +0 -12
  111. gcore/types/cloud/container_scale.py +0 -25
  112. gcore/types/cloud/container_scale_trigger_rate.py +0 -13
  113. gcore/types/cloud/container_scale_trigger_sqs.py +0 -33
  114. gcore/types/cloud/container_scale_trigger_threshold.py +0 -10
  115. gcore/types/cloud/container_scale_triggers.py +0 -36
  116. gcore/types/cloud/deploy_status.py +0 -13
  117. gcore/types/cloud/inference/container.py +0 -26
  118. gcore/types/cloud/inference/inference.py +0 -95
  119. gcore/types/cloud/inference/mlcatalog_order_by_choices.py +0 -7
  120. gcore/types/cloud/inference_probes.py +0 -19
  121. gcore/types/cloud/ingress_opts_out.py +0 -16
  122. gcore/types/cloud/ingress_opts_param.py +0 -18
  123. gcore/types/cloud/secret_create_params.py +0 -66
  124. {gcore-0.4.0.dist-info → gcore-0.5.0.dist-info}/WHEEL +0 -0
  125. {gcore-0.4.0.dist-info → gcore-0.5.0.dist-info}/licenses/LICENSE +0 -0
@@ -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]
@@ -0,0 +1,31 @@
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 .template_parameter import TemplateParameter
7
+
8
+ __all__ = ["Template"]
9
+
10
+
11
+ class Template(BaseModel):
12
+ api_type: str
13
+ """Wasm API type"""
14
+
15
+ binary_id: int
16
+ """Binary ID"""
17
+
18
+ name: str
19
+ """Name of the template"""
20
+
21
+ owned: bool
22
+ """Is the template owned by user?"""
23
+
24
+ params: List[TemplateParameter]
25
+ """Parameters"""
26
+
27
+ long_descr: Optional[str] = None
28
+ """Long description of the template"""
29
+
30
+ short_descr: Optional[str] = None
31
+ """Short description of the template"""
@@ -0,0 +1,30 @@
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
+ from .template_parameter_param import TemplateParameterParam
9
+
10
+ __all__ = ["TemplateCreateParams"]
11
+
12
+
13
+ class TemplateCreateParams(TypedDict, total=False):
14
+ binary_id: Required[int]
15
+ """Binary ID"""
16
+
17
+ name: Required[str]
18
+ """Name of the template"""
19
+
20
+ owned: Required[bool]
21
+ """Is the template owned by user?"""
22
+
23
+ params: Required[Iterable[TemplateParameterParam]]
24
+ """Parameters"""
25
+
26
+ long_descr: str
27
+ """Long description of the template"""
28
+
29
+ short_descr: str
30
+ """Short description of the template"""
@@ -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__ = ["TemplateDeleteParams"]
8
+
9
+
10
+ class TemplateDeleteParams(TypedDict, total=False):
11
+ force: bool
12
+ """Force template deletion even if it is shared to groups"""
@@ -0,0 +1,25 @@
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__ = ["TemplateListParams"]
8
+
9
+
10
+ class TemplateListParams(TypedDict, total=False):
11
+ api_type: Literal["wasi-http", "proxy-wasm"]
12
+ """
13
+ API type:
14
+ wasi-http - WASI with HTTP entry point
15
+ proxy-wasm - Proxy-Wasm app, callable from CDN
16
+ """
17
+
18
+ limit: int
19
+ """Limit for pagination"""
20
+
21
+ offset: int
22
+ """Offset for pagination"""
23
+
24
+ only_mine: bool
25
+ """Only my templates"""
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["TemplateParameter"]
9
+
10
+
11
+ class TemplateParameter(BaseModel):
12
+ data_type: Literal["string", "number", "date", "time", "secret"]
13
+ """Parameter type"""
14
+
15
+ mandatory: bool
16
+ """Is this field mandatory?"""
17
+
18
+ name: str
19
+ """Parameter name"""
20
+
21
+ descr: Optional[str] = None
22
+ """Parameter description"""
@@ -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, Required, TypedDict
6
+
7
+ __all__ = ["TemplateParameterParam"]
8
+
9
+
10
+ class TemplateParameterParam(TypedDict, total=False):
11
+ data_type: Required[Literal["string", "number", "date", "time", "secret"]]
12
+ """Parameter type"""
13
+
14
+ mandatory: Required[bool]
15
+ """Is this field mandatory?"""
16
+
17
+ name: Required[str]
18
+ """Parameter name"""
19
+
20
+ descr: str
21
+ """Parameter description"""
@@ -0,0 +1,30 @@
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
+ from .template_parameter_param import TemplateParameterParam
9
+
10
+ __all__ = ["TemplateReplaceParams"]
11
+
12
+
13
+ class TemplateReplaceParams(TypedDict, total=False):
14
+ binary_id: Required[int]
15
+ """Binary ID"""
16
+
17
+ name: Required[str]
18
+ """Name of the template"""
19
+
20
+ owned: Required[bool]
21
+ """Is the template owned by user?"""
22
+
23
+ params: Required[Iterable[TemplateParameterParam]]
24
+ """Parameters"""
25
+
26
+ long_descr: str
27
+ """Long description of the template"""
28
+
29
+ short_descr: str
30
+ """Short description of the template"""