crc-pulp-file-client 20251118.1__py3-none-any.whl → 20260107.2__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 crc-pulp-file-client might be problematic. Click here for more details.

@@ -1,23 +1,24 @@
1
1
  pulpcore/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
2
2
  pulpcore/client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
3
- pulpcore/client/pulp_file/__init__.py,sha256=KU_qEqK-Ej50bb094E5R_qcHRtIfCa_I05-RgmcRDPE,5447
3
+ pulpcore/client/pulp_file/__init__.py,sha256=rMT5PnFLkdSIjejIvDjGcZuV6bU5HnVNJpXu47UZFPc,5547
4
4
  pulpcore/client/pulp_file/api_client.py,sha256=gk7Helj51i6gD4bpLle3dsb-rDGsJrOP7V4i67U30Cc,27503
5
5
  pulpcore/client/pulp_file/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
6
- pulpcore/client/pulp_file/configuration.py,sha256=YKMfAEKAREyGXcDF1TUoDnALRvJrRd-NriqgCbXrRxY,19677
6
+ pulpcore/client/pulp_file/configuration.py,sha256=drCN2NN8OhvC9AFcuhr7VFMsAMO9IYDwfDRIX2bDVwc,19677
7
7
  pulpcore/client/pulp_file/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
8
8
  pulpcore/client/pulp_file/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pulpcore/client/pulp_file/rest.py,sha256=yBnNFa7idpssXPW-DhmcSN3gyZaQO12tRqU6hWbwreY,9408
10
10
  pulpcore/client/pulp_file/api/__init__.py,sha256=yy-Kaskj2XPpsU31HuA2pIzrbWJ8d6pCiUB084CtNvk,619
11
11
  pulpcore/client/pulp_file/api/acs_file_api.py,sha256=mK5sMm6AUeETIvTKDWEG-tAK2YSlfBY99_tdY7n5daY,162855
12
- pulpcore/client/pulp_file/api/content_files_api.py,sha256=BV-lygfBGn7l5PuMqsVS6iZvWNJp0UHwpVuPfcneRLo,100867
12
+ pulpcore/client/pulp_file/api/content_files_api.py,sha256=wUJovQcQtjqMju2ohcy53vqPswx3it-bGMB74isVR4Y,118957
13
13
  pulpcore/client/pulp_file/api/distributions_file_api.py,sha256=MkdxwOKDX9EUohmCODuG7AhbaXAH3PRF8gxPn2E3Itg,184965
14
14
  pulpcore/client/pulp_file/api/publications_file_api.py,sha256=sAoh7fYiMkP6jhcilyXMrdaz6Pvhpcy2GxbsHQppmME,128882
15
15
  pulpcore/client/pulp_file/api/remotes_file_api.py,sha256=bN96sJVtIKgZxgoRJScd5fB2_YY-VGKw-7pFgP85E4c,192695
16
16
  pulpcore/client/pulp_file/api/repositories_file_api.py,sha256=BYHtHZ5efH4jrEEFmcqPu-ighHwSLsAHiQdFWyusAWw,214941
17
17
  pulpcore/client/pulp_file/api/repositories_file_versions_api.py,sha256=nZRp4C7vaLyjlolEFPvv8ptGc5fxAKl7C0usR_6sq2k,78621
18
- pulpcore/client/pulp_file/models/__init__.py,sha256=qG7V9A-mqQtny5TnXMA_ChsvOLSIrI5V61gAP0aBWRQ,4228
18
+ pulpcore/client/pulp_file/models/__init__.py,sha256=WGEIAfX5-ulQca9oxUyNJrfoSZbiW-gegoosIj3u_54,4328
19
19
  pulpcore/client/pulp_file/models/async_operation_response.py,sha256=IbcgvoCxfMCL9HXaPJDPLgDo8IKE12QKstLIxzhegt8,2558
20
20
  pulpcore/client/pulp_file/models/content_summary_response.py,sha256=lu9_HyGS1qnHpEQLJYe_e9rk9VGohiCNSI7mi7ZeobA,2714
21
+ pulpcore/client/pulp_file/models/file_content_upload_response.py,sha256=Nd8sEyXI6bNx1GsvoWRGq3NWDc_yjxw0zTSaDIQMQVo,5696
21
22
  pulpcore/client/pulp_file/models/file_file_alternate_content_source.py,sha256=jsMQFKhWMZCvFIOmXwmQdi2U9NnVGm6NFiwTaMiBvW8,3544
22
23
  pulpcore/client/pulp_file/models/file_file_alternate_content_source_response.py,sha256=uqInWOdMZSn6Nxh840xRF-0WHt3RB2Tp3h_gwNR8IWQ,4522
23
24
  pulpcore/client/pulp_file/models/file_file_content_response.py,sha256=y96Bd1wKXcGLmRrlfvuFmVc2gE4w_93QKOseGBf_Zl0,5690
@@ -55,7 +56,7 @@ pulpcore/client/pulp_file/models/set_label_response.py,sha256=nUSYQHAxcJ3ATyUmBf
55
56
  pulpcore/client/pulp_file/models/task_group_operation_response.py,sha256=78pUJXTIErFTVy3AFbqzjGppZyJdi582pYqxbquQnBw,2625
56
57
  pulpcore/client/pulp_file/models/unset_label.py,sha256=m6s6AFgi5_7fKsjPhcLwz7ZjKXsSd_4F6PS7u5eINO0,2858
57
58
  pulpcore/client/pulp_file/models/unset_label_response.py,sha256=-TZohJf66mUqg4qD04k1dNoyAx69bX_VSf-HM9EpqN8,3046
58
- crc_pulp_file_client-20251118.1.dist-info/METADATA,sha256=Xykn6dJHuV8ohZfQSI9UAX4-ows2aIYeimzr2yIgutk,377117
59
- crc_pulp_file_client-20251118.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
60
- crc_pulp_file_client-20251118.1.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
61
- crc_pulp_file_client-20251118.1.dist-info/RECORD,,
59
+ crc_pulp_file_client-20260107.2.dist-info/METADATA,sha256=3d6wqHJV-usecMTD_0fMp5p5xShGHVvE0xhgQ-lZlfA,384517
60
+ crc_pulp_file_client-20260107.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
61
+ crc_pulp_file_client-20260107.2.dist-info/top_level.txt,sha256=v1J0AeNxNhm8YE5-xQe1G1YbfoMRZ_u9DAg_Gi7omeY,9
62
+ crc_pulp_file_client-20260107.2.dist-info/RECORD,,
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "20251118.1"
18
+ __version__ = "20260107.2"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pulpcore.client.pulp_file.api.acs_file_api import AcsFileApi
@@ -40,6 +40,7 @@ from pulpcore.client.pulp_file.exceptions import ApiException
40
40
  # import models into sdk package
41
41
  from pulpcore.client.pulp_file.models.async_operation_response import AsyncOperationResponse
42
42
  from pulpcore.client.pulp_file.models.content_summary_response import ContentSummaryResponse
43
+ from pulpcore.client.pulp_file.models.file_content_upload_response import FileContentUploadResponse
43
44
  from pulpcore.client.pulp_file.models.file_file_alternate_content_source import FileFileAlternateContentSource
44
45
  from pulpcore.client.pulp_file.models.file_file_alternate_content_source_response import FileFileAlternateContentSourceResponse
45
46
  from pulpcore.client.pulp_file.models.file_file_content_response import FileFileContentResponse
@@ -21,6 +21,7 @@ from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr, fiel
21
21
  from typing import Dict, List, Optional, Tuple, Union
22
22
  from typing_extensions import Annotated
23
23
  from pulpcore.client.pulp_file.models.async_operation_response import AsyncOperationResponse
24
+ from pulpcore.client.pulp_file.models.file_content_upload_response import FileContentUploadResponse
24
25
  from pulpcore.client.pulp_file.models.file_file_content_response import FileFileContentResponse
25
26
  from pulpcore.client.pulp_file.models.paginatedfile_file_content_response_list import PaginatedfileFileContentResponseList
26
27
  from pulpcore.client.pulp_file.models.set_label import SetLabel
@@ -2086,3 +2087,386 @@ class ContentFilesApi:
2086
2087
  )
2087
2088
 
2088
2089
 
2090
+
2091
+
2092
+ @validate_call
2093
+ def upload(
2094
+ self,
2095
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
2096
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2097
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
2098
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
2099
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
2100
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
2101
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
2102
+ pulp_domain: StrictStr = "default",
2103
+ _request_timeout: Union[
2104
+ None,
2105
+ Annotated[StrictFloat, Field(gt=0)],
2106
+ Tuple[
2107
+ Annotated[StrictFloat, Field(gt=0)],
2108
+ Annotated[StrictFloat, Field(gt=0)]
2109
+ ]
2110
+ ] = None,
2111
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2112
+ _content_type: Optional[StrictStr] = None,
2113
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2114
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2115
+ ) -> FileContentUploadResponse:
2116
+ """Upload a File synchronously.
2117
+
2118
+ Synchronously upload a File.
2119
+
2120
+ :param pulp_domain: (required)
2121
+ :type pulp_domain: str
2122
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
2123
+ :type relative_path: str
2124
+ :param x_task_diagnostics: List of profilers to use on tasks.
2125
+ :type x_task_diagnostics: List[str]
2126
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
2127
+ :type pulp_labels: Dict[str, Optional[str]]
2128
+ :param artifact: Artifact file representing the physical content
2129
+ :type artifact: str
2130
+ :param file: An uploaded file that may be turned into the content unit.
2131
+ :type file: bytearray
2132
+ :param upload: An uncommitted upload that may be turned into the content unit.
2133
+ :type upload: str
2134
+ :param file_url: A url that Pulp can download and turn into the content unit.
2135
+ :type file_url: str
2136
+ :param _request_timeout: timeout setting for this request. If one
2137
+ number provided, it will be total request
2138
+ timeout. It can also be a pair (tuple) of
2139
+ (connection, read) timeouts.
2140
+ :type _request_timeout: int, tuple(int, int), optional
2141
+ :param _request_auth: set to override the auth_settings for an a single
2142
+ request; this effectively ignores the
2143
+ authentication in the spec for a single request.
2144
+ :type _request_auth: dict, optional
2145
+ :param _content_type: force content-type for the request.
2146
+ :type _content_type: str, Optional
2147
+ :param _headers: set to override the headers for a single
2148
+ request; this effectively ignores the headers
2149
+ in the spec for a single request.
2150
+ :type _headers: dict, optional
2151
+ :param _host_index: set to override the host_index for a single
2152
+ request; this effectively ignores the host_index
2153
+ in the spec for a single request.
2154
+ :type _host_index: int, optional
2155
+ :return: Returns the result object.
2156
+ """ # noqa: E501
2157
+
2158
+ _param = self._upload_serialize(
2159
+ pulp_domain=pulp_domain,
2160
+ relative_path=relative_path,
2161
+ x_task_diagnostics=x_task_diagnostics,
2162
+ pulp_labels=pulp_labels,
2163
+ artifact=artifact,
2164
+ file=file,
2165
+ upload=upload,
2166
+ file_url=file_url,
2167
+ _request_auth=_request_auth,
2168
+ _content_type=_content_type,
2169
+ _headers=_headers,
2170
+ _host_index=_host_index
2171
+ )
2172
+
2173
+ _response_types_map: Dict[str, Optional[str]] = {
2174
+ '201': "FileContentUploadResponse",
2175
+ }
2176
+ response_data = self.api_client.call_api(
2177
+ *_param,
2178
+ _request_timeout=_request_timeout
2179
+ )
2180
+ response_data.read()
2181
+ return self.api_client.response_deserialize(
2182
+ response_data=response_data,
2183
+ response_types_map=_response_types_map,
2184
+ ).data
2185
+
2186
+
2187
+ @validate_call
2188
+ def upload_with_http_info(
2189
+ self,
2190
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
2191
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2192
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
2193
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
2194
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
2195
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
2196
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
2197
+ pulp_domain: StrictStr = "default",
2198
+ _request_timeout: Union[
2199
+ None,
2200
+ Annotated[StrictFloat, Field(gt=0)],
2201
+ Tuple[
2202
+ Annotated[StrictFloat, Field(gt=0)],
2203
+ Annotated[StrictFloat, Field(gt=0)]
2204
+ ]
2205
+ ] = None,
2206
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2207
+ _content_type: Optional[StrictStr] = None,
2208
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2209
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2210
+ ) -> ApiResponse[FileContentUploadResponse]:
2211
+ """Upload a File synchronously.
2212
+
2213
+ Synchronously upload a File.
2214
+
2215
+ :param pulp_domain: (required)
2216
+ :type pulp_domain: str
2217
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
2218
+ :type relative_path: str
2219
+ :param x_task_diagnostics: List of profilers to use on tasks.
2220
+ :type x_task_diagnostics: List[str]
2221
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
2222
+ :type pulp_labels: Dict[str, Optional[str]]
2223
+ :param artifact: Artifact file representing the physical content
2224
+ :type artifact: str
2225
+ :param file: An uploaded file that may be turned into the content unit.
2226
+ :type file: bytearray
2227
+ :param upload: An uncommitted upload that may be turned into the content unit.
2228
+ :type upload: str
2229
+ :param file_url: A url that Pulp can download and turn into the content unit.
2230
+ :type file_url: str
2231
+ :param _request_timeout: timeout setting for this request. If one
2232
+ number provided, it will be total request
2233
+ timeout. It can also be a pair (tuple) of
2234
+ (connection, read) timeouts.
2235
+ :type _request_timeout: int, tuple(int, int), optional
2236
+ :param _request_auth: set to override the auth_settings for an a single
2237
+ request; this effectively ignores the
2238
+ authentication in the spec for a single request.
2239
+ :type _request_auth: dict, optional
2240
+ :param _content_type: force content-type for the request.
2241
+ :type _content_type: str, Optional
2242
+ :param _headers: set to override the headers for a single
2243
+ request; this effectively ignores the headers
2244
+ in the spec for a single request.
2245
+ :type _headers: dict, optional
2246
+ :param _host_index: set to override the host_index for a single
2247
+ request; this effectively ignores the host_index
2248
+ in the spec for a single request.
2249
+ :type _host_index: int, optional
2250
+ :return: Returns the result object.
2251
+ """ # noqa: E501
2252
+
2253
+ _param = self._upload_serialize(
2254
+ pulp_domain=pulp_domain,
2255
+ relative_path=relative_path,
2256
+ x_task_diagnostics=x_task_diagnostics,
2257
+ pulp_labels=pulp_labels,
2258
+ artifact=artifact,
2259
+ file=file,
2260
+ upload=upload,
2261
+ file_url=file_url,
2262
+ _request_auth=_request_auth,
2263
+ _content_type=_content_type,
2264
+ _headers=_headers,
2265
+ _host_index=_host_index
2266
+ )
2267
+
2268
+ _response_types_map: Dict[str, Optional[str]] = {
2269
+ '201': "FileContentUploadResponse",
2270
+ }
2271
+ response_data = self.api_client.call_api(
2272
+ *_param,
2273
+ _request_timeout=_request_timeout
2274
+ )
2275
+ response_data.read()
2276
+ return self.api_client.response_deserialize(
2277
+ response_data=response_data,
2278
+ response_types_map=_response_types_map,
2279
+ )
2280
+
2281
+
2282
+ @validate_call
2283
+ def upload_without_preload_content(
2284
+ self,
2285
+ relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
2286
+ x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
2287
+ pulp_labels: Annotated[Optional[Dict[str, Optional[StrictStr]]], Field(description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")] = None,
2288
+ artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
2289
+ file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
2290
+ upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
2291
+ file_url: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="A url that Pulp can download and turn into the content unit.")] = None,
2292
+ pulp_domain: StrictStr = "default",
2293
+ _request_timeout: Union[
2294
+ None,
2295
+ Annotated[StrictFloat, Field(gt=0)],
2296
+ Tuple[
2297
+ Annotated[StrictFloat, Field(gt=0)],
2298
+ Annotated[StrictFloat, Field(gt=0)]
2299
+ ]
2300
+ ] = None,
2301
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2302
+ _content_type: Optional[StrictStr] = None,
2303
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2304
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2305
+ ) -> RESTResponseType:
2306
+ """Upload a File synchronously.
2307
+
2308
+ Synchronously upload a File.
2309
+
2310
+ :param pulp_domain: (required)
2311
+ :type pulp_domain: str
2312
+ :param relative_path: Path where the artifact is located relative to distributions base_path (required)
2313
+ :type relative_path: str
2314
+ :param x_task_diagnostics: List of profilers to use on tasks.
2315
+ :type x_task_diagnostics: List[str]
2316
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
2317
+ :type pulp_labels: Dict[str, Optional[str]]
2318
+ :param artifact: Artifact file representing the physical content
2319
+ :type artifact: str
2320
+ :param file: An uploaded file that may be turned into the content unit.
2321
+ :type file: bytearray
2322
+ :param upload: An uncommitted upload that may be turned into the content unit.
2323
+ :type upload: str
2324
+ :param file_url: A url that Pulp can download and turn into the content unit.
2325
+ :type file_url: str
2326
+ :param _request_timeout: timeout setting for this request. If one
2327
+ number provided, it will be total request
2328
+ timeout. It can also be a pair (tuple) of
2329
+ (connection, read) timeouts.
2330
+ :type _request_timeout: int, tuple(int, int), optional
2331
+ :param _request_auth: set to override the auth_settings for an a single
2332
+ request; this effectively ignores the
2333
+ authentication in the spec for a single request.
2334
+ :type _request_auth: dict, optional
2335
+ :param _content_type: force content-type for the request.
2336
+ :type _content_type: str, Optional
2337
+ :param _headers: set to override the headers for a single
2338
+ request; this effectively ignores the headers
2339
+ in the spec for a single request.
2340
+ :type _headers: dict, optional
2341
+ :param _host_index: set to override the host_index for a single
2342
+ request; this effectively ignores the host_index
2343
+ in the spec for a single request.
2344
+ :type _host_index: int, optional
2345
+ :return: Returns the result object.
2346
+ """ # noqa: E501
2347
+
2348
+ _param = self._upload_serialize(
2349
+ pulp_domain=pulp_domain,
2350
+ relative_path=relative_path,
2351
+ x_task_diagnostics=x_task_diagnostics,
2352
+ pulp_labels=pulp_labels,
2353
+ artifact=artifact,
2354
+ file=file,
2355
+ upload=upload,
2356
+ file_url=file_url,
2357
+ _request_auth=_request_auth,
2358
+ _content_type=_content_type,
2359
+ _headers=_headers,
2360
+ _host_index=_host_index
2361
+ )
2362
+
2363
+ _response_types_map: Dict[str, Optional[str]] = {
2364
+ '201': "FileContentUploadResponse",
2365
+ }
2366
+ response_data = self.api_client.call_api(
2367
+ *_param,
2368
+ _request_timeout=_request_timeout
2369
+ )
2370
+ return response_data.response
2371
+
2372
+
2373
+ def _upload_serialize(
2374
+ self,
2375
+ pulp_domain,
2376
+ relative_path,
2377
+ x_task_diagnostics,
2378
+ pulp_labels,
2379
+ artifact,
2380
+ file,
2381
+ upload,
2382
+ file_url,
2383
+ _request_auth,
2384
+ _content_type,
2385
+ _headers,
2386
+ _host_index,
2387
+ ) -> RequestSerialized:
2388
+
2389
+ _host = None
2390
+
2391
+ _collection_formats: Dict[str, str] = {
2392
+ 'X-Task-Diagnostics': 'csv',
2393
+ }
2394
+
2395
+ _path_params: Dict[str, str] = {}
2396
+ _query_params: List[Tuple[str, str]] = []
2397
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2398
+ _form_params: List[Tuple[str, str]] = []
2399
+ _files: Dict[
2400
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2401
+ ] = {}
2402
+ _body_params: Optional[bytes] = None
2403
+
2404
+ # process the path parameters
2405
+ if pulp_domain is not None:
2406
+ _path_params['pulp_domain'] = pulp_domain
2407
+ # process the query parameters
2408
+ # process the header parameters
2409
+ if x_task_diagnostics is not None:
2410
+ _header_params['X-Task-Diagnostics'] = x_task_diagnostics
2411
+ # process the form parameters
2412
+ if pulp_labels is not None:
2413
+ _form_params.append(('pulp_labels', pulp_labels))
2414
+ if artifact is not None:
2415
+ _form_params.append(('artifact', artifact))
2416
+ if relative_path is not None:
2417
+ _form_params.append(('relative_path', relative_path))
2418
+ if file is not None:
2419
+ _files['file'] = file
2420
+ if upload is not None:
2421
+ _form_params.append(('upload', upload))
2422
+ if file_url is not None:
2423
+ _form_params.append(('file_url', file_url))
2424
+ # process the body parameter
2425
+
2426
+
2427
+ # set the HTTP header `Accept`
2428
+ if 'Accept' not in _header_params:
2429
+ _header_params['Accept'] = self.api_client.select_header_accept(
2430
+ [
2431
+ 'application/json'
2432
+ ]
2433
+ )
2434
+
2435
+ # set the HTTP header `Content-Type`
2436
+ if _content_type:
2437
+ _header_params['Content-Type'] = _content_type
2438
+ else:
2439
+ _default_content_type = (
2440
+ self.api_client.select_header_content_type(
2441
+ [
2442
+ 'multipart/form-data',
2443
+ 'application/x-www-form-urlencoded'
2444
+ ]
2445
+ )
2446
+ )
2447
+ if _default_content_type is not None:
2448
+ _header_params['Content-Type'] = _default_content_type
2449
+
2450
+ # authentication setting
2451
+ _auth_settings: List[str] = [
2452
+ 'json_header_remote_authentication',
2453
+ 'basicAuth',
2454
+ 'cookieAuth'
2455
+ ]
2456
+
2457
+ return self.api_client.param_serialize(
2458
+ method='POST',
2459
+ resource_path='/api/pulp/{pulp_domain}/api/v3/content/file/files/upload/',
2460
+ path_params=_path_params,
2461
+ query_params=_query_params,
2462
+ header_params=_header_params,
2463
+ body=_body_params,
2464
+ post_params=_form_params,
2465
+ files=_files,
2466
+ auth_settings=_auth_settings,
2467
+ collection_formats=_collection_formats,
2468
+ _host=_host,
2469
+ _request_auth=_request_auth
2470
+ )
2471
+
2472
+
@@ -225,7 +225,7 @@ conf = pulpcore.client.pulp_file.Configuration(
225
225
  ) -> None:
226
226
  """Constructor
227
227
  """
228
- self._base_path = "https://env-ephemeral-mknfzv.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
228
+ self._base_path = "https://env-ephemeral-wd71us.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
229
229
  """Default Base url
230
230
  """
231
231
  self.server_index = 0 if server_index is None and host is None else server_index
@@ -557,7 +557,7 @@ conf = pulpcore.client.pulp_file.Configuration(
557
557
  "OS: {env}\n"\
558
558
  "Python Version: {pyversion}\n"\
559
559
  "Version of the API: v3\n"\
560
- "SDK Package Version: 20251118.1".\
560
+ "SDK Package Version: 20260107.2".\
561
561
  format(env=sys.platform, pyversion=sys.version)
562
562
 
563
563
  def get_host_settings(self) -> List[HostSetting]:
@@ -567,7 +567,7 @@ conf = pulpcore.client.pulp_file.Configuration(
567
567
  """
568
568
  return [
569
569
  {
570
- 'url': "https://env-ephemeral-mknfzv.apps.crc-eph.r9lp.p1.openshiftapps.com",
570
+ 'url': "https://env-ephemeral-wd71us.apps.crc-eph.r9lp.p1.openshiftapps.com",
571
571
  'description': "No description provided",
572
572
  }
573
573
  ]
@@ -17,6 +17,7 @@
17
17
  # import models into model package
18
18
  from pulpcore.client.pulp_file.models.async_operation_response import AsyncOperationResponse
19
19
  from pulpcore.client.pulp_file.models.content_summary_response import ContentSummaryResponse
20
+ from pulpcore.client.pulp_file.models.file_content_upload_response import FileContentUploadResponse
20
21
  from pulpcore.client.pulp_file.models.file_file_alternate_content_source import FileFileAlternateContentSource
21
22
  from pulpcore.client.pulp_file.models.file_file_alternate_content_source_response import FileFileAlternateContentSourceResponse
22
23
  from pulpcore.client.pulp_file.models.file_file_content_response import FileFileContentResponse
@@ -0,0 +1,137 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pulp 3 API
5
+
6
+ Fetch, Upload, Organize, and Distribute Software Packages
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from datetime import datetime
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
23
+ from typing import Any, ClassVar, Dict, List, Optional
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class FileContentUploadResponse(BaseModel):
28
+ """
29
+ Serializer for File Content.
30
+ """ # noqa: E501
31
+ pulp_href: Optional[StrictStr] = None
32
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
33
+ pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
34
+ pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
35
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
36
+ vuln_report: Optional[StrictStr] = None
37
+ artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
38
+ relative_path: StrictStr = Field(description="Path where the artifact is located relative to distributions base_path")
39
+ md5: Optional[StrictStr] = Field(default=None, description="The MD5 checksum if available.")
40
+ sha1: Optional[StrictStr] = Field(default=None, description="The SHA-1 checksum if available.")
41
+ sha224: Optional[StrictStr] = Field(default=None, description="The SHA-224 checksum if available.")
42
+ sha256: Optional[StrictStr] = Field(default=None, description="The SHA-256 checksum if available.")
43
+ sha384: Optional[StrictStr] = Field(default=None, description="The SHA-384 checksum if available.")
44
+ sha512: Optional[StrictStr] = Field(default=None, description="The SHA-512 checksum if available.")
45
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifact", "relative_path", "md5", "sha1", "sha224", "sha256", "sha384", "sha512"]
46
+
47
+ model_config = ConfigDict(
48
+ populate_by_name=True,
49
+ validate_assignment=True,
50
+ protected_namespaces=(),
51
+ )
52
+
53
+
54
+ def to_str(self) -> str:
55
+ """Returns the string representation of the model using alias"""
56
+ return pprint.pformat(self.model_dump(by_alias=True))
57
+
58
+ def to_json(self) -> str:
59
+ """Returns the JSON representation of the model using alias"""
60
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
61
+ return json.dumps(self.to_dict())
62
+
63
+ @classmethod
64
+ def from_json(cls, json_str: str) -> Optional[Self]:
65
+ """Create an instance of FileContentUploadResponse from a JSON string"""
66
+ return cls.from_dict(json.loads(json_str))
67
+
68
+ def to_dict(self) -> Dict[str, Any]:
69
+ """Return the dictionary representation of the model using alias.
70
+
71
+ This has the following differences from calling pydantic's
72
+ `self.model_dump(by_alias=True)`:
73
+
74
+ * `None` is only added to the output dict for nullable fields that
75
+ were set at model initialization. Other fields with value `None`
76
+ are ignored.
77
+ * OpenAPI `readOnly` fields are excluded.
78
+ * OpenAPI `readOnly` fields are excluded.
79
+ * OpenAPI `readOnly` fields are excluded.
80
+ * OpenAPI `readOnly` fields are excluded.
81
+ * OpenAPI `readOnly` fields are excluded.
82
+ * OpenAPI `readOnly` fields are excluded.
83
+ * OpenAPI `readOnly` fields are excluded.
84
+ * OpenAPI `readOnly` fields are excluded.
85
+ * OpenAPI `readOnly` fields are excluded.
86
+ * OpenAPI `readOnly` fields are excluded.
87
+ * OpenAPI `readOnly` fields are excluded.
88
+ """
89
+ excluded_fields: Set[str] = set([
90
+ "pulp_href",
91
+ "prn",
92
+ "pulp_created",
93
+ "pulp_last_updated",
94
+ "vuln_report",
95
+ "md5",
96
+ "sha1",
97
+ "sha224",
98
+ "sha256",
99
+ "sha384",
100
+ "sha512",
101
+ ])
102
+
103
+ _dict = self.model_dump(
104
+ by_alias=True,
105
+ exclude=excluded_fields,
106
+ exclude_none=True,
107
+ )
108
+ return _dict
109
+
110
+ @classmethod
111
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
112
+ """Create an instance of FileContentUploadResponse from a dict"""
113
+ if obj is None:
114
+ return None
115
+
116
+ if not isinstance(obj, dict):
117
+ return cls.model_validate(obj)
118
+
119
+ _obj = cls.model_validate({
120
+ "pulp_href": obj.get("pulp_href"),
121
+ "prn": obj.get("prn"),
122
+ "pulp_created": obj.get("pulp_created"),
123
+ "pulp_last_updated": obj.get("pulp_last_updated"),
124
+ "pulp_labels": obj.get("pulp_labels"),
125
+ "vuln_report": obj.get("vuln_report"),
126
+ "artifact": obj.get("artifact"),
127
+ "relative_path": obj.get("relative_path"),
128
+ "md5": obj.get("md5"),
129
+ "sha1": obj.get("sha1"),
130
+ "sha224": obj.get("sha224"),
131
+ "sha256": obj.get("sha256"),
132
+ "sha384": obj.get("sha384"),
133
+ "sha512": obj.get("sha512")
134
+ })
135
+ return _obj
136
+
137
+