windmill-api 1.561.0__py3-none-any.whl → 1.562.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/resource/get_git_commit_hash.py +21 -1
- {windmill_api-1.561.0.dist-info → windmill_api-1.562.0.dist-info}/METADATA +1 -1
- {windmill_api-1.561.0.dist-info → windmill_api-1.562.0.dist-info}/RECORD +5 -5
- {windmill_api-1.561.0.dist-info → windmill_api-1.562.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.561.0.dist-info → windmill_api-1.562.0.dist-info}/WHEEL +0 -0
|
@@ -6,21 +6,29 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.get_git_commit_hash_response_200 import GetGitCommitHashResponse200
|
|
9
|
-
from ...types import Response
|
|
9
|
+
from ...types import UNSET, Response, Unset
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def _get_kwargs(
|
|
13
13
|
workspace: str,
|
|
14
14
|
path: str,
|
|
15
|
+
*,
|
|
16
|
+
git_ssh_identity: Union[Unset, None, str] = UNSET,
|
|
15
17
|
) -> Dict[str, Any]:
|
|
16
18
|
pass
|
|
17
19
|
|
|
20
|
+
params: Dict[str, Any] = {}
|
|
21
|
+
params["git_ssh_identity"] = git_ssh_identity
|
|
22
|
+
|
|
23
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
24
|
+
|
|
18
25
|
return {
|
|
19
26
|
"method": "get",
|
|
20
27
|
"url": "/w/{workspace}/resources/git_commit_hash/{path}".format(
|
|
21
28
|
workspace=workspace,
|
|
22
29
|
path=path,
|
|
23
30
|
),
|
|
31
|
+
"params": params,
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
|
|
@@ -53,12 +61,14 @@ def sync_detailed(
|
|
|
53
61
|
path: str,
|
|
54
62
|
*,
|
|
55
63
|
client: Union[AuthenticatedClient, Client],
|
|
64
|
+
git_ssh_identity: Union[Unset, None, str] = UNSET,
|
|
56
65
|
) -> Response[GetGitCommitHashResponse200]:
|
|
57
66
|
"""get git repository latest commit hash
|
|
58
67
|
|
|
59
68
|
Args:
|
|
60
69
|
workspace (str):
|
|
61
70
|
path (str):
|
|
71
|
+
git_ssh_identity (Union[Unset, None, str]):
|
|
62
72
|
|
|
63
73
|
Raises:
|
|
64
74
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -71,6 +81,7 @@ def sync_detailed(
|
|
|
71
81
|
kwargs = _get_kwargs(
|
|
72
82
|
workspace=workspace,
|
|
73
83
|
path=path,
|
|
84
|
+
git_ssh_identity=git_ssh_identity,
|
|
74
85
|
)
|
|
75
86
|
|
|
76
87
|
response = client.get_httpx_client().request(
|
|
@@ -85,12 +96,14 @@ def sync(
|
|
|
85
96
|
path: str,
|
|
86
97
|
*,
|
|
87
98
|
client: Union[AuthenticatedClient, Client],
|
|
99
|
+
git_ssh_identity: Union[Unset, None, str] = UNSET,
|
|
88
100
|
) -> Optional[GetGitCommitHashResponse200]:
|
|
89
101
|
"""get git repository latest commit hash
|
|
90
102
|
|
|
91
103
|
Args:
|
|
92
104
|
workspace (str):
|
|
93
105
|
path (str):
|
|
106
|
+
git_ssh_identity (Union[Unset, None, str]):
|
|
94
107
|
|
|
95
108
|
Raises:
|
|
96
109
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -104,6 +117,7 @@ def sync(
|
|
|
104
117
|
workspace=workspace,
|
|
105
118
|
path=path,
|
|
106
119
|
client=client,
|
|
120
|
+
git_ssh_identity=git_ssh_identity,
|
|
107
121
|
).parsed
|
|
108
122
|
|
|
109
123
|
|
|
@@ -112,12 +126,14 @@ async def asyncio_detailed(
|
|
|
112
126
|
path: str,
|
|
113
127
|
*,
|
|
114
128
|
client: Union[AuthenticatedClient, Client],
|
|
129
|
+
git_ssh_identity: Union[Unset, None, str] = UNSET,
|
|
115
130
|
) -> Response[GetGitCommitHashResponse200]:
|
|
116
131
|
"""get git repository latest commit hash
|
|
117
132
|
|
|
118
133
|
Args:
|
|
119
134
|
workspace (str):
|
|
120
135
|
path (str):
|
|
136
|
+
git_ssh_identity (Union[Unset, None, str]):
|
|
121
137
|
|
|
122
138
|
Raises:
|
|
123
139
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -130,6 +146,7 @@ async def asyncio_detailed(
|
|
|
130
146
|
kwargs = _get_kwargs(
|
|
131
147
|
workspace=workspace,
|
|
132
148
|
path=path,
|
|
149
|
+
git_ssh_identity=git_ssh_identity,
|
|
133
150
|
)
|
|
134
151
|
|
|
135
152
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -142,12 +159,14 @@ async def asyncio(
|
|
|
142
159
|
path: str,
|
|
143
160
|
*,
|
|
144
161
|
client: Union[AuthenticatedClient, Client],
|
|
162
|
+
git_ssh_identity: Union[Unset, None, str] = UNSET,
|
|
145
163
|
) -> Optional[GetGitCommitHashResponse200]:
|
|
146
164
|
"""get git repository latest commit hash
|
|
147
165
|
|
|
148
166
|
Args:
|
|
149
167
|
workspace (str):
|
|
150
168
|
path (str):
|
|
169
|
+
git_ssh_identity (Union[Unset, None, str]):
|
|
151
170
|
|
|
152
171
|
Raises:
|
|
153
172
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -162,5 +181,6 @@ async def asyncio(
|
|
|
162
181
|
workspace=workspace,
|
|
163
182
|
path=path,
|
|
164
183
|
client=client,
|
|
184
|
+
git_ssh_identity=git_ssh_identity,
|
|
165
185
|
)
|
|
166
186
|
).parsed
|
|
@@ -354,7 +354,7 @@ windmill_api/api/resource/delete_resources_bulk.py,sha256=fNhTCKbB2cm7S8Jdx8tkaN
|
|
|
354
354
|
windmill_api/api/resource/exists_resource.py,sha256=U_ZQIBZcse84y5K-hB02xu2o4YTybmzz8gNDmHzKzYA,3792
|
|
355
355
|
windmill_api/api/resource/exists_resource_type.py,sha256=gl1pJKWih3_Kir8bVqoU7UhYp1cYslLUNhOPfbz6Zyw,3817
|
|
356
356
|
windmill_api/api/resource/file_resource_type_to_file_ext_map.py,sha256=89UxOgYrbklyOAKYF7vu2YbljsdkygGdq1Bi551JtXw,2444
|
|
357
|
-
windmill_api/api/resource/get_git_commit_hash.py,sha256=
|
|
357
|
+
windmill_api/api/resource/get_git_commit_hash.py,sha256=krvgTFgK_Csp-a0TsfVWkX4PVZHOYeo3Bsle8S224bM,5089
|
|
358
358
|
windmill_api/api/resource/get_resource.py,sha256=LKzjwsVtKAohJcIJW3SAWln-3Z9kWvzJL4VeCf2m2gQ,4037
|
|
359
359
|
windmill_api/api/resource/get_resource_type.py,sha256=rNGMAJOEelZDL9TgMDXFyQDVNGzuCgOU4ufH5NKWg9w,4115
|
|
360
360
|
windmill_api/api/resource/get_resource_value.py,sha256=dhiCGEDQSkdq6c07KIM_Kk14p7e_CTF58hoNL1e8To0,2516
|
|
@@ -5560,7 +5560,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
|
|
|
5560
5560
|
windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
|
|
5561
5561
|
windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
5562
5562
|
windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
|
|
5563
|
-
windmill_api-1.
|
|
5564
|
-
windmill_api-1.
|
|
5565
|
-
windmill_api-1.
|
|
5566
|
-
windmill_api-1.
|
|
5563
|
+
windmill_api-1.562.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
|
|
5564
|
+
windmill_api-1.562.0.dist-info/METADATA,sha256=OpEGysuMgixxm1K74hv643ZzlGdZa14plJ4LHpcm_bk,5023
|
|
5565
|
+
windmill_api-1.562.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
5566
|
+
windmill_api-1.562.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|