hyperstack 1.46.2a0__py3-none-any.whl → 1.46.4a0__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.
- hyperstack/__init__.py +18 -1
- hyperstack/api/__init__.py +4 -0
- hyperstack/api/access_keys_api.py +885 -0
- hyperstack/api/api_key_api.py +1 -0
- hyperstack/api/buckets_api.py +865 -0
- hyperstack/api/health_api.py +282 -0
- hyperstack/api/partner_config_api.py +2 -0
- hyperstack/api/regions_api.py +282 -0
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +13 -0
- hyperstack/models/object_storage_access_key_create_request.py +90 -0
- hyperstack/models/object_storage_access_key_create_response.py +101 -0
- hyperstack/models/object_storage_access_key_list_response.py +101 -0
- hyperstack/models/object_storage_access_key_response.py +99 -0
- hyperstack/models/object_storage_bucket_list_response.py +95 -0
- hyperstack/models/object_storage_bucket_response.py +101 -0
- hyperstack/models/object_storage_delete_response.py +87 -0
- hyperstack/models/object_storage_error_response.py +91 -0
- hyperstack/models/object_storage_health_response.py +87 -0
- hyperstack/models/object_storage_pagination_meta.py +91 -0
- hyperstack/models/object_storage_region_list_response.py +95 -0
- hyperstack/models/object_storage_region_response.py +87 -0
- hyperstack/models/object_storage_regions_enum.py +36 -0
- {hyperstack-1.46.2a0.dist-info → hyperstack-1.46.4a0.dist-info}/METADATA +1 -1
- {hyperstack-1.46.2a0.dist-info → hyperstack-1.46.4a0.dist-info}/RECORD +28 -11
- {hyperstack-1.46.2a0.dist-info → hyperstack-1.46.4a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.46.2a0.dist-info → hyperstack-1.46.4a0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ObjectStorageErrorResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ObjectStorageErrorResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
error_reason: StrictStr
|
|
30
|
+
message: StrictStr
|
|
31
|
+
status: Optional[StrictBool] = False
|
|
32
|
+
__properties: ClassVar[List[str]] = ["error_reason", "message", "status"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of ObjectStorageErrorResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of ObjectStorageErrorResponse from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"error_reason": obj.get("error_reason"),
|
|
86
|
+
"message": obj.get("message"),
|
|
87
|
+
"status": obj.get("status") if obj.get("status") is not None else False
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ObjectStorageHealthResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ObjectStorageHealthResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
status: StrictStr
|
|
30
|
+
__properties: ClassVar[List[str]] = ["status"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of ObjectStorageHealthResponse from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of ObjectStorageHealthResponse from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"status": obj.get("status")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ObjectStoragePaginationMeta(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ObjectStoragePaginationMeta
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
count: StrictInt
|
|
30
|
+
current_page: StrictInt
|
|
31
|
+
total_pages: StrictInt
|
|
32
|
+
__properties: ClassVar[List[str]] = ["count", "current_page", "total_pages"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of ObjectStoragePaginationMeta from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of ObjectStoragePaginationMeta from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"count": obj.get("count"),
|
|
86
|
+
"current_page": obj.get("current_page"),
|
|
87
|
+
"total_pages": obj.get("total_pages")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from ..models.object_storage_region_response import ObjectStorageRegionResponse
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ObjectStorageRegionListResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ObjectStorageRegionListResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
regions: List[ObjectStorageRegionResponse]
|
|
31
|
+
__properties: ClassVar[List[str]] = ["regions"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ObjectStorageRegionListResponse from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
# override the default output from pydantic by calling `to_dict()` of each item in regions (list)
|
|
73
|
+
_items = []
|
|
74
|
+
if self.regions:
|
|
75
|
+
for _item_regions in self.regions:
|
|
76
|
+
if _item_regions:
|
|
77
|
+
_items.append(_item_regions.to_dict())
|
|
78
|
+
_dict['regions'] = _items
|
|
79
|
+
return _dict
|
|
80
|
+
|
|
81
|
+
@classmethod
|
|
82
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
+
"""Create an instance of ObjectStorageRegionListResponse from a dict"""
|
|
84
|
+
if obj is None:
|
|
85
|
+
return None
|
|
86
|
+
|
|
87
|
+
if not isinstance(obj, dict):
|
|
88
|
+
return cls.model_validate(obj)
|
|
89
|
+
|
|
90
|
+
_obj = cls.model_validate({
|
|
91
|
+
"regions": [ObjectStorageRegionResponse.from_dict(_item) for _item in obj["regions"]] if obj.get("regions") is not None else None
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ObjectStorageRegionResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ObjectStorageRegionResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
name: StrictStr
|
|
30
|
+
__properties: ClassVar[List[str]] = ["name"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of ObjectStorageRegionResponse from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of ObjectStorageRegionResponse from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"name": obj.get("name")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Infrahub-API
|
|
5
|
+
|
|
6
|
+
Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ObjectStorageRegionsEnum(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
ObjectStorageRegionsEnum
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
CANADA_MINUS_1 = 'CANADA-1'
|
|
30
|
+
|
|
31
|
+
@classmethod
|
|
32
|
+
def from_json(cls, json_str: str) -> Self:
|
|
33
|
+
"""Create an instance of ObjectStorageRegionsEnum from a JSON string"""
|
|
34
|
+
return cls(json.loads(json_str))
|
|
35
|
+
|
|
36
|
+
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
hyperstack/__init__.py,sha256=
|
|
2
|
-
hyperstack/api_client.py,sha256=
|
|
1
|
+
hyperstack/__init__.py,sha256=h0Quo_BR0DdPDpyVt_hmGCQi0BSEZjA6udv08OWtWNU,25733
|
|
2
|
+
hyperstack/api_client.py,sha256=UAhbVIqiUPXqLu7pPIIuxCHq50NoNWtEPUECjCNm02Y,27660
|
|
3
3
|
hyperstack/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
hyperstack/configuration.py,sha256=
|
|
4
|
+
hyperstack/configuration.py,sha256=13RPVbKU0lGFEbiRGgragY15OJhxzpO2PGRHsihTVbs,18804
|
|
5
5
|
hyperstack/exceptions.py,sha256=WNUju20ADFYpDuZnq5o9FKSoa9N5nsCkMPNaK_VUrNM,6230
|
|
6
6
|
hyperstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
hyperstack/rest.py,sha256=ewQJgH66o4QmU-YgavYnTiOvGqjLOHbd43ENkvfdsLA,9656
|
|
8
|
-
hyperstack/api/__init__.py,sha256=
|
|
8
|
+
hyperstack/api/__init__.py,sha256=ODrIVH3peyE2cMpuIxI7bs6Ye-qap6dw0sSjsPfSlfw,2194
|
|
9
|
+
hyperstack/api/access_keys_api.py,sha256=7EbfYyECl7_RTzgW-KfoJ_XlhuZ5Fw0ohU8iosvGN9A,33642
|
|
9
10
|
hyperstack/api/alive_api.py,sha256=yiglqtlKPwNh3W8a-pqDgEUiQpRABvx8QUAi_T39yvs,19528
|
|
10
|
-
hyperstack/api/api_key_api.py,sha256=
|
|
11
|
+
hyperstack/api/api_key_api.py,sha256=tYzdUHKnaJyNDkRfbsON-Sf9gF5qqoe3NpXH6k6c_hM,45316
|
|
11
12
|
hyperstack/api/assigning_member_role_api.py,sha256=dqfP49KEbwcDbPjxNP2UuqGvnFQrGJTILAZynWd4Lxs,24809
|
|
12
13
|
hyperstack/api/auth_api.py,sha256=oJG0pp1K0RxA0Ggkt7ekwv5XWTRByNhCxCpqCf4o3NA,52603
|
|
13
14
|
hyperstack/api/beta_access_api.py,sha256=jgAbh6X2QRxKTO6-h4bg41_Rg85CTZGznQTF4s8eLGc,32970
|
|
14
15
|
hyperstack/api/billing_api.py,sha256=DoDA2EJu-dNW71n96GPlE0BOyUcZGQcCEi-6FL-jZPM,498801
|
|
16
|
+
hyperstack/api/buckets_api.py,sha256=ztZcmOfPbi5WuNjwt4rUEmNK4btz-bDBKecS5aseurU,32385
|
|
15
17
|
hyperstack/api/calculate_api.py,sha256=f2Xax5JIB2r-q7ma5YuPnoVyGMon8fv637IspnyVdwM,12509
|
|
16
18
|
hyperstack/api/callbacks_api.py,sha256=fC-dSVBmXT3YTdFPJr9Kv3xSHkvVdMzlbLUQUcbOCgg,73096
|
|
17
19
|
hyperstack/api/cluster_events_api.py,sha256=gr5236myJjBmAQDKXdBEEDo4NkAvOkWshi7NSvu84rE,11499
|
|
@@ -28,11 +30,12 @@ hyperstack/api/firewalls_api.py,sha256=6R89JCf4tt-KQfrJZQnZTZnrx-oCLfRRSIEyQyPr0
|
|
|
28
30
|
hyperstack/api/flavor_api.py,sha256=mCxNA9QRJCT_kxx2EEyehdDN0no7pj4qYikUa8ncbEg,12740
|
|
29
31
|
hyperstack/api/floating_ip_api.py,sha256=lpU2GCTanrO8IjlgKRXTF3ZnhwIrctTxvDaRNnnyDEc,23889
|
|
30
32
|
hyperstack/api/gpu_api.py,sha256=gvcdRksnLEBMZbHpyZVsXMVjI3WLX0WqQaCnmrt3z-o,11002
|
|
33
|
+
hyperstack/api/health_api.py,sha256=3Jvy44n27YxW-8cILkFjwJPHbVSsrmyFWqI5F8I8GPQ,10597
|
|
31
34
|
hyperstack/api/image_api.py,sha256=IboLUQKo9dMHzs63t9RGAhoBLrHnakugibx1xY2eY90,48259
|
|
32
35
|
hyperstack/api/invite_api.py,sha256=ULqD0zcGp4FFtC2yjqrxkjeghTd4bLCXPPMxHa-_wGQ,43891
|
|
33
36
|
hyperstack/api/keypair_api.py,sha256=bxTZJhyaMA6J7v0DhaAhLZh-CCgXgt_Q__M9SblXjcw,46982
|
|
34
37
|
hyperstack/api/organization_api.py,sha256=3MUlFnlW0ihE-Q8kleCKTHeJz3VoRNCuYqQ-05WaSS8,34780
|
|
35
|
-
hyperstack/api/partner_config_api.py,sha256=
|
|
38
|
+
hyperstack/api/partner_config_api.py,sha256=QB6OHl5nk2tBwl72hMeuzZ6am9IN1Ew3vhoTGYFTVbg,21710
|
|
36
39
|
hyperstack/api/payment_api.py,sha256=6ytcuQJy81umg9KwcGfmuAxL0DwfGmWPGendDX9yHuc,34880
|
|
37
40
|
hyperstack/api/permission_api.py,sha256=W7ddyaUV_R6MzmVOsxAq26-uXyeWuN7w821mejDFIrU,11582
|
|
38
41
|
hyperstack/api/policy_api.py,sha256=B7ndZqEfwRnpsS2GnDkgezPclyD77LNu5S7xsy0h5GI,11380
|
|
@@ -40,6 +43,7 @@ hyperstack/api/pricebook_api.py,sha256=IA3F8BN0sdUcK0T6nCqMfMTQfAhadJ0aPZWuyCWwu
|
|
|
40
43
|
hyperstack/api/profile_api.py,sha256=JhLj34DXT9jiaK73sxAOGKfY0Z1mSXf5i8bp_ZOQx8M,44408
|
|
41
44
|
hyperstack/api/rbac_role_api.py,sha256=aBpnCrXJhqDMs3v7SLfaChZH1U-8zk7eOzEw8EiXlfg,57100
|
|
42
45
|
hyperstack/api/region_api.py,sha256=GM5XVVGoWXaajJFUcnlhsHT8cWpHTCPdyfHtNsqQ1DE,11361
|
|
46
|
+
hyperstack/api/regions_api.py,sha256=YkvaYAOcc2fMQo4NCryGTPzE3p6K4wo8f0Ntpxmi-2g,10722
|
|
43
47
|
hyperstack/api/security_rules_api.py,sha256=iaOC_1UAIoGx1ZqSeyHUiSoJn4y13I8oDMEavcT6Aho,11370
|
|
44
48
|
hyperstack/api/snapshot_events_api.py,sha256=bNCp7qR0NbmoP_XM4lNhNwscYmuIYGsQBLet6Za5Zr4,11224
|
|
45
49
|
hyperstack/api/snapshots_api.py,sha256=XRsVOXsZiIGVcRYQZZVrxua2tqmLg4IR5ZICPjx40Vg,67434
|
|
@@ -54,7 +58,7 @@ hyperstack/api/vnc_url_api.py,sha256=AxgHLuetx4a30ymvHTVYHcq2eq0uuMg-OSk8QcUte2M
|
|
|
54
58
|
hyperstack/api/volume_api.py,sha256=Vk9vjZwg_qw06kPYnz-s4-hzmVNxbji7jGKRu58QuFs,79270
|
|
55
59
|
hyperstack/api/volume_attachment_api.py,sha256=NtzxLx594ioW7oGg4AYptTjD0K3UMB9QBuAEEk_N_QQ,37446
|
|
56
60
|
hyperstack/api/vouchers_api.py,sha256=VaAgkmGSz2Bnc0rrozIlJpiCGknqG6Mj4Nf5a-J3g_o,12419
|
|
57
|
-
hyperstack/models/__init__.py,sha256=
|
|
61
|
+
hyperstack/models/__init__.py,sha256=IzrtU7zzmLdwmHpctaJvPfsXvrKxmlt4FsYbKrp6Yok,20790
|
|
58
62
|
hyperstack/models/access_token_field.py,sha256=Ka4AWik_Y7Y4yv0s2-YHiP7rqItOtg18er7yUFRqbPY,2797
|
|
59
63
|
hyperstack/models/add_user_info_success_response_model.py,sha256=T2XP_tWo5rVzrbOXd8CEpa1ZDf2vz3W4Ni7dNBBx6TY,3300
|
|
60
64
|
hyperstack/models/allocated_gpu_count_graph.py,sha256=ANyWOWNFfH_caDmjfDrHA0mpD5lJjMhkoJZ9DVq-H60,2902
|
|
@@ -219,6 +223,19 @@ hyperstack/models/new_configurations_response.py,sha256=3MRVr3cpMUHtPRLawoKLCAff
|
|
|
219
223
|
hyperstack/models/new_model_response.py,sha256=Wgk3AFsHrWxOtxpnOk5SQEHcjGHAK2-rSSfFiooCdm0,3739
|
|
220
224
|
hyperstack/models/new_stock_response.py,sha256=jul2slP_HrhIQ3p4K2WoCTx3q_B-6jg8SCaDugEcIlg,3491
|
|
221
225
|
hyperstack/models/new_stock_retrive_response.py,sha256=s_-rzPTWQ4YdRBmXd-JOmkbsMaIUE_zUyUC2MHbrzWU,3270
|
|
226
|
+
hyperstack/models/object_storage_access_key_create_request.py,sha256=tErZJiwhGI4gpeOQrUmpXoHIUW2mxxSSyuoMied4P_A,3025
|
|
227
|
+
hyperstack/models/object_storage_access_key_create_response.py,sha256=X6POf7v6l1c_drHtpFnlFQnaeTQTclfK9Vzx7gam8AM,3481
|
|
228
|
+
hyperstack/models/object_storage_access_key_list_response.py,sha256=OG8fBbaxxTHLWrS4QaQYB6LuzBeI1KambtP9-1hpGAE,3797
|
|
229
|
+
hyperstack/models/object_storage_access_key_response.py,sha256=zXLOwOIacKxrIWGzkAwIjXTI0Mo9Uuhg1C-y9h_bDww,3368
|
|
230
|
+
hyperstack/models/object_storage_bucket_list_response.py,sha256=1iSmxjwExhpSWViLt1HSDn0E22Vqlrdhadfoh0kxSUM,3332
|
|
231
|
+
hyperstack/models/object_storage_bucket_response.py,sha256=bvCauE04mRH9dqUhtYiB1OZKTTQZDMlUhWBZFaOJc0Q,3596
|
|
232
|
+
hyperstack/models/object_storage_delete_response.py,sha256=aWo9bfsUOt5jIz6lroBTkmi4_GBLHEqJGkELB0R7KGg,2794
|
|
233
|
+
hyperstack/models/object_storage_error_response.py,sha256=Ksb3l02QljvAa6OPu6ZyG9ah06zrGOWh7ZF4q8qTMxo,3045
|
|
234
|
+
hyperstack/models/object_storage_health_response.py,sha256=ukiiEqtvC-vEqViybhTN4dIY4i22Vk2BUQzjEEXl2sg,2790
|
|
235
|
+
hyperstack/models/object_storage_pagination_meta.py,sha256=9WckcQEKv7d7BczXEQnCwmsjekcwJumBSEJnaRxFaHQ,2976
|
|
236
|
+
hyperstack/models/object_storage_region_list_response.py,sha256=lHEVkr0jxEkyN2TBX8UfW67DHrdIxFqJeATn8h9TwOc,3332
|
|
237
|
+
hyperstack/models/object_storage_region_response.py,sha256=0p8doY2cR_PCLN49BUd04HB8aL14kq93I3gMb4rIeIk,2782
|
|
238
|
+
hyperstack/models/object_storage_regions_enum.py,sha256=SVRKOhtIEV4AiPq-R_cAcbmuhwcMGTZ2hG6pVCs4n4Q,1031
|
|
222
239
|
hyperstack/models/organization_fields.py,sha256=amrdejtFxYVU7pHvGPP3id8xXyLXMSKSezYuFNA0CS8,4258
|
|
223
240
|
hyperstack/models/organization_level_billing_history.py,sha256=T8BDqj4zjlZ2qYZTFJOgrKV4vuA6-2JhtuZ8EnthHK0,3719
|
|
224
241
|
hyperstack/models/organization_level_billing_history_resources.py,sha256=zQW88BxzSGhJeoan-jABR4w7GDHP43Ly8ery8_Zbmus,3835
|
|
@@ -351,7 +368,7 @@ hyperstack/models/volumes_fields.py,sha256=5c5YBJBmFbTSI_O00V9enZ_zEeRh4hZHtlf3h
|
|
|
351
368
|
hyperstack/models/voucher.py,sha256=tAFBUSIrUHfpK2Rj5w964wfaWW6aJhoq4AjDUdC6gVU,2958
|
|
352
369
|
hyperstack/models/voucher_redeem_response_schema.py,sha256=xvfvnnR1a_CpIpgenFHrDJbbHl27Rn_AASHz-QD7TE0,3400
|
|
353
370
|
hyperstack/models/workload_billing_history_response.py,sha256=mXMmbg5JxL0oOdZ0rUuBlKxbSxPf8MhN1WluraZoyVU,3544
|
|
354
|
-
hyperstack-1.46.
|
|
355
|
-
hyperstack-1.46.
|
|
356
|
-
hyperstack-1.46.
|
|
357
|
-
hyperstack-1.46.
|
|
371
|
+
hyperstack-1.46.4a0.dist-info/METADATA,sha256=6c7d1h7seeqqDi6_cWX152QJTSACZKWvrsUxgQVBTYc,918
|
|
372
|
+
hyperstack-1.46.4a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
373
|
+
hyperstack-1.46.4a0.dist-info/top_level.txt,sha256=njn3-XmjCMziM6_3QadnDQbqsVh2KYw4J1IysqyY0HI,11
|
|
374
|
+
hyperstack-1.46.4a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|