latitudesh-python-sdk 0.0.7__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of latitudesh-python-sdk might be problematic. Click here for more details.

@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "latitudesh-python-sdk"
6
- __version__: str = "0.0.7"
6
+ __version__: str = "1.0.0"
7
7
  __openapi_doc_version__: str = "v3"
8
- __gen_version__: str = "2.560.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.0.7 2.560.1 v3 latitudesh-python-sdk"
8
+ __gen_version__: str = "2.578.0"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.0.0 2.578.0 v3 latitudesh-python-sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -52,7 +52,10 @@ from .billing_usage import (
52
52
  BillingUsageDataTypedDict,
53
53
  BillingUsageProject,
54
54
  BillingUsageProjectTypedDict,
55
+ BillingUsageType,
55
56
  BillingUsageTypedDict,
57
+ Discounts,
58
+ DiscountsTypedDict,
56
59
  Metadata,
57
60
  MetadataTypedDict,
58
61
  Period,
@@ -1099,6 +1102,7 @@ __all__ = [
1099
1102
  "BillingUsageDataTypedDict",
1100
1103
  "BillingUsageProject",
1101
1104
  "BillingUsageProjectTypedDict",
1105
+ "BillingUsageType",
1102
1106
  "BillingUsageTypedDict",
1103
1107
  "Brl",
1104
1108
  "BrlTypedDict",
@@ -1251,6 +1255,8 @@ __all__ = [
1251
1255
  "DestroyVirtualMachineRequestTypedDict",
1252
1256
  "DestroyVirtualNetworkRequest",
1253
1257
  "DestroyVirtualNetworkRequestTypedDict",
1258
+ "Discounts",
1259
+ "DiscountsTypedDict",
1254
1260
  "Disk",
1255
1261
  "DiskTypedDict",
1256
1262
  "Distro",
@@ -41,6 +41,33 @@ class Period(BaseModel):
41
41
  end: Optional[datetime] = None
42
42
 
43
43
 
44
+ class BillingUsageType(str, Enum):
45
+ r"""Type of discount (percentage or fixed amount)"""
46
+
47
+ PERCENT = "percent"
48
+ AMOUNT = "amount"
49
+
50
+
51
+ class DiscountsTypedDict(TypedDict):
52
+ description: str
53
+ r"""Description of the discount"""
54
+ type: BillingUsageType
55
+ r"""Type of discount (percentage or fixed amount)"""
56
+ value: float
57
+ r"""Value of the discount (percentage or amount)"""
58
+
59
+
60
+ class Discounts(BaseModel):
61
+ description: str
62
+ r"""Description of the discount"""
63
+
64
+ type: BillingUsageType
65
+ r"""Type of discount (percentage or fixed amount)"""
66
+
67
+ value: float
68
+ r"""Value of the discount (percentage or amount)"""
69
+
70
+
44
71
  class Unit(str, Enum):
45
72
  QUANTITY = "quantity"
46
73
  HOUR = "hour"
@@ -73,6 +100,10 @@ class ProductsTypedDict(TypedDict):
73
100
  id: NotRequired[str]
74
101
  resource: NotRequired[str]
75
102
  name: NotRequired[str]
103
+ discounts: NotRequired[List[DiscountsTypedDict]]
104
+ discountable: NotRequired[bool]
105
+ description: NotRequired[str]
106
+ amount_without_discount: NotRequired[int]
76
107
  start: NotRequired[datetime]
77
108
  end: NotRequired[datetime]
78
109
  unit: NotRequired[Unit]
@@ -92,6 +123,14 @@ class Products(BaseModel):
92
123
 
93
124
  name: Optional[str] = None
94
125
 
126
+ discounts: Optional[List[Discounts]] = None
127
+
128
+ discountable: Optional[bool] = None
129
+
130
+ description: Optional[str] = None
131
+
132
+ amount_without_discount: Optional[int] = None
133
+
95
134
  start: Optional[datetime] = None
96
135
 
97
136
  end: Optional[datetime] = None
@@ -136,7 +136,6 @@ class VirtualMachinePlansAttributesTypedDict(TypedDict):
136
136
  r"""The name of the plan"""
137
137
  specs: NotRequired[VirtualMachinePlansSpecsTypedDict]
138
138
  regions: NotRequired[List[VirtualMachinePlansRegionsTypedDict]]
139
- r"""The regions where the plan is available"""
140
139
  stock_level: NotRequired[VirtualMachinePlansStockLevel]
141
140
  r"""The stock level of the plan"""
142
141
 
@@ -148,7 +147,6 @@ class VirtualMachinePlansAttributes(BaseModel):
148
147
  specs: Optional[VirtualMachinePlansSpecs] = None
149
148
 
150
149
  regions: Optional[List[VirtualMachinePlansRegions]] = None
151
- r"""The regions where the plan is available"""
152
150
 
153
151
  stock_level: Optional[VirtualMachinePlansStockLevel] = None
154
152
  r"""The stock level of the plan"""
@@ -1,6 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .virtual_network_error import VirtualNetworkAttributesSiteTypedDict
4
5
  from enum import Enum
5
6
  from latitudesh_python_sdk import utils
6
7
  from latitudesh_python_sdk.types import BaseModel
@@ -2,7 +2,7 @@
2
2
 
3
3
  from pydantic import ConfigDict, model_serializer
4
4
  from pydantic import BaseModel as PydanticBaseModel
5
- from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType
5
+ from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union
6
6
  from typing_extensions import TypeAliasType, TypeAlias
7
7
 
8
8
 
@@ -35,5 +35,5 @@ else:
35
35
  "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,)
36
36
  )
37
37
 
38
- UnrecognizedInt = NewType("UnrecognizedInt", int)
39
- UnrecognizedStr = NewType("UnrecognizedStr", str)
38
+ UnrecognizedInt: TypeAlias = int
39
+ UnrecognizedStr: TypeAlias = str
@@ -1,34 +1,74 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  import enum
4
-
4
+ import sys
5
5
 
6
6
  class OpenEnumMeta(enum.EnumMeta):
7
- def __call__(
8
- cls, value, names=None, *, module=None, qualname=None, type=None, start=1
9
- ):
10
- # The `type` kwarg also happens to be a built-in that pylint flags as
11
- # redeclared. Safe to ignore this lint rule with this scope.
12
- # pylint: disable=redefined-builtin
7
+ # The __call__ method `boundary` kwarg was added in 3.11 and must be present
8
+ # for pyright. Refer also: https://github.com/pylint-dev/pylint/issues/9622
9
+ # pylint: disable=unexpected-keyword-arg
10
+ # The __call__ method `values` varg must be named for pyright.
11
+ # pylint: disable=keyword-arg-before-vararg
12
+
13
+ if sys.version_info >= (3, 11):
14
+ def __call__(
15
+ cls, value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None
16
+ ):
17
+ # The `type` kwarg also happens to be a built-in that pylint flags as
18
+ # redeclared. Safe to ignore this lint rule with this scope.
19
+ # pylint: disable=redefined-builtin
20
+
21
+ if names is not None:
22
+ return super().__call__(
23
+ value,
24
+ names=names,
25
+ *values,
26
+ module=module,
27
+ qualname=qualname,
28
+ type=type,
29
+ start=start,
30
+ boundary=boundary,
31
+ )
32
+
33
+ try:
34
+ return super().__call__(
35
+ value,
36
+ names=names, # pyright: ignore[reportArgumentType]
37
+ *values,
38
+ module=module,
39
+ qualname=qualname,
40
+ type=type,
41
+ start=start,
42
+ boundary=boundary,
43
+ )
44
+ except ValueError:
45
+ return value
46
+ else:
47
+ def __call__(
48
+ cls, value, names=None, *, module=None, qualname=None, type=None, start=1
49
+ ):
50
+ # The `type` kwarg also happens to be a built-in that pylint flags as
51
+ # redeclared. Safe to ignore this lint rule with this scope.
52
+ # pylint: disable=redefined-builtin
13
53
 
14
- if names is not None:
15
- return super().__call__(
16
- value,
17
- names=names,
18
- module=module,
19
- qualname=qualname,
20
- type=type,
21
- start=start,
22
- )
54
+ if names is not None:
55
+ return super().__call__(
56
+ value,
57
+ names=names,
58
+ module=module,
59
+ qualname=qualname,
60
+ type=type,
61
+ start=start,
62
+ )
23
63
 
24
- try:
25
- return super().__call__(
26
- value,
27
- names=names, # pyright: ignore[reportArgumentType]
28
- module=module,
29
- qualname=qualname,
30
- type=type,
31
- start=start,
32
- )
33
- except ValueError:
34
- return value
64
+ try:
65
+ return super().__call__(
66
+ value,
67
+ names=names, # pyright: ignore[reportArgumentType]
68
+ module=module,
69
+ qualname=qualname,
70
+ type=type,
71
+ start=start,
72
+ )
73
+ except ValueError:
74
+ return value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: latitudesh-python-sdk
3
- Version: 0.0.7
3
+ Version: 1.0.0
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
13
  Requires-Dist: eval-type-backport (>=0.2.0)
14
14
  Requires-Dist: httpx (>=0.28.1)
15
- Requires-Dist: pydantic (>=2.10.3)
15
+ Requires-Dist: pydantic (>=2.11.2)
16
16
  Requires-Dist: python-dateutil (>=2.8.2)
17
17
  Requires-Dist: typing-inspection (>=0.4.0)
18
18
  Project-URL: Repository, https://github.com/latitudesh/latitudesh-python-sdk.git
@@ -3,7 +3,7 @@ latitudesh_python_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJ
3
3
  latitudesh_python_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
4
  latitudesh_python_sdk/_hooks/sdkhooks.py,sha256=1ortlYa3eeDs7LuD-Z68Dmy9H9ciWEE9H89bM0yhC2o,2571
5
5
  latitudesh_python_sdk/_hooks/types.py,sha256=E006F_tsZfswRF7VWNN7XeADu-_OrYB-NTb4Q_ZVbr0,2824
6
- latitudesh_python_sdk/_version.py,sha256=9V9b6i8UsgSmYplBF7PFv7vlVPaAhXoqBGhwhsCGnmA,478
6
+ latitudesh_python_sdk/_version.py,sha256=4wMCc5EFRvjl5Vtv_9_K6ThW39GzprVd_mhEkBTm-cU,478
7
7
  latitudesh_python_sdk/apikeys.py,sha256=vmyyHOTAvtkdm3Fml1Xk8H3mUoR9RyA2_lcIfpxojoc,31922
8
8
  latitudesh_python_sdk/basesdk.py,sha256=lU-PdfvSiWlf1vCrvn_c3DGO3gFMpNB-eBKci6QZKFc,12244
9
9
  latitudesh_python_sdk/billing.py,sha256=H_xK_-U6xjJtk9yBOf6GWSkak5i-I5jTGy_kBNpTJ68,8279
@@ -11,14 +11,14 @@ latitudesh_python_sdk/events_sdk.py,sha256=h-1LRcYiVyli2v2qAvQVaIrXMm1u4KT9EsjtK
11
11
  latitudesh_python_sdk/firewalls_sdk.py,sha256=cLAp_Np0TyyFKFuUqjhOX9jYf0DwTMsl5ycBx78U6dY,64002
12
12
  latitudesh_python_sdk/httpclient.py,sha256=lC-YQ7q4yiJGKElxBeb3aZnr-4aYxjgEpZ6roeXYlyg,4318
13
13
  latitudesh_python_sdk/ipaddresses_sdk.py,sha256=2WTFNQbBs_QLuskwtr8LIKFheaenMBkeFisoMnzz5zI,19037
14
- latitudesh_python_sdk/models/__init__.py,sha256=2FcaCh3zc5oq6vOkg7N_0bWkjl4KFrfPWP4WBK4BVGg,60644
14
+ latitudesh_python_sdk/models/__init__.py,sha256=xS27uVUcJf9-qaIkPrr_qXI3x2wvtxDCuKggENz5Yeo,60772
15
15
  latitudesh_python_sdk/models/api_key.py,sha256=XXzY0i3cCPmBGVABAZAhyidhEhYiyBbWqNznBxMsn8s,2220
16
16
  latitudesh_python_sdk/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
17
17
  latitudesh_python_sdk/models/assign_server_virtual_networkop.py,sha256=_820P6KGUla-ybspGOQBp_EDz8gwy5EywCPcRFvK16Y,1386
18
18
  latitudesh_python_sdk/models/bandwidth_packages.py,sha256=4KH8OP74xp26jCZzULrVXf2cnXEkJ1j-iH4HK7xFQ8s,1680
19
19
  latitudesh_python_sdk/models/bandwidth_plan.py,sha256=F4UsXL6r4t_axgmlMMHkzYaa-4DzCaGkAzUxsbAYN_0,1567
20
20
  latitudesh_python_sdk/models/bandwidth_plans.py,sha256=p_bnDfwmcPB21NIVfF3CzQcXI2XUGgjyCikJ61YXY4c,489
21
- latitudesh_python_sdk/models/billing_usage.py,sha256=C-YYMT_At-FjW1J5KjAj0uFvv5esE6Z1lUvjEdB88rg,3914
21
+ latitudesh_python_sdk/models/billing_usage.py,sha256=DC_bVOSh5klBC8iah4LxJbAiqBoygDumlIpGwILvyxg,4909
22
22
  latitudesh_python_sdk/models/create_api_key.py,sha256=80PaA1MLEFjMOguOeC50EbQv2uoirvhlbbqkW3BDVfU,931
23
23
  latitudesh_python_sdk/models/create_firewall_assignmentop.py,sha256=mMpd58nROW5aQyN9gGaAavA-BbAvvrh84Hhclw6Iu5k,1832
24
24
  latitudesh_python_sdk/models/create_firewallop.py,sha256=fBxUSdCZ_IPdHPR7Br8nrR6kF8QLvtOzhLzrXOXSF0M,1791
@@ -155,8 +155,8 @@ latitudesh_python_sdk/models/user_teams.py,sha256=dqroBlq2ai0S-EnMZBZt2MGihPkrxw
155
155
  latitudesh_python_sdk/models/user_update.py,sha256=MA4WnCCNbkyyLMlo30K890F_FU2QTAgBK1Rgr_W6PSk,927
156
156
  latitudesh_python_sdk/models/virtual_machine.py,sha256=fAIqBGE8Rn6cVqxSQrNgHN8yanPC_NMhzTgZ_gsNbtU,610
157
157
  latitudesh_python_sdk/models/virtual_machine_payload.py,sha256=9ab21MZ1yoa2apeXcaYJV0DeZNxc1j5jqWePspOhZ8g,1139
158
- latitudesh_python_sdk/models/virtual_machine_plans.py,sha256=GrKft-EqBAtLOIWfwblo8q2g10E11u1HNkekcWcIG3s,4649
159
- latitudesh_python_sdk/models/virtual_network.py,sha256=OLEO5wsQgNGr2YeWNvHrhtEMXxOI4IdeszrqGMgj5ME,2742
158
+ latitudesh_python_sdk/models/virtual_machine_plans.py,sha256=ICTyo_4wcUOU6oUhX0tkFNU4jfmiGmPFjdAjL1gqAWU,4547
159
+ latitudesh_python_sdk/models/virtual_network.py,sha256=PIuIxEy36wvf7gQbLz8HsFOj_SJ3j-umn8I-X_W_2aU,2815
160
160
  latitudesh_python_sdk/models/virtual_network1.py,sha256=6Lq3-84_BNE6urjtUbfrK4K7k2_uoNMShkK5yjTsmDc,2180
161
161
  latitudesh_python_sdk/models/virtual_network_assignment.py,sha256=4j21tlGFDwIrZtWpKRLVAfX-ZG5OBEoD05shmkB5YPM,1001
162
162
  latitudesh_python_sdk/models/virtual_network_assignments.py,sha256=-ZLYDnJxi3AC-XhUCGVituu2lq_U2sGY7_1SKRJ5IqA,827
@@ -180,12 +180,12 @@ latitudesh_python_sdk/teams_sdk.py,sha256=0W8EisV4lbYm7zNSNnDhtneLYAWqiVWKpRbyCW
180
180
  latitudesh_python_sdk/teamsmembers.py,sha256=C6TETFId-BZpkMSg3mE0MPIazuTCyTFuByzChNm67EM,22742
181
181
  latitudesh_python_sdk/traffic_sdk.py,sha256=WmnVKHxSE7_GU7cSXt-j7235rwhLXyv-vqDPOelqGxI,16179
182
182
  latitudesh_python_sdk/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
183
- latitudesh_python_sdk/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
183
+ latitudesh_python_sdk/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
184
184
  latitudesh_python_sdk/userdata_sdk.py,sha256=bhEzPFI8oBAfG5kVcxbAu9CcVnlsvyGbTEIIbhXkELE,41026
185
185
  latitudesh_python_sdk/userprofile.py,sha256=IiFIDqzbayhFBbaYPXBU_1hXNy7_cdq_MRy31Tg0I1Q,22929
186
186
  latitudesh_python_sdk/utils/__init__.py,sha256=A7_RAc6uLoQYKGunLRFg8cTYYvM4WgoM7Da50PYZOoU,2456
187
187
  latitudesh_python_sdk/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
188
- latitudesh_python_sdk/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
188
+ latitudesh_python_sdk/utils/enums.py,sha256=REU6ydF8gsVL3xaeGX4sMNyiL3q5P9h29-f6Sa6luAE,2633
189
189
  latitudesh_python_sdk/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
190
190
  latitudesh_python_sdk/utils/forms.py,sha256=YSSijXrsM2nfrRHlPQejh1uRRKfoILomHL3d9xpJiy8,6058
191
191
  latitudesh_python_sdk/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
@@ -200,7 +200,7 @@ latitudesh_python_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg
200
200
  latitudesh_python_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
201
201
  latitudesh_python_sdk/virtualmachines.py,sha256=ZRRFJMCFTntnd7TBbYDfR0BlMxgRJZEg49m0h0DBRzU,29149
202
202
  latitudesh_python_sdk/vpnsessions.py,sha256=iNFTOrl7HmWvBP4so7xGsQK5UvIW7T5wfmSuNMj_Zyw,32416
203
- latitudesh_python_sdk-0.0.7.dist-info/LICENSE,sha256=cTh9W7-NHKTevDYJJSvZjNHAtXhzT2BaMUap_MUmlyY,1068
204
- latitudesh_python_sdk-0.0.7.dist-info/METADATA,sha256=3xYq_3I7NEo7_PMOzT7O4ZzNR9D1gIInLbCdD1IiPkk,35665
205
- latitudesh_python_sdk-0.0.7.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
206
- latitudesh_python_sdk-0.0.7.dist-info/RECORD,,
203
+ latitudesh_python_sdk-1.0.0.dist-info/LICENSE,sha256=cTh9W7-NHKTevDYJJSvZjNHAtXhzT2BaMUap_MUmlyY,1068
204
+ latitudesh_python_sdk-1.0.0.dist-info/METADATA,sha256=Qa6cmAx4MObQVWyOzajejzYMzWz6-c9TLTsw8Hpras4,35665
205
+ latitudesh_python_sdk-1.0.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
206
+ latitudesh_python_sdk-1.0.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any