daytona_api_client 0.21.3a0__py3-none-any.whl → 0.21.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.

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.4a0.dist-info}/METADATA +1 -1
  104. daytona_api_client-0.21.4a0.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.4a0.dist-info}/WHEEL +0 -0
  107. {daytona_api_client-0.21.3a0.dist-info → daytona_api_client-0.21.4a0.dist-info}/top_level.txt +0 -0
@@ -24,12 +24,10 @@ from daytona_api_client.models.file_status import FileStatus
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
27
  class GitStatus(BaseModel):
29
28
  """
30
29
  GitStatus
31
- """ # noqa: E501
32
-
30
+ """ # noqa: E501
33
31
  current_branch: StrictStr = Field(alias="currentBranch")
34
32
  file_status: List[FileStatus] = Field(alias="fileStatus")
35
33
  ahead: Optional[Union[StrictFloat, StrictInt]] = None
@@ -44,6 +42,7 @@ class GitStatus(BaseModel):
44
42
  protected_namespaces=(),
45
43
  )
46
44
 
45
+
47
46
  def to_str(self) -> str:
48
47
  """Returns the string representation of the model using alias"""
49
48
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -69,11 +68,9 @@ class GitStatus(BaseModel):
69
68
  are ignored.
70
69
  * Fields in `self.additional_properties` are added to the output dict.
71
70
  """
72
- excluded_fields: Set[str] = set(
73
- [
74
- "additional_properties",
75
- ]
76
- )
71
+ excluded_fields: Set[str] = set([
72
+ "additional_properties",
73
+ ])
77
74
 
78
75
  _dict = self.model_dump(
79
76
  by_alias=True,
@@ -86,7 +83,7 @@ class GitStatus(BaseModel):
86
83
  for _item_file_status in self.file_status:
87
84
  if _item_file_status:
88
85
  _items.append(_item_file_status.to_dict())
89
- _dict["fileStatus"] = _items
86
+ _dict['fileStatus'] = _items
90
87
  # puts key-value pairs in additional_properties in the top level
91
88
  if self.additional_properties is not None:
92
89
  for _key, _value in self.additional_properties.items():
@@ -103,20 +100,18 @@ class GitStatus(BaseModel):
103
100
  if not isinstance(obj, dict):
104
101
  return cls.model_validate(obj)
105
102
 
106
- _obj = cls.model_validate(
107
- {
108
- "currentBranch": obj.get("currentBranch"),
109
- "fileStatus": [FileStatus.from_dict(_item) for _item in obj["fileStatus"]]
110
- if obj.get("fileStatus") is not None
111
- else None,
112
- "ahead": obj.get("ahead"),
113
- "behind": obj.get("behind"),
114
- "branchPublished": obj.get("branchPublished"),
115
- }
116
- )
103
+ _obj = cls.model_validate({
104
+ "currentBranch": obj.get("currentBranch"),
105
+ "fileStatus": [FileStatus.from_dict(_item) for _item in obj["fileStatus"]] if obj.get("fileStatus") is not None else None,
106
+ "ahead": obj.get("ahead"),
107
+ "behind": obj.get("behind"),
108
+ "branchPublished": obj.get("branchPublished")
109
+ })
117
110
  # store additional fields in additional_properties
118
111
  for _key in obj.keys():
119
112
  if _key not in cls.__properties:
120
113
  _obj.additional_properties[_key] = obj.get(_key)
121
114
 
122
115
  return _obj
116
+
117
+
@@ -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 ListBranchResponse(BaseModel):
28
27
  """
29
28
  ListBranchResponse
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  branches: List[StrictStr]
33
31
  additional_properties: Dict[str, Any] = {}
34
32
  __properties: ClassVar[List[str]] = ["branches"]
@@ -39,6 +37,7 @@ class ListBranchResponse(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 ListBranchResponse(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 ListBranchResponse(BaseModel):
91
88
  if not isinstance(obj, dict):
92
89
  return cls.model_validate(obj)
93
90
 
94
- _obj = cls.model_validate({"branches": obj.get("branches")})
91
+ _obj = cls.model_validate({
92
+ "branches": obj.get("branches")
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
+
@@ -25,12 +25,10 @@ from daytona_api_client.models.position import Position
25
25
  from typing import Optional, Set
26
26
  from typing_extensions import Self
27
27
 
28
-
29
28
  class LspCompletionParams(BaseModel):
30
29
  """
31
30
  LspCompletionParams
32
- """ # noqa: E501
33
-
31
+ """ # noqa: E501
34
32
  language_id: StrictStr = Field(description="Language identifier", alias="languageId")
35
33
  path_to_project: StrictStr = Field(description="Path to the project", alias="pathToProject")
36
34
  uri: StrictStr = Field(description="Document URI")
@@ -45,6 +43,7 @@ class LspCompletionParams(BaseModel):
45
43
  protected_namespaces=(),
46
44
  )
47
45
 
46
+
48
47
  def to_str(self) -> str:
49
48
  """Returns the string representation of the model using alias"""
50
49
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -70,11 +69,9 @@ class LspCompletionParams(BaseModel):
70
69
  are ignored.
71
70
  * Fields in `self.additional_properties` are added to the output dict.
72
71
  """
73
- excluded_fields: Set[str] = set(
74
- [
75
- "additional_properties",
76
- ]
77
- )
72
+ excluded_fields: Set[str] = set([
73
+ "additional_properties",
74
+ ])
78
75
 
79
76
  _dict = self.model_dump(
80
77
  by_alias=True,
@@ -83,10 +80,10 @@ class LspCompletionParams(BaseModel):
83
80
  )
84
81
  # override the default output from pydantic by calling `to_dict()` of position
85
82
  if self.position:
86
- _dict["position"] = self.position.to_dict()
83
+ _dict['position'] = self.position.to_dict()
87
84
  # override the default output from pydantic by calling `to_dict()` of context
88
85
  if self.context:
89
- _dict["context"] = self.context.to_dict()
86
+ _dict['context'] = self.context.to_dict()
90
87
  # puts key-value pairs in additional_properties in the top level
91
88
  if self.additional_properties is not None:
92
89
  for _key, _value in self.additional_properties.items():
@@ -103,18 +100,18 @@ class LspCompletionParams(BaseModel):
103
100
  if not isinstance(obj, dict):
104
101
  return cls.model_validate(obj)
105
102
 
106
- _obj = cls.model_validate(
107
- {
108
- "languageId": obj.get("languageId"),
109
- "pathToProject": obj.get("pathToProject"),
110
- "uri": obj.get("uri"),
111
- "position": Position.from_dict(obj["position"]) if obj.get("position") is not None else None,
112
- "context": CompletionContext.from_dict(obj["context"]) if obj.get("context") is not None else None,
113
- }
114
- )
103
+ _obj = cls.model_validate({
104
+ "languageId": obj.get("languageId"),
105
+ "pathToProject": obj.get("pathToProject"),
106
+ "uri": obj.get("uri"),
107
+ "position": Position.from_dict(obj["position"]) if obj.get("position") is not None else None,
108
+ "context": CompletionContext.from_dict(obj["context"]) if obj.get("context") is not None else None
109
+ })
115
110
  # store additional fields in additional_properties
116
111
  for _key in obj.keys():
117
112
  if _key not in cls.__properties:
118
113
  _obj.additional_properties[_key] = obj.get(_key)
119
114
 
120
115
  return _obj
116
+
117
+
@@ -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 LspDocumentRequest(BaseModel):
28
27
  """
29
28
  LspDocumentRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  language_id: StrictStr = Field(description="Language identifier", alias="languageId")
33
31
  path_to_project: StrictStr = Field(description="Path to the project", alias="pathToProject")
34
32
  uri: StrictStr = Field(description="Document URI")
@@ -41,6 +39,7 @@ class LspDocumentRequest(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 LspDocumentRequest(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 LspDocumentRequest(BaseModel):
93
90
  if not isinstance(obj, dict):
94
91
  return cls.model_validate(obj)
95
92
 
96
- _obj = cls.model_validate(
97
- {"languageId": obj.get("languageId"), "pathToProject": obj.get("pathToProject"), "uri": obj.get("uri")}
98
- )
93
+ _obj = cls.model_validate({
94
+ "languageId": obj.get("languageId"),
95
+ "pathToProject": obj.get("pathToProject"),
96
+ "uri": obj.get("uri")
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,12 +24,10 @@ from daytona_api_client.models.range import Range
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
27
  class LspLocation(BaseModel):
29
28
  """
30
29
  LspLocation
31
- """ # noqa: E501
32
-
30
+ """ # noqa: E501
33
31
  range: Range
34
32
  uri: StrictStr
35
33
  additional_properties: Dict[str, Any] = {}
@@ -41,6 +39,7 @@ class LspLocation(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 LspLocation(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,
@@ -79,7 +76,7 @@ class LspLocation(BaseModel):
79
76
  )
80
77
  # override the default output from pydantic by calling `to_dict()` of range
81
78
  if self.range:
82
- _dict["range"] = self.range.to_dict()
79
+ _dict['range'] = self.range.to_dict()
83
80
  # puts key-value pairs in additional_properties in the top level
84
81
  if self.additional_properties is not None:
85
82
  for _key, _value in self.additional_properties.items():
@@ -96,12 +93,15 @@ class LspLocation(BaseModel):
96
93
  if not isinstance(obj, dict):
97
94
  return cls.model_validate(obj)
98
95
 
99
- _obj = cls.model_validate(
100
- {"range": Range.from_dict(obj["range"]) if obj.get("range") is not None else None, "uri": obj.get("uri")}
101
- )
96
+ _obj = cls.model_validate({
97
+ "range": Range.from_dict(obj["range"]) if obj.get("range") is not None else None,
98
+ "uri": obj.get("uri")
99
+ })
102
100
  # store additional fields in additional_properties
103
101
  for _key in obj.keys():
104
102
  if _key not in cls.__properties:
105
103
  _obj.additional_properties[_key] = obj.get(_key)
106
104
 
107
105
  return _obj
106
+
107
+
@@ -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 LspServerRequest(BaseModel):
28
27
  """
29
28
  LspServerRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  language_id: StrictStr = Field(description="Language identifier", alias="languageId")
33
31
  path_to_project: StrictStr = Field(description="Path to the project", alias="pathToProject")
34
32
  additional_properties: Dict[str, Any] = {}
@@ -40,6 +38,7 @@ class LspServerRequest(BaseModel):
40
38
  protected_namespaces=(),
41
39
  )
42
40
 
41
+
43
42
  def to_str(self) -> str:
44
43
  """Returns the string representation of the model using alias"""
45
44
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -65,11 +64,9 @@ class LspServerRequest(BaseModel):
65
64
  are ignored.
66
65
  * Fields in `self.additional_properties` are added to the output dict.
67
66
  """
68
- excluded_fields: Set[str] = set(
69
- [
70
- "additional_properties",
71
- ]
72
- )
67
+ excluded_fields: Set[str] = set([
68
+ "additional_properties",
69
+ ])
73
70
 
74
71
  _dict = self.model_dump(
75
72
  by_alias=True,
@@ -92,10 +89,15 @@ class LspServerRequest(BaseModel):
92
89
  if not isinstance(obj, dict):
93
90
  return cls.model_validate(obj)
94
91
 
95
- _obj = cls.model_validate({"languageId": obj.get("languageId"), "pathToProject": obj.get("pathToProject")})
92
+ _obj = cls.model_validate({
93
+ "languageId": obj.get("languageId"),
94
+ "pathToProject": obj.get("pathToProject")
95
+ })
96
96
  # store additional fields in additional_properties
97
97
  for _key in obj.keys():
98
98
  if _key not in cls.__properties:
99
99
  _obj.additional_properties[_key] = obj.get(_key)
100
100
 
101
101
  return _obj
102
+
103
+
@@ -24,12 +24,10 @@ from daytona_api_client.models.lsp_location import LspLocation
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
27
  class LspSymbol(BaseModel):
29
28
  """
30
29
  LspSymbol
31
- """ # noqa: E501
32
-
30
+ """ # noqa: E501
33
31
  kind: Union[StrictFloat, StrictInt]
34
32
  location: LspLocation
35
33
  name: StrictStr
@@ -42,6 +40,7 @@ class LspSymbol(BaseModel):
42
40
  protected_namespaces=(),
43
41
  )
44
42
 
43
+
45
44
  def to_str(self) -> str:
46
45
  """Returns the string representation of the model using alias"""
47
46
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -67,11 +66,9 @@ class LspSymbol(BaseModel):
67
66
  are ignored.
68
67
  * Fields in `self.additional_properties` are added to the output dict.
69
68
  """
70
- excluded_fields: Set[str] = set(
71
- [
72
- "additional_properties",
73
- ]
74
- )
69
+ excluded_fields: Set[str] = set([
70
+ "additional_properties",
71
+ ])
75
72
 
76
73
  _dict = self.model_dump(
77
74
  by_alias=True,
@@ -80,7 +77,7 @@ class LspSymbol(BaseModel):
80
77
  )
81
78
  # override the default output from pydantic by calling `to_dict()` of location
82
79
  if self.location:
83
- _dict["location"] = self.location.to_dict()
80
+ _dict['location'] = self.location.to_dict()
84
81
  # puts key-value pairs in additional_properties in the top level
85
82
  if self.additional_properties is not None:
86
83
  for _key, _value in self.additional_properties.items():
@@ -97,16 +94,16 @@ class LspSymbol(BaseModel):
97
94
  if not isinstance(obj, dict):
98
95
  return cls.model_validate(obj)
99
96
 
100
- _obj = cls.model_validate(
101
- {
102
- "kind": obj.get("kind"),
103
- "location": LspLocation.from_dict(obj["location"]) if obj.get("location") is not None else None,
104
- "name": obj.get("name"),
105
- }
106
- )
97
+ _obj = cls.model_validate({
98
+ "kind": obj.get("kind"),
99
+ "location": LspLocation.from_dict(obj["location"]) if obj.get("location") is not None else None,
100
+ "name": obj.get("name")
101
+ })
107
102
  # store additional fields in additional_properties
108
103
  for _key in obj.keys():
109
104
  if _key not in cls.__properties:
110
105
  _obj.additional_properties[_key] = obj.get(_key)
111
106
 
112
107
  return _obj
108
+
109
+
@@ -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 Match(BaseModel):
28
27
  """
29
28
  Match
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  file: StrictStr
33
31
  line: Union[StrictFloat, StrictInt]
34
32
  content: StrictStr
@@ -41,6 +39,7 @@ class Match(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 Match(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,10 +90,16 @@ class Match(BaseModel):
93
90
  if not isinstance(obj, dict):
94
91
  return cls.model_validate(obj)
95
92
 
96
- _obj = cls.model_validate({"file": obj.get("file"), "line": obj.get("line"), "content": obj.get("content")})
93
+ _obj = cls.model_validate({
94
+ "file": obj.get("file"),
95
+ "line": obj.get("line"),
96
+ "content": obj.get("content")
97
+ })
97
98
  # store additional fields in additional_properties
98
99
  for _key in obj.keys():
99
100
  if _key not in cls.__properties:
100
101
  _obj.additional_properties[_key] = obj.get(_key)
101
102
 
102
103
  return _obj
104
+
105
+
@@ -24,12 +24,10 @@ from typing import Any, ClassVar, Dict, List
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
-
28
27
  class Organization(BaseModel):
29
28
  """
30
29
  Organization
31
- """ # noqa: E501
32
-
30
+ """ # noqa: E501
33
31
  id: StrictStr = Field(description="Organization ID")
34
32
  name: StrictStr = Field(description="Organization name")
35
33
  created_by: StrictStr = Field(description="User ID of the organization creator", alias="createdBy")
@@ -41,18 +39,7 @@ class Organization(BaseModel):
41
39
  suspension_reason: StrictStr = Field(description="Suspended reason", alias="suspensionReason")
42
40
  suspended_until: datetime = Field(description="Suspended until", alias="suspendedUntil")
43
41
  additional_properties: Dict[str, Any] = {}
44
- __properties: ClassVar[List[str]] = [
45
- "id",
46
- "name",
47
- "createdBy",
48
- "personal",
49
- "createdAt",
50
- "updatedAt",
51
- "suspended",
52
- "suspendedAt",
53
- "suspensionReason",
54
- "suspendedUntil",
55
- ]
42
+ __properties: ClassVar[List[str]] = ["id", "name", "createdBy", "personal", "createdAt", "updatedAt", "suspended", "suspendedAt", "suspensionReason", "suspendedUntil"]
56
43
 
57
44
  model_config = ConfigDict(
58
45
  populate_by_name=True,
@@ -60,6 +47,7 @@ class Organization(BaseModel):
60
47
  protected_namespaces=(),
61
48
  )
62
49
 
50
+
63
51
  def to_str(self) -> str:
64
52
  """Returns the string representation of the model using alias"""
65
53
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -85,11 +73,9 @@ class Organization(BaseModel):
85
73
  are ignored.
86
74
  * Fields in `self.additional_properties` are added to the output dict.
87
75
  """
88
- excluded_fields: Set[str] = set(
89
- [
90
- "additional_properties",
91
- ]
92
- )
76
+ excluded_fields: Set[str] = set([
77
+ "additional_properties",
78
+ ])
93
79
 
94
80
  _dict = self.model_dump(
95
81
  by_alias=True,
@@ -112,23 +98,23 @@ class Organization(BaseModel):
112
98
  if not isinstance(obj, dict):
113
99
  return cls.model_validate(obj)
114
100
 
115
- _obj = cls.model_validate(
116
- {
117
- "id": obj.get("id"),
118
- "name": obj.get("name"),
119
- "createdBy": obj.get("createdBy"),
120
- "personal": obj.get("personal"),
121
- "createdAt": obj.get("createdAt"),
122
- "updatedAt": obj.get("updatedAt"),
123
- "suspended": obj.get("suspended"),
124
- "suspendedAt": obj.get("suspendedAt"),
125
- "suspensionReason": obj.get("suspensionReason"),
126
- "suspendedUntil": obj.get("suspendedUntil"),
127
- }
128
- )
101
+ _obj = cls.model_validate({
102
+ "id": obj.get("id"),
103
+ "name": obj.get("name"),
104
+ "createdBy": obj.get("createdBy"),
105
+ "personal": obj.get("personal"),
106
+ "createdAt": obj.get("createdAt"),
107
+ "updatedAt": obj.get("updatedAt"),
108
+ "suspended": obj.get("suspended"),
109
+ "suspendedAt": obj.get("suspendedAt"),
110
+ "suspensionReason": obj.get("suspensionReason"),
111
+ "suspendedUntil": obj.get("suspendedUntil")
112
+ })
129
113
  # store additional fields in additional_properties
130
114
  for _key in obj.keys():
131
115
  if _key not in cls.__properties:
132
116
  _obj.additional_properties[_key] = obj.get(_key)
133
117
 
134
118
  return _obj
119
+
120
+