daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.5a0__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 daytona_api_client might be problematic. Click here for more details.

Files changed (107) hide show
  1. daytona_api_client/api/__init__.py +1 -0
  2. daytona_api_client/api/api_keys_api.py +328 -171
  3. daytona_api_client/api/docker_registry_api.py +463 -239
  4. daytona_api_client/api/object_storage_api.py +63 -33
  5. daytona_api_client/api/organizations_api.py +1582 -612
  6. daytona_api_client/api/preview_api.py +175 -71
  7. daytona_api_client/api/runners_api.py +195 -67
  8. daytona_api_client/api/sandbox_api.py +909 -499
  9. daytona_api_client/api/snapshots_api.py +482 -253
  10. daytona_api_client/api/toolbox_api.py +2684 -1410
  11. daytona_api_client/api/users_api.py +526 -184
  12. daytona_api_client/api/volumes_api.py +332 -180
  13. daytona_api_client/api/workspace_api.py +909 -499
  14. daytona_api_client/api_client.py +192 -90
  15. daytona_api_client/api_response.py +3 -2
  16. daytona_api_client/configuration.py +52 -55
  17. daytona_api_client/exceptions.py +16 -15
  18. daytona_api_client/models/account_provider.py +11 -9
  19. daytona_api_client/models/api_key_list.py +21 -40
  20. daytona_api_client/models/api_key_response.py +19 -38
  21. daytona_api_client/models/build_info.py +15 -22
  22. daytona_api_client/models/command.py +13 -12
  23. daytona_api_client/models/completion_context.py +11 -11
  24. daytona_api_client/models/completion_item.py +17 -28
  25. daytona_api_client/models/completion_list.py +12 -17
  26. daytona_api_client/models/create_api_key.py +17 -32
  27. daytona_api_client/models/create_build_info.py +13 -17
  28. daytona_api_client/models/create_docker_registry.py +18 -21
  29. daytona_api_client/models/create_linked_account.py +11 -9
  30. daytona_api_client/models/create_organization.py +10 -9
  31. daytona_api_client/models/create_organization_invitation.py +17 -24
  32. daytona_api_client/models/create_organization_quota.py +19 -32
  33. daytona_api_client/models/create_organization_role.py +15 -28
  34. daytona_api_client/models/create_runner.py +26 -41
  35. daytona_api_client/models/create_sandbox.py +39 -76
  36. daytona_api_client/models/create_session_request.py +10 -9
  37. daytona_api_client/models/create_snapshot.py +22 -39
  38. daytona_api_client/models/create_user.py +19 -26
  39. daytona_api_client/models/create_volume.py +10 -9
  40. daytona_api_client/models/create_workspace.py +38 -73
  41. daytona_api_client/models/docker_registry.py +21 -33
  42. daytona_api_client/models/execute_request.py +13 -12
  43. daytona_api_client/models/execute_response.py +11 -9
  44. daytona_api_client/models/file_info.py +17 -20
  45. daytona_api_client/models/file_status.py +13 -16
  46. daytona_api_client/models/git_add_request.py +11 -9
  47. daytona_api_client/models/git_branch_request.py +11 -9
  48. daytona_api_client/models/git_checkout_request.py +11 -9
  49. daytona_api_client/models/git_clone_request.py +15 -18
  50. daytona_api_client/models/git_commit_info.py +14 -17
  51. daytona_api_client/models/git_commit_request.py +13 -16
  52. daytona_api_client/models/git_commit_response.py +10 -9
  53. daytona_api_client/models/git_delete_branch_request.py +11 -9
  54. daytona_api_client/models/git_repo_request.py +12 -11
  55. daytona_api_client/models/git_status.py +15 -20
  56. daytona_api_client/models/list_branch_response.py +10 -9
  57. daytona_api_client/models/lsp_completion_params.py +16 -19
  58. daytona_api_client/models/lsp_document_request.py +12 -11
  59. daytona_api_client/models/lsp_location.py +12 -12
  60. daytona_api_client/models/lsp_server_request.py +11 -9
  61. daytona_api_client/models/lsp_symbol.py +13 -16
  62. daytona_api_client/models/match.py +12 -9
  63. daytona_api_client/models/organization.py +20 -34
  64. daytona_api_client/models/organization_invitation.py +27 -44
  65. daytona_api_client/models/organization_role.py +21 -46
  66. daytona_api_client/models/organization_suspension.py +11 -9
  67. daytona_api_client/models/organization_user.py +22 -36
  68. daytona_api_client/models/paginated_snapshots_dto.py +14 -19
  69. daytona_api_client/models/port_preview_url.py +11 -9
  70. daytona_api_client/models/position.py +11 -9
  71. daytona_api_client/models/project_dir_response.py +10 -9
  72. daytona_api_client/models/range.py +13 -16
  73. daytona_api_client/models/registry_push_access_dto.py +15 -18
  74. daytona_api_client/models/replace_request.py +12 -11
  75. daytona_api_client/models/replace_result.py +12 -9
  76. daytona_api_client/models/sandbox.py +49 -95
  77. daytona_api_client/models/sandbox_info.py +13 -18
  78. daytona_api_client/models/sandbox_labels.py +10 -9
  79. daytona_api_client/models/sandbox_state.py +18 -16
  80. daytona_api_client/models/sandbox_volume.py +11 -9
  81. daytona_api_client/models/search_files_response.py +10 -9
  82. daytona_api_client/models/session.py +13 -18
  83. daytona_api_client/models/session_execute_request.py +14 -19
  84. daytona_api_client/models/session_execute_response.py +13 -14
  85. daytona_api_client/models/set_snapshot_general_status_dto.py +10 -9
  86. daytona_api_client/models/snapshot_dto.py +34 -58
  87. daytona_api_client/models/snapshot_state.py +12 -10
  88. daytona_api_client/models/storage_access_dto.py +16 -26
  89. daytona_api_client/models/toggle_state.py +10 -9
  90. daytona_api_client/models/update_assigned_organization_roles.py +10 -9
  91. daytona_api_client/models/update_docker_registry.py +12 -11
  92. daytona_api_client/models/update_organization_invitation.py +15 -16
  93. daytona_api_client/models/update_organization_member_role.py +12 -11
  94. daytona_api_client/models/update_organization_quota.py +28 -41
  95. daytona_api_client/models/update_organization_role.py +15 -28
  96. daytona_api_client/models/usage_overview.py +17 -28
  97. daytona_api_client/models/user.py +14 -19
  98. daytona_api_client/models/user_public_key.py +11 -9
  99. daytona_api_client/models/volume_dto.py +20 -32
  100. daytona_api_client/models/volume_state.py +9 -7
  101. daytona_api_client/models/workspace.py +58 -113
  102. daytona_api_client/rest.py +77 -26
  103. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/METADATA +1 -1
  104. daytona_api_client-0.21.5a0.dist-info/RECORD +117 -0
  105. daytona_api_client-0.21.3a0.dist-info/RECORD +0 -117
  106. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/WHEEL +0 -0
  107. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.5a0.dist-info}/top_level.txt +0 -0
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class ToggleState(BaseModel):
28
27
  """
29
28
  ToggleState
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  enabled: StrictBool = Field(description="Enable or disable the snapshot/tag")
33
31
  additional_properties: Dict[str, Any] = {}
34
32
  __properties: ClassVar[List[str]] = ["enabled"]
@@ -39,6 +37,7 @@ class ToggleState(BaseModel):
39
37
  protected_namespaces=(),
40
38
  )
41
39
 
40
+
42
41
  def to_str(self) -> str:
43
42
  """Returns the string representation of the model using alias"""
44
43
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -64,11 +63,9 @@ class ToggleState(BaseModel):
64
63
  are ignored.
65
64
  * Fields in `self.additional_properties` are added to the output dict.
66
65
  """
67
- excluded_fields: Set[str] = set(
68
- [
69
- "additional_properties",
70
- ]
71
- )
66
+ excluded_fields: Set[str] = set([
67
+ "additional_properties",
68
+ ])
72
69
 
73
70
  _dict = self.model_dump(
74
71
  by_alias=True,
@@ -91,10 +88,14 @@ class ToggleState(BaseModel):
91
88
  if not isinstance(obj, dict):
92
89
  return cls.model_validate(obj)
93
90
 
94
- _obj = cls.model_validate({"enabled": obj.get("enabled")})
91
+ _obj = cls.model_validate({
92
+ "enabled": obj.get("enabled")
93
+ })
95
94
  # store additional fields in additional_properties
96
95
  for _key in obj.keys():
97
96
  if _key not in cls.__properties:
98
97
  _obj.additional_properties[_key] = obj.get(_key)
99
98
 
100
99
  return _obj
100
+
101
+
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UpdateAssignedOrganizationRoles(BaseModel):
28
27
  """
29
28
  UpdateAssignedOrganizationRoles
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  role_ids: List[StrictStr] = Field(description="Array of role IDs", alias="roleIds")
33
31
  additional_properties: Dict[str, Any] = {}
34
32
  __properties: ClassVar[List[str]] = ["roleIds"]
@@ -39,6 +37,7 @@ class UpdateAssignedOrganizationRoles(BaseModel):
39
37
  protected_namespaces=(),
40
38
  )
41
39
 
40
+
42
41
  def to_str(self) -> str:
43
42
  """Returns the string representation of the model using alias"""
44
43
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -64,11 +63,9 @@ class UpdateAssignedOrganizationRoles(BaseModel):
64
63
  are ignored.
65
64
  * Fields in `self.additional_properties` are added to the output dict.
66
65
  """
67
- excluded_fields: Set[str] = set(
68
- [
69
- "additional_properties",
70
- ]
71
- )
66
+ excluded_fields: Set[str] = set([
67
+ "additional_properties",
68
+ ])
72
69
 
73
70
  _dict = self.model_dump(
74
71
  by_alias=True,
@@ -91,10 +88,14 @@ class UpdateAssignedOrganizationRoles(BaseModel):
91
88
  if not isinstance(obj, dict):
92
89
  return cls.model_validate(obj)
93
90
 
94
- _obj = cls.model_validate({"roleIds": obj.get("roleIds")})
91
+ _obj = cls.model_validate({
92
+ "roleIds": obj.get("roleIds")
93
+ })
95
94
  # store additional fields in additional_properties
96
95
  for _key in obj.keys():
97
96
  if _key not in cls.__properties:
98
97
  _obj.additional_properties[_key] = obj.get(_key)
99
98
 
100
99
  return _obj
100
+
101
+
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UpdateDockerRegistry(BaseModel):
28
27
  """
29
28
  UpdateDockerRegistry
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  name: StrictStr = Field(description="Registry name")
33
31
  username: StrictStr = Field(description="Registry username")
34
32
  password: Optional[StrictStr] = Field(default=None, description="Registry password")
@@ -41,6 +39,7 @@ class UpdateDockerRegistry(BaseModel):
41
39
  protected_namespaces=(),
42
40
  )
43
41
 
42
+
44
43
  def to_str(self) -> str:
45
44
  """Returns the string representation of the model using alias"""
46
45
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -66,11 +65,9 @@ class UpdateDockerRegistry(BaseModel):
66
65
  are ignored.
67
66
  * Fields in `self.additional_properties` are added to the output dict.
68
67
  """
69
- excluded_fields: Set[str] = set(
70
- [
71
- "additional_properties",
72
- ]
73
- )
68
+ excluded_fields: Set[str] = set([
69
+ "additional_properties",
70
+ ])
74
71
 
75
72
  _dict = self.model_dump(
76
73
  by_alias=True,
@@ -93,12 +90,16 @@ class UpdateDockerRegistry(BaseModel):
93
90
  if not isinstance(obj, dict):
94
91
  return cls.model_validate(obj)
95
92
 
96
- _obj = cls.model_validate(
97
- {"name": obj.get("name"), "username": obj.get("username"), "password": obj.get("password")}
98
- )
93
+ _obj = cls.model_validate({
94
+ "name": obj.get("name"),
95
+ "username": obj.get("username"),
96
+ "password": obj.get("password")
97
+ })
99
98
  # store additional fields in additional_properties
100
99
  for _key in obj.keys():
101
100
  if _key not in cls.__properties:
102
101
  _obj.additional_properties[_key] = obj.get(_key)
103
102
 
104
103
  return _obj
104
+
105
+
@@ -24,24 +24,20 @@ from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
27
  class UpdateOrganizationInvitation(BaseModel):
29
28
  """
30
29
  UpdateOrganizationInvitation
31
- """ # noqa: E501
32
-
30
+ """ # noqa: E501
33
31
  role: StrictStr = Field(description="Organization member role")
34
32
  assigned_role_ids: List[StrictStr] = Field(description="Array of role IDs", alias="assignedRoleIds")
35
- expires_at: Optional[datetime] = Field(
36
- default=None, description="Expiration date of the invitation", alias="expiresAt"
37
- )
33
+ expires_at: Optional[datetime] = Field(default=None, description="Expiration date of the invitation", alias="expiresAt")
38
34
  additional_properties: Dict[str, Any] = {}
39
35
  __properties: ClassVar[List[str]] = ["role", "assignedRoleIds", "expiresAt"]
40
36
 
41
- @field_validator("role")
37
+ @field_validator('role')
42
38
  def role_validate_enum(cls, value):
43
39
  """Validates the enum"""
44
- if value not in set(["owner", "member"]):
40
+ if value not in set(['owner', 'member']):
45
41
  raise ValueError("must be one of enum values ('owner', 'member')")
46
42
  return value
47
43
 
@@ -51,6 +47,7 @@ class UpdateOrganizationInvitation(BaseModel):
51
47
  protected_namespaces=(),
52
48
  )
53
49
 
50
+
54
51
  def to_str(self) -> str:
55
52
  """Returns the string representation of the model using alias"""
56
53
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -76,11 +73,9 @@ class UpdateOrganizationInvitation(BaseModel):
76
73
  are ignored.
77
74
  * Fields in `self.additional_properties` are added to the output dict.
78
75
  """
79
- excluded_fields: Set[str] = set(
80
- [
81
- "additional_properties",
82
- ]
83
- )
76
+ excluded_fields: Set[str] = set([
77
+ "additional_properties",
78
+ ])
84
79
 
85
80
  _dict = self.model_dump(
86
81
  by_alias=True,
@@ -103,12 +98,16 @@ class UpdateOrganizationInvitation(BaseModel):
103
98
  if not isinstance(obj, dict):
104
99
  return cls.model_validate(obj)
105
100
 
106
- _obj = cls.model_validate(
107
- {"role": obj.get("role"), "assignedRoleIds": obj.get("assignedRoleIds"), "expiresAt": obj.get("expiresAt")}
108
- )
101
+ _obj = cls.model_validate({
102
+ "role": obj.get("role"),
103
+ "assignedRoleIds": obj.get("assignedRoleIds"),
104
+ "expiresAt": obj.get("expiresAt")
105
+ })
109
106
  # store additional fields in additional_properties
110
107
  for _key in obj.keys():
111
108
  if _key not in cls.__properties:
112
109
  _obj.additional_properties[_key] = obj.get(_key)
113
110
 
114
111
  return _obj
112
+
113
+
@@ -23,20 +23,18 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UpdateOrganizationMemberRole(BaseModel):
28
27
  """
29
28
  UpdateOrganizationMemberRole
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  role: StrictStr = Field(description="Organization member role")
33
31
  additional_properties: Dict[str, Any] = {}
34
32
  __properties: ClassVar[List[str]] = ["role"]
35
33
 
36
- @field_validator("role")
34
+ @field_validator('role')
37
35
  def role_validate_enum(cls, value):
38
36
  """Validates the enum"""
39
- if value not in set(["owner", "member"]):
37
+ if value not in set(['owner', 'member']):
40
38
  raise ValueError("must be one of enum values ('owner', 'member')")
41
39
  return value
42
40
 
@@ -46,6 +44,7 @@ class UpdateOrganizationMemberRole(BaseModel):
46
44
  protected_namespaces=(),
47
45
  )
48
46
 
47
+
49
48
  def to_str(self) -> str:
50
49
  """Returns the string representation of the model using alias"""
51
50
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -71,11 +70,9 @@ class UpdateOrganizationMemberRole(BaseModel):
71
70
  are ignored.
72
71
  * Fields in `self.additional_properties` are added to the output dict.
73
72
  """
74
- excluded_fields: Set[str] = set(
75
- [
76
- "additional_properties",
77
- ]
78
- )
73
+ excluded_fields: Set[str] = set([
74
+ "additional_properties",
75
+ ])
79
76
 
80
77
  _dict = self.model_dump(
81
78
  by_alias=True,
@@ -98,10 +95,14 @@ class UpdateOrganizationMemberRole(BaseModel):
98
95
  if not isinstance(obj, dict):
99
96
  return cls.model_validate(obj)
100
97
 
101
- _obj = cls.model_validate({"role": obj.get("role")})
98
+ _obj = cls.model_validate({
99
+ "role": obj.get("role")
100
+ })
102
101
  # store additional fields in additional_properties
103
102
  for _key in obj.keys():
104
103
  if _key not in cls.__properties:
105
104
  _obj.additional_properties[_key] = obj.get(_key)
106
105
 
107
106
  return _obj
107
+
108
+
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UpdateOrganizationQuota(BaseModel):
28
27
  """
29
28
  UpdateOrganizationQuota
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  total_cpu_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalCpuQuota")
33
31
  total_memory_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalMemoryQuota")
34
32
  total_disk_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="totalDiskQuota")
@@ -39,17 +37,7 @@ class UpdateOrganizationQuota(BaseModel):
39
37
  max_snapshot_size: Optional[Union[StrictFloat, StrictInt]] = Field(alias="maxSnapshotSize")
40
38
  volume_quota: Optional[Union[StrictFloat, StrictInt]] = Field(alias="volumeQuota")
41
39
  additional_properties: Dict[str, Any] = {}
42
- __properties: ClassVar[List[str]] = [
43
- "totalCpuQuota",
44
- "totalMemoryQuota",
45
- "totalDiskQuota",
46
- "maxCpuPerSandbox",
47
- "maxMemoryPerSandbox",
48
- "maxDiskPerSandbox",
49
- "snapshotQuota",
50
- "maxSnapshotSize",
51
- "volumeQuota",
52
- ]
40
+ __properties: ClassVar[List[str]] = ["totalCpuQuota", "totalMemoryQuota", "totalDiskQuota", "maxCpuPerSandbox", "maxMemoryPerSandbox", "maxDiskPerSandbox", "snapshotQuota", "maxSnapshotSize", "volumeQuota"]
53
41
 
54
42
  model_config = ConfigDict(
55
43
  populate_by_name=True,
@@ -57,6 +45,7 @@ class UpdateOrganizationQuota(BaseModel):
57
45
  protected_namespaces=(),
58
46
  )
59
47
 
48
+
60
49
  def to_str(self) -> str:
61
50
  """Returns the string representation of the model using alias"""
62
51
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -82,11 +71,9 @@ class UpdateOrganizationQuota(BaseModel):
82
71
  are ignored.
83
72
  * Fields in `self.additional_properties` are added to the output dict.
84
73
  """
85
- excluded_fields: Set[str] = set(
86
- [
87
- "additional_properties",
88
- ]
89
- )
74
+ excluded_fields: Set[str] = set([
75
+ "additional_properties",
76
+ ])
90
77
 
91
78
  _dict = self.model_dump(
92
79
  by_alias=True,
@@ -101,47 +88,47 @@ class UpdateOrganizationQuota(BaseModel):
101
88
  # set to None if total_cpu_quota (nullable) is None
102
89
  # and model_fields_set contains the field
103
90
  if self.total_cpu_quota is None and "total_cpu_quota" in self.model_fields_set:
104
- _dict["totalCpuQuota"] = None
91
+ _dict['totalCpuQuota'] = None
105
92
 
106
93
  # set to None if total_memory_quota (nullable) is None
107
94
  # and model_fields_set contains the field
108
95
  if self.total_memory_quota is None and "total_memory_quota" in self.model_fields_set:
109
- _dict["totalMemoryQuota"] = None
96
+ _dict['totalMemoryQuota'] = None
110
97
 
111
98
  # set to None if total_disk_quota (nullable) is None
112
99
  # and model_fields_set contains the field
113
100
  if self.total_disk_quota is None and "total_disk_quota" in self.model_fields_set:
114
- _dict["totalDiskQuota"] = None
101
+ _dict['totalDiskQuota'] = None
115
102
 
116
103
  # set to None if max_cpu_per_sandbox (nullable) is None
117
104
  # and model_fields_set contains the field
118
105
  if self.max_cpu_per_sandbox is None and "max_cpu_per_sandbox" in self.model_fields_set:
119
- _dict["maxCpuPerSandbox"] = None
106
+ _dict['maxCpuPerSandbox'] = None
120
107
 
121
108
  # set to None if max_memory_per_sandbox (nullable) is None
122
109
  # and model_fields_set contains the field
123
110
  if self.max_memory_per_sandbox is None and "max_memory_per_sandbox" in self.model_fields_set:
124
- _dict["maxMemoryPerSandbox"] = None
111
+ _dict['maxMemoryPerSandbox'] = None
125
112
 
126
113
  # set to None if max_disk_per_sandbox (nullable) is None
127
114
  # and model_fields_set contains the field
128
115
  if self.max_disk_per_sandbox is None and "max_disk_per_sandbox" in self.model_fields_set:
129
- _dict["maxDiskPerSandbox"] = None
116
+ _dict['maxDiskPerSandbox'] = None
130
117
 
131
118
  # set to None if snapshot_quota (nullable) is None
132
119
  # and model_fields_set contains the field
133
120
  if self.snapshot_quota is None and "snapshot_quota" in self.model_fields_set:
134
- _dict["snapshotQuota"] = None
121
+ _dict['snapshotQuota'] = None
135
122
 
136
123
  # set to None if max_snapshot_size (nullable) is None
137
124
  # and model_fields_set contains the field
138
125
  if self.max_snapshot_size is None and "max_snapshot_size" in self.model_fields_set:
139
- _dict["maxSnapshotSize"] = None
126
+ _dict['maxSnapshotSize'] = None
140
127
 
141
128
  # set to None if volume_quota (nullable) is None
142
129
  # and model_fields_set contains the field
143
130
  if self.volume_quota is None and "volume_quota" in self.model_fields_set:
144
- _dict["volumeQuota"] = None
131
+ _dict['volumeQuota'] = None
145
132
 
146
133
  return _dict
147
134
 
@@ -154,22 +141,22 @@ class UpdateOrganizationQuota(BaseModel):
154
141
  if not isinstance(obj, dict):
155
142
  return cls.model_validate(obj)
156
143
 
157
- _obj = cls.model_validate(
158
- {
159
- "totalCpuQuota": obj.get("totalCpuQuota"),
160
- "totalMemoryQuota": obj.get("totalMemoryQuota"),
161
- "totalDiskQuota": obj.get("totalDiskQuota"),
162
- "maxCpuPerSandbox": obj.get("maxCpuPerSandbox"),
163
- "maxMemoryPerSandbox": obj.get("maxMemoryPerSandbox"),
164
- "maxDiskPerSandbox": obj.get("maxDiskPerSandbox"),
165
- "snapshotQuota": obj.get("snapshotQuota"),
166
- "maxSnapshotSize": obj.get("maxSnapshotSize"),
167
- "volumeQuota": obj.get("volumeQuota"),
168
- }
169
- )
144
+ _obj = cls.model_validate({
145
+ "totalCpuQuota": obj.get("totalCpuQuota"),
146
+ "totalMemoryQuota": obj.get("totalMemoryQuota"),
147
+ "totalDiskQuota": obj.get("totalDiskQuota"),
148
+ "maxCpuPerSandbox": obj.get("maxCpuPerSandbox"),
149
+ "maxMemoryPerSandbox": obj.get("maxMemoryPerSandbox"),
150
+ "maxDiskPerSandbox": obj.get("maxDiskPerSandbox"),
151
+ "snapshotQuota": obj.get("snapshotQuota"),
152
+ "maxSnapshotSize": obj.get("maxSnapshotSize"),
153
+ "volumeQuota": obj.get("volumeQuota")
154
+ })
170
155
  # store additional fields in additional_properties
171
156
  for _key in obj.keys():
172
157
  if _key not in cls.__properties:
173
158
  _obj.additional_properties[_key] = obj.get(_key)
174
159
 
175
160
  return _obj
161
+
162
+
@@ -23,38 +23,22 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UpdateOrganizationRole(BaseModel):
28
27
  """
29
28
  UpdateOrganizationRole
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  name: StrictStr = Field(description="The name of the role")
33
31
  description: StrictStr = Field(description="The description of the role")
34
32
  permissions: List[StrictStr] = Field(description="The list of permissions assigned to the role")
35
33
  additional_properties: Dict[str, Any] = {}
36
34
  __properties: ClassVar[List[str]] = ["name", "description", "permissions"]
37
35
 
38
- @field_validator("permissions")
36
+ @field_validator('permissions')
39
37
  def permissions_validate_enum(cls, value):
40
38
  """Validates the enum"""
41
39
  for i in value:
42
- if i not in set(
43
- [
44
- "write:registries",
45
- "delete:registries",
46
- "write:snapshots",
47
- "delete:snapshots",
48
- "write:sandboxes",
49
- "delete:sandboxes",
50
- "read:volumes",
51
- "write:volumes",
52
- "delete:volumes",
53
- ]
54
- ):
55
- raise ValueError(
56
- "each list item must be one of ('write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes')"
57
- )
40
+ if i not in set(['write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes']):
41
+ raise ValueError("each list item must be one of ('write:registries', 'delete:registries', 'write:snapshots', 'delete:snapshots', 'write:sandboxes', 'delete:sandboxes', 'read:volumes', 'write:volumes', 'delete:volumes')")
58
42
  return value
59
43
 
60
44
  model_config = ConfigDict(
@@ -63,6 +47,7 @@ class UpdateOrganizationRole(BaseModel):
63
47
  protected_namespaces=(),
64
48
  )
65
49
 
50
+
66
51
  def to_str(self) -> str:
67
52
  """Returns the string representation of the model using alias"""
68
53
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -88,11 +73,9 @@ class UpdateOrganizationRole(BaseModel):
88
73
  are ignored.
89
74
  * Fields in `self.additional_properties` are added to the output dict.
90
75
  """
91
- excluded_fields: Set[str] = set(
92
- [
93
- "additional_properties",
94
- ]
95
- )
76
+ excluded_fields: Set[str] = set([
77
+ "additional_properties",
78
+ ])
96
79
 
97
80
  _dict = self.model_dump(
98
81
  by_alias=True,
@@ -115,12 +98,16 @@ class UpdateOrganizationRole(BaseModel):
115
98
  if not isinstance(obj, dict):
116
99
  return cls.model_validate(obj)
117
100
 
118
- _obj = cls.model_validate(
119
- {"name": obj.get("name"), "description": obj.get("description"), "permissions": obj.get("permissions")}
120
- )
101
+ _obj = cls.model_validate({
102
+ "name": obj.get("name"),
103
+ "description": obj.get("description"),
104
+ "permissions": obj.get("permissions")
105
+ })
121
106
  # store additional fields in additional_properties
122
107
  for _key in obj.keys():
123
108
  if _key not in cls.__properties:
124
109
  _obj.additional_properties[_key] = obj.get(_key)
125
110
 
126
111
  return _obj
112
+
113
+
@@ -23,12 +23,10 @@ from typing import Any, ClassVar, Dict, List, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class UsageOverview(BaseModel):
28
27
  """
29
28
  UsageOverview
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  total_cpu_quota: Union[StrictFloat, StrictInt] = Field(alias="totalCpuQuota")
33
31
  total_gpu_quota: Union[StrictFloat, StrictInt] = Field(alias="totalGpuQuota")
34
32
  total_memory_quota: Union[StrictFloat, StrictInt] = Field(alias="totalMemoryQuota")
@@ -37,15 +35,7 @@ class UsageOverview(BaseModel):
37
35
  current_memory_usage: Union[StrictFloat, StrictInt] = Field(alias="currentMemoryUsage")
38
36
  current_disk_usage: Union[StrictFloat, StrictInt] = Field(alias="currentDiskUsage")
39
37
  additional_properties: Dict[str, Any] = {}
40
- __properties: ClassVar[List[str]] = [
41
- "totalCpuQuota",
42
- "totalGpuQuota",
43
- "totalMemoryQuota",
44
- "totalDiskQuota",
45
- "currentCpuUsage",
46
- "currentMemoryUsage",
47
- "currentDiskUsage",
48
- ]
38
+ __properties: ClassVar[List[str]] = ["totalCpuQuota", "totalGpuQuota", "totalMemoryQuota", "totalDiskQuota", "currentCpuUsage", "currentMemoryUsage", "currentDiskUsage"]
49
39
 
50
40
  model_config = ConfigDict(
51
41
  populate_by_name=True,
@@ -53,6 +43,7 @@ class UsageOverview(BaseModel):
53
43
  protected_namespaces=(),
54
44
  )
55
45
 
46
+
56
47
  def to_str(self) -> str:
57
48
  """Returns the string representation of the model using alias"""
58
49
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -78,11 +69,9 @@ class UsageOverview(BaseModel):
78
69
  are ignored.
79
70
  * Fields in `self.additional_properties` are added to the output dict.
80
71
  """
81
- excluded_fields: Set[str] = set(
82
- [
83
- "additional_properties",
84
- ]
85
- )
72
+ excluded_fields: Set[str] = set([
73
+ "additional_properties",
74
+ ])
86
75
 
87
76
  _dict = self.model_dump(
88
77
  by_alias=True,
@@ -105,20 +94,20 @@ class UsageOverview(BaseModel):
105
94
  if not isinstance(obj, dict):
106
95
  return cls.model_validate(obj)
107
96
 
108
- _obj = cls.model_validate(
109
- {
110
- "totalCpuQuota": obj.get("totalCpuQuota"),
111
- "totalGpuQuota": obj.get("totalGpuQuota"),
112
- "totalMemoryQuota": obj.get("totalMemoryQuota"),
113
- "totalDiskQuota": obj.get("totalDiskQuota"),
114
- "currentCpuUsage": obj.get("currentCpuUsage"),
115
- "currentMemoryUsage": obj.get("currentMemoryUsage"),
116
- "currentDiskUsage": obj.get("currentDiskUsage"),
117
- }
118
- )
97
+ _obj = cls.model_validate({
98
+ "totalCpuQuota": obj.get("totalCpuQuota"),
99
+ "totalGpuQuota": obj.get("totalGpuQuota"),
100
+ "totalMemoryQuota": obj.get("totalMemoryQuota"),
101
+ "totalDiskQuota": obj.get("totalDiskQuota"),
102
+ "currentCpuUsage": obj.get("currentCpuUsage"),
103
+ "currentMemoryUsage": obj.get("currentMemoryUsage"),
104
+ "currentDiskUsage": obj.get("currentDiskUsage")
105
+ })
119
106
  # store additional fields in additional_properties
120
107
  for _key in obj.keys():
121
108
  if _key not in cls.__properties:
122
109
  _obj.additional_properties[_key] = obj.get(_key)
123
110
 
124
111
  return _obj
112
+
113
+