hypeman 0.1.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.
- hypeman/__init__.py +92 -0
- hypeman/_base_client.py +2131 -0
- hypeman/_client.py +884 -0
- hypeman/_compat.py +226 -0
- hypeman/_constants.py +14 -0
- hypeman/_exceptions.py +108 -0
- hypeman/_files.py +173 -0
- hypeman/_models.py +952 -0
- hypeman/_qs.py +149 -0
- hypeman/_resource.py +43 -0
- hypeman/_response.py +833 -0
- hypeman/_streaming.py +338 -0
- hypeman/_types.py +273 -0
- hypeman/_utils/__init__.py +64 -0
- hypeman/_utils/_compat.py +45 -0
- hypeman/_utils/_datetime_parse.py +136 -0
- hypeman/_utils/_json.py +35 -0
- hypeman/_utils/_logs.py +25 -0
- hypeman/_utils/_path.py +127 -0
- hypeman/_utils/_proxy.py +65 -0
- hypeman/_utils/_reflection.py +42 -0
- hypeman/_utils/_resources_proxy.py +24 -0
- hypeman/_utils/_streams.py +12 -0
- hypeman/_utils/_sync.py +58 -0
- hypeman/_utils/_transform.py +457 -0
- hypeman/_utils/_typing.py +156 -0
- hypeman/_utils/_utils.py +433 -0
- hypeman/_version.py +4 -0
- hypeman/lib/.keep +4 -0
- hypeman/lib/__init__.py +34 -0
- hypeman/lib/_ws.py +132 -0
- hypeman/lib/cp.py +555 -0
- hypeman/lib/exec.py +250 -0
- hypeman/py.typed +0 -0
- hypeman/resources/__init__.py +173 -0
- hypeman/resources/builders.py +532 -0
- hypeman/resources/builds.py +669 -0
- hypeman/resources/capabilities.py +155 -0
- hypeman/resources/devices.py +493 -0
- hypeman/resources/health.py +135 -0
- hypeman/resources/images.py +461 -0
- hypeman/resources/ingresses.py +443 -0
- hypeman/resources/instances/__init__.py +75 -0
- hypeman/resources/instances/auto_standby.py +268 -0
- hypeman/resources/instances/instances.py +1920 -0
- hypeman/resources/instances/snapshot_schedule.py +386 -0
- hypeman/resources/instances/snapshots.py +338 -0
- hypeman/resources/instances/volumes.py +281 -0
- hypeman/resources/pushes.py +341 -0
- hypeman/resources/resources.py +268 -0
- hypeman/resources/snapshots.py +495 -0
- hypeman/resources/volumes.py +592 -0
- hypeman/types/__init__.py +110 -0
- hypeman/types/auto_standby_policy.py +29 -0
- hypeman/types/auto_standby_policy_param.py +32 -0
- hypeman/types/auto_standby_status.py +75 -0
- hypeman/types/available_device.py +30 -0
- hypeman/types/build.py +53 -0
- hypeman/types/build_create_params.py +69 -0
- hypeman/types/build_event.py +24 -0
- hypeman/types/build_events_params.py +12 -0
- hypeman/types/build_list_params.py +13 -0
- hypeman/types/build_list_response.py +10 -0
- hypeman/types/build_provenance.py +25 -0
- hypeman/types/build_status.py +7 -0
- hypeman/types/builder.py +44 -0
- hypeman/types/builder_create_params.py +22 -0
- hypeman/types/builder_list_params.py +13 -0
- hypeman/types/builder_list_response.py +10 -0
- hypeman/types/builder_status.py +7 -0
- hypeman/types/capabilities.py +45 -0
- hypeman/types/capabilities_default_runtime.py +19 -0
- hypeman/types/capabilities_host.py +13 -0
- hypeman/types/capabilities_images.py +21 -0
- hypeman/types/capabilities_network.py +30 -0
- hypeman/types/capabilities_runtime.py +37 -0
- hypeman/types/capabilities_server.py +16 -0
- hypeman/types/device.py +52 -0
- hypeman/types/device_create_params.py +23 -0
- hypeman/types/device_list_available_response.py +10 -0
- hypeman/types/device_list_params.py +13 -0
- hypeman/types/device_list_response.py +10 -0
- hypeman/types/device_type.py +7 -0
- hypeman/types/disk_breakdown.py +21 -0
- hypeman/types/gpu_profile.py +18 -0
- hypeman/types/gpu_resource_status.py +29 -0
- hypeman/types/health_check.py +42 -0
- hypeman/types/health_check_exec.py +15 -0
- hypeman/types/health_check_exec_param.py +17 -0
- hypeman/types/health_check_http.py +22 -0
- hypeman/types/health_check_http_param.py +21 -0
- hypeman/types/health_check_param.py +42 -0
- hypeman/types/health_check_response.py +11 -0
- hypeman/types/health_check_tcp.py +10 -0
- hypeman/types/health_check_tcp_param.py +12 -0
- hypeman/types/image.py +50 -0
- hypeman/types/image_create_params.py +35 -0
- hypeman/types/image_list_params.py +13 -0
- hypeman/types/image_list_response.py +10 -0
- hypeman/types/ingress.py +26 -0
- hypeman/types/ingress_create_params.py +24 -0
- hypeman/types/ingress_list_params.py +13 -0
- hypeman/types/ingress_list_response.py +10 -0
- hypeman/types/ingress_match.py +23 -0
- hypeman/types/ingress_match_param.py +23 -0
- hypeman/types/ingress_rule.py +42 -0
- hypeman/types/ingress_rule_param.py +43 -0
- hypeman/types/ingress_target.py +21 -0
- hypeman/types/ingress_target_param.py +23 -0
- hypeman/types/instance.py +172 -0
- hypeman/types/instance_create_params.py +256 -0
- hypeman/types/instance_fork_params.py +28 -0
- hypeman/types/instance_health_status.py +32 -0
- hypeman/types/instance_list_params.py +20 -0
- hypeman/types/instance_list_response.py +10 -0
- hypeman/types/instance_logs_params.py +23 -0
- hypeman/types/instance_logs_response.py +7 -0
- hypeman/types/instance_standby_params.py +21 -0
- hypeman/types/instance_start_params.py +17 -0
- hypeman/types/instance_stat_params.py +15 -0
- hypeman/types/instance_stats.py +44 -0
- hypeman/types/instance_update_params.py +36 -0
- hypeman/types/instance_wait_params.py +22 -0
- hypeman/types/instances/__init__.py +8 -0
- hypeman/types/instances/snapshot_create_params.py +31 -0
- hypeman/types/instances/snapshot_restore_params.py +25 -0
- hypeman/types/instances/snapshot_schedule_update_params.py +24 -0
- hypeman/types/instances/volume_attach_params.py +17 -0
- hypeman/types/memory_reclaim_action.py +34 -0
- hypeman/types/memory_reclaim_response.py +27 -0
- hypeman/types/passthrough_device.py +15 -0
- hypeman/types/path_info.py +36 -0
- hypeman/types/push.py +41 -0
- hypeman/types/push_create_params.py +28 -0
- hypeman/types/push_credentials_param.py +25 -0
- hypeman/types/push_list_response.py +10 -0
- hypeman/types/push_status.py +7 -0
- hypeman/types/resource_allocation.py +33 -0
- hypeman/types/resource_reclaim_memory_params.py +24 -0
- hypeman/types/resource_status.py +30 -0
- hypeman/types/resources.py +30 -0
- hypeman/types/restart_policy.py +34 -0
- hypeman/types/restart_policy_param.py +33 -0
- hypeman/types/restart_status.py +28 -0
- hypeman/types/shared/__init__.py +3 -0
- hypeman/types/shared/snapshot_compression_config.py +26 -0
- hypeman/types/shared_params/__init__.py +3 -0
- hypeman/types/shared_params/snapshot_compression_config.py +25 -0
- hypeman/types/snapshot.py +54 -0
- hypeman/types/snapshot_fork_params.py +29 -0
- hypeman/types/snapshot_kind.py +7 -0
- hypeman/types/snapshot_list_params.py +24 -0
- hypeman/types/snapshot_list_response.py +10 -0
- hypeman/types/snapshot_policy.py +19 -0
- hypeman/types/snapshot_policy_param.py +20 -0
- hypeman/types/snapshot_schedule.py +44 -0
- hypeman/types/snapshot_schedule_retention.py +20 -0
- hypeman/types/snapshot_schedule_retention_param.py +20 -0
- hypeman/types/volume.py +29 -0
- hypeman/types/volume_attachment.py +16 -0
- hypeman/types/volume_create_from_archive_params.py +22 -0
- hypeman/types/volume_create_params.py +22 -0
- hypeman/types/volume_list_params.py +13 -0
- hypeman/types/volume_list_response.py +10 -0
- hypeman/types/volume_mount.py +27 -0
- hypeman/types/volume_mount_param.py +27 -0
- hypeman/types/wait_for_state_response.py +19 -0
- hypeman-0.1.0.dist-info/METADATA +460 -0
- hypeman-0.1.0.dist-info/RECORD +171 -0
- hypeman-0.1.0.dist-info/WHEEL +4 -0
- hypeman-0.1.0.dist-info/licenses/LICENSE +201 -0
hypeman/__init__.py
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import typing as _t
|
|
4
|
+
|
|
5
|
+
from . import types
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
7
|
+
from ._utils import file_from_path
|
|
8
|
+
from ._client import Client, Stream, Hypeman, Timeout, Transport, AsyncClient, AsyncStream, AsyncHypeman, RequestOptions
|
|
9
|
+
from ._models import BaseModel
|
|
10
|
+
from ._version import __title__, __version__
|
|
11
|
+
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
|
|
12
|
+
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
|
|
13
|
+
from ._exceptions import (
|
|
14
|
+
APIError,
|
|
15
|
+
HypemanError,
|
|
16
|
+
ConflictError,
|
|
17
|
+
NotFoundError,
|
|
18
|
+
APIStatusError,
|
|
19
|
+
RateLimitError,
|
|
20
|
+
APITimeoutError,
|
|
21
|
+
BadRequestError,
|
|
22
|
+
APIConnectionError,
|
|
23
|
+
AuthenticationError,
|
|
24
|
+
InternalServerError,
|
|
25
|
+
PermissionDeniedError,
|
|
26
|
+
UnprocessableEntityError,
|
|
27
|
+
APIResponseValidationError,
|
|
28
|
+
)
|
|
29
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
30
|
+
from ._utils._logs import setup_logging as _setup_logging
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"types",
|
|
34
|
+
"__version__",
|
|
35
|
+
"__title__",
|
|
36
|
+
"NoneType",
|
|
37
|
+
"Transport",
|
|
38
|
+
"ProxiesTypes",
|
|
39
|
+
"NotGiven",
|
|
40
|
+
"NOT_GIVEN",
|
|
41
|
+
"not_given",
|
|
42
|
+
"Omit",
|
|
43
|
+
"omit",
|
|
44
|
+
"HypemanError",
|
|
45
|
+
"APIError",
|
|
46
|
+
"APIStatusError",
|
|
47
|
+
"APITimeoutError",
|
|
48
|
+
"APIConnectionError",
|
|
49
|
+
"APIResponseValidationError",
|
|
50
|
+
"BadRequestError",
|
|
51
|
+
"AuthenticationError",
|
|
52
|
+
"PermissionDeniedError",
|
|
53
|
+
"NotFoundError",
|
|
54
|
+
"ConflictError",
|
|
55
|
+
"UnprocessableEntityError",
|
|
56
|
+
"RateLimitError",
|
|
57
|
+
"InternalServerError",
|
|
58
|
+
"Timeout",
|
|
59
|
+
"RequestOptions",
|
|
60
|
+
"Client",
|
|
61
|
+
"AsyncClient",
|
|
62
|
+
"Stream",
|
|
63
|
+
"AsyncStream",
|
|
64
|
+
"Hypeman",
|
|
65
|
+
"AsyncHypeman",
|
|
66
|
+
"file_from_path",
|
|
67
|
+
"BaseModel",
|
|
68
|
+
"DEFAULT_TIMEOUT",
|
|
69
|
+
"DEFAULT_MAX_RETRIES",
|
|
70
|
+
"DEFAULT_CONNECTION_LIMITS",
|
|
71
|
+
"DefaultHttpxClient",
|
|
72
|
+
"DefaultAsyncHttpxClient",
|
|
73
|
+
"DefaultAioHttpClient",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
if not _t.TYPE_CHECKING:
|
|
77
|
+
from ._utils._resources_proxy import resources as resources
|
|
78
|
+
|
|
79
|
+
_setup_logging()
|
|
80
|
+
|
|
81
|
+
# Update the __module__ attribute for exported symbols so that
|
|
82
|
+
# error messages point to this module instead of the module
|
|
83
|
+
# it was originally defined in, e.g.
|
|
84
|
+
# hypeman._exceptions.NotFoundError -> hypeman.NotFoundError
|
|
85
|
+
__locals = locals()
|
|
86
|
+
for __name in __all__:
|
|
87
|
+
if not __name.startswith("__"):
|
|
88
|
+
try:
|
|
89
|
+
__locals[__name].__module__ = "hypeman"
|
|
90
|
+
except (TypeError, AttributeError):
|
|
91
|
+
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
92
|
+
pass
|