crc-pulp-python-client 20250826.1__py3-none-any.whl → 20250828.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.
Potentially problematic release.
This version of crc-pulp-python-client might be problematic. Click here for more details.
- crc-pulp_python-client/api/content_packages_api.py +764 -6
- crc-pulp_python-client/api_client.py +1 -1
- crc-pulp_python-client/configuration.py +3 -3
- crc-pulp_python-client/models/python_python_package_content_response.py +1 -1
- {crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/METADATA +1 -1
- {crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/RECORD +8 -8
- {crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/WHEEL +0 -0
- {crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/top_level.txt +0 -0
|
@@ -77,7 +77,7 @@ class ContentPackagesApi:
|
|
|
77
77
|
requires_external: Optional[Any] = None,
|
|
78
78
|
requires_dist: Optional[Any] = None,
|
|
79
79
|
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
80
|
-
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution
|
|
80
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
81
81
|
provides_extras: Optional[Any] = None,
|
|
82
82
|
dynamic: Optional[Any] = None,
|
|
83
83
|
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
@@ -159,7 +159,7 @@ class ContentPackagesApi:
|
|
|
159
159
|
:type requires_dist: object
|
|
160
160
|
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
161
161
|
:type requires_python: str
|
|
162
|
-
:param description_content_type: A string stating the markup syntax (if any) used in the distribution
|
|
162
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
163
163
|
:type description_content_type: str
|
|
164
164
|
:param provides_extras:
|
|
165
165
|
:type provides_extras: object
|
|
@@ -280,7 +280,7 @@ class ContentPackagesApi:
|
|
|
280
280
|
requires_external: Optional[Any] = None,
|
|
281
281
|
requires_dist: Optional[Any] = None,
|
|
282
282
|
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
283
|
-
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution
|
|
283
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
284
284
|
provides_extras: Optional[Any] = None,
|
|
285
285
|
dynamic: Optional[Any] = None,
|
|
286
286
|
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
@@ -362,7 +362,7 @@ class ContentPackagesApi:
|
|
|
362
362
|
:type requires_dist: object
|
|
363
363
|
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
364
364
|
:type requires_python: str
|
|
365
|
-
:param description_content_type: A string stating the markup syntax (if any) used in the distribution
|
|
365
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
366
366
|
:type description_content_type: str
|
|
367
367
|
:param provides_extras:
|
|
368
368
|
:type provides_extras: object
|
|
@@ -483,7 +483,7 @@ class ContentPackagesApi:
|
|
|
483
483
|
requires_external: Optional[Any] = None,
|
|
484
484
|
requires_dist: Optional[Any] = None,
|
|
485
485
|
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
486
|
-
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution
|
|
486
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
487
487
|
provides_extras: Optional[Any] = None,
|
|
488
488
|
dynamic: Optional[Any] = None,
|
|
489
489
|
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
@@ -565,7 +565,7 @@ class ContentPackagesApi:
|
|
|
565
565
|
:type requires_dist: object
|
|
566
566
|
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
567
567
|
:type requires_python: str
|
|
568
|
-
:param description_content_type: A string stating the markup syntax (if any) used in the distribution
|
|
568
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
569
569
|
:type description_content_type: str
|
|
570
570
|
:param provides_extras:
|
|
571
571
|
:type provides_extras: object
|
|
@@ -2652,3 +2652,761 @@ class ContentPackagesApi:
|
|
|
2652
2652
|
)
|
|
2653
2653
|
|
|
2654
2654
|
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
@validate_call
|
|
2658
|
+
def upload(
|
|
2659
|
+
self,
|
|
2660
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2661
|
+
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,
|
|
2662
|
+
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
2663
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
2664
|
+
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
2665
|
+
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,
|
|
2666
|
+
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
2667
|
+
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
2668
|
+
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
2669
|
+
home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
|
|
2670
|
+
keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
|
|
2671
|
+
license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
|
|
2672
|
+
platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
|
|
2673
|
+
summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
|
|
2674
|
+
classifiers: Optional[Any] = None,
|
|
2675
|
+
download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
|
|
2676
|
+
supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
|
|
2677
|
+
maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
|
|
2678
|
+
maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
|
|
2679
|
+
obsoletes_dist: Optional[Any] = None,
|
|
2680
|
+
project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
|
|
2681
|
+
project_urls: Optional[Any] = None,
|
|
2682
|
+
provides_dist: Optional[Any] = None,
|
|
2683
|
+
requires_external: Optional[Any] = None,
|
|
2684
|
+
requires_dist: Optional[Any] = None,
|
|
2685
|
+
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
2686
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
2687
|
+
provides_extras: Optional[Any] = None,
|
|
2688
|
+
dynamic: Optional[Any] = None,
|
|
2689
|
+
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
2690
|
+
license_file: Optional[Any] = None,
|
|
2691
|
+
sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
|
|
2692
|
+
pulp_domain: StrictStr = "default",
|
|
2693
|
+
_request_timeout: Union[
|
|
2694
|
+
None,
|
|
2695
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2696
|
+
Tuple[
|
|
2697
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2698
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2699
|
+
]
|
|
2700
|
+
] = None,
|
|
2701
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2702
|
+
_content_type: Optional[StrictStr] = None,
|
|
2703
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2704
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2705
|
+
) -> PythonPythonPackageContentResponse:
|
|
2706
|
+
"""Synchronous Python package upload
|
|
2707
|
+
|
|
2708
|
+
Create a Python package.
|
|
2709
|
+
|
|
2710
|
+
:param pulp_domain: (required)
|
|
2711
|
+
:type pulp_domain: str
|
|
2712
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2713
|
+
:type x_task_diagnostics: List[str]
|
|
2714
|
+
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
2715
|
+
:type pulp_labels: Dict[str, Optional[str]]
|
|
2716
|
+
:param artifact: Artifact file representing the physical content
|
|
2717
|
+
:type artifact: str
|
|
2718
|
+
:param file: An uploaded file that may be turned into the content unit.
|
|
2719
|
+
:type file: bytearray
|
|
2720
|
+
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
2721
|
+
:type upload: str
|
|
2722
|
+
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
2723
|
+
:type file_url: str
|
|
2724
|
+
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
2725
|
+
:type author: str
|
|
2726
|
+
:param author_email: The author's e-mail address.
|
|
2727
|
+
:type author_email: str
|
|
2728
|
+
:param description: A longer description of the package that can run to several paragraphs.
|
|
2729
|
+
:type description: str
|
|
2730
|
+
:param home_page: The URL for the package's home page.
|
|
2731
|
+
:type home_page: str
|
|
2732
|
+
:param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
|
|
2733
|
+
:type keywords: str
|
|
2734
|
+
:param license: Text indicating the license covering the distribution
|
|
2735
|
+
:type license: str
|
|
2736
|
+
:param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
2737
|
+
:type platform: str
|
|
2738
|
+
:param summary: A one-line summary of what the package does.
|
|
2739
|
+
:type summary: str
|
|
2740
|
+
:param classifiers:
|
|
2741
|
+
:type classifiers: object
|
|
2742
|
+
:param download_url: Legacy field denoting the URL from which this package can be downloaded.
|
|
2743
|
+
:type download_url: str
|
|
2744
|
+
:param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
|
|
2745
|
+
:type supported_platform: str
|
|
2746
|
+
:param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
|
|
2747
|
+
:type maintainer: str
|
|
2748
|
+
:param maintainer_email: The maintainer's e-mail address.
|
|
2749
|
+
:type maintainer_email: str
|
|
2750
|
+
:param obsoletes_dist:
|
|
2751
|
+
:type obsoletes_dist: object
|
|
2752
|
+
:param project_url: A browsable URL for the project and a label for it, separated by a comma.
|
|
2753
|
+
:type project_url: str
|
|
2754
|
+
:param project_urls:
|
|
2755
|
+
:type project_urls: object
|
|
2756
|
+
:param provides_dist:
|
|
2757
|
+
:type provides_dist: object
|
|
2758
|
+
:param requires_external:
|
|
2759
|
+
:type requires_external: object
|
|
2760
|
+
:param requires_dist:
|
|
2761
|
+
:type requires_dist: object
|
|
2762
|
+
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
2763
|
+
:type requires_python: str
|
|
2764
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
2765
|
+
:type description_content_type: str
|
|
2766
|
+
:param provides_extras:
|
|
2767
|
+
:type provides_extras: object
|
|
2768
|
+
:param dynamic:
|
|
2769
|
+
:type dynamic: object
|
|
2770
|
+
:param license_expression: Text string that is a valid SPDX license expression.
|
|
2771
|
+
:type license_expression: str
|
|
2772
|
+
:param license_file:
|
|
2773
|
+
:type license_file: object
|
|
2774
|
+
:param sha256: The SHA256 digest of this package.
|
|
2775
|
+
:type sha256: str
|
|
2776
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2777
|
+
number provided, it will be total request
|
|
2778
|
+
timeout. It can also be a pair (tuple) of
|
|
2779
|
+
(connection, read) timeouts.
|
|
2780
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2781
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2782
|
+
request; this effectively ignores the
|
|
2783
|
+
authentication in the spec for a single request.
|
|
2784
|
+
:type _request_auth: dict, optional
|
|
2785
|
+
:param _content_type: force content-type for the request.
|
|
2786
|
+
:type _content_type: str, Optional
|
|
2787
|
+
:param _headers: set to override the headers for a single
|
|
2788
|
+
request; this effectively ignores the headers
|
|
2789
|
+
in the spec for a single request.
|
|
2790
|
+
:type _headers: dict, optional
|
|
2791
|
+
:param _host_index: set to override the host_index for a single
|
|
2792
|
+
request; this effectively ignores the host_index
|
|
2793
|
+
in the spec for a single request.
|
|
2794
|
+
:type _host_index: int, optional
|
|
2795
|
+
:return: Returns the result object.
|
|
2796
|
+
""" # noqa: E501
|
|
2797
|
+
|
|
2798
|
+
_param = self._upload_serialize(
|
|
2799
|
+
pulp_domain=pulp_domain,
|
|
2800
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2801
|
+
pulp_labels=pulp_labels,
|
|
2802
|
+
artifact=artifact,
|
|
2803
|
+
file=file,
|
|
2804
|
+
upload=upload,
|
|
2805
|
+
file_url=file_url,
|
|
2806
|
+
author=author,
|
|
2807
|
+
author_email=author_email,
|
|
2808
|
+
description=description,
|
|
2809
|
+
home_page=home_page,
|
|
2810
|
+
keywords=keywords,
|
|
2811
|
+
license=license,
|
|
2812
|
+
platform=platform,
|
|
2813
|
+
summary=summary,
|
|
2814
|
+
classifiers=classifiers,
|
|
2815
|
+
download_url=download_url,
|
|
2816
|
+
supported_platform=supported_platform,
|
|
2817
|
+
maintainer=maintainer,
|
|
2818
|
+
maintainer_email=maintainer_email,
|
|
2819
|
+
obsoletes_dist=obsoletes_dist,
|
|
2820
|
+
project_url=project_url,
|
|
2821
|
+
project_urls=project_urls,
|
|
2822
|
+
provides_dist=provides_dist,
|
|
2823
|
+
requires_external=requires_external,
|
|
2824
|
+
requires_dist=requires_dist,
|
|
2825
|
+
requires_python=requires_python,
|
|
2826
|
+
description_content_type=description_content_type,
|
|
2827
|
+
provides_extras=provides_extras,
|
|
2828
|
+
dynamic=dynamic,
|
|
2829
|
+
license_expression=license_expression,
|
|
2830
|
+
license_file=license_file,
|
|
2831
|
+
sha256=sha256,
|
|
2832
|
+
_request_auth=_request_auth,
|
|
2833
|
+
_content_type=_content_type,
|
|
2834
|
+
_headers=_headers,
|
|
2835
|
+
_host_index=_host_index
|
|
2836
|
+
)
|
|
2837
|
+
|
|
2838
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2839
|
+
'201': "PythonPythonPackageContentResponse",
|
|
2840
|
+
}
|
|
2841
|
+
response_data = self.api_client.call_api(
|
|
2842
|
+
*_param,
|
|
2843
|
+
_request_timeout=_request_timeout
|
|
2844
|
+
)
|
|
2845
|
+
response_data.read()
|
|
2846
|
+
return self.api_client.response_deserialize(
|
|
2847
|
+
response_data=response_data,
|
|
2848
|
+
response_types_map=_response_types_map,
|
|
2849
|
+
).data
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
@validate_call
|
|
2853
|
+
def upload_with_http_info(
|
|
2854
|
+
self,
|
|
2855
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
2856
|
+
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,
|
|
2857
|
+
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
2858
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
2859
|
+
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
2860
|
+
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,
|
|
2861
|
+
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
2862
|
+
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
2863
|
+
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
2864
|
+
home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
|
|
2865
|
+
keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
|
|
2866
|
+
license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
|
|
2867
|
+
platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
|
|
2868
|
+
summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
|
|
2869
|
+
classifiers: Optional[Any] = None,
|
|
2870
|
+
download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
|
|
2871
|
+
supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
|
|
2872
|
+
maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
|
|
2873
|
+
maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
|
|
2874
|
+
obsoletes_dist: Optional[Any] = None,
|
|
2875
|
+
project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
|
|
2876
|
+
project_urls: Optional[Any] = None,
|
|
2877
|
+
provides_dist: Optional[Any] = None,
|
|
2878
|
+
requires_external: Optional[Any] = None,
|
|
2879
|
+
requires_dist: Optional[Any] = None,
|
|
2880
|
+
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
2881
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
2882
|
+
provides_extras: Optional[Any] = None,
|
|
2883
|
+
dynamic: Optional[Any] = None,
|
|
2884
|
+
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
2885
|
+
license_file: Optional[Any] = None,
|
|
2886
|
+
sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
|
|
2887
|
+
pulp_domain: StrictStr = "default",
|
|
2888
|
+
_request_timeout: Union[
|
|
2889
|
+
None,
|
|
2890
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2891
|
+
Tuple[
|
|
2892
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2893
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2894
|
+
]
|
|
2895
|
+
] = None,
|
|
2896
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2897
|
+
_content_type: Optional[StrictStr] = None,
|
|
2898
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2899
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2900
|
+
) -> ApiResponse[PythonPythonPackageContentResponse]:
|
|
2901
|
+
"""Synchronous Python package upload
|
|
2902
|
+
|
|
2903
|
+
Create a Python package.
|
|
2904
|
+
|
|
2905
|
+
:param pulp_domain: (required)
|
|
2906
|
+
:type pulp_domain: str
|
|
2907
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
2908
|
+
:type x_task_diagnostics: List[str]
|
|
2909
|
+
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
2910
|
+
:type pulp_labels: Dict[str, Optional[str]]
|
|
2911
|
+
:param artifact: Artifact file representing the physical content
|
|
2912
|
+
:type artifact: str
|
|
2913
|
+
:param file: An uploaded file that may be turned into the content unit.
|
|
2914
|
+
:type file: bytearray
|
|
2915
|
+
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
2916
|
+
:type upload: str
|
|
2917
|
+
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
2918
|
+
:type file_url: str
|
|
2919
|
+
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
2920
|
+
:type author: str
|
|
2921
|
+
:param author_email: The author's e-mail address.
|
|
2922
|
+
:type author_email: str
|
|
2923
|
+
:param description: A longer description of the package that can run to several paragraphs.
|
|
2924
|
+
:type description: str
|
|
2925
|
+
:param home_page: The URL for the package's home page.
|
|
2926
|
+
:type home_page: str
|
|
2927
|
+
:param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
|
|
2928
|
+
:type keywords: str
|
|
2929
|
+
:param license: Text indicating the license covering the distribution
|
|
2930
|
+
:type license: str
|
|
2931
|
+
:param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
2932
|
+
:type platform: str
|
|
2933
|
+
:param summary: A one-line summary of what the package does.
|
|
2934
|
+
:type summary: str
|
|
2935
|
+
:param classifiers:
|
|
2936
|
+
:type classifiers: object
|
|
2937
|
+
:param download_url: Legacy field denoting the URL from which this package can be downloaded.
|
|
2938
|
+
:type download_url: str
|
|
2939
|
+
:param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
|
|
2940
|
+
:type supported_platform: str
|
|
2941
|
+
:param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
|
|
2942
|
+
:type maintainer: str
|
|
2943
|
+
:param maintainer_email: The maintainer's e-mail address.
|
|
2944
|
+
:type maintainer_email: str
|
|
2945
|
+
:param obsoletes_dist:
|
|
2946
|
+
:type obsoletes_dist: object
|
|
2947
|
+
:param project_url: A browsable URL for the project and a label for it, separated by a comma.
|
|
2948
|
+
:type project_url: str
|
|
2949
|
+
:param project_urls:
|
|
2950
|
+
:type project_urls: object
|
|
2951
|
+
:param provides_dist:
|
|
2952
|
+
:type provides_dist: object
|
|
2953
|
+
:param requires_external:
|
|
2954
|
+
:type requires_external: object
|
|
2955
|
+
:param requires_dist:
|
|
2956
|
+
:type requires_dist: object
|
|
2957
|
+
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
2958
|
+
:type requires_python: str
|
|
2959
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
2960
|
+
:type description_content_type: str
|
|
2961
|
+
:param provides_extras:
|
|
2962
|
+
:type provides_extras: object
|
|
2963
|
+
:param dynamic:
|
|
2964
|
+
:type dynamic: object
|
|
2965
|
+
:param license_expression: Text string that is a valid SPDX license expression.
|
|
2966
|
+
:type license_expression: str
|
|
2967
|
+
:param license_file:
|
|
2968
|
+
:type license_file: object
|
|
2969
|
+
:param sha256: The SHA256 digest of this package.
|
|
2970
|
+
:type sha256: str
|
|
2971
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2972
|
+
number provided, it will be total request
|
|
2973
|
+
timeout. It can also be a pair (tuple) of
|
|
2974
|
+
(connection, read) timeouts.
|
|
2975
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2976
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2977
|
+
request; this effectively ignores the
|
|
2978
|
+
authentication in the spec for a single request.
|
|
2979
|
+
:type _request_auth: dict, optional
|
|
2980
|
+
:param _content_type: force content-type for the request.
|
|
2981
|
+
:type _content_type: str, Optional
|
|
2982
|
+
:param _headers: set to override the headers for a single
|
|
2983
|
+
request; this effectively ignores the headers
|
|
2984
|
+
in the spec for a single request.
|
|
2985
|
+
:type _headers: dict, optional
|
|
2986
|
+
:param _host_index: set to override the host_index for a single
|
|
2987
|
+
request; this effectively ignores the host_index
|
|
2988
|
+
in the spec for a single request.
|
|
2989
|
+
:type _host_index: int, optional
|
|
2990
|
+
:return: Returns the result object.
|
|
2991
|
+
""" # noqa: E501
|
|
2992
|
+
|
|
2993
|
+
_param = self._upload_serialize(
|
|
2994
|
+
pulp_domain=pulp_domain,
|
|
2995
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
2996
|
+
pulp_labels=pulp_labels,
|
|
2997
|
+
artifact=artifact,
|
|
2998
|
+
file=file,
|
|
2999
|
+
upload=upload,
|
|
3000
|
+
file_url=file_url,
|
|
3001
|
+
author=author,
|
|
3002
|
+
author_email=author_email,
|
|
3003
|
+
description=description,
|
|
3004
|
+
home_page=home_page,
|
|
3005
|
+
keywords=keywords,
|
|
3006
|
+
license=license,
|
|
3007
|
+
platform=platform,
|
|
3008
|
+
summary=summary,
|
|
3009
|
+
classifiers=classifiers,
|
|
3010
|
+
download_url=download_url,
|
|
3011
|
+
supported_platform=supported_platform,
|
|
3012
|
+
maintainer=maintainer,
|
|
3013
|
+
maintainer_email=maintainer_email,
|
|
3014
|
+
obsoletes_dist=obsoletes_dist,
|
|
3015
|
+
project_url=project_url,
|
|
3016
|
+
project_urls=project_urls,
|
|
3017
|
+
provides_dist=provides_dist,
|
|
3018
|
+
requires_external=requires_external,
|
|
3019
|
+
requires_dist=requires_dist,
|
|
3020
|
+
requires_python=requires_python,
|
|
3021
|
+
description_content_type=description_content_type,
|
|
3022
|
+
provides_extras=provides_extras,
|
|
3023
|
+
dynamic=dynamic,
|
|
3024
|
+
license_expression=license_expression,
|
|
3025
|
+
license_file=license_file,
|
|
3026
|
+
sha256=sha256,
|
|
3027
|
+
_request_auth=_request_auth,
|
|
3028
|
+
_content_type=_content_type,
|
|
3029
|
+
_headers=_headers,
|
|
3030
|
+
_host_index=_host_index
|
|
3031
|
+
)
|
|
3032
|
+
|
|
3033
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3034
|
+
'201': "PythonPythonPackageContentResponse",
|
|
3035
|
+
}
|
|
3036
|
+
response_data = self.api_client.call_api(
|
|
3037
|
+
*_param,
|
|
3038
|
+
_request_timeout=_request_timeout
|
|
3039
|
+
)
|
|
3040
|
+
response_data.read()
|
|
3041
|
+
return self.api_client.response_deserialize(
|
|
3042
|
+
response_data=response_data,
|
|
3043
|
+
response_types_map=_response_types_map,
|
|
3044
|
+
)
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
@validate_call
|
|
3048
|
+
def upload_without_preload_content(
|
|
3049
|
+
self,
|
|
3050
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3051
|
+
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,
|
|
3052
|
+
artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
|
|
3053
|
+
file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
|
|
3054
|
+
upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
|
|
3055
|
+
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,
|
|
3056
|
+
author: Annotated[Optional[StrictStr], Field(description="Text containing the author's name. Contact information can also be added, separated with newlines.")] = None,
|
|
3057
|
+
author_email: Annotated[Optional[StrictStr], Field(description="The author's e-mail address. ")] = None,
|
|
3058
|
+
description: Annotated[Optional[StrictStr], Field(description="A longer description of the package that can run to several paragraphs.")] = None,
|
|
3059
|
+
home_page: Annotated[Optional[StrictStr], Field(description="The URL for the package's home page.")] = None,
|
|
3060
|
+
keywords: Annotated[Optional[StrictStr], Field(description="Additional keywords to be used to assist searching for the package in a larger catalog.")] = None,
|
|
3061
|
+
license: Annotated[Optional[StrictStr], Field(description="Text indicating the license covering the distribution")] = None,
|
|
3062
|
+
platform: Annotated[Optional[StrictStr], Field(description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")] = None,
|
|
3063
|
+
summary: Annotated[Optional[StrictStr], Field(description="A one-line summary of what the package does.")] = None,
|
|
3064
|
+
classifiers: Optional[Any] = None,
|
|
3065
|
+
download_url: Annotated[Optional[StrictStr], Field(description="Legacy field denoting the URL from which this package can be downloaded.")] = None,
|
|
3066
|
+
supported_platform: Annotated[Optional[StrictStr], Field(description="Field to specify the OS and CPU for which the binary package was compiled. ")] = None,
|
|
3067
|
+
maintainer: Annotated[Optional[StrictStr], Field(description="The maintainer's name at a minimum; additional contact information may be provided.")] = None,
|
|
3068
|
+
maintainer_email: Annotated[Optional[StrictStr], Field(description="The maintainer's e-mail address.")] = None,
|
|
3069
|
+
obsoletes_dist: Optional[Any] = None,
|
|
3070
|
+
project_url: Annotated[Optional[StrictStr], Field(description="A browsable URL for the project and a label for it, separated by a comma.")] = None,
|
|
3071
|
+
project_urls: Optional[Any] = None,
|
|
3072
|
+
provides_dist: Optional[Any] = None,
|
|
3073
|
+
requires_external: Optional[Any] = None,
|
|
3074
|
+
requires_dist: Optional[Any] = None,
|
|
3075
|
+
requires_python: Annotated[Optional[StrictStr], Field(description="The Python version(s) that the distribution is guaranteed to be compatible with.")] = None,
|
|
3076
|
+
description_content_type: Annotated[Optional[StrictStr], Field(description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")] = None,
|
|
3077
|
+
provides_extras: Optional[Any] = None,
|
|
3078
|
+
dynamic: Optional[Any] = None,
|
|
3079
|
+
license_expression: Annotated[Optional[StrictStr], Field(description="Text string that is a valid SPDX license expression.")] = None,
|
|
3080
|
+
license_file: Optional[Any] = None,
|
|
3081
|
+
sha256: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True)]], Field(description="The SHA256 digest of this package.")] = None,
|
|
3082
|
+
pulp_domain: StrictStr = "default",
|
|
3083
|
+
_request_timeout: Union[
|
|
3084
|
+
None,
|
|
3085
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3086
|
+
Tuple[
|
|
3087
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3088
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3089
|
+
]
|
|
3090
|
+
] = None,
|
|
3091
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3092
|
+
_content_type: Optional[StrictStr] = None,
|
|
3093
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3094
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3095
|
+
) -> RESTResponseType:
|
|
3096
|
+
"""Synchronous Python package upload
|
|
3097
|
+
|
|
3098
|
+
Create a Python package.
|
|
3099
|
+
|
|
3100
|
+
:param pulp_domain: (required)
|
|
3101
|
+
:type pulp_domain: str
|
|
3102
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3103
|
+
:type x_task_diagnostics: List[str]
|
|
3104
|
+
:param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
3105
|
+
:type pulp_labels: Dict[str, Optional[str]]
|
|
3106
|
+
:param artifact: Artifact file representing the physical content
|
|
3107
|
+
:type artifact: str
|
|
3108
|
+
:param file: An uploaded file that may be turned into the content unit.
|
|
3109
|
+
:type file: bytearray
|
|
3110
|
+
:param upload: An uncommitted upload that may be turned into the content unit.
|
|
3111
|
+
:type upload: str
|
|
3112
|
+
:param file_url: A url that Pulp can download and turn into the content unit.
|
|
3113
|
+
:type file_url: str
|
|
3114
|
+
:param author: Text containing the author's name. Contact information can also be added, separated with newlines.
|
|
3115
|
+
:type author: str
|
|
3116
|
+
:param author_email: The author's e-mail address.
|
|
3117
|
+
:type author_email: str
|
|
3118
|
+
:param description: A longer description of the package that can run to several paragraphs.
|
|
3119
|
+
:type description: str
|
|
3120
|
+
:param home_page: The URL for the package's home page.
|
|
3121
|
+
:type home_page: str
|
|
3122
|
+
:param keywords: Additional keywords to be used to assist searching for the package in a larger catalog.
|
|
3123
|
+
:type keywords: str
|
|
3124
|
+
:param license: Text indicating the license covering the distribution
|
|
3125
|
+
:type license: str
|
|
3126
|
+
:param platform: A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
3127
|
+
:type platform: str
|
|
3128
|
+
:param summary: A one-line summary of what the package does.
|
|
3129
|
+
:type summary: str
|
|
3130
|
+
:param classifiers:
|
|
3131
|
+
:type classifiers: object
|
|
3132
|
+
:param download_url: Legacy field denoting the URL from which this package can be downloaded.
|
|
3133
|
+
:type download_url: str
|
|
3134
|
+
:param supported_platform: Field to specify the OS and CPU for which the binary package was compiled.
|
|
3135
|
+
:type supported_platform: str
|
|
3136
|
+
:param maintainer: The maintainer's name at a minimum; additional contact information may be provided.
|
|
3137
|
+
:type maintainer: str
|
|
3138
|
+
:param maintainer_email: The maintainer's e-mail address.
|
|
3139
|
+
:type maintainer_email: str
|
|
3140
|
+
:param obsoletes_dist:
|
|
3141
|
+
:type obsoletes_dist: object
|
|
3142
|
+
:param project_url: A browsable URL for the project and a label for it, separated by a comma.
|
|
3143
|
+
:type project_url: str
|
|
3144
|
+
:param project_urls:
|
|
3145
|
+
:type project_urls: object
|
|
3146
|
+
:param provides_dist:
|
|
3147
|
+
:type provides_dist: object
|
|
3148
|
+
:param requires_external:
|
|
3149
|
+
:type requires_external: object
|
|
3150
|
+
:param requires_dist:
|
|
3151
|
+
:type requires_dist: object
|
|
3152
|
+
:param requires_python: The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
3153
|
+
:type requires_python: str
|
|
3154
|
+
:param description_content_type: A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.
|
|
3155
|
+
:type description_content_type: str
|
|
3156
|
+
:param provides_extras:
|
|
3157
|
+
:type provides_extras: object
|
|
3158
|
+
:param dynamic:
|
|
3159
|
+
:type dynamic: object
|
|
3160
|
+
:param license_expression: Text string that is a valid SPDX license expression.
|
|
3161
|
+
:type license_expression: str
|
|
3162
|
+
:param license_file:
|
|
3163
|
+
:type license_file: object
|
|
3164
|
+
:param sha256: The SHA256 digest of this package.
|
|
3165
|
+
:type sha256: str
|
|
3166
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3167
|
+
number provided, it will be total request
|
|
3168
|
+
timeout. It can also be a pair (tuple) of
|
|
3169
|
+
(connection, read) timeouts.
|
|
3170
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3171
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3172
|
+
request; this effectively ignores the
|
|
3173
|
+
authentication in the spec for a single request.
|
|
3174
|
+
:type _request_auth: dict, optional
|
|
3175
|
+
:param _content_type: force content-type for the request.
|
|
3176
|
+
:type _content_type: str, Optional
|
|
3177
|
+
:param _headers: set to override the headers for a single
|
|
3178
|
+
request; this effectively ignores the headers
|
|
3179
|
+
in the spec for a single request.
|
|
3180
|
+
:type _headers: dict, optional
|
|
3181
|
+
:param _host_index: set to override the host_index for a single
|
|
3182
|
+
request; this effectively ignores the host_index
|
|
3183
|
+
in the spec for a single request.
|
|
3184
|
+
:type _host_index: int, optional
|
|
3185
|
+
:return: Returns the result object.
|
|
3186
|
+
""" # noqa: E501
|
|
3187
|
+
|
|
3188
|
+
_param = self._upload_serialize(
|
|
3189
|
+
pulp_domain=pulp_domain,
|
|
3190
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3191
|
+
pulp_labels=pulp_labels,
|
|
3192
|
+
artifact=artifact,
|
|
3193
|
+
file=file,
|
|
3194
|
+
upload=upload,
|
|
3195
|
+
file_url=file_url,
|
|
3196
|
+
author=author,
|
|
3197
|
+
author_email=author_email,
|
|
3198
|
+
description=description,
|
|
3199
|
+
home_page=home_page,
|
|
3200
|
+
keywords=keywords,
|
|
3201
|
+
license=license,
|
|
3202
|
+
platform=platform,
|
|
3203
|
+
summary=summary,
|
|
3204
|
+
classifiers=classifiers,
|
|
3205
|
+
download_url=download_url,
|
|
3206
|
+
supported_platform=supported_platform,
|
|
3207
|
+
maintainer=maintainer,
|
|
3208
|
+
maintainer_email=maintainer_email,
|
|
3209
|
+
obsoletes_dist=obsoletes_dist,
|
|
3210
|
+
project_url=project_url,
|
|
3211
|
+
project_urls=project_urls,
|
|
3212
|
+
provides_dist=provides_dist,
|
|
3213
|
+
requires_external=requires_external,
|
|
3214
|
+
requires_dist=requires_dist,
|
|
3215
|
+
requires_python=requires_python,
|
|
3216
|
+
description_content_type=description_content_type,
|
|
3217
|
+
provides_extras=provides_extras,
|
|
3218
|
+
dynamic=dynamic,
|
|
3219
|
+
license_expression=license_expression,
|
|
3220
|
+
license_file=license_file,
|
|
3221
|
+
sha256=sha256,
|
|
3222
|
+
_request_auth=_request_auth,
|
|
3223
|
+
_content_type=_content_type,
|
|
3224
|
+
_headers=_headers,
|
|
3225
|
+
_host_index=_host_index
|
|
3226
|
+
)
|
|
3227
|
+
|
|
3228
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3229
|
+
'201': "PythonPythonPackageContentResponse",
|
|
3230
|
+
}
|
|
3231
|
+
response_data = self.api_client.call_api(
|
|
3232
|
+
*_param,
|
|
3233
|
+
_request_timeout=_request_timeout
|
|
3234
|
+
)
|
|
3235
|
+
return response_data.response
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
def _upload_serialize(
|
|
3239
|
+
self,
|
|
3240
|
+
pulp_domain,
|
|
3241
|
+
x_task_diagnostics,
|
|
3242
|
+
pulp_labels,
|
|
3243
|
+
artifact,
|
|
3244
|
+
file,
|
|
3245
|
+
upload,
|
|
3246
|
+
file_url,
|
|
3247
|
+
author,
|
|
3248
|
+
author_email,
|
|
3249
|
+
description,
|
|
3250
|
+
home_page,
|
|
3251
|
+
keywords,
|
|
3252
|
+
license,
|
|
3253
|
+
platform,
|
|
3254
|
+
summary,
|
|
3255
|
+
classifiers,
|
|
3256
|
+
download_url,
|
|
3257
|
+
supported_platform,
|
|
3258
|
+
maintainer,
|
|
3259
|
+
maintainer_email,
|
|
3260
|
+
obsoletes_dist,
|
|
3261
|
+
project_url,
|
|
3262
|
+
project_urls,
|
|
3263
|
+
provides_dist,
|
|
3264
|
+
requires_external,
|
|
3265
|
+
requires_dist,
|
|
3266
|
+
requires_python,
|
|
3267
|
+
description_content_type,
|
|
3268
|
+
provides_extras,
|
|
3269
|
+
dynamic,
|
|
3270
|
+
license_expression,
|
|
3271
|
+
license_file,
|
|
3272
|
+
sha256,
|
|
3273
|
+
_request_auth,
|
|
3274
|
+
_content_type,
|
|
3275
|
+
_headers,
|
|
3276
|
+
_host_index,
|
|
3277
|
+
) -> RequestSerialized:
|
|
3278
|
+
|
|
3279
|
+
_host = None
|
|
3280
|
+
|
|
3281
|
+
_collection_formats: Dict[str, str] = {
|
|
3282
|
+
'X-Task-Diagnostics': 'csv',
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
_path_params: Dict[str, str] = {}
|
|
3286
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3287
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3288
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3289
|
+
_files: Dict[
|
|
3290
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3291
|
+
] = {}
|
|
3292
|
+
_body_params: Optional[bytes] = None
|
|
3293
|
+
|
|
3294
|
+
# process the path parameters
|
|
3295
|
+
if pulp_domain is not None:
|
|
3296
|
+
_path_params['pulp_domain'] = pulp_domain
|
|
3297
|
+
# process the query parameters
|
|
3298
|
+
# process the header parameters
|
|
3299
|
+
if x_task_diagnostics is not None:
|
|
3300
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3301
|
+
# process the form parameters
|
|
3302
|
+
if pulp_labels is not None:
|
|
3303
|
+
_form_params.append(('pulp_labels', pulp_labels))
|
|
3304
|
+
if artifact is not None:
|
|
3305
|
+
_form_params.append(('artifact', artifact))
|
|
3306
|
+
if file is not None:
|
|
3307
|
+
_files['file'] = file
|
|
3308
|
+
if upload is not None:
|
|
3309
|
+
_form_params.append(('upload', upload))
|
|
3310
|
+
if file_url is not None:
|
|
3311
|
+
_form_params.append(('file_url', file_url))
|
|
3312
|
+
if author is not None:
|
|
3313
|
+
_form_params.append(('author', author))
|
|
3314
|
+
if author_email is not None:
|
|
3315
|
+
_form_params.append(('author_email', author_email))
|
|
3316
|
+
if description is not None:
|
|
3317
|
+
_form_params.append(('description', description))
|
|
3318
|
+
if home_page is not None:
|
|
3319
|
+
_form_params.append(('home_page', home_page))
|
|
3320
|
+
if keywords is not None:
|
|
3321
|
+
_form_params.append(('keywords', keywords))
|
|
3322
|
+
if license is not None:
|
|
3323
|
+
_form_params.append(('license', license))
|
|
3324
|
+
if platform is not None:
|
|
3325
|
+
_form_params.append(('platform', platform))
|
|
3326
|
+
if summary is not None:
|
|
3327
|
+
_form_params.append(('summary', summary))
|
|
3328
|
+
if classifiers is not None:
|
|
3329
|
+
_form_params.append(('classifiers', classifiers))
|
|
3330
|
+
if download_url is not None:
|
|
3331
|
+
_form_params.append(('download_url', download_url))
|
|
3332
|
+
if supported_platform is not None:
|
|
3333
|
+
_form_params.append(('supported_platform', supported_platform))
|
|
3334
|
+
if maintainer is not None:
|
|
3335
|
+
_form_params.append(('maintainer', maintainer))
|
|
3336
|
+
if maintainer_email is not None:
|
|
3337
|
+
_form_params.append(('maintainer_email', maintainer_email))
|
|
3338
|
+
if obsoletes_dist is not None:
|
|
3339
|
+
_form_params.append(('obsoletes_dist', obsoletes_dist))
|
|
3340
|
+
if project_url is not None:
|
|
3341
|
+
_form_params.append(('project_url', project_url))
|
|
3342
|
+
if project_urls is not None:
|
|
3343
|
+
_form_params.append(('project_urls', project_urls))
|
|
3344
|
+
if provides_dist is not None:
|
|
3345
|
+
_form_params.append(('provides_dist', provides_dist))
|
|
3346
|
+
if requires_external is not None:
|
|
3347
|
+
_form_params.append(('requires_external', requires_external))
|
|
3348
|
+
if requires_dist is not None:
|
|
3349
|
+
_form_params.append(('requires_dist', requires_dist))
|
|
3350
|
+
if requires_python is not None:
|
|
3351
|
+
_form_params.append(('requires_python', requires_python))
|
|
3352
|
+
if description_content_type is not None:
|
|
3353
|
+
_form_params.append(('description_content_type', description_content_type))
|
|
3354
|
+
if provides_extras is not None:
|
|
3355
|
+
_form_params.append(('provides_extras', provides_extras))
|
|
3356
|
+
if dynamic is not None:
|
|
3357
|
+
_form_params.append(('dynamic', dynamic))
|
|
3358
|
+
if license_expression is not None:
|
|
3359
|
+
_form_params.append(('license_expression', license_expression))
|
|
3360
|
+
if license_file is not None:
|
|
3361
|
+
_form_params.append(('license_file', license_file))
|
|
3362
|
+
if sha256 is not None:
|
|
3363
|
+
_form_params.append(('sha256', sha256))
|
|
3364
|
+
# process the body parameter
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
# set the HTTP header `Accept`
|
|
3368
|
+
if 'Accept' not in _header_params:
|
|
3369
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3370
|
+
[
|
|
3371
|
+
'application/json'
|
|
3372
|
+
]
|
|
3373
|
+
)
|
|
3374
|
+
|
|
3375
|
+
# set the HTTP header `Content-Type`
|
|
3376
|
+
if _content_type:
|
|
3377
|
+
_header_params['Content-Type'] = _content_type
|
|
3378
|
+
else:
|
|
3379
|
+
_default_content_type = (
|
|
3380
|
+
self.api_client.select_header_content_type(
|
|
3381
|
+
[
|
|
3382
|
+
'multipart/form-data',
|
|
3383
|
+
'application/x-www-form-urlencoded'
|
|
3384
|
+
]
|
|
3385
|
+
)
|
|
3386
|
+
)
|
|
3387
|
+
if _default_content_type is not None:
|
|
3388
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3389
|
+
|
|
3390
|
+
# authentication setting
|
|
3391
|
+
_auth_settings: List[str] = [
|
|
3392
|
+
'json_header_remote_authentication',
|
|
3393
|
+
'basicAuth',
|
|
3394
|
+
'cookieAuth'
|
|
3395
|
+
]
|
|
3396
|
+
|
|
3397
|
+
return self.api_client.param_serialize(
|
|
3398
|
+
method='POST',
|
|
3399
|
+
resource_path='/api/pulp/{pulp_domain}/api/v3/content/python/packages/upload/',
|
|
3400
|
+
path_params=_path_params,
|
|
3401
|
+
query_params=_query_params,
|
|
3402
|
+
header_params=_header_params,
|
|
3403
|
+
body=_body_params,
|
|
3404
|
+
post_params=_form_params,
|
|
3405
|
+
files=_files,
|
|
3406
|
+
auth_settings=_auth_settings,
|
|
3407
|
+
collection_formats=_collection_formats,
|
|
3408
|
+
_host=_host,
|
|
3409
|
+
_request_auth=_request_auth
|
|
3410
|
+
)
|
|
3411
|
+
|
|
3412
|
+
|
|
@@ -91,7 +91,7 @@ class ApiClient:
|
|
|
91
91
|
self.default_headers[header_name] = header_value
|
|
92
92
|
self.cookie = cookie
|
|
93
93
|
# Set default User-Agent.
|
|
94
|
-
self.user_agent = 'OpenAPI-Generator/
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/20250828.1/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -225,7 +225,7 @@ conf = crc-pulp_python-client.Configuration(
|
|
|
225
225
|
) -> None:
|
|
226
226
|
"""Constructor
|
|
227
227
|
"""
|
|
228
|
-
self._base_path = "https://env-ephemeral-
|
|
228
|
+
self._base_path = "https://env-ephemeral-wfskvf.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 = crc-pulp_python-client.Configuration(
|
|
|
557
557
|
"OS: {env}\n"\
|
|
558
558
|
"Python Version: {pyversion}\n"\
|
|
559
559
|
"Version of the API: v3\n"\
|
|
560
|
-
"SDK Package Version:
|
|
560
|
+
"SDK Package Version: 20250828.1".\
|
|
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 = crc-pulp_python-client.Configuration(
|
|
|
567
567
|
"""
|
|
568
568
|
return [
|
|
569
569
|
{
|
|
570
|
-
'url': "https://env-ephemeral-
|
|
570
|
+
'url': "https://env-ephemeral-wfskvf.apps.crc-eph.r9lp.p1.openshiftapps.com",
|
|
571
571
|
'description': "No description provided",
|
|
572
572
|
}
|
|
573
573
|
]
|
|
@@ -58,7 +58,7 @@ class PythonPythonPackageContentResponse(BaseModel):
|
|
|
58
58
|
requires_external: Optional[Any] = None
|
|
59
59
|
requires_dist: Optional[Any] = None
|
|
60
60
|
requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
|
|
61
|
-
description_content_type: Optional[StrictStr] = Field(default=None, description="A string stating the markup syntax (if any) used in the distribution
|
|
61
|
+
description_content_type: Optional[StrictStr] = Field(default=None, description="A string stating the markup syntax (if any) used in the distribution's description, so that tools can intelligently render the description.")
|
|
62
62
|
provides_extras: Optional[Any] = None
|
|
63
63
|
dynamic: Optional[Any] = None
|
|
64
64
|
license_expression: Optional[StrictStr] = Field(default=None, description="Text string that is a valid SPDX license expression.")
|
{crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/RECORD
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
crc-pulp_python-client/__init__.py,sha256=QDJyS5jtJnGFsSuOx43ZvLBCOrHImm8NrZk5f9URWdk,75
|
|
2
|
-
crc-pulp_python-client/api_client.py,sha256=
|
|
2
|
+
crc-pulp_python-client/api_client.py,sha256=MwlBUk4j3QIUgv7kffskJ1IAHFvcKyxVgIf2KUHmwpQ,27505
|
|
3
3
|
crc-pulp_python-client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
crc-pulp_python-client/configuration.py,sha256=
|
|
4
|
+
crc-pulp_python-client/configuration.py,sha256=O9omWaP8-vqUhkuMffQLNXdFUZM7rXQ2FK3Gi-_3YC8,19668
|
|
5
5
|
crc-pulp_python-client/exceptions.py,sha256=voqdIkPGpfNSUF9SsFqERflJMVs-uYFH60fd1rcsz6Y,5957
|
|
6
6
|
crc-pulp_python-client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
crc-pulp_python-client/rest.py,sha256=O18nbgu6dY7Zj5Rc8PsLzXCHLwn8SpvViZ8FYQ3VN18,9405
|
|
8
8
|
crc-pulp_python-client/api/__init__.py,sha256=BrzEi3gas-ago6XtD8DivZ8qkjYWvXh_vHYgUhfC8zA,820
|
|
9
|
-
crc-pulp_python-client/api/content_packages_api.py,sha256=
|
|
9
|
+
crc-pulp_python-client/api/content_packages_api.py,sha256=xx9ibXXVmUKSSSHeWabCGNQw3-VIDsLGk6FGmM6Sq0s,192916
|
|
10
10
|
crc-pulp_python-client/api/distributions_pypi_api.py,sha256=C13RRnpqd3Rswyx1jLgjsReZLd-bE_qWOOTyp0QrDSE,185679
|
|
11
11
|
crc-pulp_python-client/api/publications_pypi_api.py,sha256=l-k0V4aUG_hMH72pKxq7mSc3pEkwS9jWwMUSFKbX0hA,128935
|
|
12
12
|
crc-pulp_python-client/api/pypi_api.py,sha256=yy-PyfZSRHvKEyjfiKYQuvfP8p1aK95XzveawdaSkHY,14552
|
|
@@ -39,7 +39,7 @@ crc-pulp_python-client/models/patchedpython_python_repository.py,sha256=jG5ppskC
|
|
|
39
39
|
crc-pulp_python-client/models/policy_enum.py,sha256=alBNbWymx71uIJJLX3vvtlW-2wIql23bfXHM-DtgCww,1254
|
|
40
40
|
crc-pulp_python-client/models/python_python_distribution.py,sha256=aiSN6w8RQRPJ9QM1P2PJBMU0c7Vmb_v9KTNhj1clpNM,5246
|
|
41
41
|
crc-pulp_python-client/models/python_python_distribution_response.py,sha256=cL2TPh9AJI8T9qTaatoqk1HxepjhG28dgnosmvo3h9Q,6862
|
|
42
|
-
crc-pulp_python-client/models/python_python_package_content_response.py,sha256=
|
|
42
|
+
crc-pulp_python-client/models/python_python_package_content_response.py,sha256=zMJADM_YMNAIr-JWot2gFKMCrVxLhf1YPIQ-t8d7rZI,12630
|
|
43
43
|
crc-pulp_python-client/models/python_python_publication.py,sha256=NUNRy2CVsCeVR-Tw7QxIyhInF0ks5KfuGqiZwdkxTrc,2772
|
|
44
44
|
crc-pulp_python-client/models/python_python_publication_response.py,sha256=vk-5u_jQpVw67QqpIK6al-KzGJieAqnNN_pCr0Z6k3g,4133
|
|
45
45
|
crc-pulp_python-client/models/python_python_remote.py,sha256=p8WuS4J7utTr0y7SoU0zZAmNlFkOOANcxKlhegJcB94,13675
|
|
@@ -56,7 +56,7 @@ crc-pulp_python-client/models/set_label_response.py,sha256=nUSYQHAxcJ3ATyUmBfiu8
|
|
|
56
56
|
crc-pulp_python-client/models/summary_response.py,sha256=mWm8XQn_U5GVTIjuTWDu6E8FslOI00tuJYzUOWnb3ME,2867
|
|
57
57
|
crc-pulp_python-client/models/unset_label.py,sha256=m6s6AFgi5_7fKsjPhcLwz7ZjKXsSd_4F6PS7u5eINO0,2858
|
|
58
58
|
crc-pulp_python-client/models/unset_label_response.py,sha256=-TZohJf66mUqg4qD04k1dNoyAx69bX_VSf-HM9EpqN8,3046
|
|
59
|
-
crc_pulp_python_client-
|
|
60
|
-
crc_pulp_python_client-
|
|
61
|
-
crc_pulp_python_client-
|
|
62
|
-
crc_pulp_python_client-
|
|
59
|
+
crc_pulp_python_client-20250828.1.dist-info/METADATA,sha256=uR3owYHZ1CR2nKD1M3W1mbZcIXTjI7TGEZfacaFdWpg,641
|
|
60
|
+
crc_pulp_python_client-20250828.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
61
|
+
crc_pulp_python_client-20250828.1.dist-info/top_level.txt,sha256=VdLYCv5sKPTxw1FxpMxn64A1I33GCPGtjCQsZJAj_eE,23
|
|
62
|
+
crc_pulp_python_client-20250828.1.dist-info/RECORD,,
|
{crc_pulp_python_client-20250826.1.dist-info → crc_pulp_python_client-20250828.1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|