pulp-python-client 3.10.0__tar.gz → 3.10.1__tar.gz

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.

Files changed (114) hide show
  1. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/PKG-INFO +6 -6
  2. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/README.md +17 -7
  3. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulp_python_client.egg-info/PKG-INFO +6 -6
  4. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulp_python_client.egg-info/SOURCES.txt +9 -1
  5. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/__init__.py +5 -1
  6. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/content_packages_api.py +10 -5
  7. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/distributions_pypi_api.py +281 -2
  8. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/publications_pypi_api.py +5 -0
  9. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/remotes_python_api.py +279 -0
  10. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/repositories_python_api.py +279 -0
  11. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +5 -0
  12. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api_client.py +1 -1
  13. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/configuration.py +3 -3
  14. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/__init__.py +4 -0
  15. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +6 -4
  16. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +6 -4
  17. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +6 -4
  18. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +6 -4
  19. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +6 -4
  20. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +6 -4
  21. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +29 -1
  22. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_distribution.py +29 -1
  23. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_distribution_response.py +29 -1
  24. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_package_content.py +29 -29
  25. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +6 -4
  26. pulp_python-client-3.10.1/pulpcore/client/pulp_python/models/set_label.py +153 -0
  27. pulp_python-client-3.10.1/pulpcore/client/pulp_python/models/set_label_response.py +150 -0
  28. pulp_python-client-3.10.1/pulpcore/client/pulp_python/models/unset_label.py +128 -0
  29. pulp_python-client-3.10.1/pulpcore/client/pulp_python/models/unset_label_response.py +151 -0
  30. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/setup.py +1 -1
  31. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_distributions_pypi_api.py +14 -0
  32. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginated_repository_version_response_list.py +10 -0
  33. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginatedpython_python_distribution_response_list.py +19 -0
  34. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginatedpython_python_package_content_response_list.py +34 -0
  35. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginatedpython_python_publication_response_list.py +11 -0
  36. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginatedpython_python_remote_response_list.py +46 -0
  37. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_paginatedpython_python_repository_response_list.py +16 -0
  38. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_patchedpython_python_distribution.py +1 -0
  39. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_distribution.py +1 -0
  40. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_distribution_response.py +1 -0
  41. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_remote_response_hidden_fields.py +2 -0
  42. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_remotes_python_api.py +14 -0
  43. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repositories_python_api.py +14 -0
  44. pulp_python-client-3.10.1/test/test_set_label.py +56 -0
  45. pulp_python-client-3.10.1/test/test_set_label_response.py +56 -0
  46. pulp_python-client-3.10.1/test/test_unset_label.py +54 -0
  47. pulp_python-client-3.10.1/test/test_unset_label_response.py +55 -0
  48. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulp_python_client.egg-info/dependency_links.txt +0 -0
  49. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulp_python_client.egg-info/requires.txt +0 -0
  50. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulp_python_client.egg-info/top_level.txt +0 -0
  51. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/__init__.py +0 -0
  52. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/__init__.py +0 -0
  53. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/__init__.py +0 -0
  54. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/pypi_api.py +0 -0
  55. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -0
  56. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -0
  57. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -0
  58. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/exceptions.py +0 -0
  59. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/async_operation_response.py +0 -0
  60. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/content_summary_response.py +0 -0
  61. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -0
  62. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -0
  63. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/package_types_enum.py +0 -0
  64. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/package_upload.py +0 -0
  65. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -0
  66. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -0
  67. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -0
  68. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/policy_enum.py +0 -0
  69. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -0
  70. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -0
  71. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_publication.py +0 -0
  72. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -0
  73. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_remote.py +0 -0
  74. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -0
  75. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_repository.py +0 -0
  76. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -0
  77. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/repair.py +0 -0
  78. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -0
  79. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -0
  80. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/repository_version_response.py +0 -0
  81. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/models/summary_response.py +0 -0
  82. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/pulpcore/client/pulp_python/rest.py +0 -0
  83. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/setup.cfg +0 -0
  84. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_async_operation_response.py +0 -0
  85. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_content_packages_api.py +0 -0
  86. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_content_summary_response.py +0 -0
  87. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_exclude_platforms_enum.py +0 -0
  88. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_package_metadata_response.py +0 -0
  89. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_package_types_enum.py +0 -0
  90. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_package_upload.py +0 -0
  91. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_package_upload_task_response.py +0 -0
  92. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_patchedpython_python_remote.py +0 -0
  93. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_patchedpython_python_repository.py +0 -0
  94. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_policy_enum.py +0 -0
  95. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_publications_pypi_api.py +0 -0
  96. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_pypi_api.py +0 -0
  97. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_pypi_legacy_api.py +0 -0
  98. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_pypi_metadata_api.py +0 -0
  99. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_pypi_simple_api.py +0 -0
  100. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_bander_remote.py +0 -0
  101. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_package_content.py +1 -1
  102. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_package_content_response.py +0 -0
  103. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_publication.py +0 -0
  104. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_publication_response.py +0 -0
  105. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_remote.py +0 -0
  106. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_remote_response.py +0 -0
  107. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_repository.py +0 -0
  108. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_python_python_repository_response.py +0 -0
  109. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repair.py +0 -0
  110. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repositories_python_versions_api.py +0 -0
  111. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repository_add_remove_content.py +0 -0
  112. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repository_sync_url.py +0 -0
  113. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_repository_version_response.py +0 -0
  114. {pulp_python-client-3.10.0 → pulp_python-client-3.10.1}/test/test_summary_response.py +0 -0
@@ -1,13 +1,13 @@
1
- Metadata-Version: 1.2
1
+ Metadata-Version: 2.1
2
2
  Name: pulp_python-client
3
- Version: 3.10.0
3
+ Version: 3.10.1
4
4
  Summary: Pulp 3 API
5
- Home-page: UNKNOWN
5
+ Home-page:
6
6
  Author: Pulp Team
7
7
  Author-email: pulp-list@redhat.com
8
8
  License: GPLv2+
9
- Description: Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
10
-
11
9
  Keywords: pulp,pulpcore,client,Pulp 3 API
12
- Platform: UNKNOWN
13
10
  Requires-Python: >=3.4
11
+
12
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
13
+
@@ -4,7 +4,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
4
4
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: v3
7
- - Package version: 3.10.0
7
+ - Package version: 3.10.1
8
8
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9
9
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
10
10
 
@@ -53,10 +53,10 @@ import pulpcore.client.pulp_python
53
53
  from pulpcore.client.pulp_python.rest import ApiException
54
54
  from pprint import pprint
55
55
 
56
- # Defining the host is optional and defaults to https://pulp
56
+ # Defining the host is optional and defaults to http://localhost:24817
57
57
  # See configuration.py for a list of all supported configuration parameters.
58
58
  configuration = pulpcore.client.pulp_python.Configuration(
59
- host = "https://pulp"
59
+ host = "http://localhost:24817"
60
60
  )
61
61
 
62
62
  # The client must configure the authentication and authorization parameters
@@ -72,7 +72,7 @@ configuration = pulpcore.client.pulp_python.Configuration(
72
72
 
73
73
  # Configure API key authorization: cookieAuth
74
74
  configuration = pulpcore.client.pulp_python.Configuration(
75
- host = "https://pulp",
75
+ host = "http://localhost:24817",
76
76
  api_key = {
77
77
  'sessionid': 'YOUR_API_KEY'
78
78
  }
@@ -86,9 +86,9 @@ with pulpcore.client.pulp_python.ApiClient(configuration) as api_client:
86
86
  # Create an instance of the API class
87
87
  api_instance = pulpcore.client.pulp_python.ContentPackagesApi(api_client)
88
88
  relative_path = 'relative_path_example' # str | Path where the artifact is located relative to distributions base_path
89
+ repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
89
90
  artifact = 'artifact_example' # str | Artifact file representing the physical content (optional)
90
91
  file = '/path/to/file' # file | An uploaded file that may be turned into the artifact of the content unit. (optional)
91
- repository = 'repository_example' # str | A URI of a repository the new content unit should be associated with. (optional)
92
92
  upload = 'upload_example' # str | An uncommitted upload that may be turned into the artifact of the content unit. (optional)
93
93
  sha256 = '' # str | The SHA256 digest of this package. (optional) (default to '')
94
94
  summary = 'summary_example' # str | A one-line summary of what the package does. (optional)
@@ -115,7 +115,7 @@ classifiers = None # object | A JSON list containing classification values for a
115
115
 
116
116
  try:
117
117
  # Create a python package content
118
- api_response = api_instance.create(relative_path, artifact=artifact, file=file, repository=repository, upload=upload, sha256=sha256, summary=summary, description=description, description_content_type=description_content_type, keywords=keywords, home_page=home_page, download_url=download_url, author=author, author_email=author_email, maintainer=maintainer, maintainer_email=maintainer_email, license=license, requires_python=requires_python, project_url=project_url, project_urls=project_urls, platform=platform, supported_platform=supported_platform, requires_dist=requires_dist, provides_dist=provides_dist, obsoletes_dist=obsoletes_dist, requires_external=requires_external, classifiers=classifiers)
118
+ api_response = api_instance.create(relative_path, repository=repository, artifact=artifact, file=file, upload=upload, sha256=sha256, summary=summary, description=description, description_content_type=description_content_type, keywords=keywords, home_page=home_page, download_url=download_url, author=author, author_email=author_email, maintainer=maintainer, maintainer_email=maintainer_email, license=license, requires_python=requires_python, project_url=project_url, project_urls=project_urls, platform=platform, supported_platform=supported_platform, requires_dist=requires_dist, provides_dist=provides_dist, obsoletes_dist=obsoletes_dist, requires_external=requires_external, classifiers=classifiers)
119
119
  pprint(api_response)
120
120
  except ApiException as e:
121
121
  print("Exception when calling ContentPackagesApi->create: %s\n" % e)
@@ -124,7 +124,7 @@ classifiers = None # object | A JSON list containing classification values for a
124
124
 
125
125
  ## Documentation for API Endpoints
126
126
 
127
- All URIs are relative to *https://pulp*
127
+ All URIs are relative to *http://localhost:24817*
128
128
 
129
129
  Class | Method | HTTP request | Description
130
130
  ------------ | ------------- | ------------- | -------------
@@ -136,6 +136,8 @@ Class | Method | HTTP request | Description
136
136
  *DistributionsPypiApi* | [**list**](docs/DistributionsPypiApi.md#list) | **GET** /pulp/api/v3/distributions/python/pypi/ | List python distributions
137
137
  *DistributionsPypiApi* | [**partial_update**](docs/DistributionsPypiApi.md#partial_update) | **PATCH** {python_python_distribution_href} | Update a python distribution
138
138
  *DistributionsPypiApi* | [**read**](docs/DistributionsPypiApi.md#read) | **GET** {python_python_distribution_href} | Inspect a python distribution
139
+ *DistributionsPypiApi* | [**set_label**](docs/DistributionsPypiApi.md#set_label) | **POST** {python_python_distribution_href}set_label/ | Set a label
140
+ *DistributionsPypiApi* | [**unset_label**](docs/DistributionsPypiApi.md#unset_label) | **POST** {python_python_distribution_href}unset_label/ | Unset a label
139
141
  *DistributionsPypiApi* | [**update**](docs/DistributionsPypiApi.md#update) | **PUT** {python_python_distribution_href} | Update a python distribution
140
142
  *PublicationsPypiApi* | [**create**](docs/PublicationsPypiApi.md#create) | **POST** /pulp/api/v3/publications/python/pypi/ | Create a python publication
141
143
  *PublicationsPypiApi* | [**delete**](docs/PublicationsPypiApi.md#delete) | **DELETE** {python_python_publication_href} | Delete a python publication
@@ -153,6 +155,8 @@ Class | Method | HTTP request | Description
153
155
  *RemotesPythonApi* | [**list**](docs/RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
154
156
  *RemotesPythonApi* | [**partial_update**](docs/RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
155
157
  *RemotesPythonApi* | [**read**](docs/RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
158
+ *RemotesPythonApi* | [**set_label**](docs/RemotesPythonApi.md#set_label) | **POST** {python_python_remote_href}set_label/ | Set a label
159
+ *RemotesPythonApi* | [**unset_label**](docs/RemotesPythonApi.md#unset_label) | **POST** {python_python_remote_href}unset_label/ | Unset a label
156
160
  *RemotesPythonApi* | [**update**](docs/RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
157
161
  *RepositoriesPythonApi* | [**create**](docs/RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
158
162
  *RepositoriesPythonApi* | [**delete**](docs/RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
@@ -160,7 +164,9 @@ Class | Method | HTTP request | Description
160
164
  *RepositoriesPythonApi* | [**modify**](docs/RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
161
165
  *RepositoriesPythonApi* | [**partial_update**](docs/RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
162
166
  *RepositoriesPythonApi* | [**read**](docs/RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
167
+ *RepositoriesPythonApi* | [**set_label**](docs/RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
163
168
  *RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
169
+ *RepositoriesPythonApi* | [**unset_label**](docs/RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
164
170
  *RepositoriesPythonApi* | [**update**](docs/RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
165
171
  *RepositoriesPythonVersionsApi* | [**delete**](docs/RepositoriesPythonVersionsApi.md#delete) | **DELETE** {python_python_repository_version_href} | Delete a repository version
166
172
  *RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
@@ -203,7 +209,11 @@ Class | Method | HTTP request | Description
203
209
  - [RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
204
210
  - [RepositorySyncURL](docs/RepositorySyncURL.md)
205
211
  - [RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
212
+ - [SetLabel](docs/SetLabel.md)
213
+ - [SetLabelResponse](docs/SetLabelResponse.md)
206
214
  - [SummaryResponse](docs/SummaryResponse.md)
215
+ - [UnsetLabel](docs/UnsetLabel.md)
216
+ - [UnsetLabelResponse](docs/UnsetLabelResponse.md)
207
217
 
208
218
 
209
219
  ## Documentation For Authorization
@@ -1,13 +1,13 @@
1
- Metadata-Version: 1.2
1
+ Metadata-Version: 2.1
2
2
  Name: pulp-python-client
3
- Version: 3.10.0
3
+ Version: 3.10.1
4
4
  Summary: Pulp 3 API
5
- Home-page: UNKNOWN
5
+ Home-page:
6
6
  Author: Pulp Team
7
7
  Author-email: pulp-list@redhat.com
8
8
  License: GPLv2+
9
- Description: Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
10
-
11
9
  Keywords: pulp,pulpcore,client,Pulp 3 API
12
- Platform: UNKNOWN
13
10
  Requires-Python: >=3.4
11
+
12
+ Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
13
+
@@ -58,7 +58,11 @@ pulpcore/client/pulp_python/models/repair.py
58
58
  pulpcore/client/pulp_python/models/repository_add_remove_content.py
59
59
  pulpcore/client/pulp_python/models/repository_sync_url.py
60
60
  pulpcore/client/pulp_python/models/repository_version_response.py
61
+ pulpcore/client/pulp_python/models/set_label.py
62
+ pulpcore/client/pulp_python/models/set_label_response.py
61
63
  pulpcore/client/pulp_python/models/summary_response.py
64
+ pulpcore/client/pulp_python/models/unset_label.py
65
+ pulpcore/client/pulp_python/models/unset_label_response.py
62
66
  test/test_async_operation_response.py
63
67
  test/test_content_packages_api.py
64
68
  test/test_content_summary_response.py
@@ -102,4 +106,8 @@ test/test_repositories_python_versions_api.py
102
106
  test/test_repository_add_remove_content.py
103
107
  test/test_repository_sync_url.py
104
108
  test/test_repository_version_response.py
105
- test/test_summary_response.py
109
+ test/test_set_label.py
110
+ test/test_set_label_response.py
111
+ test/test_summary_response.py
112
+ test/test_unset_label.py
113
+ test/test_unset_label_response.py
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.10.0"
18
+ __version__ = "3.10.1"
19
19
 
20
20
  # import apis into sdk package
21
21
  from pulpcore.client.pulp_python.api.content_packages_api import ContentPackagesApi
@@ -71,5 +71,9 @@ from pulpcore.client.pulp_python.models.repair import Repair
71
71
  from pulpcore.client.pulp_python.models.repository_add_remove_content import RepositoryAddRemoveContent
72
72
  from pulpcore.client.pulp_python.models.repository_sync_url import RepositorySyncURL
73
73
  from pulpcore.client.pulp_python.models.repository_version_response import RepositoryVersionResponse
74
+ from pulpcore.client.pulp_python.models.set_label import SetLabel
75
+ from pulpcore.client.pulp_python.models.set_label_response import SetLabelResponse
74
76
  from pulpcore.client.pulp_python.models.summary_response import SummaryResponse
77
+ from pulpcore.client.pulp_python.models.unset_label import UnsetLabel
78
+ from pulpcore.client.pulp_python.models.unset_label_response import UnsetLabelResponse
75
79
 
@@ -48,9 +48,9 @@ class ContentPackagesApi(object):
48
48
 
49
49
  :param async_req bool: execute request asynchronously
50
50
  :param str relative_path: Path where the artifact is located relative to distributions base_path (required)
51
+ :param str repository: A URI of a repository the new content unit should be associated with.
51
52
  :param str artifact: Artifact file representing the physical content
52
53
  :param file file: An uploaded file that may be turned into the artifact of the content unit.
53
- :param str repository: A URI of a repository the new content unit should be associated with.
54
54
  :param str upload: An uncommitted upload that may be turned into the artifact of the content unit.
55
55
  :param str sha256: The SHA256 digest of this package.
56
56
  :param str summary: A one-line summary of what the package does.
@@ -99,9 +99,9 @@ class ContentPackagesApi(object):
99
99
 
100
100
  :param async_req bool: execute request asynchronously
101
101
  :param str relative_path: Path where the artifact is located relative to distributions base_path (required)
102
+ :param str repository: A URI of a repository the new content unit should be associated with.
102
103
  :param str artifact: Artifact file representing the physical content
103
104
  :param file file: An uploaded file that may be turned into the artifact of the content unit.
104
- :param str repository: A URI of a repository the new content unit should be associated with.
105
105
  :param str upload: An uncommitted upload that may be turned into the artifact of the content unit.
106
106
  :param str sha256: The SHA256 digest of this package.
107
107
  :param str summary: A one-line summary of what the package does.
@@ -143,9 +143,9 @@ class ContentPackagesApi(object):
143
143
 
144
144
  all_params = [
145
145
  'relative_path',
146
+ 'repository',
146
147
  'artifact',
147
148
  'file',
148
- 'repository',
149
149
  'upload',
150
150
  'sha256',
151
151
  'summary',
@@ -208,14 +208,14 @@ class ContentPackagesApi(object):
208
208
 
209
209
  form_params = []
210
210
  local_var_files = {}
211
+ if 'repository' in local_var_params:
212
+ form_params.append(('repository', local_var_params['repository'])) # noqa: E501
211
213
  if 'artifact' in local_var_params:
212
214
  form_params.append(('artifact', local_var_params['artifact'])) # noqa: E501
213
215
  if 'relative_path' in local_var_params:
214
216
  form_params.append(('relative_path', local_var_params['relative_path'])) # noqa: E501
215
217
  if 'file' in local_var_params:
216
218
  local_var_files['file'] = local_var_params['file'] # noqa: E501
217
- if 'repository' in local_var_params:
218
- form_params.append(('repository', local_var_params['repository'])) # noqa: E501
219
219
  if 'upload' in local_var_params:
220
220
  form_params.append(('upload', local_var_params['upload'])) # noqa: E501
221
221
  if 'sha256' in local_var_params:
@@ -317,6 +317,7 @@ class ContentPackagesApi(object):
317
317
  :param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
318
318
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
319
319
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
320
+ :param str q:
320
321
  :param str repository_version: Repository Version referenced by HREF
321
322
  :param str repository_version_added: Repository Version referenced by HREF
322
323
  :param str repository_version_removed: Repository Version referenced by HREF
@@ -372,6 +373,7 @@ class ContentPackagesApi(object):
372
373
  :param list[str] packagetype__in: Filter results where packagetype is in a comma-separated list of values
373
374
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
374
375
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
376
+ :param str q:
375
377
  :param str repository_version: Repository Version referenced by HREF
376
378
  :param str repository_version_added: Repository Version referenced by HREF
377
379
  :param str repository_version_removed: Repository Version referenced by HREF
@@ -420,6 +422,7 @@ class ContentPackagesApi(object):
420
422
  'packagetype__in',
421
423
  'pulp_href__in',
422
424
  'pulp_id__in',
425
+ 'q',
423
426
  'repository_version',
424
427
  'repository_version_added',
425
428
  'repository_version_removed',
@@ -499,6 +502,8 @@ class ContentPackagesApi(object):
499
502
  if 'pulp_id__in' in local_var_params and local_var_params['pulp_id__in'] is not None: # noqa: E501
500
503
  query_params.append(('pulp_id__in', local_var_params['pulp_id__in'])) # noqa: E501
501
504
  collection_formats['pulp_id__in'] = 'csv' # noqa: E501
505
+ if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
506
+ query_params.append(('q', local_var_params['q'])) # noqa: E501
502
507
  if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501
503
508
  query_params.append(('repository_version', local_var_params['repository_version'])) # noqa: E501
504
509
  if 'repository_version_added' in local_var_params and local_var_params['repository_version_added'] is not None: # noqa: E501
@@ -287,13 +287,18 @@ class DistributionsPypiApi(object):
287
287
  :param str name: Filter results where name matches value
288
288
  :param str name__contains: Filter results where name contains value
289
289
  :param str name__icontains: Filter results where name contains value
290
+ :param str name__iexact: Filter results where name matches value
290
291
  :param list[str] name__in: Filter results where name is in a comma-separated list of values
292
+ :param str name__iregex: Filter results where name matches regex value
293
+ :param str name__istartswith: Filter results where name starts with value
294
+ :param str name__regex: Filter results where name matches regex value
291
295
  :param str name__startswith: Filter results where name starts with value
292
296
  :param int offset: The initial index from which to return the results.
293
- :param list[str] 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
297
+ :param list[str] 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
294
298
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
295
299
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
296
300
  :param str pulp_label_select: Filter labels by search string
301
+ :param str q:
297
302
  :param str repository: Filter results where repository matches value
298
303
  :param list[str] repository__in: Filter results where repository is in a comma-separated list of values
299
304
  :param str with_content: Filter distributions based on the content served by them
@@ -331,13 +336,18 @@ class DistributionsPypiApi(object):
331
336
  :param str name: Filter results where name matches value
332
337
  :param str name__contains: Filter results where name contains value
333
338
  :param str name__icontains: Filter results where name contains value
339
+ :param str name__iexact: Filter results where name matches value
334
340
  :param list[str] name__in: Filter results where name is in a comma-separated list of values
341
+ :param str name__iregex: Filter results where name matches regex value
342
+ :param str name__istartswith: Filter results where name starts with value
343
+ :param str name__regex: Filter results where name matches regex value
335
344
  :param str name__startswith: Filter results where name starts with value
336
345
  :param int offset: The initial index from which to return the results.
337
- :param list[str] 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
346
+ :param list[str] 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
338
347
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
339
348
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
340
349
  :param str pulp_label_select: Filter labels by search string
350
+ :param str q:
341
351
  :param str repository: Filter results where repository matches value
342
352
  :param list[str] repository__in: Filter results where repository is in a comma-separated list of values
343
353
  :param str with_content: Filter distributions based on the content served by them
@@ -368,13 +378,18 @@ class DistributionsPypiApi(object):
368
378
  'name',
369
379
  'name__contains',
370
380
  'name__icontains',
381
+ 'name__iexact',
371
382
  'name__in',
383
+ 'name__iregex',
384
+ 'name__istartswith',
385
+ 'name__regex',
372
386
  'name__startswith',
373
387
  'offset',
374
388
  'ordering',
375
389
  'pulp_href__in',
376
390
  'pulp_id__in',
377
391
  'pulp_label_select',
392
+ 'q',
378
393
  'repository',
379
394
  'repository__in',
380
395
  'with_content',
@@ -421,9 +436,17 @@ class DistributionsPypiApi(object):
421
436
  query_params.append(('name__contains', local_var_params['name__contains'])) # noqa: E501
422
437
  if 'name__icontains' in local_var_params and local_var_params['name__icontains'] is not None: # noqa: E501
423
438
  query_params.append(('name__icontains', local_var_params['name__icontains'])) # noqa: E501
439
+ if 'name__iexact' in local_var_params and local_var_params['name__iexact'] is not None: # noqa: E501
440
+ query_params.append(('name__iexact', local_var_params['name__iexact'])) # noqa: E501
424
441
  if 'name__in' in local_var_params and local_var_params['name__in'] is not None: # noqa: E501
425
442
  query_params.append(('name__in', local_var_params['name__in'])) # noqa: E501
426
443
  collection_formats['name__in'] = 'csv' # noqa: E501
444
+ if 'name__iregex' in local_var_params and local_var_params['name__iregex'] is not None: # noqa: E501
445
+ query_params.append(('name__iregex', local_var_params['name__iregex'])) # noqa: E501
446
+ if 'name__istartswith' in local_var_params and local_var_params['name__istartswith'] is not None: # noqa: E501
447
+ query_params.append(('name__istartswith', local_var_params['name__istartswith'])) # noqa: E501
448
+ if 'name__regex' in local_var_params and local_var_params['name__regex'] is not None: # noqa: E501
449
+ query_params.append(('name__regex', local_var_params['name__regex'])) # noqa: E501
427
450
  if 'name__startswith' in local_var_params and local_var_params['name__startswith'] is not None: # noqa: E501
428
451
  query_params.append(('name__startswith', local_var_params['name__startswith'])) # noqa: E501
429
452
  if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
@@ -439,6 +462,8 @@ class DistributionsPypiApi(object):
439
462
  collection_formats['pulp_id__in'] = 'csv' # noqa: E501
440
463
  if 'pulp_label_select' in local_var_params and local_var_params['pulp_label_select'] is not None: # noqa: E501
441
464
  query_params.append(('pulp_label_select', local_var_params['pulp_label_select'])) # noqa: E501
465
+ if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
466
+ query_params.append(('q', local_var_params['q'])) # noqa: E501
442
467
  if 'repository' in local_var_params and local_var_params['repository'] is not None: # noqa: E501
443
468
  query_params.append(('repository', local_var_params['repository'])) # noqa: E501
444
469
  if 'repository__in' in local_var_params and local_var_params['repository__in'] is not None: # noqa: E501
@@ -735,6 +760,260 @@ class DistributionsPypiApi(object):
735
760
  _request_timeout=local_var_params.get('_request_timeout'),
736
761
  collection_formats=collection_formats)
737
762
 
763
+ def set_label(self, python_python_distribution_href, set_label, **kwargs): # noqa: E501
764
+ """Set a label # noqa: E501
765
+
766
+ Set a single pulp_label on the object to a specific value or null. # noqa: E501
767
+ This method makes a synchronous HTTP request by default. To make an
768
+ asynchronous HTTP request, please pass async_req=True
769
+ >>> thread = api.set_label(python_python_distribution_href, set_label, async_req=True)
770
+ >>> result = thread.get()
771
+
772
+ :param async_req bool: execute request asynchronously
773
+ :param str python_python_distribution_href: (required)
774
+ :param SetLabel set_label: (required)
775
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
776
+ be returned without reading/decoding response
777
+ data. Default is True.
778
+ :param _request_timeout: timeout setting for this request. If one
779
+ number provided, it will be total request
780
+ timeout. It can also be a pair (tuple) of
781
+ (connection, read) timeouts.
782
+ :return: SetLabelResponse
783
+ If the method is called asynchronously,
784
+ returns the request thread.
785
+ """
786
+ kwargs['_return_http_data_only'] = True
787
+ return self.set_label_with_http_info(python_python_distribution_href, set_label, **kwargs) # noqa: E501
788
+
789
+ def set_label_with_http_info(self, python_python_distribution_href, set_label, **kwargs): # noqa: E501
790
+ """Set a label # noqa: E501
791
+
792
+ Set a single pulp_label on the object to a specific value or null. # noqa: E501
793
+ This method makes a synchronous HTTP request by default. To make an
794
+ asynchronous HTTP request, please pass async_req=True
795
+ >>> thread = api.set_label_with_http_info(python_python_distribution_href, set_label, async_req=True)
796
+ >>> result = thread.get()
797
+
798
+ :param async_req bool: execute request asynchronously
799
+ :param str python_python_distribution_href: (required)
800
+ :param SetLabel set_label: (required)
801
+ :param _return_http_data_only: response data without head status code
802
+ and headers
803
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
804
+ be returned without reading/decoding response
805
+ data. Default is True.
806
+ :param _request_timeout: timeout setting for this request. If one
807
+ number provided, it will be total request
808
+ timeout. It can also be a pair (tuple) of
809
+ (connection, read) timeouts.
810
+ :return: tuple(SetLabelResponse, status_code(int), headers(HTTPHeaderDict))
811
+ If the method is called asynchronously,
812
+ returns the request thread.
813
+ """
814
+
815
+ local_var_params = locals()
816
+
817
+ all_params = [
818
+ 'python_python_distribution_href',
819
+ 'set_label'
820
+ ]
821
+ all_params.extend(
822
+ [
823
+ 'async_req',
824
+ '_return_http_data_only',
825
+ '_preload_content',
826
+ '_request_timeout'
827
+ ]
828
+ )
829
+
830
+ for key, val in six.iteritems(local_var_params['kwargs']):
831
+ if key not in all_params:
832
+ raise ApiTypeError(
833
+ "Got an unexpected keyword argument '%s'"
834
+ " to method set_label" % key
835
+ )
836
+ local_var_params[key] = val
837
+ del local_var_params['kwargs']
838
+ # verify the required parameter 'python_python_distribution_href' is set
839
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
840
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
841
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `set_label`") # noqa: E501
842
+ # verify the required parameter 'set_label' is set
843
+ if self.api_client.client_side_validation and ('set_label' not in local_var_params or # noqa: E501
844
+ local_var_params['set_label'] is None): # noqa: E501
845
+ raise ApiValueError("Missing the required parameter `set_label` when calling `set_label`") # noqa: E501
846
+
847
+ collection_formats = {}
848
+
849
+ path_params = {}
850
+ if 'python_python_distribution_href' in local_var_params:
851
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
852
+
853
+ query_params = []
854
+
855
+ header_params = {}
856
+
857
+ form_params = []
858
+ local_var_files = {}
859
+
860
+ body_params = None
861
+ if 'set_label' in local_var_params:
862
+ body_params = local_var_params['set_label']
863
+ # HTTP header `Accept`
864
+ header_params['Accept'] = self.api_client.select_header_accept(
865
+ ['application/json']) # noqa: E501
866
+
867
+ # HTTP header `Content-Type`
868
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
869
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
870
+
871
+ # Authentication setting
872
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
873
+
874
+ return self.api_client.call_api(
875
+ '{python_python_distribution_href}set_label/', 'POST',
876
+ path_params,
877
+ query_params,
878
+ header_params,
879
+ body=body_params,
880
+ post_params=form_params,
881
+ files=local_var_files,
882
+ response_type='SetLabelResponse', # noqa: E501
883
+ auth_settings=auth_settings,
884
+ async_req=local_var_params.get('async_req'),
885
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
886
+ _preload_content=local_var_params.get('_preload_content', True),
887
+ _request_timeout=local_var_params.get('_request_timeout'),
888
+ collection_formats=collection_formats)
889
+
890
+ def unset_label(self, python_python_distribution_href, unset_label, **kwargs): # noqa: E501
891
+ """Unset a label # noqa: E501
892
+
893
+ Unset a single pulp_label on the object. # noqa: E501
894
+ This method makes a synchronous HTTP request by default. To make an
895
+ asynchronous HTTP request, please pass async_req=True
896
+ >>> thread = api.unset_label(python_python_distribution_href, unset_label, async_req=True)
897
+ >>> result = thread.get()
898
+
899
+ :param async_req bool: execute request asynchronously
900
+ :param str python_python_distribution_href: (required)
901
+ :param UnsetLabel unset_label: (required)
902
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
903
+ be returned without reading/decoding response
904
+ data. Default is True.
905
+ :param _request_timeout: timeout setting for this request. If one
906
+ number provided, it will be total request
907
+ timeout. It can also be a pair (tuple) of
908
+ (connection, read) timeouts.
909
+ :return: UnsetLabelResponse
910
+ If the method is called asynchronously,
911
+ returns the request thread.
912
+ """
913
+ kwargs['_return_http_data_only'] = True
914
+ return self.unset_label_with_http_info(python_python_distribution_href, unset_label, **kwargs) # noqa: E501
915
+
916
+ def unset_label_with_http_info(self, python_python_distribution_href, unset_label, **kwargs): # noqa: E501
917
+ """Unset a label # noqa: E501
918
+
919
+ Unset a single pulp_label on the object. # noqa: E501
920
+ This method makes a synchronous HTTP request by default. To make an
921
+ asynchronous HTTP request, please pass async_req=True
922
+ >>> thread = api.unset_label_with_http_info(python_python_distribution_href, unset_label, async_req=True)
923
+ >>> result = thread.get()
924
+
925
+ :param async_req bool: execute request asynchronously
926
+ :param str python_python_distribution_href: (required)
927
+ :param UnsetLabel unset_label: (required)
928
+ :param _return_http_data_only: response data without head status code
929
+ and headers
930
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
931
+ be returned without reading/decoding response
932
+ data. Default is True.
933
+ :param _request_timeout: timeout setting for this request. If one
934
+ number provided, it will be total request
935
+ timeout. It can also be a pair (tuple) of
936
+ (connection, read) timeouts.
937
+ :return: tuple(UnsetLabelResponse, status_code(int), headers(HTTPHeaderDict))
938
+ If the method is called asynchronously,
939
+ returns the request thread.
940
+ """
941
+
942
+ local_var_params = locals()
943
+
944
+ all_params = [
945
+ 'python_python_distribution_href',
946
+ 'unset_label'
947
+ ]
948
+ all_params.extend(
949
+ [
950
+ 'async_req',
951
+ '_return_http_data_only',
952
+ '_preload_content',
953
+ '_request_timeout'
954
+ ]
955
+ )
956
+
957
+ for key, val in six.iteritems(local_var_params['kwargs']):
958
+ if key not in all_params:
959
+ raise ApiTypeError(
960
+ "Got an unexpected keyword argument '%s'"
961
+ " to method unset_label" % key
962
+ )
963
+ local_var_params[key] = val
964
+ del local_var_params['kwargs']
965
+ # verify the required parameter 'python_python_distribution_href' is set
966
+ if self.api_client.client_side_validation and ('python_python_distribution_href' not in local_var_params or # noqa: E501
967
+ local_var_params['python_python_distribution_href'] is None): # noqa: E501
968
+ raise ApiValueError("Missing the required parameter `python_python_distribution_href` when calling `unset_label`") # noqa: E501
969
+ # verify the required parameter 'unset_label' is set
970
+ if self.api_client.client_side_validation and ('unset_label' not in local_var_params or # noqa: E501
971
+ local_var_params['unset_label'] is None): # noqa: E501
972
+ raise ApiValueError("Missing the required parameter `unset_label` when calling `unset_label`") # noqa: E501
973
+
974
+ collection_formats = {}
975
+
976
+ path_params = {}
977
+ if 'python_python_distribution_href' in local_var_params:
978
+ path_params['python_python_distribution_href'] = local_var_params['python_python_distribution_href'] # noqa: E501
979
+
980
+ query_params = []
981
+
982
+ header_params = {}
983
+
984
+ form_params = []
985
+ local_var_files = {}
986
+
987
+ body_params = None
988
+ if 'unset_label' in local_var_params:
989
+ body_params = local_var_params['unset_label']
990
+ # HTTP header `Accept`
991
+ header_params['Accept'] = self.api_client.select_header_accept(
992
+ ['application/json']) # noqa: E501
993
+
994
+ # HTTP header `Content-Type`
995
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
996
+ ['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # noqa: E501
997
+
998
+ # Authentication setting
999
+ auth_settings = ['basicAuth', 'cookieAuth'] # noqa: E501
1000
+
1001
+ return self.api_client.call_api(
1002
+ '{python_python_distribution_href}unset_label/', 'POST',
1003
+ path_params,
1004
+ query_params,
1005
+ header_params,
1006
+ body=body_params,
1007
+ post_params=form_params,
1008
+ files=local_var_files,
1009
+ response_type='UnsetLabelResponse', # noqa: E501
1010
+ auth_settings=auth_settings,
1011
+ async_req=local_var_params.get('async_req'),
1012
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1013
+ _preload_content=local_var_params.get('_preload_content', True),
1014
+ _request_timeout=local_var_params.get('_request_timeout'),
1015
+ collection_formats=collection_formats)
1016
+
738
1017
  def update(self, python_python_distribution_href, python_python_distribution, **kwargs): # noqa: E501
739
1018
  """Update a python distribution # noqa: E501
740
1019
 
@@ -288,6 +288,7 @@ class PublicationsPypiApi(object):
288
288
  :param list[datetime] pulp_created__range: Filter results where pulp_created is between two comma separated values
289
289
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
290
290
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
291
+ :param str q:
291
292
  :param str repository: Repository referenced by HREF
292
293
  :param str repository_version: Repository Version referenced by HREF
293
294
  :param list[str] fields: A list of fields to include in the response.
@@ -329,6 +330,7 @@ class PublicationsPypiApi(object):
329
330
  :param list[datetime] pulp_created__range: Filter results where pulp_created is between two comma separated values
330
331
  :param list[str] pulp_href__in: Multiple values may be separated by commas.
331
332
  :param list[str] pulp_id__in: Multiple values may be separated by commas.
333
+ :param str q:
332
334
  :param str repository: Repository referenced by HREF
333
335
  :param str repository_version: Repository Version referenced by HREF
334
336
  :param list[str] fields: A list of fields to include in the response.
@@ -363,6 +365,7 @@ class PublicationsPypiApi(object):
363
365
  'pulp_created__range',
364
366
  'pulp_href__in',
365
367
  'pulp_id__in',
368
+ 'q',
366
369
  'repository',
367
370
  'repository_version',
368
371
  'fields',
@@ -421,6 +424,8 @@ class PublicationsPypiApi(object):
421
424
  if 'pulp_id__in' in local_var_params and local_var_params['pulp_id__in'] is not None: # noqa: E501
422
425
  query_params.append(('pulp_id__in', local_var_params['pulp_id__in'])) # noqa: E501
423
426
  collection_formats['pulp_id__in'] = 'csv' # noqa: E501
427
+ if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
428
+ query_params.append(('q', local_var_params['q'])) # noqa: E501
424
429
  if 'repository' in local_var_params and local_var_params['repository'] is not None: # noqa: E501
425
430
  query_params.append(('repository', local_var_params['repository'])) # noqa: E501
426
431
  if 'repository_version' in local_var_params and local_var_params['repository_version'] is not None: # noqa: E501