pulp-python-client 3.13.2__py3-none-any.whl → 3.13.4__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 pulp-python-client might be problematic. Click here for more details.

@@ -18,11 +18,15 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator
21
- from typing import Any, List, Optional, Tuple, Union
21
+ from typing import Any, Dict, List, Optional, Tuple, Union
22
22
  from typing_extensions import Annotated
23
23
  from pulpcore.client.pulp_python.models.async_operation_response import AsyncOperationResponse
24
24
  from pulpcore.client.pulp_python.models.paginatedpython_python_package_content_response_list import PaginatedpythonPythonPackageContentResponseList
25
25
  from pulpcore.client.pulp_python.models.python_python_package_content_response import PythonPythonPackageContentResponse
26
+ from pulpcore.client.pulp_python.models.set_label import SetLabel
27
+ from pulpcore.client.pulp_python.models.set_label_response import SetLabelResponse
28
+ from pulpcore.client.pulp_python.models.unset_label import UnsetLabel
29
+ from pulpcore.client.pulp_python.models.unset_label_response import UnsetLabelResponse
26
30
 
27
31
  from pulpcore.client.pulp_python.api_client import ApiClient, RequestSerialized
28
32
  from pulpcore.client.pulp_python.api_response import ApiResponse
@@ -47,6 +51,7 @@ class ContentPackagesApi:
47
51
  self,
48
52
  relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
49
53
  repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
54
+ 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,
50
55
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
51
56
  file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
52
57
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
@@ -94,6 +99,8 @@ class ContentPackagesApi:
94
99
  :type relative_path: str
95
100
  :param repository: A URI of a repository the new content unit should be associated with.
96
101
  :type repository: str
102
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
103
+ :type pulp_labels: Dict[str, Optional[str]]
97
104
  :param artifact: Artifact file representing the physical content
98
105
  :type artifact: str
99
106
  :param file: An uploaded file that may be turned into the content unit.
@@ -171,6 +178,7 @@ class ContentPackagesApi:
171
178
  _param = self._create_serialize(
172
179
  relative_path=relative_path,
173
180
  repository=repository,
181
+ pulp_labels=pulp_labels,
174
182
  artifact=artifact,
175
183
  file=file,
176
184
  upload=upload,
@@ -222,6 +230,7 @@ class ContentPackagesApi:
222
230
  self,
223
231
  relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
224
232
  repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
233
+ 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,
225
234
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
226
235
  file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
227
236
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
@@ -269,6 +278,8 @@ class ContentPackagesApi:
269
278
  :type relative_path: str
270
279
  :param repository: A URI of a repository the new content unit should be associated with.
271
280
  :type repository: str
281
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
282
+ :type pulp_labels: Dict[str, Optional[str]]
272
283
  :param artifact: Artifact file representing the physical content
273
284
  :type artifact: str
274
285
  :param file: An uploaded file that may be turned into the content unit.
@@ -346,6 +357,7 @@ class ContentPackagesApi:
346
357
  _param = self._create_serialize(
347
358
  relative_path=relative_path,
348
359
  repository=repository,
360
+ pulp_labels=pulp_labels,
349
361
  artifact=artifact,
350
362
  file=file,
351
363
  upload=upload,
@@ -397,6 +409,7 @@ class ContentPackagesApi:
397
409
  self,
398
410
  relative_path: Annotated[str, Field(min_length=1, strict=True, description="Path where the artifact is located relative to distributions base_path")],
399
411
  repository: Annotated[Optional[StrictStr], Field(description="A URI of a repository the new content unit should be associated with.")] = None,
412
+ 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,
400
413
  artifact: Annotated[Optional[StrictStr], Field(description="Artifact file representing the physical content")] = None,
401
414
  file: Annotated[Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]], Field(description="An uploaded file that may be turned into the content unit.")] = None,
402
415
  upload: Annotated[Optional[StrictStr], Field(description="An uncommitted upload that may be turned into the content unit.")] = None,
@@ -444,6 +457,8 @@ class ContentPackagesApi:
444
457
  :type relative_path: str
445
458
  :param repository: A URI of a repository the new content unit should be associated with.
446
459
  :type repository: str
460
+ :param pulp_labels: A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
461
+ :type pulp_labels: Dict[str, Optional[str]]
447
462
  :param artifact: Artifact file representing the physical content
448
463
  :type artifact: str
449
464
  :param file: An uploaded file that may be turned into the content unit.
@@ -521,6 +536,7 @@ class ContentPackagesApi:
521
536
  _param = self._create_serialize(
522
537
  relative_path=relative_path,
523
538
  repository=repository,
539
+ pulp_labels=pulp_labels,
524
540
  artifact=artifact,
525
541
  file=file,
526
542
  upload=upload,
@@ -567,6 +583,7 @@ class ContentPackagesApi:
567
583
  self,
568
584
  relative_path,
569
585
  repository,
586
+ pulp_labels,
570
587
  artifact,
571
588
  file,
572
589
  upload,
@@ -619,6 +636,8 @@ class ContentPackagesApi:
619
636
  # process the form parameters
620
637
  if repository is not None:
621
638
  _form_params.append(('repository', repository))
639
+ if pulp_labels is not None:
640
+ _form_params.append(('pulp_labels', pulp_labels))
622
641
  if artifact is not None:
623
642
  _form_params.append(('artifact', artifact))
624
643
  if relative_path is not None:
@@ -737,13 +756,14 @@ class ContentPackagesApi:
737
756
  name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
738
757
  name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
739
758
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
740
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
759
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
741
760
  orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
742
761
  packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
743
762
  packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
744
763
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
745
764
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
746
765
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
766
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
747
767
  q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
748
768
  repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
749
769
  repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
@@ -799,7 +819,7 @@ class ContentPackagesApi:
799
819
  :type name__in: List[str]
800
820
  :param offset: The initial index from which to return the results.
801
821
  :type offset: int
802
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
822
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
803
823
  :type ordering: List[str]
804
824
  :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
805
825
  :type orphaned_for: float
@@ -813,6 +833,8 @@ class ContentPackagesApi:
813
833
  :type pulp_href__in: List[str]
814
834
  :param pulp_id__in: Multiple values may be separated by commas.
815
835
  :type pulp_id__in: List[str]
836
+ :param pulp_label_select: Filter labels by search string
837
+ :type pulp_label_select: str
816
838
  :param q: Filter results by using NOT, AND and OR operations on other filters
817
839
  :type q: str
818
840
  :param repository_version: Repository Version referenced by HREF/PRN
@@ -886,6 +908,7 @@ class ContentPackagesApi:
886
908
  prn__in=prn__in,
887
909
  pulp_href__in=pulp_href__in,
888
910
  pulp_id__in=pulp_id__in,
911
+ pulp_label_select=pulp_label_select,
889
912
  q=q,
890
913
  repository_version=repository_version,
891
914
  repository_version_added=repository_version_added,
@@ -936,13 +959,14 @@ class ContentPackagesApi:
936
959
  name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
937
960
  name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
938
961
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
939
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
962
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
940
963
  orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
941
964
  packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
942
965
  packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
943
966
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
944
967
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
945
968
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
969
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
946
970
  q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
947
971
  repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
948
972
  repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
@@ -998,7 +1022,7 @@ class ContentPackagesApi:
998
1022
  :type name__in: List[str]
999
1023
  :param offset: The initial index from which to return the results.
1000
1024
  :type offset: int
1001
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1025
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1002
1026
  :type ordering: List[str]
1003
1027
  :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
1004
1028
  :type orphaned_for: float
@@ -1012,6 +1036,8 @@ class ContentPackagesApi:
1012
1036
  :type pulp_href__in: List[str]
1013
1037
  :param pulp_id__in: Multiple values may be separated by commas.
1014
1038
  :type pulp_id__in: List[str]
1039
+ :param pulp_label_select: Filter labels by search string
1040
+ :type pulp_label_select: str
1015
1041
  :param q: Filter results by using NOT, AND and OR operations on other filters
1016
1042
  :type q: str
1017
1043
  :param repository_version: Repository Version referenced by HREF/PRN
@@ -1085,6 +1111,7 @@ class ContentPackagesApi:
1085
1111
  prn__in=prn__in,
1086
1112
  pulp_href__in=pulp_href__in,
1087
1113
  pulp_id__in=pulp_id__in,
1114
+ pulp_label_select=pulp_label_select,
1088
1115
  q=q,
1089
1116
  repository_version=repository_version,
1090
1117
  repository_version_added=repository_version_added,
@@ -1135,13 +1162,14 @@ class ContentPackagesApi:
1135
1162
  name: Annotated[Optional[StrictStr], Field(description="Filter results where name matches value")] = None,
1136
1163
  name__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where name is in a comma-separated list of values")] = None,
1137
1164
  offset: Annotated[Optional[StrictInt], Field(description="The initial index from which to return the results.")] = None,
1138
- ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1165
+ ordering: Annotated[Optional[List[StrictStr]], Field(description="Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)")] = None,
1139
1166
  orphaned_for: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.")] = None,
1140
1167
  packagetype: Annotated[Optional[StrictStr], Field(description="Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist")] = None,
1141
1168
  packagetype__in: Annotated[Optional[List[StrictStr]], Field(description="Filter results where packagetype is in a comma-separated list of values")] = None,
1142
1169
  prn__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1143
1170
  pulp_href__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1144
1171
  pulp_id__in: Annotated[Optional[List[StrictStr]], Field(description="Multiple values may be separated by commas.")] = None,
1172
+ pulp_label_select: Annotated[Optional[StrictStr], Field(description="Filter labels by search string")] = None,
1145
1173
  q: Annotated[Optional[StrictStr], Field(description="Filter results by using NOT, AND and OR operations on other filters")] = None,
1146
1174
  repository_version: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
1147
1175
  repository_version_added: Annotated[Optional[StrictStr], Field(description="Repository Version referenced by HREF/PRN")] = None,
@@ -1197,7 +1225,7 @@ class ContentPackagesApi:
1197
1225
  :type name__in: List[str]
1198
1226
  :param offset: The initial index from which to return the results.
1199
1227
  :type offset: int
1200
- :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1228
+ :param ordering: Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
1201
1229
  :type ordering: List[str]
1202
1230
  :param orphaned_for: Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
1203
1231
  :type orphaned_for: float
@@ -1211,6 +1239,8 @@ class ContentPackagesApi:
1211
1239
  :type pulp_href__in: List[str]
1212
1240
  :param pulp_id__in: Multiple values may be separated by commas.
1213
1241
  :type pulp_id__in: List[str]
1242
+ :param pulp_label_select: Filter labels by search string
1243
+ :type pulp_label_select: str
1214
1244
  :param q: Filter results by using NOT, AND and OR operations on other filters
1215
1245
  :type q: str
1216
1246
  :param repository_version: Repository Version referenced by HREF/PRN
@@ -1284,6 +1314,7 @@ class ContentPackagesApi:
1284
1314
  prn__in=prn__in,
1285
1315
  pulp_href__in=pulp_href__in,
1286
1316
  pulp_id__in=pulp_id__in,
1317
+ pulp_label_select=pulp_label_select,
1287
1318
  q=q,
1288
1319
  repository_version=repository_version,
1289
1320
  repository_version_added=repository_version_added,
@@ -1336,6 +1367,7 @@ class ContentPackagesApi:
1336
1367
  prn__in,
1337
1368
  pulp_href__in,
1338
1369
  pulp_id__in,
1370
+ pulp_label_select,
1339
1371
  q,
1340
1372
  repository_version,
1341
1373
  repository_version_added,
@@ -1459,6 +1491,10 @@ class ContentPackagesApi:
1459
1491
 
1460
1492
  _query_params.append(('pulp_id__in', pulp_id__in))
1461
1493
 
1494
+ if pulp_label_select is not None:
1495
+
1496
+ _query_params.append(('pulp_label_select', pulp_label_select))
1497
+
1462
1498
  if q is not None:
1463
1499
 
1464
1500
  _query_params.append(('q', q))
@@ -1857,3 +1893,587 @@ class ContentPackagesApi:
1857
1893
  )
1858
1894
 
1859
1895
 
1896
+
1897
+
1898
+ @validate_call
1899
+ def set_label(
1900
+ self,
1901
+ python_python_package_content_href: StrictStr,
1902
+ set_label: SetLabel,
1903
+ _request_timeout: Union[
1904
+ None,
1905
+ Annotated[StrictFloat, Field(gt=0)],
1906
+ Tuple[
1907
+ Annotated[StrictFloat, Field(gt=0)],
1908
+ Annotated[StrictFloat, Field(gt=0)]
1909
+ ]
1910
+ ] = None,
1911
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1912
+ _content_type: Optional[StrictStr] = None,
1913
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1914
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1915
+ ) -> SetLabelResponse:
1916
+ """Set a label
1917
+
1918
+ Set a single pulp_label on the object to a specific value or null.
1919
+
1920
+ :param python_python_package_content_href: (required)
1921
+ :type python_python_package_content_href: str
1922
+ :param set_label: (required)
1923
+ :type set_label: SetLabel
1924
+ :param _request_timeout: timeout setting for this request. If one
1925
+ number provided, it will be total request
1926
+ timeout. It can also be a pair (tuple) of
1927
+ (connection, read) timeouts.
1928
+ :type _request_timeout: int, tuple(int, int), optional
1929
+ :param _request_auth: set to override the auth_settings for an a single
1930
+ request; this effectively ignores the
1931
+ authentication in the spec for a single request.
1932
+ :type _request_auth: dict, optional
1933
+ :param _content_type: force content-type for the request.
1934
+ :type _content_type: str, Optional
1935
+ :param _headers: set to override the headers for a single
1936
+ request; this effectively ignores the headers
1937
+ in the spec for a single request.
1938
+ :type _headers: dict, optional
1939
+ :param _host_index: set to override the host_index for a single
1940
+ request; this effectively ignores the host_index
1941
+ in the spec for a single request.
1942
+ :type _host_index: int, optional
1943
+ :return: Returns the result object.
1944
+ """ # noqa: E501
1945
+
1946
+ _param = self._set_label_serialize(
1947
+ python_python_package_content_href=python_python_package_content_href,
1948
+ set_label=set_label,
1949
+ _request_auth=_request_auth,
1950
+ _content_type=_content_type,
1951
+ _headers=_headers,
1952
+ _host_index=_host_index
1953
+ )
1954
+
1955
+ _response_types_map: Dict[str, Optional[str]] = {
1956
+ '201': "SetLabelResponse",
1957
+ }
1958
+ response_data = self.api_client.call_api(
1959
+ *_param,
1960
+ _request_timeout=_request_timeout
1961
+ )
1962
+ response_data.read()
1963
+ return self.api_client.response_deserialize(
1964
+ response_data=response_data,
1965
+ response_types_map=_response_types_map,
1966
+ ).data
1967
+
1968
+
1969
+ @validate_call
1970
+ def set_label_with_http_info(
1971
+ self,
1972
+ python_python_package_content_href: StrictStr,
1973
+ set_label: SetLabel,
1974
+ _request_timeout: Union[
1975
+ None,
1976
+ Annotated[StrictFloat, Field(gt=0)],
1977
+ Tuple[
1978
+ Annotated[StrictFloat, Field(gt=0)],
1979
+ Annotated[StrictFloat, Field(gt=0)]
1980
+ ]
1981
+ ] = None,
1982
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1983
+ _content_type: Optional[StrictStr] = None,
1984
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1985
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1986
+ ) -> ApiResponse[SetLabelResponse]:
1987
+ """Set a label
1988
+
1989
+ Set a single pulp_label on the object to a specific value or null.
1990
+
1991
+ :param python_python_package_content_href: (required)
1992
+ :type python_python_package_content_href: str
1993
+ :param set_label: (required)
1994
+ :type set_label: SetLabel
1995
+ :param _request_timeout: timeout setting for this request. If one
1996
+ number provided, it will be total request
1997
+ timeout. It can also be a pair (tuple) of
1998
+ (connection, read) timeouts.
1999
+ :type _request_timeout: int, tuple(int, int), optional
2000
+ :param _request_auth: set to override the auth_settings for an a single
2001
+ request; this effectively ignores the
2002
+ authentication in the spec for a single request.
2003
+ :type _request_auth: dict, optional
2004
+ :param _content_type: force content-type for the request.
2005
+ :type _content_type: str, Optional
2006
+ :param _headers: set to override the headers for a single
2007
+ request; this effectively ignores the headers
2008
+ in the spec for a single request.
2009
+ :type _headers: dict, optional
2010
+ :param _host_index: set to override the host_index for a single
2011
+ request; this effectively ignores the host_index
2012
+ in the spec for a single request.
2013
+ :type _host_index: int, optional
2014
+ :return: Returns the result object.
2015
+ """ # noqa: E501
2016
+
2017
+ _param = self._set_label_serialize(
2018
+ python_python_package_content_href=python_python_package_content_href,
2019
+ set_label=set_label,
2020
+ _request_auth=_request_auth,
2021
+ _content_type=_content_type,
2022
+ _headers=_headers,
2023
+ _host_index=_host_index
2024
+ )
2025
+
2026
+ _response_types_map: Dict[str, Optional[str]] = {
2027
+ '201': "SetLabelResponse",
2028
+ }
2029
+ response_data = self.api_client.call_api(
2030
+ *_param,
2031
+ _request_timeout=_request_timeout
2032
+ )
2033
+ response_data.read()
2034
+ return self.api_client.response_deserialize(
2035
+ response_data=response_data,
2036
+ response_types_map=_response_types_map,
2037
+ )
2038
+
2039
+
2040
+ @validate_call
2041
+ def set_label_without_preload_content(
2042
+ self,
2043
+ python_python_package_content_href: StrictStr,
2044
+ set_label: SetLabel,
2045
+ _request_timeout: Union[
2046
+ None,
2047
+ Annotated[StrictFloat, Field(gt=0)],
2048
+ Tuple[
2049
+ Annotated[StrictFloat, Field(gt=0)],
2050
+ Annotated[StrictFloat, Field(gt=0)]
2051
+ ]
2052
+ ] = None,
2053
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2054
+ _content_type: Optional[StrictStr] = None,
2055
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2056
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2057
+ ) -> RESTResponseType:
2058
+ """Set a label
2059
+
2060
+ Set a single pulp_label on the object to a specific value or null.
2061
+
2062
+ :param python_python_package_content_href: (required)
2063
+ :type python_python_package_content_href: str
2064
+ :param set_label: (required)
2065
+ :type set_label: SetLabel
2066
+ :param _request_timeout: timeout setting for this request. If one
2067
+ number provided, it will be total request
2068
+ timeout. It can also be a pair (tuple) of
2069
+ (connection, read) timeouts.
2070
+ :type _request_timeout: int, tuple(int, int), optional
2071
+ :param _request_auth: set to override the auth_settings for an a single
2072
+ request; this effectively ignores the
2073
+ authentication in the spec for a single request.
2074
+ :type _request_auth: dict, optional
2075
+ :param _content_type: force content-type for the request.
2076
+ :type _content_type: str, Optional
2077
+ :param _headers: set to override the headers for a single
2078
+ request; this effectively ignores the headers
2079
+ in the spec for a single request.
2080
+ :type _headers: dict, optional
2081
+ :param _host_index: set to override the host_index for a single
2082
+ request; this effectively ignores the host_index
2083
+ in the spec for a single request.
2084
+ :type _host_index: int, optional
2085
+ :return: Returns the result object.
2086
+ """ # noqa: E501
2087
+
2088
+ _param = self._set_label_serialize(
2089
+ python_python_package_content_href=python_python_package_content_href,
2090
+ set_label=set_label,
2091
+ _request_auth=_request_auth,
2092
+ _content_type=_content_type,
2093
+ _headers=_headers,
2094
+ _host_index=_host_index
2095
+ )
2096
+
2097
+ _response_types_map: Dict[str, Optional[str]] = {
2098
+ '201': "SetLabelResponse",
2099
+ }
2100
+ response_data = self.api_client.call_api(
2101
+ *_param,
2102
+ _request_timeout=_request_timeout
2103
+ )
2104
+ return response_data.response
2105
+
2106
+
2107
+ def _set_label_serialize(
2108
+ self,
2109
+ python_python_package_content_href,
2110
+ set_label,
2111
+ _request_auth,
2112
+ _content_type,
2113
+ _headers,
2114
+ _host_index,
2115
+ ) -> RequestSerialized:
2116
+
2117
+ _host = None
2118
+
2119
+ _collection_formats: Dict[str, str] = {
2120
+ }
2121
+
2122
+ _path_params: Dict[str, str] = {}
2123
+ _query_params: List[Tuple[str, str]] = []
2124
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2125
+ _form_params: List[Tuple[str, str]] = []
2126
+ _files: Dict[
2127
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2128
+ ] = {}
2129
+ _body_params: Optional[bytes] = None
2130
+
2131
+ # process the path parameters
2132
+ if python_python_package_content_href is not None:
2133
+ _path_params['python_python_package_content_href'] = python_python_package_content_href
2134
+ # process the query parameters
2135
+ # process the header parameters
2136
+ # process the form parameters
2137
+ # process the body parameter
2138
+ if set_label is not None:
2139
+ _body_params = set_label
2140
+
2141
+
2142
+ # set the HTTP header `Accept`
2143
+ if 'Accept' not in _header_params:
2144
+ _header_params['Accept'] = self.api_client.select_header_accept(
2145
+ [
2146
+ 'application/json'
2147
+ ]
2148
+ )
2149
+
2150
+ # set the HTTP header `Content-Type`
2151
+ if _content_type:
2152
+ _header_params['Content-Type'] = _content_type
2153
+ else:
2154
+ _default_content_type = (
2155
+ self.api_client.select_header_content_type(
2156
+ [
2157
+ 'application/json',
2158
+ 'application/x-www-form-urlencoded',
2159
+ 'multipart/form-data'
2160
+ ]
2161
+ )
2162
+ )
2163
+ if _default_content_type is not None:
2164
+ _header_params['Content-Type'] = _default_content_type
2165
+
2166
+ # authentication setting
2167
+ _auth_settings: List[str] = [
2168
+ 'basicAuth',
2169
+ 'cookieAuth'
2170
+ ]
2171
+
2172
+ return self.api_client.param_serialize(
2173
+ method='POST',
2174
+ resource_path='{python_python_package_content_href}set_label/',
2175
+ path_params=_path_params,
2176
+ query_params=_query_params,
2177
+ header_params=_header_params,
2178
+ body=_body_params,
2179
+ post_params=_form_params,
2180
+ files=_files,
2181
+ auth_settings=_auth_settings,
2182
+ collection_formats=_collection_formats,
2183
+ _host=_host,
2184
+ _request_auth=_request_auth
2185
+ )
2186
+
2187
+
2188
+
2189
+
2190
+ @validate_call
2191
+ def unset_label(
2192
+ self,
2193
+ python_python_package_content_href: StrictStr,
2194
+ unset_label: UnsetLabel,
2195
+ _request_timeout: Union[
2196
+ None,
2197
+ Annotated[StrictFloat, Field(gt=0)],
2198
+ Tuple[
2199
+ Annotated[StrictFloat, Field(gt=0)],
2200
+ Annotated[StrictFloat, Field(gt=0)]
2201
+ ]
2202
+ ] = None,
2203
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2204
+ _content_type: Optional[StrictStr] = None,
2205
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2206
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2207
+ ) -> UnsetLabelResponse:
2208
+ """Unset a label
2209
+
2210
+ Unset a single pulp_label on the object.
2211
+
2212
+ :param python_python_package_content_href: (required)
2213
+ :type python_python_package_content_href: str
2214
+ :param unset_label: (required)
2215
+ :type unset_label: UnsetLabel
2216
+ :param _request_timeout: timeout setting for this request. If one
2217
+ number provided, it will be total request
2218
+ timeout. It can also be a pair (tuple) of
2219
+ (connection, read) timeouts.
2220
+ :type _request_timeout: int, tuple(int, int), optional
2221
+ :param _request_auth: set to override the auth_settings for an a single
2222
+ request; this effectively ignores the
2223
+ authentication in the spec for a single request.
2224
+ :type _request_auth: dict, optional
2225
+ :param _content_type: force content-type for the request.
2226
+ :type _content_type: str, Optional
2227
+ :param _headers: set to override the headers for a single
2228
+ request; this effectively ignores the headers
2229
+ in the spec for a single request.
2230
+ :type _headers: dict, optional
2231
+ :param _host_index: set to override the host_index for a single
2232
+ request; this effectively ignores the host_index
2233
+ in the spec for a single request.
2234
+ :type _host_index: int, optional
2235
+ :return: Returns the result object.
2236
+ """ # noqa: E501
2237
+
2238
+ _param = self._unset_label_serialize(
2239
+ python_python_package_content_href=python_python_package_content_href,
2240
+ unset_label=unset_label,
2241
+ _request_auth=_request_auth,
2242
+ _content_type=_content_type,
2243
+ _headers=_headers,
2244
+ _host_index=_host_index
2245
+ )
2246
+
2247
+ _response_types_map: Dict[str, Optional[str]] = {
2248
+ '201': "UnsetLabelResponse",
2249
+ }
2250
+ response_data = self.api_client.call_api(
2251
+ *_param,
2252
+ _request_timeout=_request_timeout
2253
+ )
2254
+ response_data.read()
2255
+ return self.api_client.response_deserialize(
2256
+ response_data=response_data,
2257
+ response_types_map=_response_types_map,
2258
+ ).data
2259
+
2260
+
2261
+ @validate_call
2262
+ def unset_label_with_http_info(
2263
+ self,
2264
+ python_python_package_content_href: StrictStr,
2265
+ unset_label: UnsetLabel,
2266
+ _request_timeout: Union[
2267
+ None,
2268
+ Annotated[StrictFloat, Field(gt=0)],
2269
+ Tuple[
2270
+ Annotated[StrictFloat, Field(gt=0)],
2271
+ Annotated[StrictFloat, Field(gt=0)]
2272
+ ]
2273
+ ] = None,
2274
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2275
+ _content_type: Optional[StrictStr] = None,
2276
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2277
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2278
+ ) -> ApiResponse[UnsetLabelResponse]:
2279
+ """Unset a label
2280
+
2281
+ Unset a single pulp_label on the object.
2282
+
2283
+ :param python_python_package_content_href: (required)
2284
+ :type python_python_package_content_href: str
2285
+ :param unset_label: (required)
2286
+ :type unset_label: UnsetLabel
2287
+ :param _request_timeout: timeout setting for this request. If one
2288
+ number provided, it will be total request
2289
+ timeout. It can also be a pair (tuple) of
2290
+ (connection, read) timeouts.
2291
+ :type _request_timeout: int, tuple(int, int), optional
2292
+ :param _request_auth: set to override the auth_settings for an a single
2293
+ request; this effectively ignores the
2294
+ authentication in the spec for a single request.
2295
+ :type _request_auth: dict, optional
2296
+ :param _content_type: force content-type for the request.
2297
+ :type _content_type: str, Optional
2298
+ :param _headers: set to override the headers for a single
2299
+ request; this effectively ignores the headers
2300
+ in the spec for a single request.
2301
+ :type _headers: dict, optional
2302
+ :param _host_index: set to override the host_index for a single
2303
+ request; this effectively ignores the host_index
2304
+ in the spec for a single request.
2305
+ :type _host_index: int, optional
2306
+ :return: Returns the result object.
2307
+ """ # noqa: E501
2308
+
2309
+ _param = self._unset_label_serialize(
2310
+ python_python_package_content_href=python_python_package_content_href,
2311
+ unset_label=unset_label,
2312
+ _request_auth=_request_auth,
2313
+ _content_type=_content_type,
2314
+ _headers=_headers,
2315
+ _host_index=_host_index
2316
+ )
2317
+
2318
+ _response_types_map: Dict[str, Optional[str]] = {
2319
+ '201': "UnsetLabelResponse",
2320
+ }
2321
+ response_data = self.api_client.call_api(
2322
+ *_param,
2323
+ _request_timeout=_request_timeout
2324
+ )
2325
+ response_data.read()
2326
+ return self.api_client.response_deserialize(
2327
+ response_data=response_data,
2328
+ response_types_map=_response_types_map,
2329
+ )
2330
+
2331
+
2332
+ @validate_call
2333
+ def unset_label_without_preload_content(
2334
+ self,
2335
+ python_python_package_content_href: StrictStr,
2336
+ unset_label: UnsetLabel,
2337
+ _request_timeout: Union[
2338
+ None,
2339
+ Annotated[StrictFloat, Field(gt=0)],
2340
+ Tuple[
2341
+ Annotated[StrictFloat, Field(gt=0)],
2342
+ Annotated[StrictFloat, Field(gt=0)]
2343
+ ]
2344
+ ] = None,
2345
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2346
+ _content_type: Optional[StrictStr] = None,
2347
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2348
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2349
+ ) -> RESTResponseType:
2350
+ """Unset a label
2351
+
2352
+ Unset a single pulp_label on the object.
2353
+
2354
+ :param python_python_package_content_href: (required)
2355
+ :type python_python_package_content_href: str
2356
+ :param unset_label: (required)
2357
+ :type unset_label: UnsetLabel
2358
+ :param _request_timeout: timeout setting for this request. If one
2359
+ number provided, it will be total request
2360
+ timeout. It can also be a pair (tuple) of
2361
+ (connection, read) timeouts.
2362
+ :type _request_timeout: int, tuple(int, int), optional
2363
+ :param _request_auth: set to override the auth_settings for an a single
2364
+ request; this effectively ignores the
2365
+ authentication in the spec for a single request.
2366
+ :type _request_auth: dict, optional
2367
+ :param _content_type: force content-type for the request.
2368
+ :type _content_type: str, Optional
2369
+ :param _headers: set to override the headers for a single
2370
+ request; this effectively ignores the headers
2371
+ in the spec for a single request.
2372
+ :type _headers: dict, optional
2373
+ :param _host_index: set to override the host_index for a single
2374
+ request; this effectively ignores the host_index
2375
+ in the spec for a single request.
2376
+ :type _host_index: int, optional
2377
+ :return: Returns the result object.
2378
+ """ # noqa: E501
2379
+
2380
+ _param = self._unset_label_serialize(
2381
+ python_python_package_content_href=python_python_package_content_href,
2382
+ unset_label=unset_label,
2383
+ _request_auth=_request_auth,
2384
+ _content_type=_content_type,
2385
+ _headers=_headers,
2386
+ _host_index=_host_index
2387
+ )
2388
+
2389
+ _response_types_map: Dict[str, Optional[str]] = {
2390
+ '201': "UnsetLabelResponse",
2391
+ }
2392
+ response_data = self.api_client.call_api(
2393
+ *_param,
2394
+ _request_timeout=_request_timeout
2395
+ )
2396
+ return response_data.response
2397
+
2398
+
2399
+ def _unset_label_serialize(
2400
+ self,
2401
+ python_python_package_content_href,
2402
+ unset_label,
2403
+ _request_auth,
2404
+ _content_type,
2405
+ _headers,
2406
+ _host_index,
2407
+ ) -> RequestSerialized:
2408
+
2409
+ _host = None
2410
+
2411
+ _collection_formats: Dict[str, str] = {
2412
+ }
2413
+
2414
+ _path_params: Dict[str, str] = {}
2415
+ _query_params: List[Tuple[str, str]] = []
2416
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2417
+ _form_params: List[Tuple[str, str]] = []
2418
+ _files: Dict[
2419
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2420
+ ] = {}
2421
+ _body_params: Optional[bytes] = None
2422
+
2423
+ # process the path parameters
2424
+ if python_python_package_content_href is not None:
2425
+ _path_params['python_python_package_content_href'] = python_python_package_content_href
2426
+ # process the query parameters
2427
+ # process the header parameters
2428
+ # process the form parameters
2429
+ # process the body parameter
2430
+ if unset_label is not None:
2431
+ _body_params = unset_label
2432
+
2433
+
2434
+ # set the HTTP header `Accept`
2435
+ if 'Accept' not in _header_params:
2436
+ _header_params['Accept'] = self.api_client.select_header_accept(
2437
+ [
2438
+ 'application/json'
2439
+ ]
2440
+ )
2441
+
2442
+ # set the HTTP header `Content-Type`
2443
+ if _content_type:
2444
+ _header_params['Content-Type'] = _content_type
2445
+ else:
2446
+ _default_content_type = (
2447
+ self.api_client.select_header_content_type(
2448
+ [
2449
+ 'application/json',
2450
+ 'application/x-www-form-urlencoded',
2451
+ 'multipart/form-data'
2452
+ ]
2453
+ )
2454
+ )
2455
+ if _default_content_type is not None:
2456
+ _header_params['Content-Type'] = _default_content_type
2457
+
2458
+ # authentication setting
2459
+ _auth_settings: List[str] = [
2460
+ 'basicAuth',
2461
+ 'cookieAuth'
2462
+ ]
2463
+
2464
+ return self.api_client.param_serialize(
2465
+ method='POST',
2466
+ resource_path='{python_python_package_content_href}unset_label/',
2467
+ path_params=_path_params,
2468
+ query_params=_query_params,
2469
+ header_params=_header_params,
2470
+ body=_body_params,
2471
+ post_params=_form_params,
2472
+ files=_files,
2473
+ auth_settings=_auth_settings,
2474
+ collection_formats=_collection_formats,
2475
+ _host=_host,
2476
+ _request_auth=_request_auth
2477
+ )
2478
+
2479
+