crc-pulp-python-client 20250819.1__py3-none-any.whl → 20250820.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/__init__.py +3 -3
- crc-pulp_python-client/api/content_packages_api.py +261 -201
- crc-pulp_python-client/api/{api_pypi_api.py → pypi_api.py} +2 -2
- crc-pulp_python-client/api/{api_pypi_legacy_api.py → pypi_legacy_api.py} +2 -2
- crc-pulp_python-client/api/pypi_metadata_api.py +1 -1
- crc-pulp_python-client/api/{api_pypi_simple_api.py → pypi_simple_api.py} +4 -4
- crc-pulp_python-client/api/repositories_python_api.py +279 -0
- 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 +80 -53
- {crc_pulp_python_client-20250819.1.dist-info → crc_pulp_python_client-20250820.1.dist-info}/METADATA +1 -1
- crc_pulp_python_client-20250820.1.dist-info/RECORD +62 -0
- crc_pulp_python_client-20250820.1.dist-info/top_level.txt +1 -0
- crc_pulp_python_client-20250819.1.dist-info/RECORD +0 -120
- crc_pulp_python_client-20250819.1.dist-info/top_level.txt +0 -2
- services-pulp_python-client/__init__.py +0 -2
- services-pulp_python-client/api/__init__.py +0 -14
- services-pulp_python-client/api/api_pypi_api.py +0 -370
- services-pulp_python-client/api/api_pypi_legacy_api.py +0 -393
- services-pulp_python-client/api/api_pypi_simple_api.py +0 -1045
- services-pulp_python-client/api/content_packages_api.py +0 -2594
- services-pulp_python-client/api/distributions_pypi_api.py +0 -4186
- services-pulp_python-client/api/publications_pypi_api.py +0 -2881
- services-pulp_python-client/api/pypi_metadata_api.py +0 -385
- services-pulp_python-client/api/remotes_python_api.py +0 -4552
- services-pulp_python-client/api/repositories_python_api.py +0 -4856
- services-pulp_python-client/api/repositories_python_versions_api.py +0 -1670
- services-pulp_python-client/api_client.py +0 -798
- services-pulp_python-client/api_response.py +0 -21
- services-pulp_python-client/configuration.py +0 -628
- services-pulp_python-client/exceptions.py +0 -200
- services-pulp_python-client/models/__init__.py +0 -56
- services-pulp_python-client/models/async_operation_response.py +0 -88
- services-pulp_python-client/models/content_summary_response.py +0 -92
- services-pulp_python-client/models/exclude_platforms_enum.py +0 -40
- services-pulp_python-client/models/my_permissions_response.py +0 -88
- services-pulp_python-client/models/nested_role.py +0 -93
- services-pulp_python-client/models/nested_role_response.py +0 -92
- services-pulp_python-client/models/object_roles_response.py +0 -96
- services-pulp_python-client/models/package_metadata_response.py +0 -109
- services-pulp_python-client/models/package_types_enum.py +0 -44
- services-pulp_python-client/models/package_upload_task_response.py +0 -103
- services-pulp_python-client/models/paginated_repository_version_response_list.py +0 -112
- services-pulp_python-client/models/paginatedpython_python_distribution_response_list.py +0 -112
- services-pulp_python-client/models/paginatedpython_python_package_content_response_list.py +0 -112
- services-pulp_python-client/models/paginatedpython_python_publication_response_list.py +0 -112
- services-pulp_python-client/models/paginatedpython_python_remote_response_list.py +0 -112
- services-pulp_python-client/models/paginatedpython_python_repository_response_list.py +0 -112
- services-pulp_python-client/models/patchedpython_python_distribution.py +0 -125
- services-pulp_python-client/models/patchedpython_python_remote.py +0 -219
- services-pulp_python-client/models/patchedpython_python_repository.py +0 -114
- services-pulp_python-client/models/policy_enum.py +0 -39
- services-pulp_python-client/models/python_python_distribution.py +0 -125
- services-pulp_python-client/models/python_python_distribution_response.py +0 -149
- services-pulp_python-client/models/python_python_package_content_response.py +0 -201
- services-pulp_python-client/models/python_python_publication.py +0 -90
- services-pulp_python-client/models/python_python_publication_response.py +0 -111
- services-pulp_python-client/models/python_python_remote.py +0 -219
- services-pulp_python-client/models/python_python_remote_response.py +0 -213
- services-pulp_python-client/models/python_python_remote_response_hidden_fields_inner.py +0 -90
- services-pulp_python-client/models/python_python_repository.py +0 -114
- services-pulp_python-client/models/python_python_repository_response.py +0 -139
- services-pulp_python-client/models/repair.py +0 -88
- services-pulp_python-client/models/repository_add_remove_content.py +0 -93
- services-pulp_python-client/models/repository_sync_url.py +0 -90
- services-pulp_python-client/models/repository_version_response.py +0 -121
- services-pulp_python-client/models/set_label.py +0 -103
- services-pulp_python-client/models/set_label_response.py +0 -103
- services-pulp_python-client/models/summary_response.py +0 -92
- services-pulp_python-client/models/unset_label.py +0 -96
- services-pulp_python-client/models/unset_label_response.py +0 -100
- services-pulp_python-client/py.typed +0 -0
- services-pulp_python-client/rest.py +0 -258
- {crc_pulp_python_client-20250819.1.dist-info → crc_pulp_python_client-20250820.1.dist-info}/WHEEL +0 -0
|
@@ -27,7 +27,7 @@ from crc-pulp_python-client.api_response import ApiResponse
|
|
|
27
27
|
from crc-pulp_python-client.rest import RESTResponseType
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class PypiApi:
|
|
31
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
32
|
Ref: https://openapi-generator.tech
|
|
33
33
|
|
|
@@ -354,7 +354,7 @@ class ApiPypiApi:
|
|
|
354
354
|
|
|
355
355
|
return self.api_client.param_serialize(
|
|
356
356
|
method='GET',
|
|
357
|
-
resource_path='/
|
|
357
|
+
resource_path='/pypi/{pulp_domain}/{path}/',
|
|
358
358
|
path_params=_path_params,
|
|
359
359
|
query_params=_query_params,
|
|
360
360
|
header_params=_header_params,
|
|
@@ -27,7 +27,7 @@ from crc-pulp_python-client.api_response import ApiResponse
|
|
|
27
27
|
from crc-pulp_python-client.rest import RESTResponseType
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class PypiLegacyApi:
|
|
31
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
32
|
Ref: https://openapi-generator.tech
|
|
33
33
|
|
|
@@ -377,7 +377,7 @@ class ApiPypiLegacyApi:
|
|
|
377
377
|
|
|
378
378
|
return self.api_client.param_serialize(
|
|
379
379
|
method='POST',
|
|
380
|
-
resource_path='/
|
|
380
|
+
resource_path='/pypi/{pulp_domain}/{path}/legacy/',
|
|
381
381
|
path_params=_path_params,
|
|
382
382
|
query_params=_query_params,
|
|
383
383
|
header_params=_header_params,
|
|
@@ -369,7 +369,7 @@ class PypiMetadataApi:
|
|
|
369
369
|
|
|
370
370
|
return self.api_client.param_serialize(
|
|
371
371
|
method='GET',
|
|
372
|
-
resource_path='/
|
|
372
|
+
resource_path='/pypi/{pulp_domain}/{path}/pypi/{meta}/',
|
|
373
373
|
path_params=_path_params,
|
|
374
374
|
query_params=_query_params,
|
|
375
375
|
header_params=_header_params,
|
|
@@ -27,7 +27,7 @@ from crc-pulp_python-client.api_response import ApiResponse
|
|
|
27
27
|
from crc-pulp_python-client.rest import RESTResponseType
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class PypiSimpleApi:
|
|
31
31
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
32
|
Ref: https://openapi-generator.tech
|
|
33
33
|
|
|
@@ -374,7 +374,7 @@ class ApiPypiSimpleApi:
|
|
|
374
374
|
|
|
375
375
|
return self.api_client.param_serialize(
|
|
376
376
|
method='POST',
|
|
377
|
-
resource_path='/
|
|
377
|
+
resource_path='/pypi/{pulp_domain}/{path}/simple/',
|
|
378
378
|
path_params=_path_params,
|
|
379
379
|
query_params=_query_params,
|
|
380
380
|
header_params=_header_params,
|
|
@@ -709,7 +709,7 @@ class ApiPypiSimpleApi:
|
|
|
709
709
|
|
|
710
710
|
return self.api_client.param_serialize(
|
|
711
711
|
method='GET',
|
|
712
|
-
resource_path='/
|
|
712
|
+
resource_path='/pypi/{pulp_domain}/{path}/simple/{package}/',
|
|
713
713
|
path_params=_path_params,
|
|
714
714
|
query_params=_query_params,
|
|
715
715
|
header_params=_header_params,
|
|
@@ -1029,7 +1029,7 @@ class ApiPypiSimpleApi:
|
|
|
1029
1029
|
|
|
1030
1030
|
return self.api_client.param_serialize(
|
|
1031
1031
|
method='GET',
|
|
1032
|
-
resource_path='/
|
|
1032
|
+
resource_path='/pypi/{pulp_domain}/{path}/simple/',
|
|
1033
1033
|
path_params=_path_params,
|
|
1034
1034
|
query_params=_query_params,
|
|
1035
1035
|
header_params=_header_params,
|
|
@@ -3620,6 +3620,285 @@ class RepositoriesPythonApi:
|
|
|
3620
3620
|
|
|
3621
3621
|
|
|
3622
3622
|
|
|
3623
|
+
@validate_call
|
|
3624
|
+
def repair_metadata(
|
|
3625
|
+
self,
|
|
3626
|
+
python_python_repository_href: StrictStr,
|
|
3627
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3628
|
+
_request_timeout: Union[
|
|
3629
|
+
None,
|
|
3630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3631
|
+
Tuple[
|
|
3632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3633
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3634
|
+
]
|
|
3635
|
+
] = None,
|
|
3636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3637
|
+
_content_type: Optional[StrictStr] = None,
|
|
3638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3640
|
+
) -> AsyncOperationResponse:
|
|
3641
|
+
"""Repair metadata
|
|
3642
|
+
|
|
3643
|
+
Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
|
3644
|
+
|
|
3645
|
+
:param python_python_repository_href: (required)
|
|
3646
|
+
:type python_python_repository_href: str
|
|
3647
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3648
|
+
:type x_task_diagnostics: List[str]
|
|
3649
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3650
|
+
number provided, it will be total request
|
|
3651
|
+
timeout. It can also be a pair (tuple) of
|
|
3652
|
+
(connection, read) timeouts.
|
|
3653
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3654
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3655
|
+
request; this effectively ignores the
|
|
3656
|
+
authentication in the spec for a single request.
|
|
3657
|
+
:type _request_auth: dict, optional
|
|
3658
|
+
:param _content_type: force content-type for the request.
|
|
3659
|
+
:type _content_type: str, Optional
|
|
3660
|
+
:param _headers: set to override the headers for a single
|
|
3661
|
+
request; this effectively ignores the headers
|
|
3662
|
+
in the spec for a single request.
|
|
3663
|
+
:type _headers: dict, optional
|
|
3664
|
+
:param _host_index: set to override the host_index for a single
|
|
3665
|
+
request; this effectively ignores the host_index
|
|
3666
|
+
in the spec for a single request.
|
|
3667
|
+
:type _host_index: int, optional
|
|
3668
|
+
:return: Returns the result object.
|
|
3669
|
+
""" # noqa: E501
|
|
3670
|
+
|
|
3671
|
+
_param = self._repair_metadata_serialize(
|
|
3672
|
+
python_python_repository_href=python_python_repository_href,
|
|
3673
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3674
|
+
_request_auth=_request_auth,
|
|
3675
|
+
_content_type=_content_type,
|
|
3676
|
+
_headers=_headers,
|
|
3677
|
+
_host_index=_host_index
|
|
3678
|
+
)
|
|
3679
|
+
|
|
3680
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3681
|
+
'202': "AsyncOperationResponse",
|
|
3682
|
+
}
|
|
3683
|
+
response_data = self.api_client.call_api(
|
|
3684
|
+
*_param,
|
|
3685
|
+
_request_timeout=_request_timeout
|
|
3686
|
+
)
|
|
3687
|
+
response_data.read()
|
|
3688
|
+
return self.api_client.response_deserialize(
|
|
3689
|
+
response_data=response_data,
|
|
3690
|
+
response_types_map=_response_types_map,
|
|
3691
|
+
).data
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
@validate_call
|
|
3695
|
+
def repair_metadata_with_http_info(
|
|
3696
|
+
self,
|
|
3697
|
+
python_python_repository_href: StrictStr,
|
|
3698
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3699
|
+
_request_timeout: Union[
|
|
3700
|
+
None,
|
|
3701
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3702
|
+
Tuple[
|
|
3703
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3704
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3705
|
+
]
|
|
3706
|
+
] = None,
|
|
3707
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3708
|
+
_content_type: Optional[StrictStr] = None,
|
|
3709
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3710
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3711
|
+
) -> ApiResponse[AsyncOperationResponse]:
|
|
3712
|
+
"""Repair metadata
|
|
3713
|
+
|
|
3714
|
+
Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
|
3715
|
+
|
|
3716
|
+
:param python_python_repository_href: (required)
|
|
3717
|
+
:type python_python_repository_href: str
|
|
3718
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3719
|
+
:type x_task_diagnostics: List[str]
|
|
3720
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3721
|
+
number provided, it will be total request
|
|
3722
|
+
timeout. It can also be a pair (tuple) of
|
|
3723
|
+
(connection, read) timeouts.
|
|
3724
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3725
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3726
|
+
request; this effectively ignores the
|
|
3727
|
+
authentication in the spec for a single request.
|
|
3728
|
+
:type _request_auth: dict, optional
|
|
3729
|
+
:param _content_type: force content-type for the request.
|
|
3730
|
+
:type _content_type: str, Optional
|
|
3731
|
+
:param _headers: set to override the headers for a single
|
|
3732
|
+
request; this effectively ignores the headers
|
|
3733
|
+
in the spec for a single request.
|
|
3734
|
+
:type _headers: dict, optional
|
|
3735
|
+
:param _host_index: set to override the host_index for a single
|
|
3736
|
+
request; this effectively ignores the host_index
|
|
3737
|
+
in the spec for a single request.
|
|
3738
|
+
:type _host_index: int, optional
|
|
3739
|
+
:return: Returns the result object.
|
|
3740
|
+
""" # noqa: E501
|
|
3741
|
+
|
|
3742
|
+
_param = self._repair_metadata_serialize(
|
|
3743
|
+
python_python_repository_href=python_python_repository_href,
|
|
3744
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3745
|
+
_request_auth=_request_auth,
|
|
3746
|
+
_content_type=_content_type,
|
|
3747
|
+
_headers=_headers,
|
|
3748
|
+
_host_index=_host_index
|
|
3749
|
+
)
|
|
3750
|
+
|
|
3751
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3752
|
+
'202': "AsyncOperationResponse",
|
|
3753
|
+
}
|
|
3754
|
+
response_data = self.api_client.call_api(
|
|
3755
|
+
*_param,
|
|
3756
|
+
_request_timeout=_request_timeout
|
|
3757
|
+
)
|
|
3758
|
+
response_data.read()
|
|
3759
|
+
return self.api_client.response_deserialize(
|
|
3760
|
+
response_data=response_data,
|
|
3761
|
+
response_types_map=_response_types_map,
|
|
3762
|
+
)
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
@validate_call
|
|
3766
|
+
def repair_metadata_without_preload_content(
|
|
3767
|
+
self,
|
|
3768
|
+
python_python_repository_href: StrictStr,
|
|
3769
|
+
x_task_diagnostics: Annotated[Optional[List[StrictStr]], Field(description="List of profilers to use on tasks.")] = None,
|
|
3770
|
+
_request_timeout: Union[
|
|
3771
|
+
None,
|
|
3772
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3773
|
+
Tuple[
|
|
3774
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3775
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3776
|
+
]
|
|
3777
|
+
] = None,
|
|
3778
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3779
|
+
_content_type: Optional[StrictStr] = None,
|
|
3780
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3781
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3782
|
+
) -> RESTResponseType:
|
|
3783
|
+
"""Repair metadata
|
|
3784
|
+
|
|
3785
|
+
Trigger an asynchronous task to repair Python metadata. This task will repair metadata of all packages for the specified `Repository`, without creating a new `RepositoryVersion`.
|
|
3786
|
+
|
|
3787
|
+
:param python_python_repository_href: (required)
|
|
3788
|
+
:type python_python_repository_href: str
|
|
3789
|
+
:param x_task_diagnostics: List of profilers to use on tasks.
|
|
3790
|
+
:type x_task_diagnostics: List[str]
|
|
3791
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3792
|
+
number provided, it will be total request
|
|
3793
|
+
timeout. It can also be a pair (tuple) of
|
|
3794
|
+
(connection, read) timeouts.
|
|
3795
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3796
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3797
|
+
request; this effectively ignores the
|
|
3798
|
+
authentication in the spec for a single request.
|
|
3799
|
+
:type _request_auth: dict, optional
|
|
3800
|
+
:param _content_type: force content-type for the request.
|
|
3801
|
+
:type _content_type: str, Optional
|
|
3802
|
+
:param _headers: set to override the headers for a single
|
|
3803
|
+
request; this effectively ignores the headers
|
|
3804
|
+
in the spec for a single request.
|
|
3805
|
+
:type _headers: dict, optional
|
|
3806
|
+
:param _host_index: set to override the host_index for a single
|
|
3807
|
+
request; this effectively ignores the host_index
|
|
3808
|
+
in the spec for a single request.
|
|
3809
|
+
:type _host_index: int, optional
|
|
3810
|
+
:return: Returns the result object.
|
|
3811
|
+
""" # noqa: E501
|
|
3812
|
+
|
|
3813
|
+
_param = self._repair_metadata_serialize(
|
|
3814
|
+
python_python_repository_href=python_python_repository_href,
|
|
3815
|
+
x_task_diagnostics=x_task_diagnostics,
|
|
3816
|
+
_request_auth=_request_auth,
|
|
3817
|
+
_content_type=_content_type,
|
|
3818
|
+
_headers=_headers,
|
|
3819
|
+
_host_index=_host_index
|
|
3820
|
+
)
|
|
3821
|
+
|
|
3822
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3823
|
+
'202': "AsyncOperationResponse",
|
|
3824
|
+
}
|
|
3825
|
+
response_data = self.api_client.call_api(
|
|
3826
|
+
*_param,
|
|
3827
|
+
_request_timeout=_request_timeout
|
|
3828
|
+
)
|
|
3829
|
+
return response_data.response
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
def _repair_metadata_serialize(
|
|
3833
|
+
self,
|
|
3834
|
+
python_python_repository_href,
|
|
3835
|
+
x_task_diagnostics,
|
|
3836
|
+
_request_auth,
|
|
3837
|
+
_content_type,
|
|
3838
|
+
_headers,
|
|
3839
|
+
_host_index,
|
|
3840
|
+
) -> RequestSerialized:
|
|
3841
|
+
|
|
3842
|
+
_host = None
|
|
3843
|
+
|
|
3844
|
+
_collection_formats: Dict[str, str] = {
|
|
3845
|
+
'X-Task-Diagnostics': 'csv',
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
_path_params: Dict[str, str] = {}
|
|
3849
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3850
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3851
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3852
|
+
_files: Dict[
|
|
3853
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3854
|
+
] = {}
|
|
3855
|
+
_body_params: Optional[bytes] = None
|
|
3856
|
+
|
|
3857
|
+
# process the path parameters
|
|
3858
|
+
if python_python_repository_href is not None:
|
|
3859
|
+
_path_params['python_python_repository_href'] = python_python_repository_href
|
|
3860
|
+
# process the query parameters
|
|
3861
|
+
# process the header parameters
|
|
3862
|
+
if x_task_diagnostics is not None:
|
|
3863
|
+
_header_params['X-Task-Diagnostics'] = x_task_diagnostics
|
|
3864
|
+
# process the form parameters
|
|
3865
|
+
# process the body parameter
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
# set the HTTP header `Accept`
|
|
3869
|
+
if 'Accept' not in _header_params:
|
|
3870
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3871
|
+
[
|
|
3872
|
+
'application/json'
|
|
3873
|
+
]
|
|
3874
|
+
)
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
# authentication setting
|
|
3878
|
+
_auth_settings: List[str] = [
|
|
3879
|
+
'json_header_remote_authentication',
|
|
3880
|
+
'basicAuth',
|
|
3881
|
+
'cookieAuth'
|
|
3882
|
+
]
|
|
3883
|
+
|
|
3884
|
+
return self.api_client.param_serialize(
|
|
3885
|
+
method='POST',
|
|
3886
|
+
resource_path='{python_python_repository_href}repair_metadata/',
|
|
3887
|
+
path_params=_path_params,
|
|
3888
|
+
query_params=_query_params,
|
|
3889
|
+
header_params=_header_params,
|
|
3890
|
+
body=_body_params,
|
|
3891
|
+
post_params=_form_params,
|
|
3892
|
+
files=_files,
|
|
3893
|
+
auth_settings=_auth_settings,
|
|
3894
|
+
collection_formats=_collection_formats,
|
|
3895
|
+
_host=_host,
|
|
3896
|
+
_request_auth=_request_auth
|
|
3897
|
+
)
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
|
|
3623
3902
|
@validate_call
|
|
3624
3903
|
def set_label(
|
|
3625
3904
|
self,
|
|
@@ -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/20250820.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-qsrxrf.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: 20250820.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-qsrxrf.apps.crc-eph.r9lp.p1.openshiftapps.com",
|
|
571
571
|
'description': "No description provided",
|
|
572
572
|
}
|
|
573
573
|
]
|
|
@@ -34,34 +34,39 @@ class PythonPythonPackageContentResponse(BaseModel):
|
|
|
34
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
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
36
|
artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
name: Optional[StrictStr] = Field(default=None, description="The name of the python project.")
|
|
40
|
-
version: Optional[StrictStr] = Field(default=None, description="The packages version number.")
|
|
41
|
-
sha256: Optional[StrictStr] = Field(default='', description="The SHA256 digest of this package.")
|
|
42
|
-
metadata_version: Optional[StrictStr] = Field(default=None, description="Version of the file format")
|
|
43
|
-
summary: Optional[StrictStr] = Field(default=None, description="A one-line summary of what the package does.")
|
|
37
|
+
author: Optional[StrictStr] = Field(default=None, description="Text containing the author's name. Contact information can also be added, separated with newlines.")
|
|
38
|
+
author_email: Optional[StrictStr] = Field(default=None, description="The author's e-mail address. ")
|
|
44
39
|
description: Optional[StrictStr] = Field(default=None, description="A longer description of the package that can run to several paragraphs.")
|
|
45
|
-
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.")
|
|
46
|
-
keywords: Optional[StrictStr] = Field(default=None, description="Additional keywords to be used to assist searching for the package in a larger catalog.")
|
|
47
40
|
home_page: Optional[StrictStr] = Field(default=None, description="The URL for the package's home page.")
|
|
41
|
+
keywords: Optional[StrictStr] = Field(default=None, description="Additional keywords to be used to assist searching for the package in a larger catalog.")
|
|
42
|
+
license: Optional[StrictStr] = Field(default=None, description="Text indicating the license covering the distribution")
|
|
43
|
+
metadata_version: Optional[StrictStr] = Field(default=None, description="Version of the file format")
|
|
44
|
+
name: Optional[StrictStr] = Field(default=None, description="The name of the python project.")
|
|
45
|
+
platform: Optional[StrictStr] = Field(default=None, description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")
|
|
46
|
+
summary: Optional[StrictStr] = Field(default=None, description="A one-line summary of what the package does.")
|
|
47
|
+
version: Optional[StrictStr] = Field(default=None, description="The packages version number.")
|
|
48
|
+
classifiers: Optional[Any] = Field(default=None, description="A JSON list containing classification values for a Python package.")
|
|
48
49
|
download_url: Optional[StrictStr] = Field(default=None, description="Legacy field denoting the URL from which this package can be downloaded.")
|
|
49
|
-
|
|
50
|
-
author_email: Optional[StrictStr] = Field(default=None, description="The author's e-mail address. ")
|
|
50
|
+
supported_platform: Optional[StrictStr] = Field(default=None, description="Field to specify the OS and CPU for which the binary package was compiled. ")
|
|
51
51
|
maintainer: Optional[StrictStr] = Field(default=None, description="The maintainer's name at a minimum; additional contact information may be provided.")
|
|
52
52
|
maintainer_email: Optional[StrictStr] = Field(default=None, description="The maintainer's e-mail address.")
|
|
53
|
-
|
|
54
|
-
requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
|
|
53
|
+
obsoletes_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")
|
|
55
54
|
project_url: Optional[StrictStr] = Field(default=None, description="A browsable URL for the project and a label for it, separated by a comma.")
|
|
56
55
|
project_urls: Optional[Any] = Field(default=None, description="A dictionary of labels and URLs for the project.")
|
|
57
|
-
platform: Optional[StrictStr] = Field(default=None, description="A comma-separated list of platform specifications, summarizing the operating systems supported by the package.")
|
|
58
|
-
supported_platform: Optional[StrictStr] = Field(default=None, description="Field to specify the OS and CPU for which the binary package was compiled. ")
|
|
59
|
-
requires_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of some other distutils project required by this distribution.")
|
|
60
56
|
provides_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a Distutils project which is contained within this distribution.")
|
|
61
|
-
obsoletes_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.")
|
|
62
57
|
requires_external: Optional[Any] = Field(default=None, description="A JSON list containing some dependency in the system that the distribution is to be used.")
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
requires_dist: Optional[Any] = Field(default=None, description="A JSON list containing names of some other distutils project required by this distribution.")
|
|
59
|
+
requires_python: Optional[StrictStr] = Field(default=None, description="The Python version(s) that the distribution is guaranteed to be compatible with.")
|
|
60
|
+
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.")
|
|
61
|
+
provides_extras: Optional[Any] = Field(default=None, description="A JSON list containing names of optional features provided by the package.")
|
|
62
|
+
dynamic: Optional[Any] = Field(default=None, description="A JSON list containing names of other core metadata fields which are permitted to vary between sdist and bdist packages. Fields NOT marked dynamic MUST be the same between bdist and sdist.")
|
|
63
|
+
license_expression: Optional[StrictStr] = Field(default=None, description="Text string that is a valid SPDX license expression.")
|
|
64
|
+
license_file: Optional[Any] = Field(default=None, description="A JSON list containing names of the paths to license-related files.")
|
|
65
|
+
filename: Optional[StrictStr] = Field(default=None, description="The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}")
|
|
66
|
+
packagetype: Optional[StrictStr] = Field(default=None, description="The type of the distribution package (e.g. sdist, bdist_wheel, bdist_egg, etc)")
|
|
67
|
+
python_version: Optional[StrictStr] = Field(default=None, description="The tag that indicates which Python implementation or version the package requires.")
|
|
68
|
+
sha256: Optional[StrictStr] = Field(default='', description="The SHA256 digest of this package.")
|
|
69
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "artifact", "author", "author_email", "description", "home_page", "keywords", "license", "metadata_version", "name", "platform", "summary", "version", "classifiers", "download_url", "supported_platform", "maintainer", "maintainer_email", "obsoletes_dist", "project_url", "project_urls", "provides_dist", "requires_external", "requires_dist", "requires_python", "description_content_type", "provides_extras", "dynamic", "license_expression", "license_file", "filename", "packagetype", "python_version", "sha256"]
|
|
65
70
|
|
|
66
71
|
model_config = ConfigDict(
|
|
67
72
|
populate_by_name=True,
|
|
@@ -102,17 +107,19 @@ class PythonPythonPackageContentResponse(BaseModel):
|
|
|
102
107
|
* OpenAPI `readOnly` fields are excluded.
|
|
103
108
|
* OpenAPI `readOnly` fields are excluded.
|
|
104
109
|
* OpenAPI `readOnly` fields are excluded.
|
|
110
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
105
111
|
"""
|
|
106
112
|
excluded_fields: Set[str] = set([
|
|
107
113
|
"pulp_href",
|
|
108
114
|
"prn",
|
|
109
115
|
"pulp_created",
|
|
110
116
|
"pulp_last_updated",
|
|
111
|
-
"
|
|
112
|
-
"packagetype",
|
|
117
|
+
"metadata_version",
|
|
113
118
|
"name",
|
|
114
119
|
"version",
|
|
115
|
-
"
|
|
120
|
+
"filename",
|
|
121
|
+
"packagetype",
|
|
122
|
+
"python_version",
|
|
116
123
|
])
|
|
117
124
|
|
|
118
125
|
_dict = self.model_dump(
|
|
@@ -120,35 +127,50 @@ class PythonPythonPackageContentResponse(BaseModel):
|
|
|
120
127
|
exclude=excluded_fields,
|
|
121
128
|
exclude_none=True,
|
|
122
129
|
)
|
|
130
|
+
# set to None if classifiers (nullable) is None
|
|
131
|
+
# and model_fields_set contains the field
|
|
132
|
+
if self.classifiers is None and "classifiers" in self.model_fields_set:
|
|
133
|
+
_dict['classifiers'] = None
|
|
134
|
+
|
|
135
|
+
# set to None if obsoletes_dist (nullable) is None
|
|
136
|
+
# and model_fields_set contains the field
|
|
137
|
+
if self.obsoletes_dist is None and "obsoletes_dist" in self.model_fields_set:
|
|
138
|
+
_dict['obsoletes_dist'] = None
|
|
139
|
+
|
|
123
140
|
# set to None if project_urls (nullable) is None
|
|
124
141
|
# and model_fields_set contains the field
|
|
125
142
|
if self.project_urls is None and "project_urls" in self.model_fields_set:
|
|
126
143
|
_dict['project_urls'] = None
|
|
127
144
|
|
|
128
|
-
# set to None if requires_dist (nullable) is None
|
|
129
|
-
# and model_fields_set contains the field
|
|
130
|
-
if self.requires_dist is None and "requires_dist" in self.model_fields_set:
|
|
131
|
-
_dict['requires_dist'] = None
|
|
132
|
-
|
|
133
145
|
# set to None if provides_dist (nullable) is None
|
|
134
146
|
# and model_fields_set contains the field
|
|
135
147
|
if self.provides_dist is None and "provides_dist" in self.model_fields_set:
|
|
136
148
|
_dict['provides_dist'] = None
|
|
137
149
|
|
|
138
|
-
# set to None if obsoletes_dist (nullable) is None
|
|
139
|
-
# and model_fields_set contains the field
|
|
140
|
-
if self.obsoletes_dist is None and "obsoletes_dist" in self.model_fields_set:
|
|
141
|
-
_dict['obsoletes_dist'] = None
|
|
142
|
-
|
|
143
150
|
# set to None if requires_external (nullable) is None
|
|
144
151
|
# and model_fields_set contains the field
|
|
145
152
|
if self.requires_external is None and "requires_external" in self.model_fields_set:
|
|
146
153
|
_dict['requires_external'] = None
|
|
147
154
|
|
|
148
|
-
# set to None if
|
|
155
|
+
# set to None if requires_dist (nullable) is None
|
|
149
156
|
# and model_fields_set contains the field
|
|
150
|
-
if self.
|
|
151
|
-
_dict['
|
|
157
|
+
if self.requires_dist is None and "requires_dist" in self.model_fields_set:
|
|
158
|
+
_dict['requires_dist'] = None
|
|
159
|
+
|
|
160
|
+
# set to None if provides_extras (nullable) is None
|
|
161
|
+
# and model_fields_set contains the field
|
|
162
|
+
if self.provides_extras is None and "provides_extras" in self.model_fields_set:
|
|
163
|
+
_dict['provides_extras'] = None
|
|
164
|
+
|
|
165
|
+
# set to None if dynamic (nullable) is None
|
|
166
|
+
# and model_fields_set contains the field
|
|
167
|
+
if self.dynamic is None and "dynamic" in self.model_fields_set:
|
|
168
|
+
_dict['dynamic'] = None
|
|
169
|
+
|
|
170
|
+
# set to None if license_file (nullable) is None
|
|
171
|
+
# and model_fields_set contains the field
|
|
172
|
+
if self.license_file is None and "license_file" in self.model_fields_set:
|
|
173
|
+
_dict['license_file'] = None
|
|
152
174
|
|
|
153
175
|
return _dict
|
|
154
176
|
|
|
@@ -168,33 +190,38 @@ class PythonPythonPackageContentResponse(BaseModel):
|
|
|
168
190
|
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
169
191
|
"pulp_labels": obj.get("pulp_labels"),
|
|
170
192
|
"artifact": obj.get("artifact"),
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"name": obj.get("name"),
|
|
174
|
-
"version": obj.get("version"),
|
|
175
|
-
"sha256": obj.get("sha256") if obj.get("sha256") is not None else '',
|
|
176
|
-
"metadata_version": obj.get("metadata_version"),
|
|
177
|
-
"summary": obj.get("summary"),
|
|
193
|
+
"author": obj.get("author"),
|
|
194
|
+
"author_email": obj.get("author_email"),
|
|
178
195
|
"description": obj.get("description"),
|
|
179
|
-
"description_content_type": obj.get("description_content_type"),
|
|
180
|
-
"keywords": obj.get("keywords"),
|
|
181
196
|
"home_page": obj.get("home_page"),
|
|
197
|
+
"keywords": obj.get("keywords"),
|
|
198
|
+
"license": obj.get("license"),
|
|
199
|
+
"metadata_version": obj.get("metadata_version"),
|
|
200
|
+
"name": obj.get("name"),
|
|
201
|
+
"platform": obj.get("platform"),
|
|
202
|
+
"summary": obj.get("summary"),
|
|
203
|
+
"version": obj.get("version"),
|
|
204
|
+
"classifiers": obj.get("classifiers"),
|
|
182
205
|
"download_url": obj.get("download_url"),
|
|
183
|
-
"
|
|
184
|
-
"author_email": obj.get("author_email"),
|
|
206
|
+
"supported_platform": obj.get("supported_platform"),
|
|
185
207
|
"maintainer": obj.get("maintainer"),
|
|
186
208
|
"maintainer_email": obj.get("maintainer_email"),
|
|
187
|
-
"
|
|
188
|
-
"requires_python": obj.get("requires_python"),
|
|
209
|
+
"obsoletes_dist": obj.get("obsoletes_dist"),
|
|
189
210
|
"project_url": obj.get("project_url"),
|
|
190
211
|
"project_urls": obj.get("project_urls"),
|
|
191
|
-
"platform": obj.get("platform"),
|
|
192
|
-
"supported_platform": obj.get("supported_platform"),
|
|
193
|
-
"requires_dist": obj.get("requires_dist"),
|
|
194
212
|
"provides_dist": obj.get("provides_dist"),
|
|
195
|
-
"obsoletes_dist": obj.get("obsoletes_dist"),
|
|
196
213
|
"requires_external": obj.get("requires_external"),
|
|
197
|
-
"
|
|
214
|
+
"requires_dist": obj.get("requires_dist"),
|
|
215
|
+
"requires_python": obj.get("requires_python"),
|
|
216
|
+
"description_content_type": obj.get("description_content_type"),
|
|
217
|
+
"provides_extras": obj.get("provides_extras"),
|
|
218
|
+
"dynamic": obj.get("dynamic"),
|
|
219
|
+
"license_expression": obj.get("license_expression"),
|
|
220
|
+
"license_file": obj.get("license_file"),
|
|
221
|
+
"filename": obj.get("filename"),
|
|
222
|
+
"packagetype": obj.get("packagetype"),
|
|
223
|
+
"python_version": obj.get("python_version"),
|
|
224
|
+
"sha256": obj.get("sha256") if obj.get("sha256") is not None else ''
|
|
198
225
|
})
|
|
199
226
|
return _obj
|
|
200
227
|
|