hyperstack 1.42.1a0__py3-none-any.whl → 1.45.2a0__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.
@@ -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, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class Voucher(BaseModel):
26
+ """
27
+ Voucher
28
+ """ # noqa: E501
29
+ code: StrictStr = Field(description="Voucher code")
30
+ id: StrictInt = Field(description="Voucher ID")
31
+ status: StrictStr = Field(description="Voucher status")
32
+ __properties: ClassVar[List[str]] = ["code", "id", "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 Voucher 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 Voucher 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
+ "code": obj.get("code"),
86
+ "id": obj.get("id"),
87
+ "status": obj.get("status")
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, Field, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from ..models.voucher import Voucher
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class VoucherRedeemResponseSchema(BaseModel):
27
+ """
28
+ VoucherRedeemResponseSchema
29
+ """ # noqa: E501
30
+ message: StrictStr = Field(description="Response message")
31
+ status: StrictBool = Field(description="Success status of the operation")
32
+ voucher: Optional[Voucher] = Field(default=None, description="Redeemed voucher details")
33
+ __properties: ClassVar[List[str]] = ["message", "status", "voucher"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of VoucherRedeemResponseSchema from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ # override the default output from pydantic by calling `to_dict()` of voucher
75
+ if self.voucher:
76
+ _dict['voucher'] = self.voucher.to_dict()
77
+ return _dict
78
+
79
+ @classmethod
80
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
81
+ """Create an instance of VoucherRedeemResponseSchema from a dict"""
82
+ if obj is None:
83
+ return None
84
+
85
+ if not isinstance(obj, dict):
86
+ return cls.model_validate(obj)
87
+
88
+ _obj = cls.model_validate({
89
+ "message": obj.get("message"),
90
+ "status": obj.get("status"),
91
+ "voucher": Voucher.from_dict(obj["voucher"]) if obj.get("voucher") is not None else None
92
+ })
93
+ return _obj
94
+
95
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperstack
3
- Version: 1.42.1a0
3
+ Version: 1.45.2a0
4
4
  Summary: Infrahub-API
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,12 +1,11 @@
1
- hyperstack/__init__.py,sha256=E_GtEAd4aykgPsGC9ySgvDwXvFnB9npt7AD8LYkpTF4,24075
2
- hyperstack/api_client.py,sha256=pHR6RNq4Gl_XEGWgJDKQFfoTV1zwI8GDoSy1UEGWVMg,27660
1
+ hyperstack/__init__.py,sha256=KvbTPFRvCmqsMcgv_DeM3dq3qM3MbskS0Q5AMPeEjz8,24417
2
+ hyperstack/api_client.py,sha256=sJDS0QGpHwvEFDOJaZ7ZN891sGwwDsZJ1hhUJoymOSw,27660
3
3
  hyperstack/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- hyperstack/configuration.py,sha256=0cFt769-NC7wOvtB6QOpGoce3rgBE_iI3xoZs8sdaos,18804
4
+ hyperstack/configuration.py,sha256=Q1iypEcDRI4CK1Cu39Pc4TnXftg1xXc72i2vwX4W3FY,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=rZX6KVc0rVr6eNI5Iqs5Xv0TAzwSPD41AyUEG_Tu-U8,1990
9
- hyperstack/api/admin_api.py,sha256=UysqdTNibJqSdIwUKb4HQdXEHPhKyrf0dczJIx0fcxc,11514
8
+ hyperstack/api/__init__.py,sha256=qx-xxjOEyozTFH6RuLCTxD01zZN0TXutQByOzh_KhIY,1996
10
9
  hyperstack/api/alive_api.py,sha256=Vk_uXVNJXZcd8hz3Lk6DCy--jOu9901r5-IVAxwP1dE,19468
11
10
  hyperstack/api/api_key_api.py,sha256=Xt0fAER5nKgAH9wH2qt6tzRyiyLQ4Ym4a7iEDjQndzo,45330
12
11
  hyperstack/api/assigning_member_role_api.py,sha256=dqfP49KEbwcDbPjxNP2UuqGvnFQrGJTILAZynWd4Lxs,24809
@@ -16,7 +15,7 @@ hyperstack/api/billing_api.py,sha256=XWJp-fxHUiCei3p57ykxzQFkHV_X8vC5_tw_xP77SCk
16
15
  hyperstack/api/calculate_api.py,sha256=CgUXhQnmEsKnQWPxL19CrKOd1IBm_8rbQC2jz2zgVg8,12390
17
16
  hyperstack/api/callbacks_api.py,sha256=Pro34L0KYy8EFDmu43ljoL7XdVQSIxq4FdNIEzBL4fA,73369
18
17
  hyperstack/api/cluster_events_api.py,sha256=l5ooLmF7okg0e-lePL6hgl1KESF8eqOKu1TyM24jcQI,11569
19
- hyperstack/api/clusters_api.py,sha256=1UZjDjjeBjzK4FJRbCExC4NlYRib3EtIpf8xDimUPdE,162108
18
+ hyperstack/api/clusters_api.py,sha256=SMR0wp_GyUttFIIDAOWvW0njhxTyqmjqQ23xQJGgpUw,185542
20
19
  hyperstack/api/compliance_api.py,sha256=rRayiQrFHmuWh9WDw84x36919NXe-c3Kra5rb0_v_3s,45218
21
20
  hyperstack/api/credit_api.py,sha256=3NXOb-gRVWTsA3Xdy55OGjnChfu4wfqHp-BQWiA0YfE,12641
22
21
  hyperstack/api/customer_contract_api.py,sha256=ICk-Lv0XQzKDVR_XwPhzqFnAs-SvN771mtEsUAzuIsc,37874
@@ -53,7 +52,8 @@ hyperstack/api/virtual_machine_events_api.py,sha256=SJbKS7K8pWF1mJNP5_t5vXwMHOum
53
52
  hyperstack/api/vnc_url_api.py,sha256=qsP4EfXR3OAnrg4YwL0TwFo6_3LlpmOt_IGmQCTIA1A,23480
54
53
  hyperstack/api/volume_api.py,sha256=1W_HOK7s3R4RQHjBL49NbmylEG68gjDWVsKpEQtdmwE,79340
55
54
  hyperstack/api/volume_attachment_api.py,sha256=daxX8YuYnNs6kJr0ft5mFWAo4Kk1hdJGWWTVSnWY9Ec,37642
56
- hyperstack/models/__init__.py,sha256=X43mXHjMh9J61ZljCVOsf1oXrOOOczUCtG6LU4bg2zM,19482
55
+ hyperstack/api/vouchers_api.py,sha256=VaAgkmGSz2Bnc0rrozIlJpiCGknqG6Mj4Nf5a-J3g_o,12419
56
+ hyperstack/models/__init__.py,sha256=Nf4kJUmUPXQnxYooY4jwtAQXaAqg-MWVPVfzh6-wsc0,19783
57
57
  hyperstack/models/access_token_field.py,sha256=Ka4AWik_Y7Y4yv0s2-YHiP7rqItOtg18er7yUFRqbPY,2797
58
58
  hyperstack/models/add_user_info_success_response_model.py,sha256=T2XP_tWo5rVzrbOXd8CEpa1ZDf2vz3W4Ni7dNBBx6TY,3300
59
59
  hyperstack/models/allocated_gpu_count_graph.py,sha256=ANyWOWNFfH_caDmjfDrHA0mpD5lJjMhkoJZ9DVq-H60,2902
@@ -86,11 +86,11 @@ hyperstack/models/billing_metrices_fields.py,sha256=dyW4xCML3gmDHqX1T4coZA4qMtSn
86
86
  hyperstack/models/billing_metrices_response.py,sha256=SXgHPHFOZxBbuQzSf6Q9XJKUe17K7C1jn5zHUc2TcEA,3474
87
87
  hyperstack/models/cluster_events.py,sha256=ot3KXNR7biAwMRQ9o5KVN2ztn8l1-zhB8IFuyyD-je4,3546
88
88
  hyperstack/models/cluster_events_fields.py,sha256=uvBaXGWuLf22ObK1wxjayigoc_Af_sUkBmKDJQS2rYU,3537
89
- hyperstack/models/cluster_fields.py,sha256=E8uMNCalSQFMJSbuOF99e4fqByJVlLDeJnFd2Fio-UY,5457
89
+ hyperstack/models/cluster_fields.py,sha256=wRTGO0_lsNTwStGCQ1jx-8uzMNn6Nb4ntLLWwd-4a6o,5592
90
90
  hyperstack/models/cluster_flavor_fields.py,sha256=MKuXs_3VwsaLp6MabFZVv00S3zfWwp3o6s-hXdXAuzM,4078
91
91
  hyperstack/models/cluster_list_response.py,sha256=gVXvJ67ppKtPCNpUj58cMXf8pzWOIEhDuC8M6vKKwco,3473
92
92
  hyperstack/models/cluster_node_fields.py,sha256=6TlPGSe7rOOuaZ_hZ5EuoU4AG5ZCGgR44dzrVKvftHo,4241
93
- hyperstack/models/cluster_node_group_fields.py,sha256=5VfMp8Vp7j6lIO5d4MYr-8d1bdcZzqcciIc79u4yiIM,3676
93
+ hyperstack/models/cluster_node_group_fields.py,sha256=O5LqrFPlNDOVK6LUZcJoTlCumeM4zJdRKhZDQ4GMChE,3880
94
94
  hyperstack/models/cluster_node_groups_create_response.py,sha256=U_Jdm2H9Ad-3w8Xwk7Mgj8Z5Va5rHen08C-1hOpANvQ,3945
95
95
  hyperstack/models/cluster_node_groups_get_response.py,sha256=Ymgk08Zoaax9IKv3NT9muDwQB93V7fPCQdkxQZIk1Mc,3371
96
96
  hyperstack/models/cluster_node_groups_list_response.py,sha256=0HlGahePKIHH4H9pfa0WpkTwzmneSp1eHRKwkDcl-_U,3587
@@ -112,7 +112,7 @@ hyperstack/models/contract_gpu_allocation_graph_response.py,sha256=A0IvCcO_Y0YBC
112
112
  hyperstack/models/contract_instance_fields.py,sha256=gKe5JLZRUPlxS5EJdV7g7Yf2Wc79Aj49QQF8dCxZyvQ,3948
113
113
  hyperstack/models/contract_instances_response.py,sha256=TjtLyhyb1dFozY_pxh9oebOkXyMfQNEjYdqpbaihg7Q,3546
114
114
  hyperstack/models/create_cluster_node_fields.py,sha256=3W3cUqYt_GMOHOcI_tA0LIB4QQoeN1i25e_xQyi3XtY,3387
115
- hyperstack/models/create_cluster_node_group_payload.py,sha256=wXq9NcK1qSvSViAnxPIWONEg3u9UY3X2eTfRKXv4kRg,3097
115
+ hyperstack/models/create_cluster_node_group_payload.py,sha256=TfGID_gyFRArp7b-G4OfenfOVzA8jcyLdA_MIn7Q1lw,3726
116
116
  hyperstack/models/create_cluster_payload.py,sha256=rfA9sveLRxNA3kqXLfZkP_gW85-AgceD28A1yPz4-fw,4873
117
117
  hyperstack/models/create_environment.py,sha256=0XC6qjSys2j_yGCXbUjDe6ZyPDmVuTkmeEkEZSkW32M,3172
118
118
  hyperstack/models/create_firewall_payload.py,sha256=x7UpYOUdIf7Zs6A4ro4Yd8wkJSq5zq_lHFliS_66CP4,3151
@@ -133,6 +133,7 @@ hyperstack/models/customer_contract_detail_response_model.py,sha256=znH1RfVTbT7s
133
133
  hyperstack/models/customer_contract_fields.py,sha256=icTlqFtGYUm149Dv4h2q1o49sKveRwCDD-EPk0c1FE8,4200
134
134
  hyperstack/models/dashboard_info_response.py,sha256=LMVN-cu-PLakZtJFiOe4GRh4oC8GNtxvRFsAO23amho,3283
135
135
  hyperstack/models/data_synthesis_billing_history_details_response_schema.py,sha256=vbIfO8MX-DYtDSwGscw6Tj1a1HBBLIR6ID7oITLEc7U,3752
136
+ hyperstack/models/delete_cluster_nodes_fields.py,sha256=dbJu6OS2gxShXJ5ijCSB266fAxvcndZcleqTalCEwL8,2799
136
137
  hyperstack/models/deployment_fields.py,sha256=rwwFtXW4R5BmiJUmcHmOjmhP08V3yGPiNVHbOYgK6Q4,3283
137
138
  hyperstack/models/deployment_fields_for_start_deployments.py,sha256=JKgcH3Dp7n7LsqoQV-hptRNsLxmLPGdfDAYPwV77myA,3461
138
139
  hyperstack/models/deployments.py,sha256=Ais525q1Ehi00BMt0IOO2uNLVVYUE4Lq2NLLYSioP88,3489
@@ -249,6 +250,7 @@ hyperstack/models/rbac_role_detail_response_model.py,sha256=5rxkIJmPW5Gl8f5EJlFt
249
250
  hyperstack/models/rbac_role_detail_response_model_fixed.py,sha256=6kxjCFCQu5GV3sVtLvSPJ23t6fYsXAdt9cH0H_cL8-0,3309
250
251
  hyperstack/models/rbac_role_field.py,sha256=G62jPxL8J0BnEcmGZyHLfWxGWECP3nAR1Mjw4QIWw8k,2753
251
252
  hyperstack/models/rbac_role_fields.py,sha256=W3UGHIAK8BSXu3wy35TtAUV1UMwX7T7wpbv9rrpz6iE,4327
253
+ hyperstack/models/redeem_voucher_payload.py,sha256=tiILnS8wbyhaVOxDqZQU5emELlOvHhC04DkbWEd01XU,2860
252
254
  hyperstack/models/region_fields.py,sha256=NUN2m5mb9JL91U5ak4188NPJZ0Pbld82u2KoJx0JvoU,3584
253
255
  hyperstack/models/regions.py,sha256=mu_eOF7Q6v6bdBxNjho_BY7-tUSKhDXnME9GxBEC1pU,3409
254
256
  hyperstack/models/remove_member_from_organization_response_model.py,sha256=7Yh0CDH2Qr_UCIZnlDgkgh1t_WiZLkRoJKjyH122PRo,2980
@@ -317,6 +319,7 @@ hyperstack/models/template.py,sha256=1coIi7viOGzAac_XV104P3gRG30yyjI6F40h1dlTOus
317
319
  hyperstack/models/template_fields.py,sha256=bfy0INCdb7x6DnG2W7_68OFHZYjI4A4GoDw53bV4yKI,3296
318
320
  hyperstack/models/templates.py,sha256=XVBWBBJLiGOkFhRa7eue9S5q2QISh5JlHAnEx8P0tEw,3449
319
321
  hyperstack/models/token_based_billing_history_response.py,sha256=aSmUkPTBMU0-J_YcCh23C2Q_LvIyBWEDIRObKQoM2gk,3669
322
+ hyperstack/models/update_cluster_node_group_payload.py,sha256=Yp42MQjA4t_Rjfu4CY57yWwKCROxJZGsX-pU6_Vc7Ms,3038
320
323
  hyperstack/models/update_environment.py,sha256=u2PW9cpazAU64TLcmAGYrXpy6rSFPQ0oyBvjxsMiJ10,2874
321
324
  hyperstack/models/update_keypair_name.py,sha256=uZoIuZMuiSBj8P4XmcO31h-lvipYUCkpd91-CBisbqU,2864
322
325
  hyperstack/models/update_keypair_name_response.py,sha256=CP5Fef7kM8Fi5zDIlBYFKSktjzFstV5AgQjM_vMAniw,3294
@@ -344,8 +347,10 @@ hyperstack/models/volume_overview_fields.py,sha256=UVTjKyRM5extob0_-M63vplcYJp4T
344
347
  hyperstack/models/volume_types.py,sha256=jMN2S8p-Yv8sw_wWYRmfIXLmtXDwSC0xc3Gt_SNBCtY,2980
345
348
  hyperstack/models/volumes.py,sha256=-zTxq9C_spyDF882oDIFcJnrTEM5A2aYQojmVUaHBq0,3694
346
349
  hyperstack/models/volumes_fields.py,sha256=5c5YBJBmFbTSI_O00V9enZ_zEeRh4hZHtlf3hTH-Ios,4932
350
+ hyperstack/models/voucher.py,sha256=tAFBUSIrUHfpK2Rj5w964wfaWW6aJhoq4AjDUdC6gVU,2958
351
+ hyperstack/models/voucher_redeem_response_schema.py,sha256=xvfvnnR1a_CpIpgenFHrDJbbHl27Rn_AASHz-QD7TE0,3400
347
352
  hyperstack/models/workload_billing_history_response.py,sha256=mXMmbg5JxL0oOdZ0rUuBlKxbSxPf8MhN1WluraZoyVU,3544
348
- hyperstack-1.42.1a0.dist-info/METADATA,sha256=b5x_eHlp4cVxqux0Mi__NVBzLIw1dIjJfhsj-oodjss,918
349
- hyperstack-1.42.1a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
350
- hyperstack-1.42.1a0.dist-info/top_level.txt,sha256=njn3-XmjCMziM6_3QadnDQbqsVh2KYw4J1IysqyY0HI,11
351
- hyperstack-1.42.1a0.dist-info/RECORD,,
353
+ hyperstack-1.45.2a0.dist-info/METADATA,sha256=aimu0ldjRXQqMzfDE5HkPd6VNeaLYh1EflYFft5PCWk,918
354
+ hyperstack-1.45.2a0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
355
+ hyperstack-1.45.2a0.dist-info/top_level.txt,sha256=njn3-XmjCMziM6_3QadnDQbqsVh2KYw4J1IysqyY0HI,11
356
+ hyperstack-1.45.2a0.dist-info/RECORD,,