gcore 0.1.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gcore might be problematic. Click here for more details.
- gcore/__init__.py +84 -0
- gcore/_base_client.py +1943 -0
- gcore/_client.py +484 -0
- gcore/_compat.py +219 -0
- gcore/_constants.py +16 -0
- gcore/_exceptions.py +108 -0
- gcore/_files.py +123 -0
- gcore/_models.py +803 -0
- gcore/_qs.py +150 -0
- gcore/_resource.py +43 -0
- gcore/_response.py +830 -0
- gcore/_streaming.py +333 -0
- gcore/_types.py +217 -0
- gcore/_utils/__init__.py +57 -0
- gcore/_utils/_logs.py +25 -0
- gcore/_utils/_proxy.py +62 -0
- gcore/_utils/_reflection.py +42 -0
- gcore/_utils/_streams.py +12 -0
- gcore/_utils/_sync.py +86 -0
- gcore/_utils/_transform.py +447 -0
- gcore/_utils/_typing.py +151 -0
- gcore/_utils/_utils.py +422 -0
- gcore/_version.py +4 -0
- gcore/lib/.keep +4 -0
- gcore/lib/polling.py +19 -0
- gcore/pagination.py +70 -0
- gcore/py.typed +0 -0
- gcore/resources/__init__.py +19 -0
- gcore/resources/cloud/__init__.py +327 -0
- gcore/resources/cloud/baremetal/__init__.py +61 -0
- gcore/resources/cloud/baremetal/baremetal.py +166 -0
- gcore/resources/cloud/baremetal/flavors.py +371 -0
- gcore/resources/cloud/baremetal/images.py +238 -0
- gcore/resources/cloud/baremetal/servers.py +808 -0
- gcore/resources/cloud/billing_reservations.py +362 -0
- gcore/resources/cloud/cloud.py +774 -0
- gcore/resources/cloud/file_shares/__init__.py +33 -0
- gcore/resources/cloud/file_shares/access_rules.py +434 -0
- gcore/resources/cloud/file_shares/file_shares.py +994 -0
- gcore/resources/cloud/floating_ips.py +765 -0
- gcore/resources/cloud/gpu_baremetal_clusters/__init__.py +75 -0
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +211 -0
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +1143 -0
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +581 -0
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +175 -0
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +1098 -0
- gcore/resources/cloud/inference/__init__.py +89 -0
- gcore/resources/cloud/inference/deployments/__init__.py +33 -0
- gcore/resources/cloud/inference/deployments/deployments.py +1187 -0
- gcore/resources/cloud/inference/deployments/logs.py +235 -0
- gcore/resources/cloud/inference/flavors.py +280 -0
- gcore/resources/cloud/inference/inference.py +295 -0
- gcore/resources/cloud/inference/models.py +289 -0
- gcore/resources/cloud/inference/registry_credentials.py +649 -0
- gcore/resources/cloud/inference/secrets.py +629 -0
- gcore/resources/cloud/instances/__init__.py +75 -0
- gcore/resources/cloud/instances/flavors.py +449 -0
- gcore/resources/cloud/instances/images.py +987 -0
- gcore/resources/cloud/instances/instances.py +2349 -0
- gcore/resources/cloud/instances/interfaces.py +797 -0
- gcore/resources/cloud/instances/metrics.py +217 -0
- gcore/resources/cloud/ip_ranges.py +135 -0
- gcore/resources/cloud/load_balancers/__init__.py +103 -0
- gcore/resources/cloud/load_balancers/flavors.py +193 -0
- gcore/resources/cloud/load_balancers/l7_policies/__init__.py +33 -0
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +738 -0
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +722 -0
- gcore/resources/cloud/load_balancers/listeners.py +788 -0
- gcore/resources/cloud/load_balancers/load_balancers.py +1237 -0
- gcore/resources/cloud/load_balancers/metrics.py +205 -0
- gcore/resources/cloud/load_balancers/pools/__init__.py +47 -0
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +352 -0
- gcore/resources/cloud/load_balancers/pools/members.py +353 -0
- gcore/resources/cloud/load_balancers/pools/pools.py +872 -0
- gcore/resources/cloud/load_balancers/statuses.py +260 -0
- gcore/resources/cloud/networks/__init__.py +47 -0
- gcore/resources/cloud/networks/networks.py +715 -0
- gcore/resources/cloud/networks/routers.py +875 -0
- gcore/resources/cloud/networks/subnets.py +865 -0
- gcore/resources/cloud/placement_groups.py +465 -0
- gcore/resources/cloud/projects.py +608 -0
- gcore/resources/cloud/quotas/__init__.py +33 -0
- gcore/resources/cloud/quotas/quotas.py +335 -0
- gcore/resources/cloud/quotas/requests.py +482 -0
- gcore/resources/cloud/regions.py +328 -0
- gcore/resources/cloud/registries/__init__.py +75 -0
- gcore/resources/cloud/registries/artifacts.py +277 -0
- gcore/resources/cloud/registries/registries.py +688 -0
- gcore/resources/cloud/registries/repositories.py +265 -0
- gcore/resources/cloud/registries/tags.py +190 -0
- gcore/resources/cloud/registries/users.py +701 -0
- gcore/resources/cloud/reserved_fixed_ips/__init__.py +33 -0
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +965 -0
- gcore/resources/cloud/reserved_fixed_ips/vip.py +577 -0
- gcore/resources/cloud/secrets.py +797 -0
- gcore/resources/cloud/security_groups/__init__.py +33 -0
- gcore/resources/cloud/security_groups/rules.py +626 -0
- gcore/resources/cloud/security_groups/security_groups.py +863 -0
- gcore/resources/cloud/ssh_keys.py +635 -0
- gcore/resources/cloud/tasks.py +699 -0
- gcore/resources/cloud/users/__init__.py +33 -0
- gcore/resources/cloud/users/role_assignments.py +533 -0
- gcore/resources/cloud/users/users.py +102 -0
- gcore/resources/cloud/volumes.py +1710 -0
- gcore/types/__init__.py +3 -0
- gcore/types/cloud/__init__.py +199 -0
- gcore/types/cloud/allowed_address_pairs.py +15 -0
- gcore/types/cloud/aws_iam_data.py +13 -0
- gcore/types/cloud/aws_iam_data_param.py +15 -0
- gcore/types/cloud/baremetal/__init__.py +13 -0
- gcore/types/cloud/baremetal/baremetal_fixed_address.py +30 -0
- gcore/types/cloud/baremetal/baremetal_floating_address.py +15 -0
- gcore/types/cloud/baremetal/baremetal_server.py +178 -0
- gcore/types/cloud/baremetal/flavor_list_params.py +35 -0
- gcore/types/cloud/baremetal/flavor_list_suitable_params.py +22 -0
- gcore/types/cloud/baremetal/image_list_params.py +33 -0
- gcore/types/cloud/baremetal/server_create_params.py +370 -0
- gcore/types/cloud/baremetal/server_list_params.py +114 -0
- gcore/types/cloud/baremetal/server_rebuild_params.py +23 -0
- gcore/types/cloud/baremetal_flavor.py +58 -0
- gcore/types/cloud/baremetal_flavor_list.py +16 -0
- gcore/types/cloud/billing_reservation.py +153 -0
- gcore/types/cloud/billing_reservation_list_params.py +54 -0
- gcore/types/cloud/blackhole_port.py +66 -0
- gcore/types/cloud/capacity.py +13 -0
- gcore/types/cloud/console.py +18 -0
- gcore/types/cloud/container_probe.py +36 -0
- gcore/types/cloud/container_probe_config.py +16 -0
- gcore/types/cloud/container_probe_config_create_param.py +18 -0
- gcore/types/cloud/container_probe_create_param.py +38 -0
- gcore/types/cloud/container_probe_exec.py +12 -0
- gcore/types/cloud/container_probe_exec_create_param.py +13 -0
- gcore/types/cloud/container_probe_http_get.py +26 -0
- gcore/types/cloud/container_probe_http_get_create_param.py +25 -0
- gcore/types/cloud/container_probe_tcp_socket.py +10 -0
- gcore/types/cloud/container_probe_tcp_socket_create_param.py +12 -0
- gcore/types/cloud/container_scale.py +25 -0
- gcore/types/cloud/container_scale_trigger_rate.py +13 -0
- gcore/types/cloud/container_scale_trigger_sqs.py +33 -0
- gcore/types/cloud/container_scale_trigger_threshold.py +10 -0
- gcore/types/cloud/container_scale_triggers.py +36 -0
- gcore/types/cloud/ddos_profile.py +33 -0
- gcore/types/cloud/ddos_profile_field.py +31 -0
- gcore/types/cloud/ddos_profile_option_list.py +15 -0
- gcore/types/cloud/ddos_profile_status.py +13 -0
- gcore/types/cloud/ddos_profile_template.py +18 -0
- gcore/types/cloud/ddos_profile_template_field.py +23 -0
- gcore/types/cloud/deploy_status.py +13 -0
- gcore/types/cloud/file_share.py +111 -0
- gcore/types/cloud/file_share_create_params.py +104 -0
- gcore/types/cloud/file_share_list_params.py +24 -0
- gcore/types/cloud/file_share_resize_params.py +18 -0
- gcore/types/cloud/file_share_update_params.py +18 -0
- gcore/types/cloud/file_shares/__init__.py +7 -0
- gcore/types/cloud/file_shares/access_rule.py +21 -0
- gcore/types/cloud/file_shares/access_rule_create_params.py +21 -0
- gcore/types/cloud/file_shares/access_rule_list.py +16 -0
- gcore/types/cloud/fixed_address.py +38 -0
- gcore/types/cloud/fixed_address_short.py +24 -0
- gcore/types/cloud/flavor_hardware_description.py +27 -0
- gcore/types/cloud/floating_address.py +15 -0
- gcore/types/cloud/floating_ip.py +77 -0
- gcore/types/cloud/floating_ip_assign_params.py +20 -0
- gcore/types/cloud/floating_ip_create_params.py +40 -0
- gcore/types/cloud/floating_ip_detailed.py +222 -0
- gcore/types/cloud/floating_ip_list_params.py +35 -0
- gcore/types/cloud/floating_ip_status.py +7 -0
- gcore/types/cloud/gpu_baremetal_cluster.py +116 -0
- gcore/types/cloud/gpu_baremetal_cluster_create_params.py +135 -0
- gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +28 -0
- gcore/types/cloud/gpu_baremetal_cluster_list_params.py +19 -0
- gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +26 -0
- gcore/types/cloud/gpu_baremetal_cluster_resize_params.py +16 -0
- gcore/types/cloud/gpu_baremetal_cluster_server.py +200 -0
- gcore/types/cloud/gpu_baremetal_cluster_server_list.py +16 -0
- gcore/types/cloud/gpu_baremetal_clusters/__init__.py +9 -0
- gcore/types/cloud/gpu_baremetal_clusters/flavor_list_params.py +21 -0
- gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +58 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +253 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_delete_params.py +21 -0
- gcore/types/cloud/gpu_baremetal_clusters/server_detach_interface_params.py +19 -0
- gcore/types/cloud/gpu_baremetal_flavor.py +133 -0
- gcore/types/cloud/gpu_baremetal_flavor_list.py +16 -0
- gcore/types/cloud/gpu_image.py +70 -0
- gcore/types/cloud/gpu_image_list.py +16 -0
- gcore/types/cloud/health_monitor.py +48 -0
- gcore/types/cloud/health_monitor_status.py +22 -0
- gcore/types/cloud/http_method.py +7 -0
- gcore/types/cloud/image.py +100 -0
- gcore/types/cloud/image_list.py +16 -0
- gcore/types/cloud/inference/__init__.py +25 -0
- gcore/types/cloud/inference/container.py +26 -0
- gcore/types/cloud/inference/deployment_create_params.py +222 -0
- gcore/types/cloud/inference/deployment_list_params.py +21 -0
- gcore/types/cloud/inference/deployment_update_params.py +215 -0
- gcore/types/cloud/inference/deployments/__init__.py +5 -0
- gcore/types/cloud/inference/deployments/log_list_params.py +28 -0
- gcore/types/cloud/inference/flavor_list_params.py +18 -0
- gcore/types/cloud/inference/inference.py +95 -0
- gcore/types/cloud/inference/inference_apikey_secret.py +15 -0
- gcore/types/cloud/inference/inference_flavor.py +34 -0
- gcore/types/cloud/inference/inference_log.py +21 -0
- gcore/types/cloud/inference/inference_registry_credential.py +19 -0
- gcore/types/cloud/inference/inference_registry_credential_full.py +22 -0
- gcore/types/cloud/inference/inference_secret.py +17 -0
- gcore/types/cloud/inference/mlcatalog_model_card.py +65 -0
- gcore/types/cloud/inference/mlcatalog_order_by_choices.py +7 -0
- gcore/types/cloud/inference/model_list_params.py +23 -0
- gcore/types/cloud/inference/registry_credential_create_params.py +24 -0
- gcore/types/cloud/inference/registry_credential_list_params.py +21 -0
- gcore/types/cloud/inference/registry_credential_replace_params.py +21 -0
- gcore/types/cloud/inference/secret_create_params.py +23 -0
- gcore/types/cloud/inference/secret_list_params.py +21 -0
- gcore/types/cloud/inference/secret_replace_params.py +20 -0
- gcore/types/cloud/inference_probes.py +19 -0
- gcore/types/cloud/ingress_opts_out.py +16 -0
- gcore/types/cloud/ingress_opts_param.py +18 -0
- gcore/types/cloud/instance.py +296 -0
- gcore/types/cloud/instance_action_params.py +32 -0
- gcore/types/cloud/instance_add_to_placement_group_params.py +16 -0
- gcore/types/cloud/instance_assign_security_group_params.py +28 -0
- gcore/types/cloud/instance_create_params.py +622 -0
- gcore/types/cloud/instance_delete_params.py +33 -0
- gcore/types/cloud/instance_get_console_params.py +16 -0
- gcore/types/cloud/instance_interface.py +40 -0
- gcore/types/cloud/instance_isolation.py +12 -0
- gcore/types/cloud/instance_list.py +16 -0
- gcore/types/cloud/instance_list_params.py +146 -0
- gcore/types/cloud/instance_metrics_time_unit.py +7 -0
- gcore/types/cloud/instance_resize_params.py +16 -0
- gcore/types/cloud/instance_unassign_security_group_params.py +28 -0
- gcore/types/cloud/instance_update_params.py +18 -0
- gcore/types/cloud/instances/__init__.py +19 -0
- gcore/types/cloud/instances/flavor_list_for_resize_params.py +16 -0
- gcore/types/cloud/instances/flavor_list_params.py +25 -0
- gcore/types/cloud/instances/flavor_list_suitable_params.py +56 -0
- gcore/types/cloud/instances/image_create_from_volume_params.py +53 -0
- gcore/types/cloud/instances/image_get_params.py +16 -0
- gcore/types/cloud/instances/image_list_params.py +33 -0
- gcore/types/cloud/instances/image_update_params.py +43 -0
- gcore/types/cloud/instances/image_upload_params.py +62 -0
- gcore/types/cloud/instances/instance_flavor.py +49 -0
- gcore/types/cloud/instances/instance_flavor_list.py +16 -0
- gcore/types/cloud/instances/interface_attach_params.py +253 -0
- gcore/types/cloud/instances/interface_detach_params.py +19 -0
- gcore/types/cloud/instances/metric_list_params.py +23 -0
- gcore/types/cloud/instances/metrics.py +52 -0
- gcore/types/cloud/instances/metrics_list.py +16 -0
- gcore/types/cloud/interface_ip_family.py +7 -0
- gcore/types/cloud/ip_assignment.py +13 -0
- gcore/types/cloud/ip_ranges.py +12 -0
- gcore/types/cloud/ip_version.py +7 -0
- gcore/types/cloud/laas_index_retention_policy.py +12 -0
- gcore/types/cloud/laas_index_retention_policy_param.py +13 -0
- gcore/types/cloud/lb_algorithm.py +7 -0
- gcore/types/cloud/lb_health_monitor_type.py +7 -0
- gcore/types/cloud/lb_listener_protocol.py +7 -0
- gcore/types/cloud/lb_pool_protocol.py +7 -0
- gcore/types/cloud/lb_session_persistence_type.py +7 -0
- gcore/types/cloud/listener_status.py +27 -0
- gcore/types/cloud/load_balancer.py +144 -0
- gcore/types/cloud/load_balancer_create_params.py +327 -0
- gcore/types/cloud/load_balancer_failover_params.py +16 -0
- gcore/types/cloud/load_balancer_flavor_detail.py +40 -0
- gcore/types/cloud/load_balancer_flavor_list.py +16 -0
- gcore/types/cloud/load_balancer_get_params.py +19 -0
- gcore/types/cloud/load_balancer_instance_role.py +7 -0
- gcore/types/cloud/load_balancer_l7_policy.py +86 -0
- gcore/types/cloud/load_balancer_l7_policy_list.py +16 -0
- gcore/types/cloud/load_balancer_l7_rule.py +72 -0
- gcore/types/cloud/load_balancer_l7_rule_list.py +16 -0
- gcore/types/cloud/load_balancer_list_params.py +53 -0
- gcore/types/cloud/load_balancer_listener_detail.py +97 -0
- gcore/types/cloud/load_balancer_listener_list.py +16 -0
- gcore/types/cloud/load_balancer_member_connectivity.py +7 -0
- gcore/types/cloud/load_balancer_metrics.py +32 -0
- gcore/types/cloud/load_balancer_metrics_list.py +16 -0
- gcore/types/cloud/load_balancer_operating_status.py +7 -0
- gcore/types/cloud/load_balancer_pool.py +87 -0
- gcore/types/cloud/load_balancer_pool_list.py +16 -0
- gcore/types/cloud/load_balancer_resize_params.py +16 -0
- gcore/types/cloud/load_balancer_statistics.py +22 -0
- gcore/types/cloud/load_balancer_status.py +38 -0
- gcore/types/cloud/load_balancer_status_list.py +16 -0
- gcore/types/cloud/load_balancer_update_params.py +43 -0
- gcore/types/cloud/load_balancers/__init__.py +15 -0
- gcore/types/cloud/load_balancers/flavor_list_params.py +16 -0
- gcore/types/cloud/load_balancers/l7_policies/__init__.py +6 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +50 -0
- gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +43 -0
- gcore/types/cloud/load_balancers/l7_policy_create_params.py +54 -0
- gcore/types/cloud/load_balancers/l7_policy_replace_params.py +51 -0
- gcore/types/cloud/load_balancers/listener_create_params.py +72 -0
- gcore/types/cloud/load_balancers/listener_get_params.py +16 -0
- gcore/types/cloud/load_balancers/listener_list_params.py +19 -0
- gcore/types/cloud/load_balancers/listener_update_params.py +55 -0
- gcore/types/cloud/load_balancers/metric_list_params.py +21 -0
- gcore/types/cloud/load_balancers/pool_create_params.py +141 -0
- gcore/types/cloud/load_balancers/pool_list_params.py +25 -0
- gcore/types/cloud/load_balancers/pool_update_params.py +139 -0
- gcore/types/cloud/load_balancers/pools/__init__.py +6 -0
- gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +49 -0
- gcore/types/cloud/load_balancers/pools/member_add_params.py +44 -0
- gcore/types/cloud/logging.py +22 -0
- gcore/types/cloud/member.py +47 -0
- gcore/types/cloud/member_status.py +24 -0
- gcore/types/cloud/network.py +79 -0
- gcore/types/cloud/network_create_params.py +34 -0
- gcore/types/cloud/network_details.py +79 -0
- gcore/types/cloud/network_interface.py +78 -0
- gcore/types/cloud/network_interface_list.py +16 -0
- gcore/types/cloud/network_list_params.py +36 -0
- gcore/types/cloud/network_update_params.py +16 -0
- gcore/types/cloud/networks/__init__.py +14 -0
- gcore/types/cloud/networks/router.py +83 -0
- gcore/types/cloud/networks/router_attach_subnet_params.py +24 -0
- gcore/types/cloud/networks/router_create_params.py +75 -0
- gcore/types/cloud/networks/router_detach_subnet_params.py +16 -0
- gcore/types/cloud/networks/router_list.py +16 -0
- gcore/types/cloud/networks/router_list_params.py +19 -0
- gcore/types/cloud/networks/router_update_params.py +45 -0
- gcore/types/cloud/networks/subnet_create_params.py +82 -0
- gcore/types/cloud/networks/subnet_list_params.py +58 -0
- gcore/types/cloud/networks/subnet_update_params.py +47 -0
- gcore/types/cloud/placement_group.py +41 -0
- gcore/types/cloud/placement_group_create_params.py +19 -0
- gcore/types/cloud/placement_group_list.py +16 -0
- gcore/types/cloud/pool_status.py +31 -0
- gcore/types/cloud/project.py +47 -0
- gcore/types/cloud/project_create_params.py +22 -0
- gcore/types/cloud/project_list_params.py +27 -0
- gcore/types/cloud/project_replace_params.py +18 -0
- gcore/types/cloud/provisioning_status.py +9 -0
- gcore/types/cloud/quota_get_all_response.py +340 -0
- gcore/types/cloud/quota_get_by_region_response.py +288 -0
- gcore/types/cloud/quota_get_global_response.py +51 -0
- gcore/types/cloud/quotas/__init__.py +8 -0
- gcore/types/cloud/quotas/request_create_params.py +193 -0
- gcore/types/cloud/quotas/request_get_response.py +205 -0
- gcore/types/cloud/quotas/request_list_params.py +22 -0
- gcore/types/cloud/quotas/request_list_response.py +205 -0
- gcore/types/cloud/region.py +101 -0
- gcore/types/cloud/region_capacity.py +16 -0
- gcore/types/cloud/region_capacity_list.py +16 -0
- gcore/types/cloud/region_get_params.py +18 -0
- gcore/types/cloud/region_list_params.py +31 -0
- gcore/types/cloud/registries/__init__.py +14 -0
- gcore/types/cloud/registries/registry_artifact.py +35 -0
- gcore/types/cloud/registries/registry_artifact_list.py +16 -0
- gcore/types/cloud/registries/registry_repository.py +30 -0
- gcore/types/cloud/registries/registry_repository_list.py +16 -0
- gcore/types/cloud/registries/registry_user.py +28 -0
- gcore/types/cloud/registries/registry_user_created.py +31 -0
- gcore/types/cloud/registries/registry_user_list.py +16 -0
- gcore/types/cloud/registries/user_create_multiple_params.py +36 -0
- gcore/types/cloud/registries/user_create_params.py +30 -0
- gcore/types/cloud/registries/user_update_params.py +21 -0
- gcore/types/cloud/registry.py +33 -0
- gcore/types/cloud/registry_create_params.py +24 -0
- gcore/types/cloud/registry_list.py +16 -0
- gcore/types/cloud/registry_resize_params.py +16 -0
- gcore/types/cloud/registry_tag.py +27 -0
- gcore/types/cloud/reserved_fixed_ip.py +98 -0
- gcore/types/cloud/reserved_fixed_ip_create_params.py +107 -0
- gcore/types/cloud/reserved_fixed_ip_list_params.py +47 -0
- gcore/types/cloud/reserved_fixed_ips/__init__.py +12 -0
- gcore/types/cloud/reserved_fixed_ips/candidate_port.py +26 -0
- gcore/types/cloud/reserved_fixed_ips/candidate_port_list.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/connected_port.py +26 -0
- gcore/types/cloud/reserved_fixed_ips/connected_port_list.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/ip_with_subnet.py +17 -0
- gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +17 -0
- gcore/types/cloud/reserved_fixed_ips/vip_toggle_params.py +16 -0
- gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +17 -0
- gcore/types/cloud/route.py +16 -0
- gcore/types/cloud/secret.py +64 -0
- gcore/types/cloud/secret_create_params.py +66 -0
- gcore/types/cloud/secret_list_response.py +16 -0
- gcore/types/cloud/secret_upload_tls_certificate_params.py +39 -0
- gcore/types/cloud/security_group.py +45 -0
- gcore/types/cloud/security_group_copy_params.py +16 -0
- gcore/types/cloud/security_group_create_params.py +94 -0
- gcore/types/cloud/security_group_list_params.py +30 -0
- gcore/types/cloud/security_group_rule.py +83 -0
- gcore/types/cloud/security_group_update_params.py +83 -0
- gcore/types/cloud/security_groups/__init__.py +6 -0
- gcore/types/cloud/security_groups/rule_create_params.py +65 -0
- gcore/types/cloud/security_groups/rule_replace_params.py +72 -0
- gcore/types/cloud/session_persistence.py +22 -0
- gcore/types/cloud/ssh_key.py +39 -0
- gcore/types/cloud/ssh_key_create_params.py +31 -0
- gcore/types/cloud/ssh_key_created.py +53 -0
- gcore/types/cloud/ssh_key_list_params.py +21 -0
- gcore/types/cloud/ssh_key_update_params.py +15 -0
- gcore/types/cloud/subnet.py +87 -0
- gcore/types/cloud/tag.py +16 -0
- gcore/types/cloud/tag_update_map_param.py +10 -0
- gcore/types/cloud/task.py +191 -0
- gcore/types/cloud/task_acknowledge_all_params.py +16 -0
- gcore/types/cloud/task_id_list.py +12 -0
- gcore/types/cloud/task_list_params.py +104 -0
- gcore/types/cloud/users/__init__.py +9 -0
- gcore/types/cloud/users/role_assignment.py +33 -0
- gcore/types/cloud/users/role_assignment_create_params.py +22 -0
- gcore/types/cloud/users/role_assignment_list_params.py +25 -0
- gcore/types/cloud/users/role_assignment_update_delete.py +10 -0
- gcore/types/cloud/users/role_assignment_update_params.py +22 -0
- gcore/types/cloud/volume.py +141 -0
- gcore/types/cloud/volume_attach_to_instance_params.py +21 -0
- gcore/types/cloud/volume_change_type_params.py +18 -0
- gcore/types/cloud/volume_create_params.py +176 -0
- gcore/types/cloud/volume_delete_params.py +18 -0
- gcore/types/cloud/volume_detach_from_instance_params.py +18 -0
- gcore/types/cloud/volume_list_params.py +56 -0
- gcore/types/cloud/volume_resize_params.py +18 -0
- gcore/types/cloud/volume_update_params.py +18 -0
- gcore-0.1.0a1.dist-info/METADATA +485 -0
- gcore-0.1.0a1.dist-info/RECORD +420 -0
- gcore-0.1.0a1.dist-info/WHEEL +4 -0
- gcore-0.1.0a1.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
|
+
from ..ingress_opts_param import IngressOptsParam
|
|
10
|
+
from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
11
|
+
from ..container_probe_config_create_param import ContainerProbeConfigCreateParam
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"DeploymentCreateParams",
|
|
15
|
+
"Container",
|
|
16
|
+
"ContainerScale",
|
|
17
|
+
"ContainerScaleTriggers",
|
|
18
|
+
"ContainerScaleTriggersCPU",
|
|
19
|
+
"ContainerScaleTriggersGPUMemory",
|
|
20
|
+
"ContainerScaleTriggersGPUUtilization",
|
|
21
|
+
"ContainerScaleTriggersHTTP",
|
|
22
|
+
"ContainerScaleTriggersMemory",
|
|
23
|
+
"ContainerScaleTriggersSqs",
|
|
24
|
+
"Logging",
|
|
25
|
+
"Probes",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class DeploymentCreateParams(TypedDict, total=False):
|
|
30
|
+
project_id: int
|
|
31
|
+
"""Project ID"""
|
|
32
|
+
|
|
33
|
+
containers: Required[Iterable[Container]]
|
|
34
|
+
"""List of containers for the inference instance."""
|
|
35
|
+
|
|
36
|
+
flavor_name: Required[str]
|
|
37
|
+
"""Flavor name for the inference instance."""
|
|
38
|
+
|
|
39
|
+
image: Required[str]
|
|
40
|
+
"""Docker image for the inference instance.
|
|
41
|
+
|
|
42
|
+
This field should contain the image name and tag in the format 'name:tag', e.g.,
|
|
43
|
+
'nginx:latest'. It defaults to Docker Hub as the image registry, but any
|
|
44
|
+
accessible Docker image URL can be specified.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
listening_port: Required[int]
|
|
48
|
+
"""Listening port for the inference instance."""
|
|
49
|
+
|
|
50
|
+
name: Required[str]
|
|
51
|
+
"""Inference instance name."""
|
|
52
|
+
|
|
53
|
+
auth_enabled: bool
|
|
54
|
+
"""Set to `true` to enable API key authentication for the inference instance.
|
|
55
|
+
|
|
56
|
+
`"Authorization": "Bearer *****"` or `"X-Api-Key": "*****"` header is required
|
|
57
|
+
for the requests to the instance if enabled
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
command: Optional[List[str]]
|
|
61
|
+
"""Command to be executed when running a container from an image."""
|
|
62
|
+
|
|
63
|
+
credentials_name: Optional[str]
|
|
64
|
+
"""Registry credentials name"""
|
|
65
|
+
|
|
66
|
+
description: Optional[str]
|
|
67
|
+
"""Inference instance description."""
|
|
68
|
+
|
|
69
|
+
envs: Dict[str, str]
|
|
70
|
+
"""Environment variables for the inference instance."""
|
|
71
|
+
|
|
72
|
+
ingress_opts: Optional[IngressOptsParam]
|
|
73
|
+
"""Ingress options for the inference instance"""
|
|
74
|
+
|
|
75
|
+
logging: Optional[Logging]
|
|
76
|
+
"""Logging configuration for the inference instance"""
|
|
77
|
+
|
|
78
|
+
probes: Optional[Probes]
|
|
79
|
+
"""Probes configured for all containers of the inference instance.
|
|
80
|
+
|
|
81
|
+
If probes are not provided, and the image_name is from a the Model Catalog
|
|
82
|
+
registry, the default probes will be used.
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
api_timeout: Annotated[Optional[int], PropertyInfo(alias="timeout")]
|
|
86
|
+
"""
|
|
87
|
+
Specifies the duration in seconds without any requests after which the
|
|
88
|
+
containers will be downscaled to their minimum scale value as defined by
|
|
89
|
+
`scale.min`. If set, this helps in optimizing resource usage by reducing the
|
|
90
|
+
number of container instances during periods of inactivity. The default value
|
|
91
|
+
when the parameter is not set is 120.
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class ContainerScaleTriggersCPU(TypedDict, total=False):
|
|
96
|
+
threshold: Required[int]
|
|
97
|
+
"""Threshold value for the trigger in percentage"""
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class ContainerScaleTriggersGPUMemory(TypedDict, total=False):
|
|
101
|
+
threshold: Required[int]
|
|
102
|
+
"""Threshold value for the trigger in percentage"""
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class ContainerScaleTriggersGPUUtilization(TypedDict, total=False):
|
|
106
|
+
threshold: Required[int]
|
|
107
|
+
"""Threshold value for the trigger in percentage"""
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class ContainerScaleTriggersHTTP(TypedDict, total=False):
|
|
111
|
+
rate: Required[int]
|
|
112
|
+
"""Request count per 'window' seconds for the http trigger"""
|
|
113
|
+
|
|
114
|
+
window: Required[int]
|
|
115
|
+
"""Time window for rate calculation in seconds"""
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class ContainerScaleTriggersMemory(TypedDict, total=False):
|
|
119
|
+
threshold: Required[int]
|
|
120
|
+
"""Threshold value for the trigger in percentage"""
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class ContainerScaleTriggersSqs(TypedDict, total=False):
|
|
124
|
+
activation_queue_length: Required[int]
|
|
125
|
+
"""Number of messages for activation"""
|
|
126
|
+
|
|
127
|
+
aws_region: Required[str]
|
|
128
|
+
"""AWS region"""
|
|
129
|
+
|
|
130
|
+
queue_length: Required[int]
|
|
131
|
+
"""Number of messages for one replica"""
|
|
132
|
+
|
|
133
|
+
queue_url: Required[str]
|
|
134
|
+
"""SQS queue URL"""
|
|
135
|
+
|
|
136
|
+
secret_name: Required[str]
|
|
137
|
+
"""Auth secret name"""
|
|
138
|
+
|
|
139
|
+
aws_endpoint: Optional[str]
|
|
140
|
+
"""Custom AWS endpoint"""
|
|
141
|
+
|
|
142
|
+
scale_on_delayed: bool
|
|
143
|
+
"""Scale on delayed messages"""
|
|
144
|
+
|
|
145
|
+
scale_on_flight: bool
|
|
146
|
+
"""Scale on in-flight messages"""
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class ContainerScaleTriggers(TypedDict, total=False):
|
|
150
|
+
cpu: Optional[ContainerScaleTriggersCPU]
|
|
151
|
+
"""CPU trigger configuration"""
|
|
152
|
+
|
|
153
|
+
gpu_memory: Optional[ContainerScaleTriggersGPUMemory]
|
|
154
|
+
"""GPU memory trigger configuration.
|
|
155
|
+
|
|
156
|
+
Calculated by DCGM_FI_DEV_MEM_COPY_UTIL metric
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
gpu_utilization: Optional[ContainerScaleTriggersGPUUtilization]
|
|
160
|
+
"""GPU utilization trigger configuration.
|
|
161
|
+
|
|
162
|
+
Calculated by DCGM_FI_DEV_GPU_UTIL metric
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
http: Optional[ContainerScaleTriggersHTTP]
|
|
166
|
+
"""HTTP trigger configuration"""
|
|
167
|
+
|
|
168
|
+
memory: Optional[ContainerScaleTriggersMemory]
|
|
169
|
+
"""Memory trigger configuration"""
|
|
170
|
+
|
|
171
|
+
sqs: Optional[ContainerScaleTriggersSqs]
|
|
172
|
+
"""SQS trigger configuration"""
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class ContainerScale(TypedDict, total=False):
|
|
176
|
+
max: Required[int]
|
|
177
|
+
"""Maximum scale for the container"""
|
|
178
|
+
|
|
179
|
+
min: Required[int]
|
|
180
|
+
"""Minimum scale for the container"""
|
|
181
|
+
|
|
182
|
+
cooldown_period: Optional[int]
|
|
183
|
+
"""Cooldown period between scaling actions in seconds"""
|
|
184
|
+
|
|
185
|
+
polling_interval: Optional[int]
|
|
186
|
+
"""Polling interval for scaling triggers in seconds"""
|
|
187
|
+
|
|
188
|
+
triggers: ContainerScaleTriggers
|
|
189
|
+
"""Triggers for scaling actions"""
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
class Container(TypedDict, total=False):
|
|
193
|
+
region_id: Required[int]
|
|
194
|
+
"""Region id for the container"""
|
|
195
|
+
|
|
196
|
+
scale: Required[ContainerScale]
|
|
197
|
+
"""Scale for the container"""
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class Logging(TypedDict, total=False):
|
|
201
|
+
destination_region_id: Optional[int]
|
|
202
|
+
"""ID of the region in which the logs will be stored"""
|
|
203
|
+
|
|
204
|
+
enabled: bool
|
|
205
|
+
"""Enable or disable log streaming"""
|
|
206
|
+
|
|
207
|
+
retention_policy: Optional[LaasIndexRetentionPolicyParam]
|
|
208
|
+
"""Logs retention policy"""
|
|
209
|
+
|
|
210
|
+
topic_name: Optional[str]
|
|
211
|
+
"""The topic name to stream logs to"""
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class Probes(TypedDict, total=False):
|
|
215
|
+
liveness_probe: Optional[ContainerProbeConfigCreateParam]
|
|
216
|
+
"""Liveness probe configuration"""
|
|
217
|
+
|
|
218
|
+
readiness_probe: Optional[ContainerProbeConfigCreateParam]
|
|
219
|
+
"""Readiness probe configuration"""
|
|
220
|
+
|
|
221
|
+
startup_probe: Optional[ContainerProbeConfigCreateParam]
|
|
222
|
+
"""Startup probe configuration"""
|
|
@@ -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 TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["DeploymentListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DeploymentListParams(TypedDict, total=False):
|
|
11
|
+
project_id: int
|
|
12
|
+
"""Project ID"""
|
|
13
|
+
|
|
14
|
+
limit: int
|
|
15
|
+
"""Optional. Limit the number of returned items"""
|
|
16
|
+
|
|
17
|
+
offset: int
|
|
18
|
+
"""Optional.
|
|
19
|
+
|
|
20
|
+
Offset value is used to exclude the first set of records from the result
|
|
21
|
+
"""
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Dict, List, Iterable, Optional
|
|
6
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
from ...._utils import PropertyInfo
|
|
9
|
+
from ..ingress_opts_param import IngressOptsParam
|
|
10
|
+
from ..laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
|
|
11
|
+
from ..container_probe_config_create_param import ContainerProbeConfigCreateParam
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"DeploymentUpdateParams",
|
|
15
|
+
"Container",
|
|
16
|
+
"ContainerScale",
|
|
17
|
+
"ContainerScaleTriggers",
|
|
18
|
+
"ContainerScaleTriggersCPU",
|
|
19
|
+
"ContainerScaleTriggersGPUMemory",
|
|
20
|
+
"ContainerScaleTriggersGPUUtilization",
|
|
21
|
+
"ContainerScaleTriggersHTTP",
|
|
22
|
+
"ContainerScaleTriggersMemory",
|
|
23
|
+
"ContainerScaleTriggersSqs",
|
|
24
|
+
"Logging",
|
|
25
|
+
"Probes",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class DeploymentUpdateParams(TypedDict, total=False):
|
|
30
|
+
project_id: int
|
|
31
|
+
"""Project ID"""
|
|
32
|
+
|
|
33
|
+
auth_enabled: Optional[bool]
|
|
34
|
+
"""Set to `true` to enable API key authentication for the inference instance.
|
|
35
|
+
|
|
36
|
+
`"Authorization": "Bearer *****"` or `"X-Api-Key": "*****"` header is required
|
|
37
|
+
for the requests to the instance if enabled
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
command: Optional[List[str]]
|
|
41
|
+
"""Command to be executed when running a container from an image."""
|
|
42
|
+
|
|
43
|
+
containers: Optional[Iterable[Container]]
|
|
44
|
+
"""List of containers for the inference instance."""
|
|
45
|
+
|
|
46
|
+
credentials_name: Optional[str]
|
|
47
|
+
"""Registry credentials name"""
|
|
48
|
+
|
|
49
|
+
description: Optional[str]
|
|
50
|
+
"""Inference instance description."""
|
|
51
|
+
|
|
52
|
+
envs: Optional[Dict[str, str]]
|
|
53
|
+
"""Environment variables for the inference instance."""
|
|
54
|
+
|
|
55
|
+
flavor_name: Optional[str]
|
|
56
|
+
"""Flavor name for the inference instance."""
|
|
57
|
+
|
|
58
|
+
image: Optional[str]
|
|
59
|
+
"""Docker image for the inference instance.
|
|
60
|
+
|
|
61
|
+
This field should contain the image name and tag in the format 'name:tag', e.g.,
|
|
62
|
+
'nginx:latest'. It defaults to Docker Hub as the image registry, but any
|
|
63
|
+
accessible Docker image URL can be specified.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
ingress_opts: Optional[IngressOptsParam]
|
|
67
|
+
"""Ingress options for the inference instance"""
|
|
68
|
+
|
|
69
|
+
listening_port: Optional[int]
|
|
70
|
+
"""Listening port for the inference instance."""
|
|
71
|
+
|
|
72
|
+
logging: Optional[Logging]
|
|
73
|
+
"""Logging configuration for the inference instance"""
|
|
74
|
+
|
|
75
|
+
probes: Optional[Probes]
|
|
76
|
+
"""Probes configured for all containers of the inference instance."""
|
|
77
|
+
|
|
78
|
+
api_timeout: Annotated[Optional[int], PropertyInfo(alias="timeout")]
|
|
79
|
+
"""
|
|
80
|
+
Specifies the duration in seconds without any requests after which the
|
|
81
|
+
containers will be downscaled to their minimum scale value as defined by
|
|
82
|
+
`scale.min`. If set, this helps in optimizing resource usage by reducing the
|
|
83
|
+
number of container instances during periods of inactivity. The default value
|
|
84
|
+
when the parameter is not set is 120.
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class ContainerScaleTriggersCPU(TypedDict, total=False):
|
|
89
|
+
threshold: Required[int]
|
|
90
|
+
"""Threshold value for the trigger in percentage"""
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class ContainerScaleTriggersGPUMemory(TypedDict, total=False):
|
|
94
|
+
threshold: Required[int]
|
|
95
|
+
"""Threshold value for the trigger in percentage"""
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class ContainerScaleTriggersGPUUtilization(TypedDict, total=False):
|
|
99
|
+
threshold: Required[int]
|
|
100
|
+
"""Threshold value for the trigger in percentage"""
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class ContainerScaleTriggersHTTP(TypedDict, total=False):
|
|
104
|
+
rate: Required[int]
|
|
105
|
+
"""Request count per 'window' seconds for the http trigger"""
|
|
106
|
+
|
|
107
|
+
window: Required[int]
|
|
108
|
+
"""Time window for rate calculation in seconds"""
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class ContainerScaleTriggersMemory(TypedDict, total=False):
|
|
112
|
+
threshold: Required[int]
|
|
113
|
+
"""Threshold value for the trigger in percentage"""
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class ContainerScaleTriggersSqs(TypedDict, total=False):
|
|
117
|
+
activation_queue_length: Required[int]
|
|
118
|
+
"""Number of messages for activation"""
|
|
119
|
+
|
|
120
|
+
aws_region: Required[str]
|
|
121
|
+
"""AWS region"""
|
|
122
|
+
|
|
123
|
+
queue_length: Required[int]
|
|
124
|
+
"""Number of messages for one replica"""
|
|
125
|
+
|
|
126
|
+
queue_url: Required[str]
|
|
127
|
+
"""SQS queue URL"""
|
|
128
|
+
|
|
129
|
+
secret_name: Required[str]
|
|
130
|
+
"""Auth secret name"""
|
|
131
|
+
|
|
132
|
+
aws_endpoint: Optional[str]
|
|
133
|
+
"""Custom AWS endpoint"""
|
|
134
|
+
|
|
135
|
+
scale_on_delayed: bool
|
|
136
|
+
"""Scale on delayed messages"""
|
|
137
|
+
|
|
138
|
+
scale_on_flight: bool
|
|
139
|
+
"""Scale on in-flight messages"""
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class ContainerScaleTriggers(TypedDict, total=False):
|
|
143
|
+
cpu: Optional[ContainerScaleTriggersCPU]
|
|
144
|
+
"""CPU trigger configuration"""
|
|
145
|
+
|
|
146
|
+
gpu_memory: Optional[ContainerScaleTriggersGPUMemory]
|
|
147
|
+
"""GPU memory trigger configuration.
|
|
148
|
+
|
|
149
|
+
Calculated by DCGM_FI_DEV_MEM_COPY_UTIL metric
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
gpu_utilization: Optional[ContainerScaleTriggersGPUUtilization]
|
|
153
|
+
"""GPU utilization trigger configuration.
|
|
154
|
+
|
|
155
|
+
Calculated by DCGM_FI_DEV_GPU_UTIL metric
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
http: Optional[ContainerScaleTriggersHTTP]
|
|
159
|
+
"""HTTP trigger configuration"""
|
|
160
|
+
|
|
161
|
+
memory: Optional[ContainerScaleTriggersMemory]
|
|
162
|
+
"""Memory trigger configuration"""
|
|
163
|
+
|
|
164
|
+
sqs: Optional[ContainerScaleTriggersSqs]
|
|
165
|
+
"""SQS trigger configuration"""
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class ContainerScale(TypedDict, total=False):
|
|
169
|
+
max: Required[int]
|
|
170
|
+
"""Maximum scale for the container"""
|
|
171
|
+
|
|
172
|
+
min: Required[int]
|
|
173
|
+
"""Minimum scale for the container"""
|
|
174
|
+
|
|
175
|
+
cooldown_period: int
|
|
176
|
+
"""Cooldown period between scaling actions in seconds"""
|
|
177
|
+
|
|
178
|
+
polling_interval: int
|
|
179
|
+
"""Polling interval for scaling triggers in seconds"""
|
|
180
|
+
|
|
181
|
+
triggers: ContainerScaleTriggers
|
|
182
|
+
"""Triggers for scaling actions"""
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class Container(TypedDict, total=False):
|
|
186
|
+
region_id: Required[Optional[int]]
|
|
187
|
+
"""Region id for the container"""
|
|
188
|
+
|
|
189
|
+
scale: Required[Optional[ContainerScale]]
|
|
190
|
+
"""Scale for the container"""
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
class Logging(TypedDict, total=False):
|
|
194
|
+
destination_region_id: Optional[int]
|
|
195
|
+
"""ID of the region in which the logs will be stored"""
|
|
196
|
+
|
|
197
|
+
enabled: bool
|
|
198
|
+
"""Enable or disable log streaming"""
|
|
199
|
+
|
|
200
|
+
retention_policy: Optional[LaasIndexRetentionPolicyParam]
|
|
201
|
+
"""Logs retention policy"""
|
|
202
|
+
|
|
203
|
+
topic_name: Optional[str]
|
|
204
|
+
"""The topic name to stream logs to"""
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class Probes(TypedDict, total=False):
|
|
208
|
+
liveness_probe: Optional[ContainerProbeConfigCreateParam]
|
|
209
|
+
"""Liveness probe configuration"""
|
|
210
|
+
|
|
211
|
+
readiness_probe: Optional[ContainerProbeConfigCreateParam]
|
|
212
|
+
"""Readiness probe configuration"""
|
|
213
|
+
|
|
214
|
+
startup_probe: Optional[ContainerProbeConfigCreateParam]
|
|
215
|
+
"""Startup probe configuration"""
|
|
@@ -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 Optional
|
|
6
|
+
from typing_extensions import Literal, TypedDict
|
|
7
|
+
|
|
8
|
+
__all__ = ["LogListParams"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class LogListParams(TypedDict, total=False):
|
|
12
|
+
project_id: int
|
|
13
|
+
"""Project ID"""
|
|
14
|
+
|
|
15
|
+
limit: int
|
|
16
|
+
"""Optional. Limit the number of returned items"""
|
|
17
|
+
|
|
18
|
+
offset: int
|
|
19
|
+
"""Optional.
|
|
20
|
+
|
|
21
|
+
Offset value is used to exclude the first set of records from the result
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
order_by: Literal["time.asc", "time.desc"]
|
|
25
|
+
"""Order by field"""
|
|
26
|
+
|
|
27
|
+
region_id: Optional[int]
|
|
28
|
+
"""Region ID"""
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["FlavorListParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FlavorListParams(TypedDict, total=False):
|
|
11
|
+
limit: int
|
|
12
|
+
"""Optional. Limit the number of returned items"""
|
|
13
|
+
|
|
14
|
+
offset: int
|
|
15
|
+
"""Optional.
|
|
16
|
+
|
|
17
|
+
Offset value is used to exclude the first set of records from the result
|
|
18
|
+
"""
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from ..logging import Logging
|
|
7
|
+
from .container import Container
|
|
8
|
+
from ...._models import BaseModel
|
|
9
|
+
from ..inference_probes import InferenceProbes
|
|
10
|
+
from ..ingress_opts_out import IngressOptsOut
|
|
11
|
+
|
|
12
|
+
__all__ = ["Inference"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Inference(BaseModel):
|
|
16
|
+
address: Optional[str] = None
|
|
17
|
+
"""Address of the inference instance"""
|
|
18
|
+
|
|
19
|
+
auth_enabled: bool
|
|
20
|
+
"""`true` if instance uses API key authentication.
|
|
21
|
+
|
|
22
|
+
`"Authorization": "Bearer *****"` or `"X-Api-Key": "*****"` header is required
|
|
23
|
+
for the requests to the instance if enabled.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
command: Optional[str] = None
|
|
27
|
+
"""Command to be executed when running a container from an image."""
|
|
28
|
+
|
|
29
|
+
containers: List[Container]
|
|
30
|
+
"""List of containers for the inference instance"""
|
|
31
|
+
|
|
32
|
+
created_at: Optional[str] = None
|
|
33
|
+
"""Inference instance creation date in ISO 8601 format."""
|
|
34
|
+
|
|
35
|
+
credentials_name: str
|
|
36
|
+
"""Registry credentials name"""
|
|
37
|
+
|
|
38
|
+
description: str
|
|
39
|
+
"""Inference instance description."""
|
|
40
|
+
|
|
41
|
+
envs: Optional[Dict[str, str]] = None
|
|
42
|
+
"""Environment variables for the inference instance"""
|
|
43
|
+
|
|
44
|
+
flavor_name: str
|
|
45
|
+
"""Flavor name for the inference instance"""
|
|
46
|
+
|
|
47
|
+
image: str
|
|
48
|
+
"""Docker image for the inference instance.
|
|
49
|
+
|
|
50
|
+
This field should contain the image name and tag in the format 'name:tag', e.g.,
|
|
51
|
+
'nginx:latest'. It defaults to Docker Hub as the image registry, but any
|
|
52
|
+
accessible Docker image URL can be specified.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
ingress_opts: Optional[IngressOptsOut] = None
|
|
56
|
+
"""Ingress options for the inference instance"""
|
|
57
|
+
|
|
58
|
+
listening_port: int
|
|
59
|
+
"""Listening port for the inference instance."""
|
|
60
|
+
|
|
61
|
+
logging: Optional[Logging] = None
|
|
62
|
+
"""Logging configuration for the inference instance"""
|
|
63
|
+
|
|
64
|
+
name: str
|
|
65
|
+
"""Inference instance name."""
|
|
66
|
+
|
|
67
|
+
probes: Optional[InferenceProbes] = None
|
|
68
|
+
"""Probes configured for all containers of the inference instance."""
|
|
69
|
+
|
|
70
|
+
project_id: int
|
|
71
|
+
"""Project ID. If not provided, your default project ID will be used."""
|
|
72
|
+
|
|
73
|
+
status: Literal["ACTIVE", "DELETING", "DEPLOYING", "DISABLED", "PARTIALLYDEPLOYED"]
|
|
74
|
+
"""Inference instance status.
|
|
75
|
+
|
|
76
|
+
Value can be one of the following:
|
|
77
|
+
|
|
78
|
+
- `DEPLOYING` - The instance is being deployed. Containers are not yet created.
|
|
79
|
+
- `PARTIALLYDEPLOYED` - All containers have been created, but some may not be
|
|
80
|
+
ready yet. Instances stuck in this state typically indicate either image being
|
|
81
|
+
pulled, or a failure of some kind. In the latter case, the `error_message`
|
|
82
|
+
field of the respective container object in the `containers` collection
|
|
83
|
+
explains the failure reason.
|
|
84
|
+
- `ACTIVE` - The instance is running and ready to accept requests.
|
|
85
|
+
- `DISABLED` - The instance is disabled and not accepting any requests.
|
|
86
|
+
- `DELETING` - The instance is being deleted.
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
timeout: Optional[int] = None
|
|
90
|
+
"""
|
|
91
|
+
Specifies the duration in seconds without any requests after which the
|
|
92
|
+
containers will be downscaled to their minimum scale value as defined by
|
|
93
|
+
`scale.min`. If set, this helps in optimizing resource usage by reducing the
|
|
94
|
+
number of container instances during periods of inactivity.
|
|
95
|
+
"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
from ...._models import BaseModel
|
|
6
|
+
|
|
7
|
+
__all__ = ["InferenceApikeySecret"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class InferenceApikeySecret(BaseModel):
|
|
11
|
+
secret: str
|
|
12
|
+
"""API key secret"""
|
|
13
|
+
|
|
14
|
+
status: Literal["PENDING", "READY"]
|
|
15
|
+
"""API key status"""
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from ...._models import BaseModel
|
|
4
|
+
|
|
5
|
+
__all__ = ["InferenceFlavor"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InferenceFlavor(BaseModel):
|
|
9
|
+
cpu: float
|
|
10
|
+
"""Inference flavor cpu count."""
|
|
11
|
+
|
|
12
|
+
description: str
|
|
13
|
+
"""Inference flavor description."""
|
|
14
|
+
|
|
15
|
+
gpu: int
|
|
16
|
+
"""Inference flavor gpu count."""
|
|
17
|
+
|
|
18
|
+
gpu_compute_capability: str
|
|
19
|
+
"""Inference flavor gpu compute capability."""
|
|
20
|
+
|
|
21
|
+
gpu_memory: float
|
|
22
|
+
"""Inference flavor gpu memory in Gi."""
|
|
23
|
+
|
|
24
|
+
gpu_model: str
|
|
25
|
+
"""Inference flavor gpu model."""
|
|
26
|
+
|
|
27
|
+
is_gpu_shared: bool
|
|
28
|
+
"""Inference flavor is gpu shared."""
|
|
29
|
+
|
|
30
|
+
memory: float
|
|
31
|
+
"""Inference flavor memory in Gi."""
|
|
32
|
+
|
|
33
|
+
name: str
|
|
34
|
+
"""Inference flavor name."""
|
|
@@ -0,0 +1,21 @@
|
|
|
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__ = ["InferenceLog"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class InferenceLog(BaseModel):
|
|
11
|
+
message: str
|
|
12
|
+
"""Log message."""
|
|
13
|
+
|
|
14
|
+
pod: str
|
|
15
|
+
"""Pod name."""
|
|
16
|
+
|
|
17
|
+
region_id: int
|
|
18
|
+
"""Region ID where the container is deployed."""
|
|
19
|
+
|
|
20
|
+
time: datetime
|
|
21
|
+
"""Log message timestamp in ISO 8601 format."""
|