daytona_toolbox_api_client 0.102.0rc2__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_toolbox_api_client might be problematic. Click here for more details.
- daytona_daemon_api_client/__init__.py +102 -0
- daytona_daemon_api_client/api/__init__.py +11 -0
- daytona_daemon_api_client/api/computer_use_api.py +6077 -0
- daytona_daemon_api_client/api/file_system_api.py +3463 -0
- daytona_daemon_api_client/api/git_api.py +3052 -0
- daytona_daemon_api_client/api/info_api.py +528 -0
- daytona_daemon_api_client/api/lsp_api.py +2027 -0
- daytona_daemon_api_client/api/port_api.py +547 -0
- daytona_daemon_api_client/api/process_api.py +2262 -0
- daytona_daemon_api_client/api_client.py +797 -0
- daytona_daemon_api_client/api_response.py +21 -0
- daytona_daemon_api_client/configuration.py +572 -0
- daytona_daemon_api_client/exceptions.py +216 -0
- daytona_daemon_api_client/models/__init__.py +79 -0
- daytona_daemon_api_client/models/command.py +104 -0
- daytona_daemon_api_client/models/completion_context.py +102 -0
- daytona_daemon_api_client/models/completion_item.py +112 -0
- daytona_daemon_api_client/models/completion_list.py +110 -0
- daytona_daemon_api_client/models/computer_use_start_response.py +115 -0
- daytona_daemon_api_client/models/computer_use_status_response.py +100 -0
- daytona_daemon_api_client/models/computer_use_stop_response.py +115 -0
- daytona_daemon_api_client/models/create_session_request.py +100 -0
- daytona_daemon_api_client/models/display_info.py +110 -0
- daytona_daemon_api_client/models/display_info_response.py +108 -0
- daytona_daemon_api_client/models/execute_request.py +104 -0
- daytona_daemon_api_client/models/execute_response.py +102 -0
- daytona_daemon_api_client/models/file_info.py +114 -0
- daytona_daemon_api_client/models/file_status.py +107 -0
- daytona_daemon_api_client/models/git_add_request.py +102 -0
- daytona_daemon_api_client/models/git_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_checkout_request.py +102 -0
- daytona_daemon_api_client/models/git_clone_request.py +110 -0
- daytona_daemon_api_client/models/git_commit_info.py +108 -0
- daytona_daemon_api_client/models/git_commit_request.py +108 -0
- daytona_daemon_api_client/models/git_commit_response.py +100 -0
- daytona_daemon_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_repo_request.py +104 -0
- daytona_daemon_api_client/models/git_status.py +116 -0
- daytona_daemon_api_client/models/is_port_in_use_response.py +100 -0
- daytona_daemon_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_daemon_api_client/models/keyboard_press_request.py +102 -0
- daytona_daemon_api_client/models/keyboard_type_request.py +102 -0
- daytona_daemon_api_client/models/list_branch_response.py +100 -0
- daytona_daemon_api_client/models/lsp_completion_params.py +116 -0
- daytona_daemon_api_client/models/lsp_document_request.py +104 -0
- daytona_daemon_api_client/models/lsp_location.py +106 -0
- daytona_daemon_api_client/models/lsp_position.py +102 -0
- daytona_daemon_api_client/models/lsp_range.py +109 -0
- daytona_daemon_api_client/models/lsp_server_request.py +102 -0
- daytona_daemon_api_client/models/lsp_symbol.py +108 -0
- daytona_daemon_api_client/models/match.py +104 -0
- daytona_daemon_api_client/models/mouse_click_request.py +106 -0
- daytona_daemon_api_client/models/mouse_click_response.py +102 -0
- daytona_daemon_api_client/models/mouse_drag_request.py +108 -0
- daytona_daemon_api_client/models/mouse_drag_response.py +102 -0
- daytona_daemon_api_client/models/mouse_move_request.py +102 -0
- daytona_daemon_api_client/models/mouse_position_response.py +102 -0
- daytona_daemon_api_client/models/mouse_scroll_request.py +106 -0
- daytona_daemon_api_client/models/port_list.py +100 -0
- daytona_daemon_api_client/models/position.py +102 -0
- daytona_daemon_api_client/models/process_errors_response.py +102 -0
- daytona_daemon_api_client/models/process_logs_response.py +102 -0
- daytona_daemon_api_client/models/process_restart_response.py +102 -0
- daytona_daemon_api_client/models/process_status.py +106 -0
- daytona_daemon_api_client/models/process_status_response.py +102 -0
- daytona_daemon_api_client/models/project_dir_response.py +100 -0
- daytona_daemon_api_client/models/replace_request.py +104 -0
- daytona_daemon_api_client/models/replace_result.py +104 -0
- daytona_daemon_api_client/models/screenshot_response.py +108 -0
- daytona_daemon_api_client/models/scroll_response.py +100 -0
- daytona_daemon_api_client/models/search_files_response.py +100 -0
- daytona_daemon_api_client/models/session.py +110 -0
- daytona_daemon_api_client/models/session_execute_request.py +104 -0
- daytona_daemon_api_client/models/session_execute_response.py +108 -0
- daytona_daemon_api_client/models/status.py +43 -0
- daytona_daemon_api_client/models/window_info.py +112 -0
- daytona_daemon_api_client/models/windows_response.py +108 -0
- daytona_daemon_api_client/py.typed +0 -0
- daytona_daemon_api_client/rest.py +258 -0
- daytona_toolbox_api_client/__init__.py +102 -0
- daytona_toolbox_api_client/api/__init__.py +11 -0
- daytona_toolbox_api_client/api/computer_use_api.py +6011 -0
- daytona_toolbox_api_client/api/file_system_api.py +3310 -0
- daytona_toolbox_api_client/api/git_api.py +2970 -0
- daytona_toolbox_api_client/api/info_api.py +528 -0
- daytona_toolbox_api_client/api/lsp_api.py +1972 -0
- daytona_toolbox_api_client/api/port_api.py +544 -0
- daytona_toolbox_api_client/api/process_api.py +2200 -0
- daytona_toolbox_api_client/api_client.py +797 -0
- daytona_toolbox_api_client/api_response.py +21 -0
- daytona_toolbox_api_client/configuration.py +572 -0
- daytona_toolbox_api_client/exceptions.py +216 -0
- daytona_toolbox_api_client/models/__init__.py +79 -0
- daytona_toolbox_api_client/models/command.py +104 -0
- daytona_toolbox_api_client/models/completion_context.py +102 -0
- daytona_toolbox_api_client/models/completion_item.py +112 -0
- daytona_toolbox_api_client/models/completion_list.py +110 -0
- daytona_toolbox_api_client/models/computer_use_start_response.py +115 -0
- daytona_toolbox_api_client/models/computer_use_status_response.py +100 -0
- daytona_toolbox_api_client/models/computer_use_stop_response.py +115 -0
- daytona_toolbox_api_client/models/create_session_request.py +100 -0
- daytona_toolbox_api_client/models/display_info.py +110 -0
- daytona_toolbox_api_client/models/display_info_response.py +108 -0
- daytona_toolbox_api_client/models/execute_request.py +104 -0
- daytona_toolbox_api_client/models/execute_response.py +102 -0
- daytona_toolbox_api_client/models/file_info.py +114 -0
- daytona_toolbox_api_client/models/file_status.py +107 -0
- daytona_toolbox_api_client/models/git_add_request.py +102 -0
- daytona_toolbox_api_client/models/git_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_checkout_request.py +102 -0
- daytona_toolbox_api_client/models/git_clone_request.py +110 -0
- daytona_toolbox_api_client/models/git_commit_info.py +108 -0
- daytona_toolbox_api_client/models/git_commit_request.py +108 -0
- daytona_toolbox_api_client/models/git_commit_response.py +100 -0
- daytona_toolbox_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_repo_request.py +104 -0
- daytona_toolbox_api_client/models/git_status.py +116 -0
- daytona_toolbox_api_client/models/is_port_in_use_response.py +100 -0
- daytona_toolbox_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_toolbox_api_client/models/keyboard_press_request.py +102 -0
- daytona_toolbox_api_client/models/keyboard_type_request.py +102 -0
- daytona_toolbox_api_client/models/list_branch_response.py +100 -0
- daytona_toolbox_api_client/models/lsp_completion_params.py +116 -0
- daytona_toolbox_api_client/models/lsp_document_request.py +104 -0
- daytona_toolbox_api_client/models/lsp_location.py +106 -0
- daytona_toolbox_api_client/models/lsp_position.py +102 -0
- daytona_toolbox_api_client/models/lsp_range.py +109 -0
- daytona_toolbox_api_client/models/lsp_server_request.py +102 -0
- daytona_toolbox_api_client/models/lsp_symbol.py +108 -0
- daytona_toolbox_api_client/models/match.py +104 -0
- daytona_toolbox_api_client/models/mouse_click_request.py +106 -0
- daytona_toolbox_api_client/models/mouse_click_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_drag_request.py +108 -0
- daytona_toolbox_api_client/models/mouse_drag_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_move_request.py +102 -0
- daytona_toolbox_api_client/models/mouse_position_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_scroll_request.py +106 -0
- daytona_toolbox_api_client/models/port_list.py +100 -0
- daytona_toolbox_api_client/models/position.py +102 -0
- daytona_toolbox_api_client/models/process_errors_response.py +102 -0
- daytona_toolbox_api_client/models/process_logs_response.py +102 -0
- daytona_toolbox_api_client/models/process_restart_response.py +102 -0
- daytona_toolbox_api_client/models/process_status.py +106 -0
- daytona_toolbox_api_client/models/process_status_response.py +102 -0
- daytona_toolbox_api_client/models/project_dir_response.py +100 -0
- daytona_toolbox_api_client/models/replace_request.py +104 -0
- daytona_toolbox_api_client/models/replace_result.py +104 -0
- daytona_toolbox_api_client/models/screenshot_response.py +108 -0
- daytona_toolbox_api_client/models/scroll_response.py +100 -0
- daytona_toolbox_api_client/models/search_files_response.py +100 -0
- daytona_toolbox_api_client/models/session.py +110 -0
- daytona_toolbox_api_client/models/session_execute_request.py +104 -0
- daytona_toolbox_api_client/models/session_execute_response.py +108 -0
- daytona_toolbox_api_client/models/status.py +43 -0
- daytona_toolbox_api_client/models/window_info.py +112 -0
- daytona_toolbox_api_client/models/windows_response.py +108 -0
- daytona_toolbox_api_client/py.typed +0 -0
- daytona_toolbox_api_client/rest.py +258 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/METADATA +25 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/RECORD +163 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/WHEEL +5 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/licenses/LICENSE +190 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,2970 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v0.0.0-dev
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import List
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from daytona_toolbox_api_client.models.git_add_request import GitAddRequest
|
|
23
|
+
from daytona_toolbox_api_client.models.git_branch_request import GitBranchRequest
|
|
24
|
+
from daytona_toolbox_api_client.models.git_checkout_request import GitCheckoutRequest
|
|
25
|
+
from daytona_toolbox_api_client.models.git_clone_request import GitCloneRequest
|
|
26
|
+
from daytona_toolbox_api_client.models.git_commit_info import GitCommitInfo
|
|
27
|
+
from daytona_toolbox_api_client.models.git_commit_request import GitCommitRequest
|
|
28
|
+
from daytona_toolbox_api_client.models.git_commit_response import GitCommitResponse
|
|
29
|
+
from daytona_toolbox_api_client.models.git_git_delete_branch_request import GitGitDeleteBranchRequest
|
|
30
|
+
from daytona_toolbox_api_client.models.git_repo_request import GitRepoRequest
|
|
31
|
+
from daytona_toolbox_api_client.models.git_status import GitStatus
|
|
32
|
+
from daytona_toolbox_api_client.models.list_branch_response import ListBranchResponse
|
|
33
|
+
|
|
34
|
+
from daytona_toolbox_api_client.api_client import ApiClient, RequestSerialized
|
|
35
|
+
from daytona_toolbox_api_client.api_response import ApiResponse
|
|
36
|
+
from daytona_toolbox_api_client.rest import RESTResponseType
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class GitApi:
|
|
40
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
41
|
+
Ref: https://openapi-generator.tech
|
|
42
|
+
|
|
43
|
+
Do not edit the class manually.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def __init__(self, api_client=None) -> None:
|
|
47
|
+
if api_client is None:
|
|
48
|
+
api_client = ApiClient.get_default()
|
|
49
|
+
self.api_client = api_client
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@validate_call
|
|
53
|
+
def add_files(
|
|
54
|
+
self,
|
|
55
|
+
request: Annotated[GitAddRequest, Field(description="Add files request")],
|
|
56
|
+
_request_timeout: Union[
|
|
57
|
+
None,
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Tuple[
|
|
60
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
62
|
+
]
|
|
63
|
+
] = None,
|
|
64
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_content_type: Optional[StrictStr] = None,
|
|
66
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
67
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
68
|
+
) -> None:
|
|
69
|
+
"""Add files to Git staging
|
|
70
|
+
|
|
71
|
+
Add files to the Git staging area
|
|
72
|
+
|
|
73
|
+
:param request: Add files request (required)
|
|
74
|
+
:type request: GitAddRequest
|
|
75
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
76
|
+
number provided, it will be total request
|
|
77
|
+
timeout. It can also be a pair (tuple) of
|
|
78
|
+
(connection, read) timeouts.
|
|
79
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
80
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
81
|
+
request; this effectively ignores the
|
|
82
|
+
authentication in the spec for a single request.
|
|
83
|
+
:type _request_auth: dict, optional
|
|
84
|
+
:param _content_type: force content-type for the request.
|
|
85
|
+
:type _content_type: str, Optional
|
|
86
|
+
:param _headers: set to override the headers for a single
|
|
87
|
+
request; this effectively ignores the headers
|
|
88
|
+
in the spec for a single request.
|
|
89
|
+
:type _headers: dict, optional
|
|
90
|
+
:param _host_index: set to override the host_index for a single
|
|
91
|
+
request; this effectively ignores the host_index
|
|
92
|
+
in the spec for a single request.
|
|
93
|
+
:type _host_index: int, optional
|
|
94
|
+
:return: Returns the result object.
|
|
95
|
+
""" # noqa: E501
|
|
96
|
+
|
|
97
|
+
_param = self._add_files_serialize(
|
|
98
|
+
request=request,
|
|
99
|
+
_request_auth=_request_auth,
|
|
100
|
+
_content_type=_content_type,
|
|
101
|
+
_headers=_headers,
|
|
102
|
+
_host_index=_host_index
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
106
|
+
'200': None,
|
|
107
|
+
}
|
|
108
|
+
response_data = self.api_client.call_api(
|
|
109
|
+
*_param,
|
|
110
|
+
_request_timeout=_request_timeout
|
|
111
|
+
)
|
|
112
|
+
response_data.read()
|
|
113
|
+
return self.api_client.response_deserialize(
|
|
114
|
+
response_data=response_data,
|
|
115
|
+
response_types_map=_response_types_map,
|
|
116
|
+
).data
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
@validate_call
|
|
120
|
+
def add_files_with_http_info(
|
|
121
|
+
self,
|
|
122
|
+
request: Annotated[GitAddRequest, Field(description="Add files request")],
|
|
123
|
+
_request_timeout: Union[
|
|
124
|
+
None,
|
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
126
|
+
Tuple[
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
128
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
129
|
+
]
|
|
130
|
+
] = None,
|
|
131
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
132
|
+
_content_type: Optional[StrictStr] = None,
|
|
133
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
134
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
135
|
+
) -> ApiResponse[None]:
|
|
136
|
+
"""Add files to Git staging
|
|
137
|
+
|
|
138
|
+
Add files to the Git staging area
|
|
139
|
+
|
|
140
|
+
:param request: Add files request (required)
|
|
141
|
+
:type request: GitAddRequest
|
|
142
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
143
|
+
number provided, it will be total request
|
|
144
|
+
timeout. It can also be a pair (tuple) of
|
|
145
|
+
(connection, read) timeouts.
|
|
146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
148
|
+
request; this effectively ignores the
|
|
149
|
+
authentication in the spec for a single request.
|
|
150
|
+
:type _request_auth: dict, optional
|
|
151
|
+
:param _content_type: force content-type for the request.
|
|
152
|
+
:type _content_type: str, Optional
|
|
153
|
+
:param _headers: set to override the headers for a single
|
|
154
|
+
request; this effectively ignores the headers
|
|
155
|
+
in the spec for a single request.
|
|
156
|
+
:type _headers: dict, optional
|
|
157
|
+
:param _host_index: set to override the host_index for a single
|
|
158
|
+
request; this effectively ignores the host_index
|
|
159
|
+
in the spec for a single request.
|
|
160
|
+
:type _host_index: int, optional
|
|
161
|
+
:return: Returns the result object.
|
|
162
|
+
""" # noqa: E501
|
|
163
|
+
|
|
164
|
+
_param = self._add_files_serialize(
|
|
165
|
+
request=request,
|
|
166
|
+
_request_auth=_request_auth,
|
|
167
|
+
_content_type=_content_type,
|
|
168
|
+
_headers=_headers,
|
|
169
|
+
_host_index=_host_index
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
173
|
+
'200': None,
|
|
174
|
+
}
|
|
175
|
+
response_data = self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
def add_files_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
request: Annotated[GitAddRequest, Field(description="Add files request")],
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Add files to Git staging
|
|
204
|
+
|
|
205
|
+
Add files to the Git staging area
|
|
206
|
+
|
|
207
|
+
:param request: Add files request (required)
|
|
208
|
+
:type request: GitAddRequest
|
|
209
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
210
|
+
number provided, it will be total request
|
|
211
|
+
timeout. It can also be a pair (tuple) of
|
|
212
|
+
(connection, read) timeouts.
|
|
213
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
214
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
215
|
+
request; this effectively ignores the
|
|
216
|
+
authentication in the spec for a single request.
|
|
217
|
+
:type _request_auth: dict, optional
|
|
218
|
+
:param _content_type: force content-type for the request.
|
|
219
|
+
:type _content_type: str, Optional
|
|
220
|
+
:param _headers: set to override the headers for a single
|
|
221
|
+
request; this effectively ignores the headers
|
|
222
|
+
in the spec for a single request.
|
|
223
|
+
:type _headers: dict, optional
|
|
224
|
+
:param _host_index: set to override the host_index for a single
|
|
225
|
+
request; this effectively ignores the host_index
|
|
226
|
+
in the spec for a single request.
|
|
227
|
+
:type _host_index: int, optional
|
|
228
|
+
:return: Returns the result object.
|
|
229
|
+
""" # noqa: E501
|
|
230
|
+
|
|
231
|
+
_param = self._add_files_serialize(
|
|
232
|
+
request=request,
|
|
233
|
+
_request_auth=_request_auth,
|
|
234
|
+
_content_type=_content_type,
|
|
235
|
+
_headers=_headers,
|
|
236
|
+
_host_index=_host_index
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
+
'200': None,
|
|
241
|
+
}
|
|
242
|
+
response_data = self.api_client.call_api(
|
|
243
|
+
*_param,
|
|
244
|
+
_request_timeout=_request_timeout
|
|
245
|
+
)
|
|
246
|
+
return response_data.response
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
def _add_files_serialize(
|
|
250
|
+
self,
|
|
251
|
+
request,
|
|
252
|
+
_request_auth,
|
|
253
|
+
_content_type,
|
|
254
|
+
_headers,
|
|
255
|
+
_host_index,
|
|
256
|
+
) -> RequestSerialized:
|
|
257
|
+
|
|
258
|
+
_host = None
|
|
259
|
+
|
|
260
|
+
_collection_formats: Dict[str, str] = {
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
_path_params: Dict[str, str] = {}
|
|
264
|
+
_query_params: List[Tuple[str, str]] = []
|
|
265
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
266
|
+
_form_params: List[Tuple[str, str]] = []
|
|
267
|
+
_files: Dict[
|
|
268
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
269
|
+
] = {}
|
|
270
|
+
_body_params: Optional[bytes] = None
|
|
271
|
+
|
|
272
|
+
# process the path parameters
|
|
273
|
+
# process the query parameters
|
|
274
|
+
# process the header parameters
|
|
275
|
+
# process the form parameters
|
|
276
|
+
# process the body parameter
|
|
277
|
+
if request is not None:
|
|
278
|
+
_body_params = request
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# set the HTTP header `Content-Type`
|
|
283
|
+
if _content_type:
|
|
284
|
+
_header_params['Content-Type'] = _content_type
|
|
285
|
+
else:
|
|
286
|
+
_default_content_type = (
|
|
287
|
+
self.api_client.select_header_content_type(
|
|
288
|
+
[
|
|
289
|
+
'application/json'
|
|
290
|
+
]
|
|
291
|
+
)
|
|
292
|
+
)
|
|
293
|
+
if _default_content_type is not None:
|
|
294
|
+
_header_params['Content-Type'] = _default_content_type
|
|
295
|
+
|
|
296
|
+
# authentication setting
|
|
297
|
+
_auth_settings: List[str] = [
|
|
298
|
+
]
|
|
299
|
+
|
|
300
|
+
return self.api_client.param_serialize(
|
|
301
|
+
method='POST',
|
|
302
|
+
resource_path='/git/add',
|
|
303
|
+
path_params=_path_params,
|
|
304
|
+
query_params=_query_params,
|
|
305
|
+
header_params=_header_params,
|
|
306
|
+
body=_body_params,
|
|
307
|
+
post_params=_form_params,
|
|
308
|
+
files=_files,
|
|
309
|
+
auth_settings=_auth_settings,
|
|
310
|
+
collection_formats=_collection_formats,
|
|
311
|
+
_host=_host,
|
|
312
|
+
_request_auth=_request_auth
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
@validate_call
|
|
319
|
+
def checkout_branch(
|
|
320
|
+
self,
|
|
321
|
+
request: Annotated[GitCheckoutRequest, Field(description="Checkout request")],
|
|
322
|
+
_request_timeout: Union[
|
|
323
|
+
None,
|
|
324
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
325
|
+
Tuple[
|
|
326
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
327
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
328
|
+
]
|
|
329
|
+
] = None,
|
|
330
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
331
|
+
_content_type: Optional[StrictStr] = None,
|
|
332
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
333
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
334
|
+
) -> None:
|
|
335
|
+
"""Checkout branch or commit
|
|
336
|
+
|
|
337
|
+
Switch to a different branch or commit in the Git repository
|
|
338
|
+
|
|
339
|
+
:param request: Checkout request (required)
|
|
340
|
+
:type request: GitCheckoutRequest
|
|
341
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
342
|
+
number provided, it will be total request
|
|
343
|
+
timeout. It can also be a pair (tuple) of
|
|
344
|
+
(connection, read) timeouts.
|
|
345
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
346
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
347
|
+
request; this effectively ignores the
|
|
348
|
+
authentication in the spec for a single request.
|
|
349
|
+
:type _request_auth: dict, optional
|
|
350
|
+
:param _content_type: force content-type for the request.
|
|
351
|
+
:type _content_type: str, Optional
|
|
352
|
+
:param _headers: set to override the headers for a single
|
|
353
|
+
request; this effectively ignores the headers
|
|
354
|
+
in the spec for a single request.
|
|
355
|
+
:type _headers: dict, optional
|
|
356
|
+
:param _host_index: set to override the host_index for a single
|
|
357
|
+
request; this effectively ignores the host_index
|
|
358
|
+
in the spec for a single request.
|
|
359
|
+
:type _host_index: int, optional
|
|
360
|
+
:return: Returns the result object.
|
|
361
|
+
""" # noqa: E501
|
|
362
|
+
|
|
363
|
+
_param = self._checkout_branch_serialize(
|
|
364
|
+
request=request,
|
|
365
|
+
_request_auth=_request_auth,
|
|
366
|
+
_content_type=_content_type,
|
|
367
|
+
_headers=_headers,
|
|
368
|
+
_host_index=_host_index
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
372
|
+
'200': None,
|
|
373
|
+
}
|
|
374
|
+
response_data = self.api_client.call_api(
|
|
375
|
+
*_param,
|
|
376
|
+
_request_timeout=_request_timeout
|
|
377
|
+
)
|
|
378
|
+
response_data.read()
|
|
379
|
+
return self.api_client.response_deserialize(
|
|
380
|
+
response_data=response_data,
|
|
381
|
+
response_types_map=_response_types_map,
|
|
382
|
+
).data
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
@validate_call
|
|
386
|
+
def checkout_branch_with_http_info(
|
|
387
|
+
self,
|
|
388
|
+
request: Annotated[GitCheckoutRequest, Field(description="Checkout request")],
|
|
389
|
+
_request_timeout: Union[
|
|
390
|
+
None,
|
|
391
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
392
|
+
Tuple[
|
|
393
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
394
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
395
|
+
]
|
|
396
|
+
] = None,
|
|
397
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
398
|
+
_content_type: Optional[StrictStr] = None,
|
|
399
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
400
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
401
|
+
) -> ApiResponse[None]:
|
|
402
|
+
"""Checkout branch or commit
|
|
403
|
+
|
|
404
|
+
Switch to a different branch or commit in the Git repository
|
|
405
|
+
|
|
406
|
+
:param request: Checkout request (required)
|
|
407
|
+
:type request: GitCheckoutRequest
|
|
408
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
409
|
+
number provided, it will be total request
|
|
410
|
+
timeout. It can also be a pair (tuple) of
|
|
411
|
+
(connection, read) timeouts.
|
|
412
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
413
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
414
|
+
request; this effectively ignores the
|
|
415
|
+
authentication in the spec for a single request.
|
|
416
|
+
:type _request_auth: dict, optional
|
|
417
|
+
:param _content_type: force content-type for the request.
|
|
418
|
+
:type _content_type: str, Optional
|
|
419
|
+
:param _headers: set to override the headers for a single
|
|
420
|
+
request; this effectively ignores the headers
|
|
421
|
+
in the spec for a single request.
|
|
422
|
+
:type _headers: dict, optional
|
|
423
|
+
:param _host_index: set to override the host_index for a single
|
|
424
|
+
request; this effectively ignores the host_index
|
|
425
|
+
in the spec for a single request.
|
|
426
|
+
:type _host_index: int, optional
|
|
427
|
+
:return: Returns the result object.
|
|
428
|
+
""" # noqa: E501
|
|
429
|
+
|
|
430
|
+
_param = self._checkout_branch_serialize(
|
|
431
|
+
request=request,
|
|
432
|
+
_request_auth=_request_auth,
|
|
433
|
+
_content_type=_content_type,
|
|
434
|
+
_headers=_headers,
|
|
435
|
+
_host_index=_host_index
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
439
|
+
'200': None,
|
|
440
|
+
}
|
|
441
|
+
response_data = self.api_client.call_api(
|
|
442
|
+
*_param,
|
|
443
|
+
_request_timeout=_request_timeout
|
|
444
|
+
)
|
|
445
|
+
response_data.read()
|
|
446
|
+
return self.api_client.response_deserialize(
|
|
447
|
+
response_data=response_data,
|
|
448
|
+
response_types_map=_response_types_map,
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
@validate_call
|
|
453
|
+
def checkout_branch_without_preload_content(
|
|
454
|
+
self,
|
|
455
|
+
request: Annotated[GitCheckoutRequest, Field(description="Checkout request")],
|
|
456
|
+
_request_timeout: Union[
|
|
457
|
+
None,
|
|
458
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
459
|
+
Tuple[
|
|
460
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
461
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
462
|
+
]
|
|
463
|
+
] = None,
|
|
464
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
465
|
+
_content_type: Optional[StrictStr] = None,
|
|
466
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
467
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
468
|
+
) -> RESTResponseType:
|
|
469
|
+
"""Checkout branch or commit
|
|
470
|
+
|
|
471
|
+
Switch to a different branch or commit in the Git repository
|
|
472
|
+
|
|
473
|
+
:param request: Checkout request (required)
|
|
474
|
+
:type request: GitCheckoutRequest
|
|
475
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
476
|
+
number provided, it will be total request
|
|
477
|
+
timeout. It can also be a pair (tuple) of
|
|
478
|
+
(connection, read) timeouts.
|
|
479
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
480
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
481
|
+
request; this effectively ignores the
|
|
482
|
+
authentication in the spec for a single request.
|
|
483
|
+
:type _request_auth: dict, optional
|
|
484
|
+
:param _content_type: force content-type for the request.
|
|
485
|
+
:type _content_type: str, Optional
|
|
486
|
+
:param _headers: set to override the headers for a single
|
|
487
|
+
request; this effectively ignores the headers
|
|
488
|
+
in the spec for a single request.
|
|
489
|
+
:type _headers: dict, optional
|
|
490
|
+
:param _host_index: set to override the host_index for a single
|
|
491
|
+
request; this effectively ignores the host_index
|
|
492
|
+
in the spec for a single request.
|
|
493
|
+
:type _host_index: int, optional
|
|
494
|
+
:return: Returns the result object.
|
|
495
|
+
""" # noqa: E501
|
|
496
|
+
|
|
497
|
+
_param = self._checkout_branch_serialize(
|
|
498
|
+
request=request,
|
|
499
|
+
_request_auth=_request_auth,
|
|
500
|
+
_content_type=_content_type,
|
|
501
|
+
_headers=_headers,
|
|
502
|
+
_host_index=_host_index
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
506
|
+
'200': None,
|
|
507
|
+
}
|
|
508
|
+
response_data = self.api_client.call_api(
|
|
509
|
+
*_param,
|
|
510
|
+
_request_timeout=_request_timeout
|
|
511
|
+
)
|
|
512
|
+
return response_data.response
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def _checkout_branch_serialize(
|
|
516
|
+
self,
|
|
517
|
+
request,
|
|
518
|
+
_request_auth,
|
|
519
|
+
_content_type,
|
|
520
|
+
_headers,
|
|
521
|
+
_host_index,
|
|
522
|
+
) -> RequestSerialized:
|
|
523
|
+
|
|
524
|
+
_host = None
|
|
525
|
+
|
|
526
|
+
_collection_formats: Dict[str, str] = {
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
_path_params: Dict[str, str] = {}
|
|
530
|
+
_query_params: List[Tuple[str, str]] = []
|
|
531
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
532
|
+
_form_params: List[Tuple[str, str]] = []
|
|
533
|
+
_files: Dict[
|
|
534
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
535
|
+
] = {}
|
|
536
|
+
_body_params: Optional[bytes] = None
|
|
537
|
+
|
|
538
|
+
# process the path parameters
|
|
539
|
+
# process the query parameters
|
|
540
|
+
# process the header parameters
|
|
541
|
+
# process the form parameters
|
|
542
|
+
# process the body parameter
|
|
543
|
+
if request is not None:
|
|
544
|
+
_body_params = request
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
# set the HTTP header `Content-Type`
|
|
549
|
+
if _content_type:
|
|
550
|
+
_header_params['Content-Type'] = _content_type
|
|
551
|
+
else:
|
|
552
|
+
_default_content_type = (
|
|
553
|
+
self.api_client.select_header_content_type(
|
|
554
|
+
[
|
|
555
|
+
'application/json'
|
|
556
|
+
]
|
|
557
|
+
)
|
|
558
|
+
)
|
|
559
|
+
if _default_content_type is not None:
|
|
560
|
+
_header_params['Content-Type'] = _default_content_type
|
|
561
|
+
|
|
562
|
+
# authentication setting
|
|
563
|
+
_auth_settings: List[str] = [
|
|
564
|
+
]
|
|
565
|
+
|
|
566
|
+
return self.api_client.param_serialize(
|
|
567
|
+
method='POST',
|
|
568
|
+
resource_path='/git/checkout',
|
|
569
|
+
path_params=_path_params,
|
|
570
|
+
query_params=_query_params,
|
|
571
|
+
header_params=_header_params,
|
|
572
|
+
body=_body_params,
|
|
573
|
+
post_params=_form_params,
|
|
574
|
+
files=_files,
|
|
575
|
+
auth_settings=_auth_settings,
|
|
576
|
+
collection_formats=_collection_formats,
|
|
577
|
+
_host=_host,
|
|
578
|
+
_request_auth=_request_auth
|
|
579
|
+
)
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
@validate_call
|
|
585
|
+
def clone_repository(
|
|
586
|
+
self,
|
|
587
|
+
request: Annotated[GitCloneRequest, Field(description="Clone repository request")],
|
|
588
|
+
_request_timeout: Union[
|
|
589
|
+
None,
|
|
590
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
591
|
+
Tuple[
|
|
592
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
593
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
594
|
+
]
|
|
595
|
+
] = None,
|
|
596
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
597
|
+
_content_type: Optional[StrictStr] = None,
|
|
598
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
599
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
600
|
+
) -> None:
|
|
601
|
+
"""Clone a Git repository
|
|
602
|
+
|
|
603
|
+
Clone a Git repository to the specified path
|
|
604
|
+
|
|
605
|
+
:param request: Clone repository request (required)
|
|
606
|
+
:type request: GitCloneRequest
|
|
607
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
608
|
+
number provided, it will be total request
|
|
609
|
+
timeout. It can also be a pair (tuple) of
|
|
610
|
+
(connection, read) timeouts.
|
|
611
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
612
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
613
|
+
request; this effectively ignores the
|
|
614
|
+
authentication in the spec for a single request.
|
|
615
|
+
:type _request_auth: dict, optional
|
|
616
|
+
:param _content_type: force content-type for the request.
|
|
617
|
+
:type _content_type: str, Optional
|
|
618
|
+
:param _headers: set to override the headers for a single
|
|
619
|
+
request; this effectively ignores the headers
|
|
620
|
+
in the spec for a single request.
|
|
621
|
+
:type _headers: dict, optional
|
|
622
|
+
:param _host_index: set to override the host_index for a single
|
|
623
|
+
request; this effectively ignores the host_index
|
|
624
|
+
in the spec for a single request.
|
|
625
|
+
:type _host_index: int, optional
|
|
626
|
+
:return: Returns the result object.
|
|
627
|
+
""" # noqa: E501
|
|
628
|
+
|
|
629
|
+
_param = self._clone_repository_serialize(
|
|
630
|
+
request=request,
|
|
631
|
+
_request_auth=_request_auth,
|
|
632
|
+
_content_type=_content_type,
|
|
633
|
+
_headers=_headers,
|
|
634
|
+
_host_index=_host_index
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
638
|
+
'200': None,
|
|
639
|
+
}
|
|
640
|
+
response_data = self.api_client.call_api(
|
|
641
|
+
*_param,
|
|
642
|
+
_request_timeout=_request_timeout
|
|
643
|
+
)
|
|
644
|
+
response_data.read()
|
|
645
|
+
return self.api_client.response_deserialize(
|
|
646
|
+
response_data=response_data,
|
|
647
|
+
response_types_map=_response_types_map,
|
|
648
|
+
).data
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
@validate_call
|
|
652
|
+
def clone_repository_with_http_info(
|
|
653
|
+
self,
|
|
654
|
+
request: Annotated[GitCloneRequest, Field(description="Clone repository request")],
|
|
655
|
+
_request_timeout: Union[
|
|
656
|
+
None,
|
|
657
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
658
|
+
Tuple[
|
|
659
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
660
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
661
|
+
]
|
|
662
|
+
] = None,
|
|
663
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
664
|
+
_content_type: Optional[StrictStr] = None,
|
|
665
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
666
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
667
|
+
) -> ApiResponse[None]:
|
|
668
|
+
"""Clone a Git repository
|
|
669
|
+
|
|
670
|
+
Clone a Git repository to the specified path
|
|
671
|
+
|
|
672
|
+
:param request: Clone repository request (required)
|
|
673
|
+
:type request: GitCloneRequest
|
|
674
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
675
|
+
number provided, it will be total request
|
|
676
|
+
timeout. It can also be a pair (tuple) of
|
|
677
|
+
(connection, read) timeouts.
|
|
678
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
679
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
680
|
+
request; this effectively ignores the
|
|
681
|
+
authentication in the spec for a single request.
|
|
682
|
+
:type _request_auth: dict, optional
|
|
683
|
+
:param _content_type: force content-type for the request.
|
|
684
|
+
:type _content_type: str, Optional
|
|
685
|
+
:param _headers: set to override the headers for a single
|
|
686
|
+
request; this effectively ignores the headers
|
|
687
|
+
in the spec for a single request.
|
|
688
|
+
:type _headers: dict, optional
|
|
689
|
+
:param _host_index: set to override the host_index for a single
|
|
690
|
+
request; this effectively ignores the host_index
|
|
691
|
+
in the spec for a single request.
|
|
692
|
+
:type _host_index: int, optional
|
|
693
|
+
:return: Returns the result object.
|
|
694
|
+
""" # noqa: E501
|
|
695
|
+
|
|
696
|
+
_param = self._clone_repository_serialize(
|
|
697
|
+
request=request,
|
|
698
|
+
_request_auth=_request_auth,
|
|
699
|
+
_content_type=_content_type,
|
|
700
|
+
_headers=_headers,
|
|
701
|
+
_host_index=_host_index
|
|
702
|
+
)
|
|
703
|
+
|
|
704
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
705
|
+
'200': None,
|
|
706
|
+
}
|
|
707
|
+
response_data = self.api_client.call_api(
|
|
708
|
+
*_param,
|
|
709
|
+
_request_timeout=_request_timeout
|
|
710
|
+
)
|
|
711
|
+
response_data.read()
|
|
712
|
+
return self.api_client.response_deserialize(
|
|
713
|
+
response_data=response_data,
|
|
714
|
+
response_types_map=_response_types_map,
|
|
715
|
+
)
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
@validate_call
|
|
719
|
+
def clone_repository_without_preload_content(
|
|
720
|
+
self,
|
|
721
|
+
request: Annotated[GitCloneRequest, Field(description="Clone repository request")],
|
|
722
|
+
_request_timeout: Union[
|
|
723
|
+
None,
|
|
724
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
725
|
+
Tuple[
|
|
726
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
727
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
728
|
+
]
|
|
729
|
+
] = None,
|
|
730
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
731
|
+
_content_type: Optional[StrictStr] = None,
|
|
732
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
733
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
734
|
+
) -> RESTResponseType:
|
|
735
|
+
"""Clone a Git repository
|
|
736
|
+
|
|
737
|
+
Clone a Git repository to the specified path
|
|
738
|
+
|
|
739
|
+
:param request: Clone repository request (required)
|
|
740
|
+
:type request: GitCloneRequest
|
|
741
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
742
|
+
number provided, it will be total request
|
|
743
|
+
timeout. It can also be a pair (tuple) of
|
|
744
|
+
(connection, read) timeouts.
|
|
745
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
746
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
747
|
+
request; this effectively ignores the
|
|
748
|
+
authentication in the spec for a single request.
|
|
749
|
+
:type _request_auth: dict, optional
|
|
750
|
+
:param _content_type: force content-type for the request.
|
|
751
|
+
:type _content_type: str, Optional
|
|
752
|
+
:param _headers: set to override the headers for a single
|
|
753
|
+
request; this effectively ignores the headers
|
|
754
|
+
in the spec for a single request.
|
|
755
|
+
:type _headers: dict, optional
|
|
756
|
+
:param _host_index: set to override the host_index for a single
|
|
757
|
+
request; this effectively ignores the host_index
|
|
758
|
+
in the spec for a single request.
|
|
759
|
+
:type _host_index: int, optional
|
|
760
|
+
:return: Returns the result object.
|
|
761
|
+
""" # noqa: E501
|
|
762
|
+
|
|
763
|
+
_param = self._clone_repository_serialize(
|
|
764
|
+
request=request,
|
|
765
|
+
_request_auth=_request_auth,
|
|
766
|
+
_content_type=_content_type,
|
|
767
|
+
_headers=_headers,
|
|
768
|
+
_host_index=_host_index
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
772
|
+
'200': None,
|
|
773
|
+
}
|
|
774
|
+
response_data = self.api_client.call_api(
|
|
775
|
+
*_param,
|
|
776
|
+
_request_timeout=_request_timeout
|
|
777
|
+
)
|
|
778
|
+
return response_data.response
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
def _clone_repository_serialize(
|
|
782
|
+
self,
|
|
783
|
+
request,
|
|
784
|
+
_request_auth,
|
|
785
|
+
_content_type,
|
|
786
|
+
_headers,
|
|
787
|
+
_host_index,
|
|
788
|
+
) -> RequestSerialized:
|
|
789
|
+
|
|
790
|
+
_host = None
|
|
791
|
+
|
|
792
|
+
_collection_formats: Dict[str, str] = {
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
_path_params: Dict[str, str] = {}
|
|
796
|
+
_query_params: List[Tuple[str, str]] = []
|
|
797
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
798
|
+
_form_params: List[Tuple[str, str]] = []
|
|
799
|
+
_files: Dict[
|
|
800
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
801
|
+
] = {}
|
|
802
|
+
_body_params: Optional[bytes] = None
|
|
803
|
+
|
|
804
|
+
# process the path parameters
|
|
805
|
+
# process the query parameters
|
|
806
|
+
# process the header parameters
|
|
807
|
+
# process the form parameters
|
|
808
|
+
# process the body parameter
|
|
809
|
+
if request is not None:
|
|
810
|
+
_body_params = request
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
# set the HTTP header `Content-Type`
|
|
815
|
+
if _content_type:
|
|
816
|
+
_header_params['Content-Type'] = _content_type
|
|
817
|
+
else:
|
|
818
|
+
_default_content_type = (
|
|
819
|
+
self.api_client.select_header_content_type(
|
|
820
|
+
[
|
|
821
|
+
'application/json'
|
|
822
|
+
]
|
|
823
|
+
)
|
|
824
|
+
)
|
|
825
|
+
if _default_content_type is not None:
|
|
826
|
+
_header_params['Content-Type'] = _default_content_type
|
|
827
|
+
|
|
828
|
+
# authentication setting
|
|
829
|
+
_auth_settings: List[str] = [
|
|
830
|
+
]
|
|
831
|
+
|
|
832
|
+
return self.api_client.param_serialize(
|
|
833
|
+
method='POST',
|
|
834
|
+
resource_path='/git/clone',
|
|
835
|
+
path_params=_path_params,
|
|
836
|
+
query_params=_query_params,
|
|
837
|
+
header_params=_header_params,
|
|
838
|
+
body=_body_params,
|
|
839
|
+
post_params=_form_params,
|
|
840
|
+
files=_files,
|
|
841
|
+
auth_settings=_auth_settings,
|
|
842
|
+
collection_formats=_collection_formats,
|
|
843
|
+
_host=_host,
|
|
844
|
+
_request_auth=_request_auth
|
|
845
|
+
)
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
@validate_call
|
|
851
|
+
def commit_changes(
|
|
852
|
+
self,
|
|
853
|
+
request: Annotated[GitCommitRequest, Field(description="Commit request")],
|
|
854
|
+
_request_timeout: Union[
|
|
855
|
+
None,
|
|
856
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
857
|
+
Tuple[
|
|
858
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
859
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
860
|
+
]
|
|
861
|
+
] = None,
|
|
862
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
863
|
+
_content_type: Optional[StrictStr] = None,
|
|
864
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
865
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
866
|
+
) -> GitCommitResponse:
|
|
867
|
+
"""Commit changes
|
|
868
|
+
|
|
869
|
+
Commit staged changes to the Git repository
|
|
870
|
+
|
|
871
|
+
:param request: Commit request (required)
|
|
872
|
+
:type request: GitCommitRequest
|
|
873
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
874
|
+
number provided, it will be total request
|
|
875
|
+
timeout. It can also be a pair (tuple) of
|
|
876
|
+
(connection, read) timeouts.
|
|
877
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
878
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
879
|
+
request; this effectively ignores the
|
|
880
|
+
authentication in the spec for a single request.
|
|
881
|
+
:type _request_auth: dict, optional
|
|
882
|
+
:param _content_type: force content-type for the request.
|
|
883
|
+
:type _content_type: str, Optional
|
|
884
|
+
:param _headers: set to override the headers for a single
|
|
885
|
+
request; this effectively ignores the headers
|
|
886
|
+
in the spec for a single request.
|
|
887
|
+
:type _headers: dict, optional
|
|
888
|
+
:param _host_index: set to override the host_index for a single
|
|
889
|
+
request; this effectively ignores the host_index
|
|
890
|
+
in the spec for a single request.
|
|
891
|
+
:type _host_index: int, optional
|
|
892
|
+
:return: Returns the result object.
|
|
893
|
+
""" # noqa: E501
|
|
894
|
+
|
|
895
|
+
_param = self._commit_changes_serialize(
|
|
896
|
+
request=request,
|
|
897
|
+
_request_auth=_request_auth,
|
|
898
|
+
_content_type=_content_type,
|
|
899
|
+
_headers=_headers,
|
|
900
|
+
_host_index=_host_index
|
|
901
|
+
)
|
|
902
|
+
|
|
903
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
904
|
+
'200': "GitCommitResponse",
|
|
905
|
+
}
|
|
906
|
+
response_data = self.api_client.call_api(
|
|
907
|
+
*_param,
|
|
908
|
+
_request_timeout=_request_timeout
|
|
909
|
+
)
|
|
910
|
+
response_data.read()
|
|
911
|
+
return self.api_client.response_deserialize(
|
|
912
|
+
response_data=response_data,
|
|
913
|
+
response_types_map=_response_types_map,
|
|
914
|
+
).data
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
@validate_call
|
|
918
|
+
def commit_changes_with_http_info(
|
|
919
|
+
self,
|
|
920
|
+
request: Annotated[GitCommitRequest, Field(description="Commit request")],
|
|
921
|
+
_request_timeout: Union[
|
|
922
|
+
None,
|
|
923
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
924
|
+
Tuple[
|
|
925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
926
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
927
|
+
]
|
|
928
|
+
] = None,
|
|
929
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
930
|
+
_content_type: Optional[StrictStr] = None,
|
|
931
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
932
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
933
|
+
) -> ApiResponse[GitCommitResponse]:
|
|
934
|
+
"""Commit changes
|
|
935
|
+
|
|
936
|
+
Commit staged changes to the Git repository
|
|
937
|
+
|
|
938
|
+
:param request: Commit request (required)
|
|
939
|
+
:type request: GitCommitRequest
|
|
940
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
941
|
+
number provided, it will be total request
|
|
942
|
+
timeout. It can also be a pair (tuple) of
|
|
943
|
+
(connection, read) timeouts.
|
|
944
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
945
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
946
|
+
request; this effectively ignores the
|
|
947
|
+
authentication in the spec for a single request.
|
|
948
|
+
:type _request_auth: dict, optional
|
|
949
|
+
:param _content_type: force content-type for the request.
|
|
950
|
+
:type _content_type: str, Optional
|
|
951
|
+
:param _headers: set to override the headers for a single
|
|
952
|
+
request; this effectively ignores the headers
|
|
953
|
+
in the spec for a single request.
|
|
954
|
+
:type _headers: dict, optional
|
|
955
|
+
:param _host_index: set to override the host_index for a single
|
|
956
|
+
request; this effectively ignores the host_index
|
|
957
|
+
in the spec for a single request.
|
|
958
|
+
:type _host_index: int, optional
|
|
959
|
+
:return: Returns the result object.
|
|
960
|
+
""" # noqa: E501
|
|
961
|
+
|
|
962
|
+
_param = self._commit_changes_serialize(
|
|
963
|
+
request=request,
|
|
964
|
+
_request_auth=_request_auth,
|
|
965
|
+
_content_type=_content_type,
|
|
966
|
+
_headers=_headers,
|
|
967
|
+
_host_index=_host_index
|
|
968
|
+
)
|
|
969
|
+
|
|
970
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
971
|
+
'200': "GitCommitResponse",
|
|
972
|
+
}
|
|
973
|
+
response_data = self.api_client.call_api(
|
|
974
|
+
*_param,
|
|
975
|
+
_request_timeout=_request_timeout
|
|
976
|
+
)
|
|
977
|
+
response_data.read()
|
|
978
|
+
return self.api_client.response_deserialize(
|
|
979
|
+
response_data=response_data,
|
|
980
|
+
response_types_map=_response_types_map,
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
@validate_call
|
|
985
|
+
def commit_changes_without_preload_content(
|
|
986
|
+
self,
|
|
987
|
+
request: Annotated[GitCommitRequest, Field(description="Commit request")],
|
|
988
|
+
_request_timeout: Union[
|
|
989
|
+
None,
|
|
990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
991
|
+
Tuple[
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
993
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
994
|
+
]
|
|
995
|
+
] = None,
|
|
996
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
997
|
+
_content_type: Optional[StrictStr] = None,
|
|
998
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
999
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1000
|
+
) -> RESTResponseType:
|
|
1001
|
+
"""Commit changes
|
|
1002
|
+
|
|
1003
|
+
Commit staged changes to the Git repository
|
|
1004
|
+
|
|
1005
|
+
:param request: Commit request (required)
|
|
1006
|
+
:type request: GitCommitRequest
|
|
1007
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1008
|
+
number provided, it will be total request
|
|
1009
|
+
timeout. It can also be a pair (tuple) of
|
|
1010
|
+
(connection, read) timeouts.
|
|
1011
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1012
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1013
|
+
request; this effectively ignores the
|
|
1014
|
+
authentication in the spec for a single request.
|
|
1015
|
+
:type _request_auth: dict, optional
|
|
1016
|
+
:param _content_type: force content-type for the request.
|
|
1017
|
+
:type _content_type: str, Optional
|
|
1018
|
+
:param _headers: set to override the headers for a single
|
|
1019
|
+
request; this effectively ignores the headers
|
|
1020
|
+
in the spec for a single request.
|
|
1021
|
+
:type _headers: dict, optional
|
|
1022
|
+
:param _host_index: set to override the host_index for a single
|
|
1023
|
+
request; this effectively ignores the host_index
|
|
1024
|
+
in the spec for a single request.
|
|
1025
|
+
:type _host_index: int, optional
|
|
1026
|
+
:return: Returns the result object.
|
|
1027
|
+
""" # noqa: E501
|
|
1028
|
+
|
|
1029
|
+
_param = self._commit_changes_serialize(
|
|
1030
|
+
request=request,
|
|
1031
|
+
_request_auth=_request_auth,
|
|
1032
|
+
_content_type=_content_type,
|
|
1033
|
+
_headers=_headers,
|
|
1034
|
+
_host_index=_host_index
|
|
1035
|
+
)
|
|
1036
|
+
|
|
1037
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1038
|
+
'200': "GitCommitResponse",
|
|
1039
|
+
}
|
|
1040
|
+
response_data = self.api_client.call_api(
|
|
1041
|
+
*_param,
|
|
1042
|
+
_request_timeout=_request_timeout
|
|
1043
|
+
)
|
|
1044
|
+
return response_data.response
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
def _commit_changes_serialize(
|
|
1048
|
+
self,
|
|
1049
|
+
request,
|
|
1050
|
+
_request_auth,
|
|
1051
|
+
_content_type,
|
|
1052
|
+
_headers,
|
|
1053
|
+
_host_index,
|
|
1054
|
+
) -> RequestSerialized:
|
|
1055
|
+
|
|
1056
|
+
_host = None
|
|
1057
|
+
|
|
1058
|
+
_collection_formats: Dict[str, str] = {
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
_path_params: Dict[str, str] = {}
|
|
1062
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1063
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1064
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1065
|
+
_files: Dict[
|
|
1066
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1067
|
+
] = {}
|
|
1068
|
+
_body_params: Optional[bytes] = None
|
|
1069
|
+
|
|
1070
|
+
# process the path parameters
|
|
1071
|
+
# process the query parameters
|
|
1072
|
+
# process the header parameters
|
|
1073
|
+
# process the form parameters
|
|
1074
|
+
# process the body parameter
|
|
1075
|
+
if request is not None:
|
|
1076
|
+
_body_params = request
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
# set the HTTP header `Accept`
|
|
1080
|
+
if 'Accept' not in _header_params:
|
|
1081
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1082
|
+
[
|
|
1083
|
+
'application/json'
|
|
1084
|
+
]
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
# set the HTTP header `Content-Type`
|
|
1088
|
+
if _content_type:
|
|
1089
|
+
_header_params['Content-Type'] = _content_type
|
|
1090
|
+
else:
|
|
1091
|
+
_default_content_type = (
|
|
1092
|
+
self.api_client.select_header_content_type(
|
|
1093
|
+
[
|
|
1094
|
+
'application/json'
|
|
1095
|
+
]
|
|
1096
|
+
)
|
|
1097
|
+
)
|
|
1098
|
+
if _default_content_type is not None:
|
|
1099
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1100
|
+
|
|
1101
|
+
# authentication setting
|
|
1102
|
+
_auth_settings: List[str] = [
|
|
1103
|
+
]
|
|
1104
|
+
|
|
1105
|
+
return self.api_client.param_serialize(
|
|
1106
|
+
method='POST',
|
|
1107
|
+
resource_path='/git/commit',
|
|
1108
|
+
path_params=_path_params,
|
|
1109
|
+
query_params=_query_params,
|
|
1110
|
+
header_params=_header_params,
|
|
1111
|
+
body=_body_params,
|
|
1112
|
+
post_params=_form_params,
|
|
1113
|
+
files=_files,
|
|
1114
|
+
auth_settings=_auth_settings,
|
|
1115
|
+
collection_formats=_collection_formats,
|
|
1116
|
+
_host=_host,
|
|
1117
|
+
_request_auth=_request_auth
|
|
1118
|
+
)
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
@validate_call
|
|
1124
|
+
def create_branch(
|
|
1125
|
+
self,
|
|
1126
|
+
request: Annotated[GitBranchRequest, Field(description="Create branch request")],
|
|
1127
|
+
_request_timeout: Union[
|
|
1128
|
+
None,
|
|
1129
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1130
|
+
Tuple[
|
|
1131
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1133
|
+
]
|
|
1134
|
+
] = None,
|
|
1135
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1136
|
+
_content_type: Optional[StrictStr] = None,
|
|
1137
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1138
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1139
|
+
) -> None:
|
|
1140
|
+
"""Create a new branch
|
|
1141
|
+
|
|
1142
|
+
Create a new branch in the Git repository
|
|
1143
|
+
|
|
1144
|
+
:param request: Create branch request (required)
|
|
1145
|
+
:type request: GitBranchRequest
|
|
1146
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1147
|
+
number provided, it will be total request
|
|
1148
|
+
timeout. It can also be a pair (tuple) of
|
|
1149
|
+
(connection, read) timeouts.
|
|
1150
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1151
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1152
|
+
request; this effectively ignores the
|
|
1153
|
+
authentication in the spec for a single request.
|
|
1154
|
+
:type _request_auth: dict, optional
|
|
1155
|
+
:param _content_type: force content-type for the request.
|
|
1156
|
+
:type _content_type: str, Optional
|
|
1157
|
+
:param _headers: set to override the headers for a single
|
|
1158
|
+
request; this effectively ignores the headers
|
|
1159
|
+
in the spec for a single request.
|
|
1160
|
+
:type _headers: dict, optional
|
|
1161
|
+
:param _host_index: set to override the host_index for a single
|
|
1162
|
+
request; this effectively ignores the host_index
|
|
1163
|
+
in the spec for a single request.
|
|
1164
|
+
:type _host_index: int, optional
|
|
1165
|
+
:return: Returns the result object.
|
|
1166
|
+
""" # noqa: E501
|
|
1167
|
+
|
|
1168
|
+
_param = self._create_branch_serialize(
|
|
1169
|
+
request=request,
|
|
1170
|
+
_request_auth=_request_auth,
|
|
1171
|
+
_content_type=_content_type,
|
|
1172
|
+
_headers=_headers,
|
|
1173
|
+
_host_index=_host_index
|
|
1174
|
+
)
|
|
1175
|
+
|
|
1176
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1177
|
+
'201': None,
|
|
1178
|
+
}
|
|
1179
|
+
response_data = self.api_client.call_api(
|
|
1180
|
+
*_param,
|
|
1181
|
+
_request_timeout=_request_timeout
|
|
1182
|
+
)
|
|
1183
|
+
response_data.read()
|
|
1184
|
+
return self.api_client.response_deserialize(
|
|
1185
|
+
response_data=response_data,
|
|
1186
|
+
response_types_map=_response_types_map,
|
|
1187
|
+
).data
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
@validate_call
|
|
1191
|
+
def create_branch_with_http_info(
|
|
1192
|
+
self,
|
|
1193
|
+
request: Annotated[GitBranchRequest, Field(description="Create branch request")],
|
|
1194
|
+
_request_timeout: Union[
|
|
1195
|
+
None,
|
|
1196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1197
|
+
Tuple[
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1200
|
+
]
|
|
1201
|
+
] = None,
|
|
1202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1203
|
+
_content_type: Optional[StrictStr] = None,
|
|
1204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1206
|
+
) -> ApiResponse[None]:
|
|
1207
|
+
"""Create a new branch
|
|
1208
|
+
|
|
1209
|
+
Create a new branch in the Git repository
|
|
1210
|
+
|
|
1211
|
+
:param request: Create branch request (required)
|
|
1212
|
+
:type request: GitBranchRequest
|
|
1213
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1214
|
+
number provided, it will be total request
|
|
1215
|
+
timeout. It can also be a pair (tuple) of
|
|
1216
|
+
(connection, read) timeouts.
|
|
1217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1218
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1219
|
+
request; this effectively ignores the
|
|
1220
|
+
authentication in the spec for a single request.
|
|
1221
|
+
:type _request_auth: dict, optional
|
|
1222
|
+
:param _content_type: force content-type for the request.
|
|
1223
|
+
:type _content_type: str, Optional
|
|
1224
|
+
:param _headers: set to override the headers for a single
|
|
1225
|
+
request; this effectively ignores the headers
|
|
1226
|
+
in the spec for a single request.
|
|
1227
|
+
:type _headers: dict, optional
|
|
1228
|
+
:param _host_index: set to override the host_index for a single
|
|
1229
|
+
request; this effectively ignores the host_index
|
|
1230
|
+
in the spec for a single request.
|
|
1231
|
+
:type _host_index: int, optional
|
|
1232
|
+
:return: Returns the result object.
|
|
1233
|
+
""" # noqa: E501
|
|
1234
|
+
|
|
1235
|
+
_param = self._create_branch_serialize(
|
|
1236
|
+
request=request,
|
|
1237
|
+
_request_auth=_request_auth,
|
|
1238
|
+
_content_type=_content_type,
|
|
1239
|
+
_headers=_headers,
|
|
1240
|
+
_host_index=_host_index
|
|
1241
|
+
)
|
|
1242
|
+
|
|
1243
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1244
|
+
'201': None,
|
|
1245
|
+
}
|
|
1246
|
+
response_data = self.api_client.call_api(
|
|
1247
|
+
*_param,
|
|
1248
|
+
_request_timeout=_request_timeout
|
|
1249
|
+
)
|
|
1250
|
+
response_data.read()
|
|
1251
|
+
return self.api_client.response_deserialize(
|
|
1252
|
+
response_data=response_data,
|
|
1253
|
+
response_types_map=_response_types_map,
|
|
1254
|
+
)
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
@validate_call
|
|
1258
|
+
def create_branch_without_preload_content(
|
|
1259
|
+
self,
|
|
1260
|
+
request: Annotated[GitBranchRequest, Field(description="Create branch request")],
|
|
1261
|
+
_request_timeout: Union[
|
|
1262
|
+
None,
|
|
1263
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1264
|
+
Tuple[
|
|
1265
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1266
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1267
|
+
]
|
|
1268
|
+
] = None,
|
|
1269
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1270
|
+
_content_type: Optional[StrictStr] = None,
|
|
1271
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1272
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1273
|
+
) -> RESTResponseType:
|
|
1274
|
+
"""Create a new branch
|
|
1275
|
+
|
|
1276
|
+
Create a new branch in the Git repository
|
|
1277
|
+
|
|
1278
|
+
:param request: Create branch request (required)
|
|
1279
|
+
:type request: GitBranchRequest
|
|
1280
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1281
|
+
number provided, it will be total request
|
|
1282
|
+
timeout. It can also be a pair (tuple) of
|
|
1283
|
+
(connection, read) timeouts.
|
|
1284
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1285
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1286
|
+
request; this effectively ignores the
|
|
1287
|
+
authentication in the spec for a single request.
|
|
1288
|
+
:type _request_auth: dict, optional
|
|
1289
|
+
:param _content_type: force content-type for the request.
|
|
1290
|
+
:type _content_type: str, Optional
|
|
1291
|
+
:param _headers: set to override the headers for a single
|
|
1292
|
+
request; this effectively ignores the headers
|
|
1293
|
+
in the spec for a single request.
|
|
1294
|
+
:type _headers: dict, optional
|
|
1295
|
+
:param _host_index: set to override the host_index for a single
|
|
1296
|
+
request; this effectively ignores the host_index
|
|
1297
|
+
in the spec for a single request.
|
|
1298
|
+
:type _host_index: int, optional
|
|
1299
|
+
:return: Returns the result object.
|
|
1300
|
+
""" # noqa: E501
|
|
1301
|
+
|
|
1302
|
+
_param = self._create_branch_serialize(
|
|
1303
|
+
request=request,
|
|
1304
|
+
_request_auth=_request_auth,
|
|
1305
|
+
_content_type=_content_type,
|
|
1306
|
+
_headers=_headers,
|
|
1307
|
+
_host_index=_host_index
|
|
1308
|
+
)
|
|
1309
|
+
|
|
1310
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1311
|
+
'201': None,
|
|
1312
|
+
}
|
|
1313
|
+
response_data = self.api_client.call_api(
|
|
1314
|
+
*_param,
|
|
1315
|
+
_request_timeout=_request_timeout
|
|
1316
|
+
)
|
|
1317
|
+
return response_data.response
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
def _create_branch_serialize(
|
|
1321
|
+
self,
|
|
1322
|
+
request,
|
|
1323
|
+
_request_auth,
|
|
1324
|
+
_content_type,
|
|
1325
|
+
_headers,
|
|
1326
|
+
_host_index,
|
|
1327
|
+
) -> RequestSerialized:
|
|
1328
|
+
|
|
1329
|
+
_host = None
|
|
1330
|
+
|
|
1331
|
+
_collection_formats: Dict[str, str] = {
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
_path_params: Dict[str, str] = {}
|
|
1335
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1336
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1337
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1338
|
+
_files: Dict[
|
|
1339
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1340
|
+
] = {}
|
|
1341
|
+
_body_params: Optional[bytes] = None
|
|
1342
|
+
|
|
1343
|
+
# process the path parameters
|
|
1344
|
+
# process the query parameters
|
|
1345
|
+
# process the header parameters
|
|
1346
|
+
# process the form parameters
|
|
1347
|
+
# process the body parameter
|
|
1348
|
+
if request is not None:
|
|
1349
|
+
_body_params = request
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
# set the HTTP header `Content-Type`
|
|
1354
|
+
if _content_type:
|
|
1355
|
+
_header_params['Content-Type'] = _content_type
|
|
1356
|
+
else:
|
|
1357
|
+
_default_content_type = (
|
|
1358
|
+
self.api_client.select_header_content_type(
|
|
1359
|
+
[
|
|
1360
|
+
'application/json'
|
|
1361
|
+
]
|
|
1362
|
+
)
|
|
1363
|
+
)
|
|
1364
|
+
if _default_content_type is not None:
|
|
1365
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1366
|
+
|
|
1367
|
+
# authentication setting
|
|
1368
|
+
_auth_settings: List[str] = [
|
|
1369
|
+
]
|
|
1370
|
+
|
|
1371
|
+
return self.api_client.param_serialize(
|
|
1372
|
+
method='POST',
|
|
1373
|
+
resource_path='/git/branches',
|
|
1374
|
+
path_params=_path_params,
|
|
1375
|
+
query_params=_query_params,
|
|
1376
|
+
header_params=_header_params,
|
|
1377
|
+
body=_body_params,
|
|
1378
|
+
post_params=_form_params,
|
|
1379
|
+
files=_files,
|
|
1380
|
+
auth_settings=_auth_settings,
|
|
1381
|
+
collection_formats=_collection_formats,
|
|
1382
|
+
_host=_host,
|
|
1383
|
+
_request_auth=_request_auth
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
@validate_call
|
|
1390
|
+
def delete_branch(
|
|
1391
|
+
self,
|
|
1392
|
+
request: Annotated[GitGitDeleteBranchRequest, Field(description="Delete branch request")],
|
|
1393
|
+
_request_timeout: Union[
|
|
1394
|
+
None,
|
|
1395
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1396
|
+
Tuple[
|
|
1397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1398
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1399
|
+
]
|
|
1400
|
+
] = None,
|
|
1401
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1402
|
+
_content_type: Optional[StrictStr] = None,
|
|
1403
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1405
|
+
) -> None:
|
|
1406
|
+
"""Delete a branch
|
|
1407
|
+
|
|
1408
|
+
Delete a branch from the Git repository
|
|
1409
|
+
|
|
1410
|
+
:param request: Delete branch request (required)
|
|
1411
|
+
:type request: GitGitDeleteBranchRequest
|
|
1412
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1413
|
+
number provided, it will be total request
|
|
1414
|
+
timeout. It can also be a pair (tuple) of
|
|
1415
|
+
(connection, read) timeouts.
|
|
1416
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1417
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1418
|
+
request; this effectively ignores the
|
|
1419
|
+
authentication in the spec for a single request.
|
|
1420
|
+
:type _request_auth: dict, optional
|
|
1421
|
+
:param _content_type: force content-type for the request.
|
|
1422
|
+
:type _content_type: str, Optional
|
|
1423
|
+
:param _headers: set to override the headers for a single
|
|
1424
|
+
request; this effectively ignores the headers
|
|
1425
|
+
in the spec for a single request.
|
|
1426
|
+
:type _headers: dict, optional
|
|
1427
|
+
:param _host_index: set to override the host_index for a single
|
|
1428
|
+
request; this effectively ignores the host_index
|
|
1429
|
+
in the spec for a single request.
|
|
1430
|
+
:type _host_index: int, optional
|
|
1431
|
+
:return: Returns the result object.
|
|
1432
|
+
""" # noqa: E501
|
|
1433
|
+
|
|
1434
|
+
_param = self._delete_branch_serialize(
|
|
1435
|
+
request=request,
|
|
1436
|
+
_request_auth=_request_auth,
|
|
1437
|
+
_content_type=_content_type,
|
|
1438
|
+
_headers=_headers,
|
|
1439
|
+
_host_index=_host_index
|
|
1440
|
+
)
|
|
1441
|
+
|
|
1442
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1443
|
+
'204': None,
|
|
1444
|
+
}
|
|
1445
|
+
response_data = self.api_client.call_api(
|
|
1446
|
+
*_param,
|
|
1447
|
+
_request_timeout=_request_timeout
|
|
1448
|
+
)
|
|
1449
|
+
response_data.read()
|
|
1450
|
+
return self.api_client.response_deserialize(
|
|
1451
|
+
response_data=response_data,
|
|
1452
|
+
response_types_map=_response_types_map,
|
|
1453
|
+
).data
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
@validate_call
|
|
1457
|
+
def delete_branch_with_http_info(
|
|
1458
|
+
self,
|
|
1459
|
+
request: Annotated[GitGitDeleteBranchRequest, Field(description="Delete branch request")],
|
|
1460
|
+
_request_timeout: Union[
|
|
1461
|
+
None,
|
|
1462
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1463
|
+
Tuple[
|
|
1464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1465
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1466
|
+
]
|
|
1467
|
+
] = None,
|
|
1468
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1469
|
+
_content_type: Optional[StrictStr] = None,
|
|
1470
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1471
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1472
|
+
) -> ApiResponse[None]:
|
|
1473
|
+
"""Delete a branch
|
|
1474
|
+
|
|
1475
|
+
Delete a branch from the Git repository
|
|
1476
|
+
|
|
1477
|
+
:param request: Delete branch request (required)
|
|
1478
|
+
:type request: GitGitDeleteBranchRequest
|
|
1479
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1480
|
+
number provided, it will be total request
|
|
1481
|
+
timeout. It can also be a pair (tuple) of
|
|
1482
|
+
(connection, read) timeouts.
|
|
1483
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1484
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1485
|
+
request; this effectively ignores the
|
|
1486
|
+
authentication in the spec for a single request.
|
|
1487
|
+
:type _request_auth: dict, optional
|
|
1488
|
+
:param _content_type: force content-type for the request.
|
|
1489
|
+
:type _content_type: str, Optional
|
|
1490
|
+
:param _headers: set to override the headers for a single
|
|
1491
|
+
request; this effectively ignores the headers
|
|
1492
|
+
in the spec for a single request.
|
|
1493
|
+
:type _headers: dict, optional
|
|
1494
|
+
:param _host_index: set to override the host_index for a single
|
|
1495
|
+
request; this effectively ignores the host_index
|
|
1496
|
+
in the spec for a single request.
|
|
1497
|
+
:type _host_index: int, optional
|
|
1498
|
+
:return: Returns the result object.
|
|
1499
|
+
""" # noqa: E501
|
|
1500
|
+
|
|
1501
|
+
_param = self._delete_branch_serialize(
|
|
1502
|
+
request=request,
|
|
1503
|
+
_request_auth=_request_auth,
|
|
1504
|
+
_content_type=_content_type,
|
|
1505
|
+
_headers=_headers,
|
|
1506
|
+
_host_index=_host_index
|
|
1507
|
+
)
|
|
1508
|
+
|
|
1509
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1510
|
+
'204': None,
|
|
1511
|
+
}
|
|
1512
|
+
response_data = self.api_client.call_api(
|
|
1513
|
+
*_param,
|
|
1514
|
+
_request_timeout=_request_timeout
|
|
1515
|
+
)
|
|
1516
|
+
response_data.read()
|
|
1517
|
+
return self.api_client.response_deserialize(
|
|
1518
|
+
response_data=response_data,
|
|
1519
|
+
response_types_map=_response_types_map,
|
|
1520
|
+
)
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
@validate_call
|
|
1524
|
+
def delete_branch_without_preload_content(
|
|
1525
|
+
self,
|
|
1526
|
+
request: Annotated[GitGitDeleteBranchRequest, Field(description="Delete branch request")],
|
|
1527
|
+
_request_timeout: Union[
|
|
1528
|
+
None,
|
|
1529
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1530
|
+
Tuple[
|
|
1531
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1532
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1533
|
+
]
|
|
1534
|
+
] = None,
|
|
1535
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1536
|
+
_content_type: Optional[StrictStr] = None,
|
|
1537
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1538
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1539
|
+
) -> RESTResponseType:
|
|
1540
|
+
"""Delete a branch
|
|
1541
|
+
|
|
1542
|
+
Delete a branch from the Git repository
|
|
1543
|
+
|
|
1544
|
+
:param request: Delete branch request (required)
|
|
1545
|
+
:type request: GitGitDeleteBranchRequest
|
|
1546
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1547
|
+
number provided, it will be total request
|
|
1548
|
+
timeout. It can also be a pair (tuple) of
|
|
1549
|
+
(connection, read) timeouts.
|
|
1550
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1551
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1552
|
+
request; this effectively ignores the
|
|
1553
|
+
authentication in the spec for a single request.
|
|
1554
|
+
:type _request_auth: dict, optional
|
|
1555
|
+
:param _content_type: force content-type for the request.
|
|
1556
|
+
:type _content_type: str, Optional
|
|
1557
|
+
:param _headers: set to override the headers for a single
|
|
1558
|
+
request; this effectively ignores the headers
|
|
1559
|
+
in the spec for a single request.
|
|
1560
|
+
:type _headers: dict, optional
|
|
1561
|
+
:param _host_index: set to override the host_index for a single
|
|
1562
|
+
request; this effectively ignores the host_index
|
|
1563
|
+
in the spec for a single request.
|
|
1564
|
+
:type _host_index: int, optional
|
|
1565
|
+
:return: Returns the result object.
|
|
1566
|
+
""" # noqa: E501
|
|
1567
|
+
|
|
1568
|
+
_param = self._delete_branch_serialize(
|
|
1569
|
+
request=request,
|
|
1570
|
+
_request_auth=_request_auth,
|
|
1571
|
+
_content_type=_content_type,
|
|
1572
|
+
_headers=_headers,
|
|
1573
|
+
_host_index=_host_index
|
|
1574
|
+
)
|
|
1575
|
+
|
|
1576
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1577
|
+
'204': None,
|
|
1578
|
+
}
|
|
1579
|
+
response_data = self.api_client.call_api(
|
|
1580
|
+
*_param,
|
|
1581
|
+
_request_timeout=_request_timeout
|
|
1582
|
+
)
|
|
1583
|
+
return response_data.response
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
def _delete_branch_serialize(
|
|
1587
|
+
self,
|
|
1588
|
+
request,
|
|
1589
|
+
_request_auth,
|
|
1590
|
+
_content_type,
|
|
1591
|
+
_headers,
|
|
1592
|
+
_host_index,
|
|
1593
|
+
) -> RequestSerialized:
|
|
1594
|
+
|
|
1595
|
+
_host = None
|
|
1596
|
+
|
|
1597
|
+
_collection_formats: Dict[str, str] = {
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
_path_params: Dict[str, str] = {}
|
|
1601
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1602
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1603
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1604
|
+
_files: Dict[
|
|
1605
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1606
|
+
] = {}
|
|
1607
|
+
_body_params: Optional[bytes] = None
|
|
1608
|
+
|
|
1609
|
+
# process the path parameters
|
|
1610
|
+
# process the query parameters
|
|
1611
|
+
# process the header parameters
|
|
1612
|
+
# process the form parameters
|
|
1613
|
+
# process the body parameter
|
|
1614
|
+
if request is not None:
|
|
1615
|
+
_body_params = request
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
# set the HTTP header `Content-Type`
|
|
1620
|
+
if _content_type:
|
|
1621
|
+
_header_params['Content-Type'] = _content_type
|
|
1622
|
+
else:
|
|
1623
|
+
_default_content_type = (
|
|
1624
|
+
self.api_client.select_header_content_type(
|
|
1625
|
+
[
|
|
1626
|
+
'application/json'
|
|
1627
|
+
]
|
|
1628
|
+
)
|
|
1629
|
+
)
|
|
1630
|
+
if _default_content_type is not None:
|
|
1631
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1632
|
+
|
|
1633
|
+
# authentication setting
|
|
1634
|
+
_auth_settings: List[str] = [
|
|
1635
|
+
]
|
|
1636
|
+
|
|
1637
|
+
return self.api_client.param_serialize(
|
|
1638
|
+
method='DELETE',
|
|
1639
|
+
resource_path='/git/branches',
|
|
1640
|
+
path_params=_path_params,
|
|
1641
|
+
query_params=_query_params,
|
|
1642
|
+
header_params=_header_params,
|
|
1643
|
+
body=_body_params,
|
|
1644
|
+
post_params=_form_params,
|
|
1645
|
+
files=_files,
|
|
1646
|
+
auth_settings=_auth_settings,
|
|
1647
|
+
collection_formats=_collection_formats,
|
|
1648
|
+
_host=_host,
|
|
1649
|
+
_request_auth=_request_auth
|
|
1650
|
+
)
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
@validate_call
|
|
1656
|
+
def get_commit_history(
|
|
1657
|
+
self,
|
|
1658
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
1659
|
+
_request_timeout: Union[
|
|
1660
|
+
None,
|
|
1661
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1662
|
+
Tuple[
|
|
1663
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1664
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1665
|
+
]
|
|
1666
|
+
] = None,
|
|
1667
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1668
|
+
_content_type: Optional[StrictStr] = None,
|
|
1669
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1670
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1671
|
+
) -> List[GitCommitInfo]:
|
|
1672
|
+
"""Get commit history
|
|
1673
|
+
|
|
1674
|
+
Get the commit history of the Git repository
|
|
1675
|
+
|
|
1676
|
+
:param path: Repository path (required)
|
|
1677
|
+
:type path: str
|
|
1678
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1679
|
+
number provided, it will be total request
|
|
1680
|
+
timeout. It can also be a pair (tuple) of
|
|
1681
|
+
(connection, read) timeouts.
|
|
1682
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1683
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1684
|
+
request; this effectively ignores the
|
|
1685
|
+
authentication in the spec for a single request.
|
|
1686
|
+
:type _request_auth: dict, optional
|
|
1687
|
+
:param _content_type: force content-type for the request.
|
|
1688
|
+
:type _content_type: str, Optional
|
|
1689
|
+
:param _headers: set to override the headers for a single
|
|
1690
|
+
request; this effectively ignores the headers
|
|
1691
|
+
in the spec for a single request.
|
|
1692
|
+
:type _headers: dict, optional
|
|
1693
|
+
:param _host_index: set to override the host_index for a single
|
|
1694
|
+
request; this effectively ignores the host_index
|
|
1695
|
+
in the spec for a single request.
|
|
1696
|
+
:type _host_index: int, optional
|
|
1697
|
+
:return: Returns the result object.
|
|
1698
|
+
""" # noqa: E501
|
|
1699
|
+
|
|
1700
|
+
_param = self._get_commit_history_serialize(
|
|
1701
|
+
path=path,
|
|
1702
|
+
_request_auth=_request_auth,
|
|
1703
|
+
_content_type=_content_type,
|
|
1704
|
+
_headers=_headers,
|
|
1705
|
+
_host_index=_host_index
|
|
1706
|
+
)
|
|
1707
|
+
|
|
1708
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1709
|
+
'200': "List[GitCommitInfo]",
|
|
1710
|
+
}
|
|
1711
|
+
response_data = self.api_client.call_api(
|
|
1712
|
+
*_param,
|
|
1713
|
+
_request_timeout=_request_timeout
|
|
1714
|
+
)
|
|
1715
|
+
response_data.read()
|
|
1716
|
+
return self.api_client.response_deserialize(
|
|
1717
|
+
response_data=response_data,
|
|
1718
|
+
response_types_map=_response_types_map,
|
|
1719
|
+
).data
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
@validate_call
|
|
1723
|
+
def get_commit_history_with_http_info(
|
|
1724
|
+
self,
|
|
1725
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
1726
|
+
_request_timeout: Union[
|
|
1727
|
+
None,
|
|
1728
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1729
|
+
Tuple[
|
|
1730
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1731
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1732
|
+
]
|
|
1733
|
+
] = None,
|
|
1734
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1735
|
+
_content_type: Optional[StrictStr] = None,
|
|
1736
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1737
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1738
|
+
) -> ApiResponse[List[GitCommitInfo]]:
|
|
1739
|
+
"""Get commit history
|
|
1740
|
+
|
|
1741
|
+
Get the commit history of the Git repository
|
|
1742
|
+
|
|
1743
|
+
:param path: Repository path (required)
|
|
1744
|
+
:type path: str
|
|
1745
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1746
|
+
number provided, it will be total request
|
|
1747
|
+
timeout. It can also be a pair (tuple) of
|
|
1748
|
+
(connection, read) timeouts.
|
|
1749
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1750
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1751
|
+
request; this effectively ignores the
|
|
1752
|
+
authentication in the spec for a single request.
|
|
1753
|
+
:type _request_auth: dict, optional
|
|
1754
|
+
:param _content_type: force content-type for the request.
|
|
1755
|
+
:type _content_type: str, Optional
|
|
1756
|
+
:param _headers: set to override the headers for a single
|
|
1757
|
+
request; this effectively ignores the headers
|
|
1758
|
+
in the spec for a single request.
|
|
1759
|
+
:type _headers: dict, optional
|
|
1760
|
+
:param _host_index: set to override the host_index for a single
|
|
1761
|
+
request; this effectively ignores the host_index
|
|
1762
|
+
in the spec for a single request.
|
|
1763
|
+
:type _host_index: int, optional
|
|
1764
|
+
:return: Returns the result object.
|
|
1765
|
+
""" # noqa: E501
|
|
1766
|
+
|
|
1767
|
+
_param = self._get_commit_history_serialize(
|
|
1768
|
+
path=path,
|
|
1769
|
+
_request_auth=_request_auth,
|
|
1770
|
+
_content_type=_content_type,
|
|
1771
|
+
_headers=_headers,
|
|
1772
|
+
_host_index=_host_index
|
|
1773
|
+
)
|
|
1774
|
+
|
|
1775
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1776
|
+
'200': "List[GitCommitInfo]",
|
|
1777
|
+
}
|
|
1778
|
+
response_data = self.api_client.call_api(
|
|
1779
|
+
*_param,
|
|
1780
|
+
_request_timeout=_request_timeout
|
|
1781
|
+
)
|
|
1782
|
+
response_data.read()
|
|
1783
|
+
return self.api_client.response_deserialize(
|
|
1784
|
+
response_data=response_data,
|
|
1785
|
+
response_types_map=_response_types_map,
|
|
1786
|
+
)
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
@validate_call
|
|
1790
|
+
def get_commit_history_without_preload_content(
|
|
1791
|
+
self,
|
|
1792
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
1793
|
+
_request_timeout: Union[
|
|
1794
|
+
None,
|
|
1795
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1796
|
+
Tuple[
|
|
1797
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1798
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1799
|
+
]
|
|
1800
|
+
] = None,
|
|
1801
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1802
|
+
_content_type: Optional[StrictStr] = None,
|
|
1803
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1804
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1805
|
+
) -> RESTResponseType:
|
|
1806
|
+
"""Get commit history
|
|
1807
|
+
|
|
1808
|
+
Get the commit history of the Git repository
|
|
1809
|
+
|
|
1810
|
+
:param path: Repository path (required)
|
|
1811
|
+
:type path: str
|
|
1812
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1813
|
+
number provided, it will be total request
|
|
1814
|
+
timeout. It can also be a pair (tuple) of
|
|
1815
|
+
(connection, read) timeouts.
|
|
1816
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1817
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1818
|
+
request; this effectively ignores the
|
|
1819
|
+
authentication in the spec for a single request.
|
|
1820
|
+
:type _request_auth: dict, optional
|
|
1821
|
+
:param _content_type: force content-type for the request.
|
|
1822
|
+
:type _content_type: str, Optional
|
|
1823
|
+
:param _headers: set to override the headers for a single
|
|
1824
|
+
request; this effectively ignores the headers
|
|
1825
|
+
in the spec for a single request.
|
|
1826
|
+
:type _headers: dict, optional
|
|
1827
|
+
:param _host_index: set to override the host_index for a single
|
|
1828
|
+
request; this effectively ignores the host_index
|
|
1829
|
+
in the spec for a single request.
|
|
1830
|
+
:type _host_index: int, optional
|
|
1831
|
+
:return: Returns the result object.
|
|
1832
|
+
""" # noqa: E501
|
|
1833
|
+
|
|
1834
|
+
_param = self._get_commit_history_serialize(
|
|
1835
|
+
path=path,
|
|
1836
|
+
_request_auth=_request_auth,
|
|
1837
|
+
_content_type=_content_type,
|
|
1838
|
+
_headers=_headers,
|
|
1839
|
+
_host_index=_host_index
|
|
1840
|
+
)
|
|
1841
|
+
|
|
1842
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1843
|
+
'200': "List[GitCommitInfo]",
|
|
1844
|
+
}
|
|
1845
|
+
response_data = self.api_client.call_api(
|
|
1846
|
+
*_param,
|
|
1847
|
+
_request_timeout=_request_timeout
|
|
1848
|
+
)
|
|
1849
|
+
return response_data.response
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
def _get_commit_history_serialize(
|
|
1853
|
+
self,
|
|
1854
|
+
path,
|
|
1855
|
+
_request_auth,
|
|
1856
|
+
_content_type,
|
|
1857
|
+
_headers,
|
|
1858
|
+
_host_index,
|
|
1859
|
+
) -> RequestSerialized:
|
|
1860
|
+
|
|
1861
|
+
_host = None
|
|
1862
|
+
|
|
1863
|
+
_collection_formats: Dict[str, str] = {
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
_path_params: Dict[str, str] = {}
|
|
1867
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1868
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1869
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1870
|
+
_files: Dict[
|
|
1871
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1872
|
+
] = {}
|
|
1873
|
+
_body_params: Optional[bytes] = None
|
|
1874
|
+
|
|
1875
|
+
# process the path parameters
|
|
1876
|
+
# process the query parameters
|
|
1877
|
+
if path is not None:
|
|
1878
|
+
|
|
1879
|
+
_query_params.append(('path', path))
|
|
1880
|
+
|
|
1881
|
+
# process the header parameters
|
|
1882
|
+
# process the form parameters
|
|
1883
|
+
# process the body parameter
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
# set the HTTP header `Accept`
|
|
1887
|
+
if 'Accept' not in _header_params:
|
|
1888
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1889
|
+
[
|
|
1890
|
+
'application/json'
|
|
1891
|
+
]
|
|
1892
|
+
)
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
# authentication setting
|
|
1896
|
+
_auth_settings: List[str] = [
|
|
1897
|
+
]
|
|
1898
|
+
|
|
1899
|
+
return self.api_client.param_serialize(
|
|
1900
|
+
method='GET',
|
|
1901
|
+
resource_path='/git/history',
|
|
1902
|
+
path_params=_path_params,
|
|
1903
|
+
query_params=_query_params,
|
|
1904
|
+
header_params=_header_params,
|
|
1905
|
+
body=_body_params,
|
|
1906
|
+
post_params=_form_params,
|
|
1907
|
+
files=_files,
|
|
1908
|
+
auth_settings=_auth_settings,
|
|
1909
|
+
collection_formats=_collection_formats,
|
|
1910
|
+
_host=_host,
|
|
1911
|
+
_request_auth=_request_auth
|
|
1912
|
+
)
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
@validate_call
|
|
1918
|
+
def get_status(
|
|
1919
|
+
self,
|
|
1920
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
1921
|
+
_request_timeout: Union[
|
|
1922
|
+
None,
|
|
1923
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1924
|
+
Tuple[
|
|
1925
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1926
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1927
|
+
]
|
|
1928
|
+
] = None,
|
|
1929
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1930
|
+
_content_type: Optional[StrictStr] = None,
|
|
1931
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1932
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1933
|
+
) -> GitStatus:
|
|
1934
|
+
"""Get Git status
|
|
1935
|
+
|
|
1936
|
+
Get the Git status of the repository at the specified path
|
|
1937
|
+
|
|
1938
|
+
:param path: Repository path (required)
|
|
1939
|
+
:type path: str
|
|
1940
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1941
|
+
number provided, it will be total request
|
|
1942
|
+
timeout. It can also be a pair (tuple) of
|
|
1943
|
+
(connection, read) timeouts.
|
|
1944
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1945
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1946
|
+
request; this effectively ignores the
|
|
1947
|
+
authentication in the spec for a single request.
|
|
1948
|
+
:type _request_auth: dict, optional
|
|
1949
|
+
:param _content_type: force content-type for the request.
|
|
1950
|
+
:type _content_type: str, Optional
|
|
1951
|
+
:param _headers: set to override the headers for a single
|
|
1952
|
+
request; this effectively ignores the headers
|
|
1953
|
+
in the spec for a single request.
|
|
1954
|
+
:type _headers: dict, optional
|
|
1955
|
+
:param _host_index: set to override the host_index for a single
|
|
1956
|
+
request; this effectively ignores the host_index
|
|
1957
|
+
in the spec for a single request.
|
|
1958
|
+
:type _host_index: int, optional
|
|
1959
|
+
:return: Returns the result object.
|
|
1960
|
+
""" # noqa: E501
|
|
1961
|
+
|
|
1962
|
+
_param = self._get_status_serialize(
|
|
1963
|
+
path=path,
|
|
1964
|
+
_request_auth=_request_auth,
|
|
1965
|
+
_content_type=_content_type,
|
|
1966
|
+
_headers=_headers,
|
|
1967
|
+
_host_index=_host_index
|
|
1968
|
+
)
|
|
1969
|
+
|
|
1970
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1971
|
+
'200': "GitStatus",
|
|
1972
|
+
}
|
|
1973
|
+
response_data = self.api_client.call_api(
|
|
1974
|
+
*_param,
|
|
1975
|
+
_request_timeout=_request_timeout
|
|
1976
|
+
)
|
|
1977
|
+
response_data.read()
|
|
1978
|
+
return self.api_client.response_deserialize(
|
|
1979
|
+
response_data=response_data,
|
|
1980
|
+
response_types_map=_response_types_map,
|
|
1981
|
+
).data
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
@validate_call
|
|
1985
|
+
def get_status_with_http_info(
|
|
1986
|
+
self,
|
|
1987
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
1988
|
+
_request_timeout: Union[
|
|
1989
|
+
None,
|
|
1990
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1991
|
+
Tuple[
|
|
1992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1993
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1994
|
+
]
|
|
1995
|
+
] = None,
|
|
1996
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1997
|
+
_content_type: Optional[StrictStr] = None,
|
|
1998
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1999
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2000
|
+
) -> ApiResponse[GitStatus]:
|
|
2001
|
+
"""Get Git status
|
|
2002
|
+
|
|
2003
|
+
Get the Git status of the repository at the specified path
|
|
2004
|
+
|
|
2005
|
+
:param path: Repository path (required)
|
|
2006
|
+
:type path: str
|
|
2007
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2008
|
+
number provided, it will be total request
|
|
2009
|
+
timeout. It can also be a pair (tuple) of
|
|
2010
|
+
(connection, read) timeouts.
|
|
2011
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2012
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2013
|
+
request; this effectively ignores the
|
|
2014
|
+
authentication in the spec for a single request.
|
|
2015
|
+
:type _request_auth: dict, optional
|
|
2016
|
+
:param _content_type: force content-type for the request.
|
|
2017
|
+
:type _content_type: str, Optional
|
|
2018
|
+
:param _headers: set to override the headers for a single
|
|
2019
|
+
request; this effectively ignores the headers
|
|
2020
|
+
in the spec for a single request.
|
|
2021
|
+
:type _headers: dict, optional
|
|
2022
|
+
:param _host_index: set to override the host_index for a single
|
|
2023
|
+
request; this effectively ignores the host_index
|
|
2024
|
+
in the spec for a single request.
|
|
2025
|
+
:type _host_index: int, optional
|
|
2026
|
+
:return: Returns the result object.
|
|
2027
|
+
""" # noqa: E501
|
|
2028
|
+
|
|
2029
|
+
_param = self._get_status_serialize(
|
|
2030
|
+
path=path,
|
|
2031
|
+
_request_auth=_request_auth,
|
|
2032
|
+
_content_type=_content_type,
|
|
2033
|
+
_headers=_headers,
|
|
2034
|
+
_host_index=_host_index
|
|
2035
|
+
)
|
|
2036
|
+
|
|
2037
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2038
|
+
'200': "GitStatus",
|
|
2039
|
+
}
|
|
2040
|
+
response_data = self.api_client.call_api(
|
|
2041
|
+
*_param,
|
|
2042
|
+
_request_timeout=_request_timeout
|
|
2043
|
+
)
|
|
2044
|
+
response_data.read()
|
|
2045
|
+
return self.api_client.response_deserialize(
|
|
2046
|
+
response_data=response_data,
|
|
2047
|
+
response_types_map=_response_types_map,
|
|
2048
|
+
)
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
@validate_call
|
|
2052
|
+
def get_status_without_preload_content(
|
|
2053
|
+
self,
|
|
2054
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
2055
|
+
_request_timeout: Union[
|
|
2056
|
+
None,
|
|
2057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2058
|
+
Tuple[
|
|
2059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2061
|
+
]
|
|
2062
|
+
] = None,
|
|
2063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2064
|
+
_content_type: Optional[StrictStr] = None,
|
|
2065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2067
|
+
) -> RESTResponseType:
|
|
2068
|
+
"""Get Git status
|
|
2069
|
+
|
|
2070
|
+
Get the Git status of the repository at the specified path
|
|
2071
|
+
|
|
2072
|
+
:param path: Repository path (required)
|
|
2073
|
+
:type path: str
|
|
2074
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2075
|
+
number provided, it will be total request
|
|
2076
|
+
timeout. It can also be a pair (tuple) of
|
|
2077
|
+
(connection, read) timeouts.
|
|
2078
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2079
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2080
|
+
request; this effectively ignores the
|
|
2081
|
+
authentication in the spec for a single request.
|
|
2082
|
+
:type _request_auth: dict, optional
|
|
2083
|
+
:param _content_type: force content-type for the request.
|
|
2084
|
+
:type _content_type: str, Optional
|
|
2085
|
+
:param _headers: set to override the headers for a single
|
|
2086
|
+
request; this effectively ignores the headers
|
|
2087
|
+
in the spec for a single request.
|
|
2088
|
+
:type _headers: dict, optional
|
|
2089
|
+
:param _host_index: set to override the host_index for a single
|
|
2090
|
+
request; this effectively ignores the host_index
|
|
2091
|
+
in the spec for a single request.
|
|
2092
|
+
:type _host_index: int, optional
|
|
2093
|
+
:return: Returns the result object.
|
|
2094
|
+
""" # noqa: E501
|
|
2095
|
+
|
|
2096
|
+
_param = self._get_status_serialize(
|
|
2097
|
+
path=path,
|
|
2098
|
+
_request_auth=_request_auth,
|
|
2099
|
+
_content_type=_content_type,
|
|
2100
|
+
_headers=_headers,
|
|
2101
|
+
_host_index=_host_index
|
|
2102
|
+
)
|
|
2103
|
+
|
|
2104
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2105
|
+
'200': "GitStatus",
|
|
2106
|
+
}
|
|
2107
|
+
response_data = self.api_client.call_api(
|
|
2108
|
+
*_param,
|
|
2109
|
+
_request_timeout=_request_timeout
|
|
2110
|
+
)
|
|
2111
|
+
return response_data.response
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
def _get_status_serialize(
|
|
2115
|
+
self,
|
|
2116
|
+
path,
|
|
2117
|
+
_request_auth,
|
|
2118
|
+
_content_type,
|
|
2119
|
+
_headers,
|
|
2120
|
+
_host_index,
|
|
2121
|
+
) -> RequestSerialized:
|
|
2122
|
+
|
|
2123
|
+
_host = None
|
|
2124
|
+
|
|
2125
|
+
_collection_formats: Dict[str, str] = {
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
_path_params: Dict[str, str] = {}
|
|
2129
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2130
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2131
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2132
|
+
_files: Dict[
|
|
2133
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2134
|
+
] = {}
|
|
2135
|
+
_body_params: Optional[bytes] = None
|
|
2136
|
+
|
|
2137
|
+
# process the path parameters
|
|
2138
|
+
# process the query parameters
|
|
2139
|
+
if path is not None:
|
|
2140
|
+
|
|
2141
|
+
_query_params.append(('path', path))
|
|
2142
|
+
|
|
2143
|
+
# process the header parameters
|
|
2144
|
+
# process the form parameters
|
|
2145
|
+
# process the body parameter
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
# set the HTTP header `Accept`
|
|
2149
|
+
if 'Accept' not in _header_params:
|
|
2150
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2151
|
+
[
|
|
2152
|
+
'application/json'
|
|
2153
|
+
]
|
|
2154
|
+
)
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
# authentication setting
|
|
2158
|
+
_auth_settings: List[str] = [
|
|
2159
|
+
]
|
|
2160
|
+
|
|
2161
|
+
return self.api_client.param_serialize(
|
|
2162
|
+
method='GET',
|
|
2163
|
+
resource_path='/git/status',
|
|
2164
|
+
path_params=_path_params,
|
|
2165
|
+
query_params=_query_params,
|
|
2166
|
+
header_params=_header_params,
|
|
2167
|
+
body=_body_params,
|
|
2168
|
+
post_params=_form_params,
|
|
2169
|
+
files=_files,
|
|
2170
|
+
auth_settings=_auth_settings,
|
|
2171
|
+
collection_formats=_collection_formats,
|
|
2172
|
+
_host=_host,
|
|
2173
|
+
_request_auth=_request_auth
|
|
2174
|
+
)
|
|
2175
|
+
|
|
2176
|
+
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
@validate_call
|
|
2180
|
+
def list_branches(
|
|
2181
|
+
self,
|
|
2182
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
2183
|
+
_request_timeout: Union[
|
|
2184
|
+
None,
|
|
2185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2186
|
+
Tuple[
|
|
2187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2189
|
+
]
|
|
2190
|
+
] = None,
|
|
2191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2192
|
+
_content_type: Optional[StrictStr] = None,
|
|
2193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2195
|
+
) -> ListBranchResponse:
|
|
2196
|
+
"""List branches
|
|
2197
|
+
|
|
2198
|
+
Get a list of all branches in the Git repository
|
|
2199
|
+
|
|
2200
|
+
:param path: Repository path (required)
|
|
2201
|
+
:type path: str
|
|
2202
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2203
|
+
number provided, it will be total request
|
|
2204
|
+
timeout. It can also be a pair (tuple) of
|
|
2205
|
+
(connection, read) timeouts.
|
|
2206
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2207
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2208
|
+
request; this effectively ignores the
|
|
2209
|
+
authentication in the spec for a single request.
|
|
2210
|
+
:type _request_auth: dict, optional
|
|
2211
|
+
:param _content_type: force content-type for the request.
|
|
2212
|
+
:type _content_type: str, Optional
|
|
2213
|
+
:param _headers: set to override the headers for a single
|
|
2214
|
+
request; this effectively ignores the headers
|
|
2215
|
+
in the spec for a single request.
|
|
2216
|
+
:type _headers: dict, optional
|
|
2217
|
+
:param _host_index: set to override the host_index for a single
|
|
2218
|
+
request; this effectively ignores the host_index
|
|
2219
|
+
in the spec for a single request.
|
|
2220
|
+
:type _host_index: int, optional
|
|
2221
|
+
:return: Returns the result object.
|
|
2222
|
+
""" # noqa: E501
|
|
2223
|
+
|
|
2224
|
+
_param = self._list_branches_serialize(
|
|
2225
|
+
path=path,
|
|
2226
|
+
_request_auth=_request_auth,
|
|
2227
|
+
_content_type=_content_type,
|
|
2228
|
+
_headers=_headers,
|
|
2229
|
+
_host_index=_host_index
|
|
2230
|
+
)
|
|
2231
|
+
|
|
2232
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2233
|
+
'200': "ListBranchResponse",
|
|
2234
|
+
}
|
|
2235
|
+
response_data = self.api_client.call_api(
|
|
2236
|
+
*_param,
|
|
2237
|
+
_request_timeout=_request_timeout
|
|
2238
|
+
)
|
|
2239
|
+
response_data.read()
|
|
2240
|
+
return self.api_client.response_deserialize(
|
|
2241
|
+
response_data=response_data,
|
|
2242
|
+
response_types_map=_response_types_map,
|
|
2243
|
+
).data
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
@validate_call
|
|
2247
|
+
def list_branches_with_http_info(
|
|
2248
|
+
self,
|
|
2249
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
2250
|
+
_request_timeout: Union[
|
|
2251
|
+
None,
|
|
2252
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2253
|
+
Tuple[
|
|
2254
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2255
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2256
|
+
]
|
|
2257
|
+
] = None,
|
|
2258
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2259
|
+
_content_type: Optional[StrictStr] = None,
|
|
2260
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2261
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2262
|
+
) -> ApiResponse[ListBranchResponse]:
|
|
2263
|
+
"""List branches
|
|
2264
|
+
|
|
2265
|
+
Get a list of all branches in the Git repository
|
|
2266
|
+
|
|
2267
|
+
:param path: Repository path (required)
|
|
2268
|
+
:type path: str
|
|
2269
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2270
|
+
number provided, it will be total request
|
|
2271
|
+
timeout. It can also be a pair (tuple) of
|
|
2272
|
+
(connection, read) timeouts.
|
|
2273
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2274
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2275
|
+
request; this effectively ignores the
|
|
2276
|
+
authentication in the spec for a single request.
|
|
2277
|
+
:type _request_auth: dict, optional
|
|
2278
|
+
:param _content_type: force content-type for the request.
|
|
2279
|
+
:type _content_type: str, Optional
|
|
2280
|
+
:param _headers: set to override the headers for a single
|
|
2281
|
+
request; this effectively ignores the headers
|
|
2282
|
+
in the spec for a single request.
|
|
2283
|
+
:type _headers: dict, optional
|
|
2284
|
+
:param _host_index: set to override the host_index for a single
|
|
2285
|
+
request; this effectively ignores the host_index
|
|
2286
|
+
in the spec for a single request.
|
|
2287
|
+
:type _host_index: int, optional
|
|
2288
|
+
:return: Returns the result object.
|
|
2289
|
+
""" # noqa: E501
|
|
2290
|
+
|
|
2291
|
+
_param = self._list_branches_serialize(
|
|
2292
|
+
path=path,
|
|
2293
|
+
_request_auth=_request_auth,
|
|
2294
|
+
_content_type=_content_type,
|
|
2295
|
+
_headers=_headers,
|
|
2296
|
+
_host_index=_host_index
|
|
2297
|
+
)
|
|
2298
|
+
|
|
2299
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2300
|
+
'200': "ListBranchResponse",
|
|
2301
|
+
}
|
|
2302
|
+
response_data = self.api_client.call_api(
|
|
2303
|
+
*_param,
|
|
2304
|
+
_request_timeout=_request_timeout
|
|
2305
|
+
)
|
|
2306
|
+
response_data.read()
|
|
2307
|
+
return self.api_client.response_deserialize(
|
|
2308
|
+
response_data=response_data,
|
|
2309
|
+
response_types_map=_response_types_map,
|
|
2310
|
+
)
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
@validate_call
|
|
2314
|
+
def list_branches_without_preload_content(
|
|
2315
|
+
self,
|
|
2316
|
+
path: Annotated[StrictStr, Field(description="Repository path")],
|
|
2317
|
+
_request_timeout: Union[
|
|
2318
|
+
None,
|
|
2319
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2320
|
+
Tuple[
|
|
2321
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2322
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2323
|
+
]
|
|
2324
|
+
] = None,
|
|
2325
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2326
|
+
_content_type: Optional[StrictStr] = None,
|
|
2327
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2328
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2329
|
+
) -> RESTResponseType:
|
|
2330
|
+
"""List branches
|
|
2331
|
+
|
|
2332
|
+
Get a list of all branches in the Git repository
|
|
2333
|
+
|
|
2334
|
+
:param path: Repository path (required)
|
|
2335
|
+
:type path: str
|
|
2336
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2337
|
+
number provided, it will be total request
|
|
2338
|
+
timeout. It can also be a pair (tuple) of
|
|
2339
|
+
(connection, read) timeouts.
|
|
2340
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2341
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2342
|
+
request; this effectively ignores the
|
|
2343
|
+
authentication in the spec for a single request.
|
|
2344
|
+
:type _request_auth: dict, optional
|
|
2345
|
+
:param _content_type: force content-type for the request.
|
|
2346
|
+
:type _content_type: str, Optional
|
|
2347
|
+
:param _headers: set to override the headers for a single
|
|
2348
|
+
request; this effectively ignores the headers
|
|
2349
|
+
in the spec for a single request.
|
|
2350
|
+
:type _headers: dict, optional
|
|
2351
|
+
:param _host_index: set to override the host_index for a single
|
|
2352
|
+
request; this effectively ignores the host_index
|
|
2353
|
+
in the spec for a single request.
|
|
2354
|
+
:type _host_index: int, optional
|
|
2355
|
+
:return: Returns the result object.
|
|
2356
|
+
""" # noqa: E501
|
|
2357
|
+
|
|
2358
|
+
_param = self._list_branches_serialize(
|
|
2359
|
+
path=path,
|
|
2360
|
+
_request_auth=_request_auth,
|
|
2361
|
+
_content_type=_content_type,
|
|
2362
|
+
_headers=_headers,
|
|
2363
|
+
_host_index=_host_index
|
|
2364
|
+
)
|
|
2365
|
+
|
|
2366
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2367
|
+
'200': "ListBranchResponse",
|
|
2368
|
+
}
|
|
2369
|
+
response_data = self.api_client.call_api(
|
|
2370
|
+
*_param,
|
|
2371
|
+
_request_timeout=_request_timeout
|
|
2372
|
+
)
|
|
2373
|
+
return response_data.response
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
def _list_branches_serialize(
|
|
2377
|
+
self,
|
|
2378
|
+
path,
|
|
2379
|
+
_request_auth,
|
|
2380
|
+
_content_type,
|
|
2381
|
+
_headers,
|
|
2382
|
+
_host_index,
|
|
2383
|
+
) -> RequestSerialized:
|
|
2384
|
+
|
|
2385
|
+
_host = None
|
|
2386
|
+
|
|
2387
|
+
_collection_formats: Dict[str, str] = {
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
_path_params: Dict[str, str] = {}
|
|
2391
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2392
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2393
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2394
|
+
_files: Dict[
|
|
2395
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2396
|
+
] = {}
|
|
2397
|
+
_body_params: Optional[bytes] = None
|
|
2398
|
+
|
|
2399
|
+
# process the path parameters
|
|
2400
|
+
# process the query parameters
|
|
2401
|
+
if path is not None:
|
|
2402
|
+
|
|
2403
|
+
_query_params.append(('path', path))
|
|
2404
|
+
|
|
2405
|
+
# process the header parameters
|
|
2406
|
+
# process the form parameters
|
|
2407
|
+
# process the body parameter
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
# set the HTTP header `Accept`
|
|
2411
|
+
if 'Accept' not in _header_params:
|
|
2412
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2413
|
+
[
|
|
2414
|
+
'application/json'
|
|
2415
|
+
]
|
|
2416
|
+
)
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
# authentication setting
|
|
2420
|
+
_auth_settings: List[str] = [
|
|
2421
|
+
]
|
|
2422
|
+
|
|
2423
|
+
return self.api_client.param_serialize(
|
|
2424
|
+
method='GET',
|
|
2425
|
+
resource_path='/git/branches',
|
|
2426
|
+
path_params=_path_params,
|
|
2427
|
+
query_params=_query_params,
|
|
2428
|
+
header_params=_header_params,
|
|
2429
|
+
body=_body_params,
|
|
2430
|
+
post_params=_form_params,
|
|
2431
|
+
files=_files,
|
|
2432
|
+
auth_settings=_auth_settings,
|
|
2433
|
+
collection_formats=_collection_formats,
|
|
2434
|
+
_host=_host,
|
|
2435
|
+
_request_auth=_request_auth
|
|
2436
|
+
)
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
@validate_call
|
|
2442
|
+
def pull_changes(
|
|
2443
|
+
self,
|
|
2444
|
+
request: Annotated[GitRepoRequest, Field(description="Pull request")],
|
|
2445
|
+
_request_timeout: Union[
|
|
2446
|
+
None,
|
|
2447
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2448
|
+
Tuple[
|
|
2449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2450
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2451
|
+
]
|
|
2452
|
+
] = None,
|
|
2453
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2454
|
+
_content_type: Optional[StrictStr] = None,
|
|
2455
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2456
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2457
|
+
) -> None:
|
|
2458
|
+
"""Pull changes from remote
|
|
2459
|
+
|
|
2460
|
+
Pull changes from the remote Git repository
|
|
2461
|
+
|
|
2462
|
+
:param request: Pull request (required)
|
|
2463
|
+
:type request: GitRepoRequest
|
|
2464
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2465
|
+
number provided, it will be total request
|
|
2466
|
+
timeout. It can also be a pair (tuple) of
|
|
2467
|
+
(connection, read) timeouts.
|
|
2468
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2469
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2470
|
+
request; this effectively ignores the
|
|
2471
|
+
authentication in the spec for a single request.
|
|
2472
|
+
:type _request_auth: dict, optional
|
|
2473
|
+
:param _content_type: force content-type for the request.
|
|
2474
|
+
:type _content_type: str, Optional
|
|
2475
|
+
:param _headers: set to override the headers for a single
|
|
2476
|
+
request; this effectively ignores the headers
|
|
2477
|
+
in the spec for a single request.
|
|
2478
|
+
:type _headers: dict, optional
|
|
2479
|
+
:param _host_index: set to override the host_index for a single
|
|
2480
|
+
request; this effectively ignores the host_index
|
|
2481
|
+
in the spec for a single request.
|
|
2482
|
+
:type _host_index: int, optional
|
|
2483
|
+
:return: Returns the result object.
|
|
2484
|
+
""" # noqa: E501
|
|
2485
|
+
|
|
2486
|
+
_param = self._pull_changes_serialize(
|
|
2487
|
+
request=request,
|
|
2488
|
+
_request_auth=_request_auth,
|
|
2489
|
+
_content_type=_content_type,
|
|
2490
|
+
_headers=_headers,
|
|
2491
|
+
_host_index=_host_index
|
|
2492
|
+
)
|
|
2493
|
+
|
|
2494
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2495
|
+
'200': None,
|
|
2496
|
+
}
|
|
2497
|
+
response_data = self.api_client.call_api(
|
|
2498
|
+
*_param,
|
|
2499
|
+
_request_timeout=_request_timeout
|
|
2500
|
+
)
|
|
2501
|
+
response_data.read()
|
|
2502
|
+
return self.api_client.response_deserialize(
|
|
2503
|
+
response_data=response_data,
|
|
2504
|
+
response_types_map=_response_types_map,
|
|
2505
|
+
).data
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
@validate_call
|
|
2509
|
+
def pull_changes_with_http_info(
|
|
2510
|
+
self,
|
|
2511
|
+
request: Annotated[GitRepoRequest, Field(description="Pull request")],
|
|
2512
|
+
_request_timeout: Union[
|
|
2513
|
+
None,
|
|
2514
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2515
|
+
Tuple[
|
|
2516
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2517
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2518
|
+
]
|
|
2519
|
+
] = None,
|
|
2520
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2521
|
+
_content_type: Optional[StrictStr] = None,
|
|
2522
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2523
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2524
|
+
) -> ApiResponse[None]:
|
|
2525
|
+
"""Pull changes from remote
|
|
2526
|
+
|
|
2527
|
+
Pull changes from the remote Git repository
|
|
2528
|
+
|
|
2529
|
+
:param request: Pull request (required)
|
|
2530
|
+
:type request: GitRepoRequest
|
|
2531
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2532
|
+
number provided, it will be total request
|
|
2533
|
+
timeout. It can also be a pair (tuple) of
|
|
2534
|
+
(connection, read) timeouts.
|
|
2535
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2536
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2537
|
+
request; this effectively ignores the
|
|
2538
|
+
authentication in the spec for a single request.
|
|
2539
|
+
:type _request_auth: dict, optional
|
|
2540
|
+
:param _content_type: force content-type for the request.
|
|
2541
|
+
:type _content_type: str, Optional
|
|
2542
|
+
:param _headers: set to override the headers for a single
|
|
2543
|
+
request; this effectively ignores the headers
|
|
2544
|
+
in the spec for a single request.
|
|
2545
|
+
:type _headers: dict, optional
|
|
2546
|
+
:param _host_index: set to override the host_index for a single
|
|
2547
|
+
request; this effectively ignores the host_index
|
|
2548
|
+
in the spec for a single request.
|
|
2549
|
+
:type _host_index: int, optional
|
|
2550
|
+
:return: Returns the result object.
|
|
2551
|
+
""" # noqa: E501
|
|
2552
|
+
|
|
2553
|
+
_param = self._pull_changes_serialize(
|
|
2554
|
+
request=request,
|
|
2555
|
+
_request_auth=_request_auth,
|
|
2556
|
+
_content_type=_content_type,
|
|
2557
|
+
_headers=_headers,
|
|
2558
|
+
_host_index=_host_index
|
|
2559
|
+
)
|
|
2560
|
+
|
|
2561
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2562
|
+
'200': None,
|
|
2563
|
+
}
|
|
2564
|
+
response_data = self.api_client.call_api(
|
|
2565
|
+
*_param,
|
|
2566
|
+
_request_timeout=_request_timeout
|
|
2567
|
+
)
|
|
2568
|
+
response_data.read()
|
|
2569
|
+
return self.api_client.response_deserialize(
|
|
2570
|
+
response_data=response_data,
|
|
2571
|
+
response_types_map=_response_types_map,
|
|
2572
|
+
)
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
@validate_call
|
|
2576
|
+
def pull_changes_without_preload_content(
|
|
2577
|
+
self,
|
|
2578
|
+
request: Annotated[GitRepoRequest, Field(description="Pull request")],
|
|
2579
|
+
_request_timeout: Union[
|
|
2580
|
+
None,
|
|
2581
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2582
|
+
Tuple[
|
|
2583
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2584
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2585
|
+
]
|
|
2586
|
+
] = None,
|
|
2587
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2588
|
+
_content_type: Optional[StrictStr] = None,
|
|
2589
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2590
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2591
|
+
) -> RESTResponseType:
|
|
2592
|
+
"""Pull changes from remote
|
|
2593
|
+
|
|
2594
|
+
Pull changes from the remote Git repository
|
|
2595
|
+
|
|
2596
|
+
:param request: Pull request (required)
|
|
2597
|
+
:type request: GitRepoRequest
|
|
2598
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2599
|
+
number provided, it will be total request
|
|
2600
|
+
timeout. It can also be a pair (tuple) of
|
|
2601
|
+
(connection, read) timeouts.
|
|
2602
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2603
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2604
|
+
request; this effectively ignores the
|
|
2605
|
+
authentication in the spec for a single request.
|
|
2606
|
+
:type _request_auth: dict, optional
|
|
2607
|
+
:param _content_type: force content-type for the request.
|
|
2608
|
+
:type _content_type: str, Optional
|
|
2609
|
+
:param _headers: set to override the headers for a single
|
|
2610
|
+
request; this effectively ignores the headers
|
|
2611
|
+
in the spec for a single request.
|
|
2612
|
+
:type _headers: dict, optional
|
|
2613
|
+
:param _host_index: set to override the host_index for a single
|
|
2614
|
+
request; this effectively ignores the host_index
|
|
2615
|
+
in the spec for a single request.
|
|
2616
|
+
:type _host_index: int, optional
|
|
2617
|
+
:return: Returns the result object.
|
|
2618
|
+
""" # noqa: E501
|
|
2619
|
+
|
|
2620
|
+
_param = self._pull_changes_serialize(
|
|
2621
|
+
request=request,
|
|
2622
|
+
_request_auth=_request_auth,
|
|
2623
|
+
_content_type=_content_type,
|
|
2624
|
+
_headers=_headers,
|
|
2625
|
+
_host_index=_host_index
|
|
2626
|
+
)
|
|
2627
|
+
|
|
2628
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2629
|
+
'200': None,
|
|
2630
|
+
}
|
|
2631
|
+
response_data = self.api_client.call_api(
|
|
2632
|
+
*_param,
|
|
2633
|
+
_request_timeout=_request_timeout
|
|
2634
|
+
)
|
|
2635
|
+
return response_data.response
|
|
2636
|
+
|
|
2637
|
+
|
|
2638
|
+
def _pull_changes_serialize(
|
|
2639
|
+
self,
|
|
2640
|
+
request,
|
|
2641
|
+
_request_auth,
|
|
2642
|
+
_content_type,
|
|
2643
|
+
_headers,
|
|
2644
|
+
_host_index,
|
|
2645
|
+
) -> RequestSerialized:
|
|
2646
|
+
|
|
2647
|
+
_host = None
|
|
2648
|
+
|
|
2649
|
+
_collection_formats: Dict[str, str] = {
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
_path_params: Dict[str, str] = {}
|
|
2653
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2654
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2655
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2656
|
+
_files: Dict[
|
|
2657
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2658
|
+
] = {}
|
|
2659
|
+
_body_params: Optional[bytes] = None
|
|
2660
|
+
|
|
2661
|
+
# process the path parameters
|
|
2662
|
+
# process the query parameters
|
|
2663
|
+
# process the header parameters
|
|
2664
|
+
# process the form parameters
|
|
2665
|
+
# process the body parameter
|
|
2666
|
+
if request is not None:
|
|
2667
|
+
_body_params = request
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
# set the HTTP header `Content-Type`
|
|
2672
|
+
if _content_type:
|
|
2673
|
+
_header_params['Content-Type'] = _content_type
|
|
2674
|
+
else:
|
|
2675
|
+
_default_content_type = (
|
|
2676
|
+
self.api_client.select_header_content_type(
|
|
2677
|
+
[
|
|
2678
|
+
'application/json'
|
|
2679
|
+
]
|
|
2680
|
+
)
|
|
2681
|
+
)
|
|
2682
|
+
if _default_content_type is not None:
|
|
2683
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2684
|
+
|
|
2685
|
+
# authentication setting
|
|
2686
|
+
_auth_settings: List[str] = [
|
|
2687
|
+
]
|
|
2688
|
+
|
|
2689
|
+
return self.api_client.param_serialize(
|
|
2690
|
+
method='POST',
|
|
2691
|
+
resource_path='/git/pull',
|
|
2692
|
+
path_params=_path_params,
|
|
2693
|
+
query_params=_query_params,
|
|
2694
|
+
header_params=_header_params,
|
|
2695
|
+
body=_body_params,
|
|
2696
|
+
post_params=_form_params,
|
|
2697
|
+
files=_files,
|
|
2698
|
+
auth_settings=_auth_settings,
|
|
2699
|
+
collection_formats=_collection_formats,
|
|
2700
|
+
_host=_host,
|
|
2701
|
+
_request_auth=_request_auth
|
|
2702
|
+
)
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
@validate_call
|
|
2708
|
+
def push_changes(
|
|
2709
|
+
self,
|
|
2710
|
+
request: Annotated[GitRepoRequest, Field(description="Push request")],
|
|
2711
|
+
_request_timeout: Union[
|
|
2712
|
+
None,
|
|
2713
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2714
|
+
Tuple[
|
|
2715
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2716
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2717
|
+
]
|
|
2718
|
+
] = None,
|
|
2719
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2720
|
+
_content_type: Optional[StrictStr] = None,
|
|
2721
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2722
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2723
|
+
) -> None:
|
|
2724
|
+
"""Push changes to remote
|
|
2725
|
+
|
|
2726
|
+
Push local changes to the remote Git repository
|
|
2727
|
+
|
|
2728
|
+
:param request: Push request (required)
|
|
2729
|
+
:type request: GitRepoRequest
|
|
2730
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2731
|
+
number provided, it will be total request
|
|
2732
|
+
timeout. It can also be a pair (tuple) of
|
|
2733
|
+
(connection, read) timeouts.
|
|
2734
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2735
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2736
|
+
request; this effectively ignores the
|
|
2737
|
+
authentication in the spec for a single request.
|
|
2738
|
+
:type _request_auth: dict, optional
|
|
2739
|
+
:param _content_type: force content-type for the request.
|
|
2740
|
+
:type _content_type: str, Optional
|
|
2741
|
+
:param _headers: set to override the headers for a single
|
|
2742
|
+
request; this effectively ignores the headers
|
|
2743
|
+
in the spec for a single request.
|
|
2744
|
+
:type _headers: dict, optional
|
|
2745
|
+
:param _host_index: set to override the host_index for a single
|
|
2746
|
+
request; this effectively ignores the host_index
|
|
2747
|
+
in the spec for a single request.
|
|
2748
|
+
:type _host_index: int, optional
|
|
2749
|
+
:return: Returns the result object.
|
|
2750
|
+
""" # noqa: E501
|
|
2751
|
+
|
|
2752
|
+
_param = self._push_changes_serialize(
|
|
2753
|
+
request=request,
|
|
2754
|
+
_request_auth=_request_auth,
|
|
2755
|
+
_content_type=_content_type,
|
|
2756
|
+
_headers=_headers,
|
|
2757
|
+
_host_index=_host_index
|
|
2758
|
+
)
|
|
2759
|
+
|
|
2760
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2761
|
+
'200': None,
|
|
2762
|
+
}
|
|
2763
|
+
response_data = self.api_client.call_api(
|
|
2764
|
+
*_param,
|
|
2765
|
+
_request_timeout=_request_timeout
|
|
2766
|
+
)
|
|
2767
|
+
response_data.read()
|
|
2768
|
+
return self.api_client.response_deserialize(
|
|
2769
|
+
response_data=response_data,
|
|
2770
|
+
response_types_map=_response_types_map,
|
|
2771
|
+
).data
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
@validate_call
|
|
2775
|
+
def push_changes_with_http_info(
|
|
2776
|
+
self,
|
|
2777
|
+
request: Annotated[GitRepoRequest, Field(description="Push request")],
|
|
2778
|
+
_request_timeout: Union[
|
|
2779
|
+
None,
|
|
2780
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2781
|
+
Tuple[
|
|
2782
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2783
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2784
|
+
]
|
|
2785
|
+
] = None,
|
|
2786
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2787
|
+
_content_type: Optional[StrictStr] = None,
|
|
2788
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2789
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2790
|
+
) -> ApiResponse[None]:
|
|
2791
|
+
"""Push changes to remote
|
|
2792
|
+
|
|
2793
|
+
Push local changes to the remote Git repository
|
|
2794
|
+
|
|
2795
|
+
:param request: Push request (required)
|
|
2796
|
+
:type request: GitRepoRequest
|
|
2797
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2798
|
+
number provided, it will be total request
|
|
2799
|
+
timeout. It can also be a pair (tuple) of
|
|
2800
|
+
(connection, read) timeouts.
|
|
2801
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2802
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2803
|
+
request; this effectively ignores the
|
|
2804
|
+
authentication in the spec for a single request.
|
|
2805
|
+
:type _request_auth: dict, optional
|
|
2806
|
+
:param _content_type: force content-type for the request.
|
|
2807
|
+
:type _content_type: str, Optional
|
|
2808
|
+
:param _headers: set to override the headers for a single
|
|
2809
|
+
request; this effectively ignores the headers
|
|
2810
|
+
in the spec for a single request.
|
|
2811
|
+
:type _headers: dict, optional
|
|
2812
|
+
:param _host_index: set to override the host_index for a single
|
|
2813
|
+
request; this effectively ignores the host_index
|
|
2814
|
+
in the spec for a single request.
|
|
2815
|
+
:type _host_index: int, optional
|
|
2816
|
+
:return: Returns the result object.
|
|
2817
|
+
""" # noqa: E501
|
|
2818
|
+
|
|
2819
|
+
_param = self._push_changes_serialize(
|
|
2820
|
+
request=request,
|
|
2821
|
+
_request_auth=_request_auth,
|
|
2822
|
+
_content_type=_content_type,
|
|
2823
|
+
_headers=_headers,
|
|
2824
|
+
_host_index=_host_index
|
|
2825
|
+
)
|
|
2826
|
+
|
|
2827
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2828
|
+
'200': None,
|
|
2829
|
+
}
|
|
2830
|
+
response_data = self.api_client.call_api(
|
|
2831
|
+
*_param,
|
|
2832
|
+
_request_timeout=_request_timeout
|
|
2833
|
+
)
|
|
2834
|
+
response_data.read()
|
|
2835
|
+
return self.api_client.response_deserialize(
|
|
2836
|
+
response_data=response_data,
|
|
2837
|
+
response_types_map=_response_types_map,
|
|
2838
|
+
)
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
@validate_call
|
|
2842
|
+
def push_changes_without_preload_content(
|
|
2843
|
+
self,
|
|
2844
|
+
request: Annotated[GitRepoRequest, Field(description="Push request")],
|
|
2845
|
+
_request_timeout: Union[
|
|
2846
|
+
None,
|
|
2847
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2848
|
+
Tuple[
|
|
2849
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2850
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2851
|
+
]
|
|
2852
|
+
] = None,
|
|
2853
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2854
|
+
_content_type: Optional[StrictStr] = None,
|
|
2855
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2856
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2857
|
+
) -> RESTResponseType:
|
|
2858
|
+
"""Push changes to remote
|
|
2859
|
+
|
|
2860
|
+
Push local changes to the remote Git repository
|
|
2861
|
+
|
|
2862
|
+
:param request: Push request (required)
|
|
2863
|
+
:type request: GitRepoRequest
|
|
2864
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2865
|
+
number provided, it will be total request
|
|
2866
|
+
timeout. It can also be a pair (tuple) of
|
|
2867
|
+
(connection, read) timeouts.
|
|
2868
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2869
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2870
|
+
request; this effectively ignores the
|
|
2871
|
+
authentication in the spec for a single request.
|
|
2872
|
+
:type _request_auth: dict, optional
|
|
2873
|
+
:param _content_type: force content-type for the request.
|
|
2874
|
+
:type _content_type: str, Optional
|
|
2875
|
+
:param _headers: set to override the headers for a single
|
|
2876
|
+
request; this effectively ignores the headers
|
|
2877
|
+
in the spec for a single request.
|
|
2878
|
+
:type _headers: dict, optional
|
|
2879
|
+
:param _host_index: set to override the host_index for a single
|
|
2880
|
+
request; this effectively ignores the host_index
|
|
2881
|
+
in the spec for a single request.
|
|
2882
|
+
:type _host_index: int, optional
|
|
2883
|
+
:return: Returns the result object.
|
|
2884
|
+
""" # noqa: E501
|
|
2885
|
+
|
|
2886
|
+
_param = self._push_changes_serialize(
|
|
2887
|
+
request=request,
|
|
2888
|
+
_request_auth=_request_auth,
|
|
2889
|
+
_content_type=_content_type,
|
|
2890
|
+
_headers=_headers,
|
|
2891
|
+
_host_index=_host_index
|
|
2892
|
+
)
|
|
2893
|
+
|
|
2894
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2895
|
+
'200': None,
|
|
2896
|
+
}
|
|
2897
|
+
response_data = self.api_client.call_api(
|
|
2898
|
+
*_param,
|
|
2899
|
+
_request_timeout=_request_timeout
|
|
2900
|
+
)
|
|
2901
|
+
return response_data.response
|
|
2902
|
+
|
|
2903
|
+
|
|
2904
|
+
def _push_changes_serialize(
|
|
2905
|
+
self,
|
|
2906
|
+
request,
|
|
2907
|
+
_request_auth,
|
|
2908
|
+
_content_type,
|
|
2909
|
+
_headers,
|
|
2910
|
+
_host_index,
|
|
2911
|
+
) -> RequestSerialized:
|
|
2912
|
+
|
|
2913
|
+
_host = None
|
|
2914
|
+
|
|
2915
|
+
_collection_formats: Dict[str, str] = {
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
_path_params: Dict[str, str] = {}
|
|
2919
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2920
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2921
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2922
|
+
_files: Dict[
|
|
2923
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2924
|
+
] = {}
|
|
2925
|
+
_body_params: Optional[bytes] = None
|
|
2926
|
+
|
|
2927
|
+
# process the path parameters
|
|
2928
|
+
# process the query parameters
|
|
2929
|
+
# process the header parameters
|
|
2930
|
+
# process the form parameters
|
|
2931
|
+
# process the body parameter
|
|
2932
|
+
if request is not None:
|
|
2933
|
+
_body_params = request
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
# set the HTTP header `Content-Type`
|
|
2938
|
+
if _content_type:
|
|
2939
|
+
_header_params['Content-Type'] = _content_type
|
|
2940
|
+
else:
|
|
2941
|
+
_default_content_type = (
|
|
2942
|
+
self.api_client.select_header_content_type(
|
|
2943
|
+
[
|
|
2944
|
+
'application/json'
|
|
2945
|
+
]
|
|
2946
|
+
)
|
|
2947
|
+
)
|
|
2948
|
+
if _default_content_type is not None:
|
|
2949
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2950
|
+
|
|
2951
|
+
# authentication setting
|
|
2952
|
+
_auth_settings: List[str] = [
|
|
2953
|
+
]
|
|
2954
|
+
|
|
2955
|
+
return self.api_client.param_serialize(
|
|
2956
|
+
method='POST',
|
|
2957
|
+
resource_path='/git/push',
|
|
2958
|
+
path_params=_path_params,
|
|
2959
|
+
query_params=_query_params,
|
|
2960
|
+
header_params=_header_params,
|
|
2961
|
+
body=_body_params,
|
|
2962
|
+
post_params=_form_params,
|
|
2963
|
+
files=_files,
|
|
2964
|
+
auth_settings=_auth_settings,
|
|
2965
|
+
collection_formats=_collection_formats,
|
|
2966
|
+
_host=_host,
|
|
2967
|
+
_request_auth=_request_auth
|
|
2968
|
+
)
|
|
2969
|
+
|
|
2970
|
+
|