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
@@ -16,7 +16,6 @@ from .logging import Logging as Logging
16
16
  from .network import Network as Network
17
17
  from .project import Project as Project
18
18
  from .ssh_key import SSHKey as SSHKey
19
- from .capacity import Capacity as Capacity
20
19
  from .instance import Instance as Instance
21
20
  from .registry import Registry as Registry
22
21
  from .gpu_image import GPUImage as GPUImage
@@ -27,12 +26,10 @@ from .ip_version import IPVersion as IPVersion
27
26
  from .floating_ip import FloatingIP as FloatingIP
28
27
  from .http_method import HTTPMethod as HTTPMethod
29
28
  from .pool_status import PoolStatus as PoolStatus
30
- from .aws_iam_data import AwsIamData as AwsIamData
31
29
  from .ddos_profile import DDOSProfile as DDOSProfile
32
30
  from .lb_algorithm import LbAlgorithm as LbAlgorithm
33
31
  from .registry_tag import RegistryTag as RegistryTag
34
32
  from .task_id_list import TaskIDList as TaskIDList
35
- from .deploy_status import DeployStatus as DeployStatus
36
33
  from .fixed_address import FixedAddress as FixedAddress
37
34
  from .instance_list import InstanceList as InstanceList
38
35
  from .ip_assignment import IPAssignment as IPAssignment
@@ -43,26 +40,19 @@ from .blackhole_port import BlackholePort as BlackholePort
43
40
  from .gpu_image_list import GPUImageList as GPUImageList
44
41
  from .health_monitor import HealthMonitor as HealthMonitor
45
42
  from .security_group import SecurityGroup as SecurityGroup
46
- from .container_probe import ContainerProbe as ContainerProbe
47
- from .container_scale import ContainerScale as ContainerScale
48
43
  from .listener_status import ListenerStatus as ListenerStatus
49
44
  from .network_details import NetworkDetails as NetworkDetails
50
45
  from .placement_group import PlacementGroup as PlacementGroup
51
- from .region_capacity import RegionCapacity as RegionCapacity
52
46
  from .ssh_key_created import SSHKeyCreated as SSHKeyCreated
53
47
  from .baremetal_flavor import BaremetalFlavor as BaremetalFlavor
54
48
  from .floating_address import FloatingAddress as FloatingAddress
55
- from .inference_probes import InferenceProbes as InferenceProbes
56
- from .ingress_opts_out import IngressOptsOut as IngressOptsOut
57
49
  from .lb_pool_protocol import LbPoolProtocol as LbPoolProtocol
58
50
  from .task_list_params import TaskListParams as TaskListParams
59
51
  from .network_interface import NetworkInterface as NetworkInterface
60
52
  from .region_get_params import RegionGetParams as RegionGetParams
61
53
  from .reserved_fixed_ip import ReservedFixedIP as ReservedFixedIP
62
- from .aws_iam_data_param import AwsIamDataParam as AwsIamDataParam
63
54
  from .ddos_profile_field import DDOSProfileField as DDOSProfileField
64
55
  from .floating_ip_status import FloatingIPStatus as FloatingIPStatus
65
- from .ingress_opts_param import IngressOptsParam as IngressOptsParam
66
56
  from .instance_interface import InstanceInterface as InstanceInterface
67
57
  from .instance_isolation import InstanceIsolation as InstanceIsolation
68
58
  from .load_balancer_pool import LoadBalancerPool as LoadBalancerPool
@@ -79,16 +69,12 @@ from .provisioning_status import ProvisioningStatus as ProvisioningStatus
79
69
  from .security_group_rule import SecurityGroupRule as SecurityGroupRule
80
70
  from .session_persistence import SessionPersistence as SessionPersistence
81
71
  from .ssh_key_list_params import SSHKeyListParams as SSHKeyListParams
82
- from .container_probe_exec import ContainerProbeExec as ContainerProbeExec
83
72
  from .floating_ip_detailed import FloatingIPDetailed as FloatingIPDetailed
84
73
  from .gpu_baremetal_flavor import GPUBaremetalFlavor as GPUBaremetalFlavor
85
74
  from .instance_list_params import InstanceListParams as InstanceListParams
86
75
  from .lb_listener_protocol import LbListenerProtocol as LbListenerProtocol
87
76
  from .load_balancer_status import LoadBalancerStatus as LoadBalancerStatus
88
77
  from .placement_group_list import PlacementGroupList as PlacementGroupList
89
- from .region_capacity_list import RegionCapacityList as RegionCapacityList
90
- from .secret_create_params import SecretCreateParams as SecretCreateParams
91
- from .secret_list_response import SecretListResponse as SecretListResponse
92
78
  from .tag_update_map_param import TagUpdateMapParam as TagUpdateMapParam
93
79
  from .volume_create_params import VolumeCreateParams as VolumeCreateParams
94
80
  from .volume_delete_params import VolumeDeleteParams as VolumeDeleteParams
@@ -106,7 +92,6 @@ from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
106
92
  from .project_create_params import ProjectCreateParams as ProjectCreateParams
107
93
  from .ssh_key_create_params import SSHKeyCreateParams as SSHKeyCreateParams
108
94
  from .ssh_key_update_params import SSHKeyUpdateParams as SSHKeyUpdateParams
109
- from .container_probe_config import ContainerProbeConfig as ContainerProbeConfig
110
95
  from .file_share_list_params import FileShareListParams as FileShareListParams
111
96
  from .instance_action_params import InstanceActionParams as InstanceActionParams
112
97
  from .instance_create_params import InstanceCreateParams as InstanceCreateParams
@@ -122,8 +107,6 @@ from .registry_resize_params import RegistryResizeParams as RegistryResizeParams
122
107
  from .floating_ip_list_params import FloatingIPListParams as FloatingIPListParams
123
108
  from .load_balancer_l7_policy import LoadBalancerL7Policy as LoadBalancerL7Policy
124
109
  from .load_balancer_pool_list import LoadBalancerPoolList as LoadBalancerPoolList
125
- from .container_probe_http_get import ContainerProbeHTTPGet as ContainerProbeHTTPGet
126
- from .container_scale_triggers import ContainerScaleTriggers as ContainerScaleTriggers
127
110
  from .ddos_profile_option_list import DDOSProfileOptionList as DDOSProfileOptionList
128
111
  from .file_share_create_params import FileShareCreateParams as FileShareCreateParams
129
112
  from .file_share_resize_params import FileShareResizeParams as FileShareResizeParams
@@ -133,18 +116,17 @@ from .load_balancer_statistics import LoadBalancerStatistics as LoadBalancerStat
133
116
  from .floating_ip_assign_params import FloatingIPAssignParams as FloatingIPAssignParams
134
117
  from .floating_ip_create_params import FloatingIPCreateParams as FloatingIPCreateParams
135
118
  from .gpu_baremetal_flavor_list import GPUBaremetalFlavorList as GPUBaremetalFlavorList
119
+ from .inference_region_capacity import InferenceRegionCapacity as InferenceRegionCapacity
136
120
  from .load_balancer_flavor_list import LoadBalancerFlavorList as LoadBalancerFlavorList
137
121
  from .load_balancer_list_params import LoadBalancerListParams as LoadBalancerListParams
138
122
  from .load_balancer_status_list import LoadBalancerStatusList as LoadBalancerStatusList
139
123
  from .quota_get_global_response import QuotaGetGlobalResponse as QuotaGetGlobalResponse
140
124
  from .volume_change_type_params import VolumeChangeTypeParams as VolumeChangeTypeParams
141
- from .container_probe_tcp_socket import ContainerProbeTcpSocket as ContainerProbeTcpSocket
142
125
  from .instance_metrics_time_unit import InstanceMetricsTimeUnit as InstanceMetricsTimeUnit
143
126
  from .load_balancer_l7_rule_list import LoadBalancerL7RuleList as LoadBalancerL7RuleList
144
127
  from .load_balancer_metrics_list import LoadBalancerMetricsList as LoadBalancerMetricsList
145
128
  from .security_group_copy_params import SecurityGroupCopyParams as SecurityGroupCopyParams
146
129
  from .security_group_list_params import SecurityGroupListParams as SecurityGroupListParams
147
- from .container_scale_trigger_sqs import ContainerScaleTriggerSqs as ContainerScaleTriggerSqs
148
130
  from .ddos_profile_template_field import DDOSProfileTemplateField as DDOSProfileTemplateField
149
131
  from .flavor_hardware_description import FlavorHardwareDescription as FlavorHardwareDescription
150
132
  from .instance_get_console_params import InstanceGetConsoleParams as InstanceGetConsoleParams
@@ -157,8 +139,6 @@ from .load_balancer_listener_list import LoadBalancerListenerList as LoadBalance
157
139
  from .load_balancer_resize_params import LoadBalancerResizeParams as LoadBalancerResizeParams
158
140
  from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams
159
141
  from .task_acknowledge_all_params import TaskAcknowledgeAllParams as TaskAcknowledgeAllParams
160
- from .container_probe_create_param import ContainerProbeCreateParam as ContainerProbeCreateParam
161
- from .container_scale_trigger_rate import ContainerScaleTriggerRate as ContainerScaleTriggerRate
162
142
  from .gpu_baremetal_cluster_server import GPUBaremetalClusterServer as GPUBaremetalClusterServer
163
143
  from .load_balancer_l7_policy_list import LoadBalancerL7PolicyList as LoadBalancerL7PolicyList
164
144
  from .quota_get_by_region_response import QuotaGetByRegionResponse as QuotaGetByRegionResponse
@@ -168,33 +148,27 @@ from .load_balancer_failover_params import LoadBalancerFailoverParams as LoadBal
168
148
  from .load_balancer_listener_detail import LoadBalancerListenerDetail as LoadBalancerListenerDetail
169
149
  from .placement_group_create_params import PlacementGroupCreateParams as PlacementGroupCreateParams
170
150
  from .reserved_fixed_ip_list_params import ReservedFixedIPListParams as ReservedFixedIPListParams
151
+ from .inference_region_capacity_list import InferenceRegionCapacityList as InferenceRegionCapacityList
171
152
  from .load_balancer_operating_status import LoadBalancerOperatingStatus as LoadBalancerOperatingStatus
172
153
  from .billing_reservation_list_params import BillingReservationListParams as BillingReservationListParams
173
154
  from .reserved_fixed_ip_create_params import ReservedFixedIPCreateParams as ReservedFixedIPCreateParams
174
155
  from .volume_attach_to_instance_params import VolumeAttachToInstanceParams as VolumeAttachToInstanceParams
175
- from .container_probe_exec_create_param import ContainerProbeExecCreateParam as ContainerProbeExecCreateParam
176
- from .container_scale_trigger_threshold import ContainerScaleTriggerThreshold as ContainerScaleTriggerThreshold
177
156
  from .gpu_baremetal_cluster_list_params import GPUBaremetalClusterListParams as GPUBaremetalClusterListParams
178
157
  from .gpu_baremetal_cluster_server_list import GPUBaremetalClusterServerList as GPUBaremetalClusterServerList
179
158
  from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam as LaasIndexRetentionPolicyParam
180
159
  from .load_balancer_member_connectivity import LoadBalancerMemberConnectivity as LoadBalancerMemberConnectivity
181
160
  from .volume_detach_from_instance_params import VolumeDetachFromInstanceParams as VolumeDetachFromInstanceParams
182
- from .container_probe_config_create_param import ContainerProbeConfigCreateParam as ContainerProbeConfigCreateParam
183
161
  from .gpu_baremetal_cluster_create_params import GPUBaremetalClusterCreateParams as GPUBaremetalClusterCreateParams
184
162
  from .gpu_baremetal_cluster_delete_params import GPUBaremetalClusterDeleteParams as GPUBaremetalClusterDeleteParams
185
163
  from .gpu_baremetal_cluster_resize_params import GPUBaremetalClusterResizeParams as GPUBaremetalClusterResizeParams
186
164
  from .gpu_baremetal_cluster_rebuild_params import GPUBaremetalClusterRebuildParams as GPUBaremetalClusterRebuildParams
187
165
  from .secret_upload_tls_certificate_params import SecretUploadTlsCertificateParams as SecretUploadTlsCertificateParams
188
- from .container_probe_http_get_create_param import ContainerProbeHTTPGetCreateParam as ContainerProbeHTTPGetCreateParam
189
166
  from .instance_assign_security_group_params import (
190
167
  InstanceAssignSecurityGroupParams as InstanceAssignSecurityGroupParams,
191
168
  )
192
169
  from .instance_add_to_placement_group_params import (
193
170
  InstanceAddToPlacementGroupParams as InstanceAddToPlacementGroupParams,
194
171
  )
195
- from .container_probe_tcp_socket_create_param import (
196
- ContainerProbeTcpSocketCreateParam as ContainerProbeTcpSocketCreateParam,
197
- )
198
172
  from .instance_unassign_security_group_params import (
199
173
  InstanceUnassignSecurityGroupParams as InstanceUnassignSecurityGroupParams,
200
174
  )
@@ -84,7 +84,7 @@ class ServerCreateParams(TypedDict, total=False):
84
84
  ssh_key_name: Optional[str]
85
85
  """
86
86
  Specifies the name of the SSH keypair, created via the
87
- [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
87
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
88
88
  """
89
89
 
90
90
  tags: Dict[str, str]
@@ -51,7 +51,7 @@ class GPUBaremetalClusterCreateParams(TypedDict, total=False):
51
51
  ssh_key_name: str
52
52
  """
53
53
  Specifies the name of the SSH keypair, created via the
54
- [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
54
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
55
55
  """
56
56
 
57
57
  tags: Dict[str, str]
@@ -2,24 +2,28 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from .container import Container as Container
6
- from .inference import Inference as Inference
7
- from .inference_log import InferenceLog as InferenceLog
5
+ from .probe import Probe as Probe
6
+ from .probe_exec import ProbeExec as ProbeExec
7
+ from .probe_config import ProbeConfig as ProbeConfig
8
+ from .probe_http_get import ProbeHTTPGet as ProbeHTTPGet
9
+ from .inference_model import InferenceModel as InferenceModel
8
10
  from .inference_flavor import InferenceFlavor as InferenceFlavor
9
11
  from .inference_secret import InferenceSecret as InferenceSecret
12
+ from .probe_tcp_socket import ProbeTcpSocket as ProbeTcpSocket
10
13
  from .model_list_params import ModelListParams as ModelListParams
11
14
  from .flavor_list_params import FlavorListParams as FlavorListParams
12
15
  from .secret_list_params import SecretListParams as SecretListParams
13
- from .mlcatalog_model_card import MlcatalogModelCard as MlcatalogModelCard
16
+ from .inference_deployment import InferenceDeployment as InferenceDeployment
14
17
  from .secret_create_params import SecretCreateParams as SecretCreateParams
15
18
  from .secret_replace_params import SecretReplaceParams as SecretReplaceParams
16
19
  from .deployment_list_params import DeploymentListParams as DeploymentListParams
17
- from .inference_apikey_secret import InferenceApikeySecret as InferenceApikeySecret
18
20
  from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams
19
21
  from .deployment_update_params import DeploymentUpdateParams as DeploymentUpdateParams
20
- from .mlcatalog_order_by_choices import MlcatalogOrderByChoices as MlcatalogOrderByChoices
21
- from .inference_registry_credential import InferenceRegistryCredential as InferenceRegistryCredential
22
+ from .inference_deployment_api_key import InferenceDeploymentAPIKey as InferenceDeploymentAPIKey
23
+ from .inference_registry_credentials import InferenceRegistryCredentials as InferenceRegistryCredentials
22
24
  from .registry_credential_list_params import RegistryCredentialListParams as RegistryCredentialListParams
23
25
  from .registry_credential_create_params import RegistryCredentialCreateParams as RegistryCredentialCreateParams
24
- from .inference_registry_credential_full import InferenceRegistryCredentialFull as InferenceRegistryCredentialFull
25
26
  from .registry_credential_replace_params import RegistryCredentialReplaceParams as RegistryCredentialReplaceParams
27
+ from .inference_registry_credentials_create import (
28
+ InferenceRegistryCredentialsCreate as InferenceRegistryCredentialsCreate,
29
+ )
@@ -6,9 +6,7 @@ from typing import Dict, List, Iterable, Optional
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from ...._utils import PropertyInfo
9
- from ..ingress_opts_param import IngressOptsParam
10
9
  from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
11
- from ..container_probe_config_create_param import ContainerProbeConfigCreateParam
12
10
 
13
11
  __all__ = [
14
12
  "DeploymentCreateParams",
@@ -21,8 +19,24 @@ __all__ = [
21
19
  "ContainerScaleTriggersHTTP",
22
20
  "ContainerScaleTriggersMemory",
23
21
  "ContainerScaleTriggersSqs",
22
+ "IngressOpts",
24
23
  "Logging",
25
24
  "Probes",
25
+ "ProbesLivenessProbe",
26
+ "ProbesLivenessProbeProbe",
27
+ "ProbesLivenessProbeProbeExec",
28
+ "ProbesLivenessProbeProbeHTTPGet",
29
+ "ProbesLivenessProbeProbeTcpSocket",
30
+ "ProbesReadinessProbe",
31
+ "ProbesReadinessProbeProbe",
32
+ "ProbesReadinessProbeProbeExec",
33
+ "ProbesReadinessProbeProbeHTTPGet",
34
+ "ProbesReadinessProbeProbeTcpSocket",
35
+ "ProbesStartupProbe",
36
+ "ProbesStartupProbeProbe",
37
+ "ProbesStartupProbeProbeExec",
38
+ "ProbesStartupProbeProbeHTTPGet",
39
+ "ProbesStartupProbeProbeTcpSocket",
26
40
  ]
27
41
 
28
42
 
@@ -50,11 +64,20 @@ class DeploymentCreateParams(TypedDict, total=False):
50
64
  name: Required[str]
51
65
  """Inference instance name."""
52
66
 
67
+ api_keys: List[str]
68
+ """List of API keys for the inference instance.
69
+
70
+ Multiple keys can be attached to one deployment.If `auth_enabled` and `api_keys`
71
+ are both specified, a ValidationError will be raised.
72
+ """
73
+
53
74
  auth_enabled: bool
54
75
  """Set to `true` to enable API key authentication for the inference instance.
55
76
 
56
77
  `"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
57
- for the requests to the instance if enabled
78
+ for the requests to the instance if enabled. This field is deprecated and will
79
+ be removed in the future. Use `api_keys` field instead.If `auth_enabled` and
80
+ `api_keys` are both specified, a ValidationError will be raised.
58
81
  """
59
82
 
60
83
  command: Optional[List[str]]
@@ -69,7 +92,7 @@ class DeploymentCreateParams(TypedDict, total=False):
69
92
  envs: Dict[str, str]
70
93
  """Environment variables for the inference instance."""
71
94
 
72
- ingress_opts: Optional[IngressOptsParam]
95
+ ingress_opts: Optional[IngressOpts]
73
96
  """Ingress options for the inference instance"""
74
97
 
75
98
  logging: Optional[Logging]
@@ -197,6 +220,17 @@ class Container(TypedDict, total=False):
197
220
  """Scale for the container"""
198
221
 
199
222
 
223
+ class IngressOpts(TypedDict, total=False):
224
+ disable_response_buffering: bool
225
+ """Disable response buffering if true.
226
+
227
+ A client usually has a much slower connection and can not consume the response
228
+ data as fast as it is produced by an upstream application. Ingress tries to
229
+ buffer the whole response in order to release the upstream application as soon
230
+ as possible.By default, the response buffering is enabled.
231
+ """
232
+
233
+
200
234
  class Logging(TypedDict, total=False):
201
235
  destination_region_id: Optional[int]
202
236
  """ID of the region in which the logs will be stored"""
@@ -211,12 +245,195 @@ class Logging(TypedDict, total=False):
211
245
  """The topic name to stream logs to"""
212
246
 
213
247
 
248
+ class ProbesLivenessProbeProbeExec(TypedDict, total=False):
249
+ command: Required[List[str]]
250
+ """Command to be executed inside the running container."""
251
+
252
+
253
+ class ProbesLivenessProbeProbeHTTPGet(TypedDict, total=False):
254
+ port: Required[int]
255
+ """Port number the probe should connect to."""
256
+
257
+ headers: Dict[str, str]
258
+ """HTTP headers to be sent with the request."""
259
+
260
+ host: Optional[str]
261
+ """Host name to send HTTP request to."""
262
+
263
+ path: str
264
+ """The endpoint to send the HTTP request to."""
265
+
266
+ schema: str
267
+ """Schema to use for the HTTP request."""
268
+
269
+
270
+ class ProbesLivenessProbeProbeTcpSocket(TypedDict, total=False):
271
+ port: Required[int]
272
+ """Port number to check if it's open."""
273
+
274
+
275
+ class ProbesLivenessProbeProbe(TypedDict, total=False):
276
+ exec: Optional[ProbesLivenessProbeProbeExec]
277
+ """Exec probe configuration"""
278
+
279
+ failure_threshold: int
280
+ """The number of consecutive probe failures that mark the container as unhealthy."""
281
+
282
+ http_get: Optional[ProbesLivenessProbeProbeHTTPGet]
283
+ """HTTP GET probe configuration"""
284
+
285
+ initial_delay_seconds: int
286
+ """The initial delay before starting the first probe."""
287
+
288
+ period_seconds: int
289
+ """How often (in seconds) to perform the probe."""
290
+
291
+ success_threshold: int
292
+ """The number of consecutive successful probes that mark the container as healthy."""
293
+
294
+ tcp_socket: Optional[ProbesLivenessProbeProbeTcpSocket]
295
+ """TCP socket probe configuration"""
296
+
297
+ timeout_seconds: int
298
+ """The timeout for each probe."""
299
+
300
+
301
+ class ProbesLivenessProbe(TypedDict, total=False):
302
+ enabled: Required[bool]
303
+ """Whether the probe is enabled or not."""
304
+
305
+ probe: ProbesLivenessProbeProbe
306
+ """Probe configuration (exec, `http_get` or `tcp_socket`)"""
307
+
308
+
309
+ class ProbesReadinessProbeProbeExec(TypedDict, total=False):
310
+ command: Required[List[str]]
311
+ """Command to be executed inside the running container."""
312
+
313
+
314
+ class ProbesReadinessProbeProbeHTTPGet(TypedDict, total=False):
315
+ port: Required[int]
316
+ """Port number the probe should connect to."""
317
+
318
+ headers: Dict[str, str]
319
+ """HTTP headers to be sent with the request."""
320
+
321
+ host: Optional[str]
322
+ """Host name to send HTTP request to."""
323
+
324
+ path: str
325
+ """The endpoint to send the HTTP request to."""
326
+
327
+ schema: str
328
+ """Schema to use for the HTTP request."""
329
+
330
+
331
+ class ProbesReadinessProbeProbeTcpSocket(TypedDict, total=False):
332
+ port: Required[int]
333
+ """Port number to check if it's open."""
334
+
335
+
336
+ class ProbesReadinessProbeProbe(TypedDict, total=False):
337
+ exec: Optional[ProbesReadinessProbeProbeExec]
338
+ """Exec probe configuration"""
339
+
340
+ failure_threshold: int
341
+ """The number of consecutive probe failures that mark the container as unhealthy."""
342
+
343
+ http_get: Optional[ProbesReadinessProbeProbeHTTPGet]
344
+ """HTTP GET probe configuration"""
345
+
346
+ initial_delay_seconds: int
347
+ """The initial delay before starting the first probe."""
348
+
349
+ period_seconds: int
350
+ """How often (in seconds) to perform the probe."""
351
+
352
+ success_threshold: int
353
+ """The number of consecutive successful probes that mark the container as healthy."""
354
+
355
+ tcp_socket: Optional[ProbesReadinessProbeProbeTcpSocket]
356
+ """TCP socket probe configuration"""
357
+
358
+ timeout_seconds: int
359
+ """The timeout for each probe."""
360
+
361
+
362
+ class ProbesReadinessProbe(TypedDict, total=False):
363
+ enabled: Required[bool]
364
+ """Whether the probe is enabled or not."""
365
+
366
+ probe: ProbesReadinessProbeProbe
367
+ """Probe configuration (exec, `http_get` or `tcp_socket`)"""
368
+
369
+
370
+ class ProbesStartupProbeProbeExec(TypedDict, total=False):
371
+ command: Required[List[str]]
372
+ """Command to be executed inside the running container."""
373
+
374
+
375
+ class ProbesStartupProbeProbeHTTPGet(TypedDict, total=False):
376
+ port: Required[int]
377
+ """Port number the probe should connect to."""
378
+
379
+ headers: Dict[str, str]
380
+ """HTTP headers to be sent with the request."""
381
+
382
+ host: Optional[str]
383
+ """Host name to send HTTP request to."""
384
+
385
+ path: str
386
+ """The endpoint to send the HTTP request to."""
387
+
388
+ schema: str
389
+ """Schema to use for the HTTP request."""
390
+
391
+
392
+ class ProbesStartupProbeProbeTcpSocket(TypedDict, total=False):
393
+ port: Required[int]
394
+ """Port number to check if it's open."""
395
+
396
+
397
+ class ProbesStartupProbeProbe(TypedDict, total=False):
398
+ exec: Optional[ProbesStartupProbeProbeExec]
399
+ """Exec probe configuration"""
400
+
401
+ failure_threshold: int
402
+ """The number of consecutive probe failures that mark the container as unhealthy."""
403
+
404
+ http_get: Optional[ProbesStartupProbeProbeHTTPGet]
405
+ """HTTP GET probe configuration"""
406
+
407
+ initial_delay_seconds: int
408
+ """The initial delay before starting the first probe."""
409
+
410
+ period_seconds: int
411
+ """How often (in seconds) to perform the probe."""
412
+
413
+ success_threshold: int
414
+ """The number of consecutive successful probes that mark the container as healthy."""
415
+
416
+ tcp_socket: Optional[ProbesStartupProbeProbeTcpSocket]
417
+ """TCP socket probe configuration"""
418
+
419
+ timeout_seconds: int
420
+ """The timeout for each probe."""
421
+
422
+
423
+ class ProbesStartupProbe(TypedDict, total=False):
424
+ enabled: Required[bool]
425
+ """Whether the probe is enabled or not."""
426
+
427
+ probe: ProbesStartupProbeProbe
428
+ """Probe configuration (exec, `http_get` or `tcp_socket`)"""
429
+
430
+
214
431
  class Probes(TypedDict, total=False):
215
- liveness_probe: Optional[ContainerProbeConfigCreateParam]
432
+ liveness_probe: Optional[ProbesLivenessProbe]
216
433
  """Liveness probe configuration"""
217
434
 
218
- readiness_probe: Optional[ContainerProbeConfigCreateParam]
435
+ readiness_probe: Optional[ProbesReadinessProbe]
219
436
  """Readiness probe configuration"""
220
437
 
221
- startup_probe: Optional[ContainerProbeConfigCreateParam]
438
+ startup_probe: Optional[ProbesStartupProbe]
222
439
  """Startup probe configuration"""
@@ -6,7 +6,6 @@ from typing import Dict, List, Iterable, Optional
6
6
  from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from ...._utils import PropertyInfo
9
- from ..ingress_opts_param import IngressOptsParam
10
9
  from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
11
10
 
12
11
  __all__ = [
@@ -20,6 +19,7 @@ __all__ = [
20
19
  "ContainerScaleTriggersHTTP",
21
20
  "ContainerScaleTriggersMemory",
22
21
  "ContainerScaleTriggersSqs",
22
+ "IngressOpts",
23
23
  "Logging",
24
24
  "Probes",
25
25
  "ProbesLivenessProbe",
@@ -44,11 +44,21 @@ class DeploymentUpdateParams(TypedDict, total=False):
44
44
  project_id: int
45
45
  """Project ID"""
46
46
 
47
+ api_keys: Optional[List[str]]
48
+ """List of API keys for the inference instance.
49
+
50
+ Multiple keys can be attached to one deployment.If `auth_enabled` and `api_keys`
51
+ are both specified, a ValidationError will be raised.If `[]` is provided, the
52
+ API keys will be removed and auth will be disabled on the deployment.
53
+ """
54
+
47
55
  auth_enabled: bool
48
56
  """Set to `true` to enable API key authentication for the inference instance.
49
57
 
50
58
  `"Authorization": "Bearer ****\\**"` or `"X-Api-Key": "****\\**"` header is required
51
- for the requests to the instance if enabled
59
+ for the requests to the instance if enabled. This field is deprecated and will
60
+ be removed in the future. Use `api_keys` field instead.If `auth_enabled` and
61
+ `api_keys` are both specified, a ValidationError will be raised.
52
62
  """
53
63
 
54
64
  command: Optional[List[str]]
@@ -77,7 +87,7 @@ class DeploymentUpdateParams(TypedDict, total=False):
77
87
  accessible Docker image URL can be specified.
78
88
  """
79
89
 
80
- ingress_opts: Optional[IngressOptsParam]
90
+ ingress_opts: Optional[IngressOpts]
81
91
  """Ingress options for the inference instance"""
82
92
 
83
93
  listening_port: Optional[int]
@@ -204,6 +214,17 @@ class Container(TypedDict, total=False):
204
214
  """Scale for the container"""
205
215
 
206
216
 
217
+ class IngressOpts(TypedDict, total=False):
218
+ disable_response_buffering: bool
219
+ """Disable response buffering if true.
220
+
221
+ A client usually has a much slower connection and can not consume the response
222
+ data as fast as it is produced by an upstream application. Ingress tries to
223
+ buffer the whole response in order to release the upstream application as soon
224
+ as possible.By default, the response buffering is enabled.
225
+ """
226
+
227
+
207
228
  class Logging(TypedDict, total=False):
208
229
  destination_region_id: Optional[int]
209
230
  """ID of the region in which the logs will be stored"""
@@ -3,3 +3,4 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from .log_list_params import LogListParams as LogListParams
6
+ from .inference_deployment_log import InferenceDeploymentLog as InferenceDeploymentLog
@@ -2,12 +2,12 @@
2
2
 
3
3
  from datetime import datetime
4
4
 
5
- from ...._models import BaseModel
5
+ from ....._models import BaseModel
6
6
 
7
- __all__ = ["InferenceLog"]
7
+ __all__ = ["InferenceDeploymentLog"]
8
8
 
9
9
 
10
- class InferenceLog(BaseModel):
10
+ class InferenceDeploymentLog(BaseModel):
11
11
  message: str
12
12
  """Log message."""
13
13