data-pebbles 0.0.1__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.
Files changed (59) hide show
  1. data_pebbles/__init__.py +10 -0
  2. data_pebbles/client/__init__.py +8 -0
  3. data_pebbles/client/api/__init__.py +1 -0
  4. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/__init__.py +1 -0
  5. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/activate_version_bronze_source_id_versions_version_patch.py +172 -0
  6. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/create_source_bronze_post.py +164 -0
  7. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/delete_source_bronze_source_id_delete.py +158 -0
  8. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/delete_version_bronze_source_id_versions_version_delete.py +172 -0
  9. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/download_version_bronze_source_id_versions_version_get.py +172 -0
  10. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/get_source_bronze_source_id_get.py +160 -0
  11. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/list_sources_bronze_get.py +132 -0
  12. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/list_versions_bronze_source_id_versions_get.py +165 -0
  13. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/update_source_bronze_source_id_patch.py +182 -0
  14. data_pebbles/client/api/api_endpoints_for_interacting_with_the_bronze_layer/upload_version_bronze_source_id_versions_post.py +180 -0
  15. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/__init__.py +1 -0
  16. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/create_source_gold_post.py +164 -0
  17. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/delete_source_gold_source_id_delete.py +158 -0
  18. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/download_version_gold_source_id_versions_version_get.py +172 -0
  19. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/get_source_gold_source_id_get.py +160 -0
  20. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/list_sources_gold_get.py +132 -0
  21. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/list_versions_gold_source_id_versions_get.py +165 -0
  22. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/update_source_gold_source_id_patch.py +182 -0
  23. data_pebbles/client/api/api_endpoints_for_interacting_with_the_gold_layer/upload_version_gold_source_id_versions_post.py +202 -0
  24. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/__init__.py +1 -0
  25. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/create_source_silver_post.py +164 -0
  26. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/delete_source_silver_source_id_delete.py +158 -0
  27. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/download_version_silver_source_id_versions_version_get.py +172 -0
  28. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/get_source_silver_source_id_get.py +160 -0
  29. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/list_sources_silver_get.py +132 -0
  30. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/list_versions_silver_source_id_versions_get.py +165 -0
  31. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/update_source_silver_source_id_patch.py +182 -0
  32. data_pebbles/client/api/api_endpoints_for_interacting_with_the_silver_layer/upload_version_silver_source_id_versions_post.py +200 -0
  33. data_pebbles/client/client.py +282 -0
  34. data_pebbles/client/errors.py +16 -0
  35. data_pebbles/client/models/__init__.py +47 -0
  36. data_pebbles/client/models/body_upload_version_bronze_source_id_versions_post.py +73 -0
  37. data_pebbles/client/models/body_upload_version_gold_source_id_versions_post.py +73 -0
  38. data_pebbles/client/models/body_upload_version_silver_source_id_versions_post.py +73 -0
  39. data_pebbles/client/models/create_gold_source_request.py +61 -0
  40. data_pebbles/client/models/create_silver_source_request.py +61 -0
  41. data_pebbles/client/models/create_source_request.py +61 -0
  42. data_pebbles/client/models/gold_lineage_response.py +93 -0
  43. data_pebbles/client/models/gold_metadata_response.py +77 -0
  44. data_pebbles/client/models/http_validation_error.py +79 -0
  45. data_pebbles/client/models/metadata_response.py +77 -0
  46. data_pebbles/client/models/silver_lineage_response.py +93 -0
  47. data_pebbles/client/models/silver_metadata_response.py +77 -0
  48. data_pebbles/client/models/update_gold_source_request.py +61 -0
  49. data_pebbles/client/models/update_silver_source_request.py +61 -0
  50. data_pebbles/client/models/update_source_request.py +61 -0
  51. data_pebbles/client/models/validation_error.py +123 -0
  52. data_pebbles/client/models/validation_error_context.py +46 -0
  53. data_pebbles/client/models/version_response.py +109 -0
  54. data_pebbles/client/types.py +54 -0
  55. data_pebbles/py.typed +0 -0
  56. data_pebbles/sdk.py +572 -0
  57. data_pebbles-0.0.1.dist-info/METADATA +143 -0
  58. data_pebbles-0.0.1.dist-info/RECORD +59 -0
  59. data_pebbles-0.0.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,10 @@
1
+ import mlflow
2
+
3
+ from data_pebbles.sdk import (
4
+ BronzeLayer,
5
+ DataPebbles,
6
+ GoldLayer,
7
+ SilverLayer,
8
+ )
9
+
10
+ __all__ = ["DataPebbles", "BronzeLayer", "SilverLayer", "GoldLayer", "mlflow"]
@@ -0,0 +1,8 @@
1
+ """A client library for accessing FastAPI"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,172 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ source_id: int,
15
+ version: int,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "patch",
19
+ "url": "/bronze/{source_id}/versions/{version}".format(
20
+ source_id=quote(str(source_id), safe=""),
21
+ version=quote(str(version), safe=""),
22
+ ),
23
+ }
24
+
25
+ return _kwargs
26
+
27
+
28
+ def _parse_response(
29
+ *, client: AuthenticatedClient | Client, response: httpx.Response
30
+ ) -> Any | HTTPValidationError | None:
31
+ if response.status_code == 200:
32
+ response_200 = response.json()
33
+ return response_200
34
+
35
+ if response.status_code == 422:
36
+ response_422 = HTTPValidationError.from_dict(response.json())
37
+
38
+ return response_422
39
+
40
+ if client.raise_on_unexpected_status:
41
+ raise errors.UnexpectedStatus(response.status_code, response.content)
42
+ else:
43
+ return None
44
+
45
+
46
+ def _build_response(
47
+ *, client: AuthenticatedClient | Client, response: httpx.Response
48
+ ) -> Response[Any | HTTPValidationError]:
49
+ return Response(
50
+ status_code=HTTPStatus(response.status_code),
51
+ content=response.content,
52
+ headers=response.headers,
53
+ parsed=_parse_response(client=client, response=response),
54
+ )
55
+
56
+
57
+ def sync_detailed(
58
+ source_id: int,
59
+ version: int,
60
+ *,
61
+ client: AuthenticatedClient | Client,
62
+ ) -> Response[Any | HTTPValidationError]:
63
+ """Activate Version
64
+
65
+ Args:
66
+ source_id (int):
67
+ version (int):
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[Any | HTTPValidationError]
75
+ """
76
+
77
+ kwargs = _get_kwargs(
78
+ source_id=source_id,
79
+ version=version,
80
+ )
81
+
82
+ response = client.get_httpx_client().request(
83
+ **kwargs,
84
+ )
85
+
86
+ return _build_response(client=client, response=response)
87
+
88
+
89
+ def sync(
90
+ source_id: int,
91
+ version: int,
92
+ *,
93
+ client: AuthenticatedClient | Client,
94
+ ) -> Any | HTTPValidationError | None:
95
+ """Activate Version
96
+
97
+ Args:
98
+ source_id (int):
99
+ version (int):
100
+
101
+ Raises:
102
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
103
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
104
+
105
+ Returns:
106
+ Any | HTTPValidationError
107
+ """
108
+
109
+ return sync_detailed(
110
+ source_id=source_id,
111
+ version=version,
112
+ client=client,
113
+ ).parsed
114
+
115
+
116
+ async def asyncio_detailed(
117
+ source_id: int,
118
+ version: int,
119
+ *,
120
+ client: AuthenticatedClient | Client,
121
+ ) -> Response[Any | HTTPValidationError]:
122
+ """Activate Version
123
+
124
+ Args:
125
+ source_id (int):
126
+ version (int):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[Any | HTTPValidationError]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ source_id=source_id,
138
+ version=version,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ source_id: int,
148
+ version: int,
149
+ *,
150
+ client: AuthenticatedClient | Client,
151
+ ) -> Any | HTTPValidationError | None:
152
+ """Activate Version
153
+
154
+ Args:
155
+ source_id (int):
156
+ version (int):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Any | HTTPValidationError
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ source_id=source_id,
169
+ version=version,
170
+ client=client,
171
+ )
172
+ ).parsed
@@ -0,0 +1,164 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.create_source_request import CreateSourceRequest
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ *,
15
+ body: CreateSourceRequest,
16
+ ) -> dict[str, Any]:
17
+ headers: dict[str, Any] = {}
18
+
19
+ _kwargs: dict[str, Any] = {
20
+ "method": "post",
21
+ "url": "/bronze/",
22
+ }
23
+
24
+ _kwargs["json"] = body.to_dict()
25
+
26
+ headers["Content-Type"] = "application/json"
27
+
28
+ _kwargs["headers"] = headers
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: AuthenticatedClient | Client, response: httpx.Response
34
+ ) -> Any | HTTPValidationError | None:
35
+ if response.status_code == 200:
36
+ response_200 = response.json()
37
+ return response_200
38
+
39
+ if response.status_code == 422:
40
+ response_422 = HTTPValidationError.from_dict(response.json())
41
+
42
+ return response_422
43
+
44
+ if client.raise_on_unexpected_status:
45
+ raise errors.UnexpectedStatus(response.status_code, response.content)
46
+ else:
47
+ return None
48
+
49
+
50
+ def _build_response(
51
+ *, client: AuthenticatedClient | Client, response: httpx.Response
52
+ ) -> Response[Any | HTTPValidationError]:
53
+ return Response(
54
+ status_code=HTTPStatus(response.status_code),
55
+ content=response.content,
56
+ headers=response.headers,
57
+ parsed=_parse_response(client=client, response=response),
58
+ )
59
+
60
+
61
+ def sync_detailed(
62
+ *,
63
+ client: AuthenticatedClient | Client,
64
+ body: CreateSourceRequest,
65
+ ) -> Response[Any | HTTPValidationError]:
66
+ """Create Source
67
+
68
+ Args:
69
+ body (CreateSourceRequest):
70
+
71
+ Raises:
72
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
73
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
74
+
75
+ Returns:
76
+ Response[Any | HTTPValidationError]
77
+ """
78
+
79
+ kwargs = _get_kwargs(
80
+ body=body,
81
+ )
82
+
83
+ response = client.get_httpx_client().request(
84
+ **kwargs,
85
+ )
86
+
87
+ return _build_response(client=client, response=response)
88
+
89
+
90
+ def sync(
91
+ *,
92
+ client: AuthenticatedClient | Client,
93
+ body: CreateSourceRequest,
94
+ ) -> Any | HTTPValidationError | None:
95
+ """Create Source
96
+
97
+ Args:
98
+ body (CreateSourceRequest):
99
+
100
+ Raises:
101
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
103
+
104
+ Returns:
105
+ Any | HTTPValidationError
106
+ """
107
+
108
+ return sync_detailed(
109
+ client=client,
110
+ body=body,
111
+ ).parsed
112
+
113
+
114
+ async def asyncio_detailed(
115
+ *,
116
+ client: AuthenticatedClient | Client,
117
+ body: CreateSourceRequest,
118
+ ) -> Response[Any | HTTPValidationError]:
119
+ """Create Source
120
+
121
+ Args:
122
+ body (CreateSourceRequest):
123
+
124
+ Raises:
125
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
126
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
127
+
128
+ Returns:
129
+ Response[Any | HTTPValidationError]
130
+ """
131
+
132
+ kwargs = _get_kwargs(
133
+ body=body,
134
+ )
135
+
136
+ response = await client.get_async_httpx_client().request(**kwargs)
137
+
138
+ return _build_response(client=client, response=response)
139
+
140
+
141
+ async def asyncio(
142
+ *,
143
+ client: AuthenticatedClient | Client,
144
+ body: CreateSourceRequest,
145
+ ) -> Any | HTTPValidationError | None:
146
+ """Create Source
147
+
148
+ Args:
149
+ body (CreateSourceRequest):
150
+
151
+ Raises:
152
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
153
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
154
+
155
+ Returns:
156
+ Any | HTTPValidationError
157
+ """
158
+
159
+ return (
160
+ await asyncio_detailed(
161
+ client=client,
162
+ body=body,
163
+ )
164
+ ).parsed
@@ -0,0 +1,158 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ source_id: int,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": "/bronze/{source_id}".format(
19
+ source_id=quote(str(source_id), safe=""),
20
+ ),
21
+ }
22
+
23
+ return _kwargs
24
+
25
+
26
+ def _parse_response(
27
+ *, client: AuthenticatedClient | Client, response: httpx.Response
28
+ ) -> Any | HTTPValidationError | None:
29
+ if response.status_code == 200:
30
+ response_200 = response.json()
31
+ return response_200
32
+
33
+ if response.status_code == 422:
34
+ response_422 = HTTPValidationError.from_dict(response.json())
35
+
36
+ return response_422
37
+
38
+ if client.raise_on_unexpected_status:
39
+ raise errors.UnexpectedStatus(response.status_code, response.content)
40
+ else:
41
+ return None
42
+
43
+
44
+ def _build_response(
45
+ *, client: AuthenticatedClient | Client, response: httpx.Response
46
+ ) -> Response[Any | HTTPValidationError]:
47
+ return Response(
48
+ status_code=HTTPStatus(response.status_code),
49
+ content=response.content,
50
+ headers=response.headers,
51
+ parsed=_parse_response(client=client, response=response),
52
+ )
53
+
54
+
55
+ def sync_detailed(
56
+ source_id: int,
57
+ *,
58
+ client: AuthenticatedClient | Client,
59
+ ) -> Response[Any | HTTPValidationError]:
60
+ """Delete Source
61
+
62
+ Args:
63
+ source_id (int):
64
+
65
+ Raises:
66
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
68
+
69
+ Returns:
70
+ Response[Any | HTTPValidationError]
71
+ """
72
+
73
+ kwargs = _get_kwargs(
74
+ source_id=source_id,
75
+ )
76
+
77
+ response = client.get_httpx_client().request(
78
+ **kwargs,
79
+ )
80
+
81
+ return _build_response(client=client, response=response)
82
+
83
+
84
+ def sync(
85
+ source_id: int,
86
+ *,
87
+ client: AuthenticatedClient | Client,
88
+ ) -> Any | HTTPValidationError | None:
89
+ """Delete Source
90
+
91
+ Args:
92
+ source_id (int):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Any | HTTPValidationError
100
+ """
101
+
102
+ return sync_detailed(
103
+ source_id=source_id,
104
+ client=client,
105
+ ).parsed
106
+
107
+
108
+ async def asyncio_detailed(
109
+ source_id: int,
110
+ *,
111
+ client: AuthenticatedClient | Client,
112
+ ) -> Response[Any | HTTPValidationError]:
113
+ """Delete Source
114
+
115
+ Args:
116
+ source_id (int):
117
+
118
+ Raises:
119
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
120
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
121
+
122
+ Returns:
123
+ Response[Any | HTTPValidationError]
124
+ """
125
+
126
+ kwargs = _get_kwargs(
127
+ source_id=source_id,
128
+ )
129
+
130
+ response = await client.get_async_httpx_client().request(**kwargs)
131
+
132
+ return _build_response(client=client, response=response)
133
+
134
+
135
+ async def asyncio(
136
+ source_id: int,
137
+ *,
138
+ client: AuthenticatedClient | Client,
139
+ ) -> Any | HTTPValidationError | None:
140
+ """Delete Source
141
+
142
+ Args:
143
+ source_id (int):
144
+
145
+ Raises:
146
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
147
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
148
+
149
+ Returns:
150
+ Any | HTTPValidationError
151
+ """
152
+
153
+ return (
154
+ await asyncio_detailed(
155
+ source_id=source_id,
156
+ client=client,
157
+ )
158
+ ).parsed
@@ -0,0 +1,172 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ source_id: int,
15
+ version: int,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "delete",
19
+ "url": "/bronze/{source_id}/versions/{version}".format(
20
+ source_id=quote(str(source_id), safe=""),
21
+ version=quote(str(version), safe=""),
22
+ ),
23
+ }
24
+
25
+ return _kwargs
26
+
27
+
28
+ def _parse_response(
29
+ *, client: AuthenticatedClient | Client, response: httpx.Response
30
+ ) -> Any | HTTPValidationError | None:
31
+ if response.status_code == 200:
32
+ response_200 = response.json()
33
+ return response_200
34
+
35
+ if response.status_code == 422:
36
+ response_422 = HTTPValidationError.from_dict(response.json())
37
+
38
+ return response_422
39
+
40
+ if client.raise_on_unexpected_status:
41
+ raise errors.UnexpectedStatus(response.status_code, response.content)
42
+ else:
43
+ return None
44
+
45
+
46
+ def _build_response(
47
+ *, client: AuthenticatedClient | Client, response: httpx.Response
48
+ ) -> Response[Any | HTTPValidationError]:
49
+ return Response(
50
+ status_code=HTTPStatus(response.status_code),
51
+ content=response.content,
52
+ headers=response.headers,
53
+ parsed=_parse_response(client=client, response=response),
54
+ )
55
+
56
+
57
+ def sync_detailed(
58
+ source_id: int,
59
+ version: int,
60
+ *,
61
+ client: AuthenticatedClient | Client,
62
+ ) -> Response[Any | HTTPValidationError]:
63
+ """Delete Version
64
+
65
+ Args:
66
+ source_id (int):
67
+ version (int):
68
+
69
+ Raises:
70
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
71
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
72
+
73
+ Returns:
74
+ Response[Any | HTTPValidationError]
75
+ """
76
+
77
+ kwargs = _get_kwargs(
78
+ source_id=source_id,
79
+ version=version,
80
+ )
81
+
82
+ response = client.get_httpx_client().request(
83
+ **kwargs,
84
+ )
85
+
86
+ return _build_response(client=client, response=response)
87
+
88
+
89
+ def sync(
90
+ source_id: int,
91
+ version: int,
92
+ *,
93
+ client: AuthenticatedClient | Client,
94
+ ) -> Any | HTTPValidationError | None:
95
+ """Delete Version
96
+
97
+ Args:
98
+ source_id (int):
99
+ version (int):
100
+
101
+ Raises:
102
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
103
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
104
+
105
+ Returns:
106
+ Any | HTTPValidationError
107
+ """
108
+
109
+ return sync_detailed(
110
+ source_id=source_id,
111
+ version=version,
112
+ client=client,
113
+ ).parsed
114
+
115
+
116
+ async def asyncio_detailed(
117
+ source_id: int,
118
+ version: int,
119
+ *,
120
+ client: AuthenticatedClient | Client,
121
+ ) -> Response[Any | HTTPValidationError]:
122
+ """Delete Version
123
+
124
+ Args:
125
+ source_id (int):
126
+ version (int):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[Any | HTTPValidationError]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ source_id=source_id,
138
+ version=version,
139
+ )
140
+
141
+ response = await client.get_async_httpx_client().request(**kwargs)
142
+
143
+ return _build_response(client=client, response=response)
144
+
145
+
146
+ async def asyncio(
147
+ source_id: int,
148
+ version: int,
149
+ *,
150
+ client: AuthenticatedClient | Client,
151
+ ) -> Any | HTTPValidationError | None:
152
+ """Delete Version
153
+
154
+ Args:
155
+ source_id (int):
156
+ version (int):
157
+
158
+ Raises:
159
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
160
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
161
+
162
+ Returns:
163
+ Any | HTTPValidationError
164
+ """
165
+
166
+ return (
167
+ await asyncio_detailed(
168
+ source_id=source_id,
169
+ version=version,
170
+ client=client,
171
+ )
172
+ ).parsed