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, Union
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class FileInfo(BaseModel):
28
27
  """
29
28
  FileInfo
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  name: StrictStr
33
31
  is_dir: StrictBool = Field(alias="isDir")
34
32
  size: Union[StrictFloat, StrictInt]
@@ -46,6 +44,7 @@ class FileInfo(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 FileInfo(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,21 +95,21 @@ class FileInfo(BaseModel):
98
95
  if not isinstance(obj, dict):
99
96
  return cls.model_validate(obj)
100
97
 
101
- _obj = cls.model_validate(
102
- {
103
- "name": obj.get("name"),
104
- "isDir": obj.get("isDir"),
105
- "size": obj.get("size"),
106
- "modTime": obj.get("modTime"),
107
- "mode": obj.get("mode"),
108
- "permissions": obj.get("permissions"),
109
- "owner": obj.get("owner"),
110
- "group": obj.get("group"),
111
- }
112
- )
98
+ _obj = cls.model_validate({
99
+ "name": obj.get("name"),
100
+ "isDir": obj.get("isDir"),
101
+ "size": obj.get("size"),
102
+ "modTime": obj.get("modTime"),
103
+ "mode": obj.get("mode"),
104
+ "permissions": obj.get("permissions"),
105
+ "owner": obj.get("owner"),
106
+ "group": obj.get("group")
107
+ })
113
108
  # store additional fields in additional_properties
114
109
  for _key in obj.keys():
115
110
  if _key not in cls.__properties:
116
111
  _obj.additional_properties[_key] = obj.get(_key)
117
112
 
118
113
  return _obj
114
+
115
+
@@ -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 FileStatus(BaseModel):
28
27
  """
29
28
  FileStatus
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  name: StrictStr
33
31
  staging: StrictStr
34
32
  worktree: StrictStr
@@ -42,6 +40,7 @@ class FileStatus(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 FileStatus(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,
@@ -94,17 +91,17 @@ class FileStatus(BaseModel):
94
91
  if not isinstance(obj, dict):
95
92
  return cls.model_validate(obj)
96
93
 
97
- _obj = cls.model_validate(
98
- {
99
- "name": obj.get("name"),
100
- "staging": obj.get("staging"),
101
- "worktree": obj.get("worktree"),
102
- "extra": obj.get("extra"),
103
- }
104
- )
94
+ _obj = cls.model_validate({
95
+ "name": obj.get("name"),
96
+ "staging": obj.get("staging"),
97
+ "worktree": obj.get("worktree"),
98
+ "extra": obj.get("extra")
99
+ })
105
100
  # store additional fields in additional_properties
106
101
  for _key in obj.keys():
107
102
  if _key not in cls.__properties:
108
103
  _obj.additional_properties[_key] = obj.get(_key)
109
104
 
110
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 GitAddRequest(BaseModel):
28
27
  """
29
28
  GitAddRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  files: List[StrictStr] = Field(description="files to add (use . for all files)")
34
32
  additional_properties: Dict[str, Any] = {}
@@ -40,6 +38,7 @@ class GitAddRequest(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 GitAddRequest(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 GitAddRequest(BaseModel):
92
89
  if not isinstance(obj, dict):
93
90
  return cls.model_validate(obj)
94
91
 
95
- _obj = cls.model_validate({"path": obj.get("path"), "files": obj.get("files")})
92
+ _obj = cls.model_validate({
93
+ "path": obj.get("path"),
94
+ "files": obj.get("files")
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
+
@@ -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 GitBranchRequest(BaseModel):
28
27
  """
29
28
  GitBranchRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  name: StrictStr
34
32
  additional_properties: Dict[str, Any] = {}
@@ -40,6 +38,7 @@ class GitBranchRequest(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 GitBranchRequest(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 GitBranchRequest(BaseModel):
92
89
  if not isinstance(obj, dict):
93
90
  return cls.model_validate(obj)
94
91
 
95
- _obj = cls.model_validate({"path": obj.get("path"), "name": obj.get("name")})
92
+ _obj = cls.model_validate({
93
+ "path": obj.get("path"),
94
+ "name": obj.get("name")
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
+
@@ -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 GitCheckoutRequest(BaseModel):
28
27
  """
29
28
  GitCheckoutRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  branch: StrictStr
34
32
  additional_properties: Dict[str, Any] = {}
@@ -40,6 +38,7 @@ class GitCheckoutRequest(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 GitCheckoutRequest(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 GitCheckoutRequest(BaseModel):
92
89
  if not isinstance(obj, dict):
93
90
  return cls.model_validate(obj)
94
91
 
95
- _obj = cls.model_validate({"path": obj.get("path"), "branch": obj.get("branch")})
92
+ _obj = cls.model_validate({
93
+ "path": obj.get("path"),
94
+ "branch": obj.get("branch")
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
+
@@ -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 GitCloneRequest(BaseModel):
28
27
  """
29
28
  GitCloneRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  url: StrictStr
33
31
  path: StrictStr
34
32
  username: Optional[StrictStr] = None
@@ -44,6 +42,7 @@ class GitCloneRequest(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 GitCloneRequest(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,
@@ -96,19 +93,19 @@ class GitCloneRequest(BaseModel):
96
93
  if not isinstance(obj, dict):
97
94
  return cls.model_validate(obj)
98
95
 
99
- _obj = cls.model_validate(
100
- {
101
- "url": obj.get("url"),
102
- "path": obj.get("path"),
103
- "username": obj.get("username"),
104
- "password": obj.get("password"),
105
- "branch": obj.get("branch"),
106
- "commit_id": obj.get("commit_id"),
107
- }
108
- )
96
+ _obj = cls.model_validate({
97
+ "url": obj.get("url"),
98
+ "path": obj.get("path"),
99
+ "username": obj.get("username"),
100
+ "password": obj.get("password"),
101
+ "branch": obj.get("branch"),
102
+ "commit_id": obj.get("commit_id")
103
+ })
109
104
  # store additional fields in additional_properties
110
105
  for _key in obj.keys():
111
106
  if _key not in cls.__properties:
112
107
  _obj.additional_properties[_key] = obj.get(_key)
113
108
 
114
109
  return _obj
110
+
111
+
@@ -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 GitCommitInfo(BaseModel):
28
27
  """
29
28
  GitCommitInfo
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  hash: StrictStr
33
31
  message: StrictStr
34
32
  author: StrictStr
@@ -43,6 +41,7 @@ class GitCommitInfo(BaseModel):
43
41
  protected_namespaces=(),
44
42
  )
45
43
 
44
+
46
45
  def to_str(self) -> str:
47
46
  """Returns the string representation of the model using alias"""
48
47
  return pprint.pformat(self.model_dump(by_alias=True))
@@ -68,11 +67,9 @@ class GitCommitInfo(BaseModel):
68
67
  are ignored.
69
68
  * Fields in `self.additional_properties` are added to the output dict.
70
69
  """
71
- excluded_fields: Set[str] = set(
72
- [
73
- "additional_properties",
74
- ]
75
- )
70
+ excluded_fields: Set[str] = set([
71
+ "additional_properties",
72
+ ])
76
73
 
77
74
  _dict = self.model_dump(
78
75
  by_alias=True,
@@ -95,18 +92,18 @@ class GitCommitInfo(BaseModel):
95
92
  if not isinstance(obj, dict):
96
93
  return cls.model_validate(obj)
97
94
 
98
- _obj = cls.model_validate(
99
- {
100
- "hash": obj.get("hash"),
101
- "message": obj.get("message"),
102
- "author": obj.get("author"),
103
- "email": obj.get("email"),
104
- "timestamp": obj.get("timestamp"),
105
- }
106
- )
95
+ _obj = cls.model_validate({
96
+ "hash": obj.get("hash"),
97
+ "message": obj.get("message"),
98
+ "author": obj.get("author"),
99
+ "email": obj.get("email"),
100
+ "timestamp": obj.get("timestamp")
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
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
-
27
26
  class GitCommitRequest(BaseModel):
28
27
  """
29
28
  GitCommitRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  message: StrictStr
34
32
  author: StrictStr
@@ -42,6 +40,7 @@ class GitCommitRequest(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 GitCommitRequest(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,
@@ -94,17 +91,17 @@ class GitCommitRequest(BaseModel):
94
91
  if not isinstance(obj, dict):
95
92
  return cls.model_validate(obj)
96
93
 
97
- _obj = cls.model_validate(
98
- {
99
- "path": obj.get("path"),
100
- "message": obj.get("message"),
101
- "author": obj.get("author"),
102
- "email": obj.get("email"),
103
- }
104
- )
94
+ _obj = cls.model_validate({
95
+ "path": obj.get("path"),
96
+ "message": obj.get("message"),
97
+ "author": obj.get("author"),
98
+ "email": obj.get("email")
99
+ })
105
100
  # store additional fields in additional_properties
106
101
  for _key in obj.keys():
107
102
  if _key not in cls.__properties:
108
103
  _obj.additional_properties[_key] = obj.get(_key)
109
104
 
110
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 GitCommitResponse(BaseModel):
28
27
  """
29
28
  GitCommitResponse
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  hash: StrictStr
33
31
  additional_properties: Dict[str, Any] = {}
34
32
  __properties: ClassVar[List[str]] = ["hash"]
@@ -39,6 +37,7 @@ class GitCommitResponse(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 GitCommitResponse(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 GitCommitResponse(BaseModel):
91
88
  if not isinstance(obj, dict):
92
89
  return cls.model_validate(obj)
93
90
 
94
- _obj = cls.model_validate({"hash": obj.get("hash")})
91
+ _obj = cls.model_validate({
92
+ "hash": obj.get("hash")
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 GitDeleteBranchRequest(BaseModel):
28
27
  """
29
28
  GitDeleteBranchRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  name: StrictStr
34
32
  additional_properties: Dict[str, Any] = {}
@@ -40,6 +38,7 @@ class GitDeleteBranchRequest(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 GitDeleteBranchRequest(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 GitDeleteBranchRequest(BaseModel):
92
89
  if not isinstance(obj, dict):
93
90
  return cls.model_validate(obj)
94
91
 
95
- _obj = cls.model_validate({"path": obj.get("path"), "name": obj.get("name")})
92
+ _obj = cls.model_validate({
93
+ "path": obj.get("path"),
94
+ "name": obj.get("name")
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
+
@@ -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 GitRepoRequest(BaseModel):
28
27
  """
29
28
  GitRepoRequest
30
- """ # noqa: E501
31
-
29
+ """ # noqa: E501
32
30
  path: StrictStr
33
31
  username: Optional[StrictStr] = None
34
32
  password: Optional[StrictStr] = None
@@ -41,6 +39,7 @@ class GitRepoRequest(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 GitRepoRequest(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 GitRepoRequest(BaseModel):
93
90
  if not isinstance(obj, dict):
94
91
  return cls.model_validate(obj)
95
92
 
96
- _obj = cls.model_validate(
97
- {"path": obj.get("path"), "username": obj.get("username"), "password": obj.get("password")}
98
- )
93
+ _obj = cls.model_validate({
94
+ "path": obj.get("path"),
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
+