pulp_python_client 3.12.5 → 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -16
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentPackagesApi.md +170 -120
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsPypiApi.md +385 -182
- data/docs/ExcludePlatformsEnum.md +4 -5
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PackageMetadataResponse.md +14 -13
- data/docs/PackageTypesEnum.md +4 -5
- data/docs/PackageUploadTaskResponse.md +12 -11
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedpythonPythonDistributionResponseList.md +14 -13
- data/docs/PaginatedpythonPythonPackageContentResponseList.md +14 -13
- data/docs/PaginatedpythonPythonPublicationResponseList.md +14 -13
- data/docs/PaginatedpythonPythonRemoteResponseList.md +14 -13
- data/docs/PaginatedpythonPythonRepositoryResponseList.md +14 -13
- data/docs/PatchedpythonPythonDistribution.md +24 -23
- data/docs/PatchedpythonPythonRemote.md +60 -59
- data/docs/PatchedpythonPythonRepository.md +18 -17
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsPypiApi.md +267 -130
- data/docs/PypiApi.md +33 -17
- data/docs/PypiLegacyApi.md +34 -18
- data/docs/PypiMetadataApi.md +34 -18
- data/docs/PypiSimpleApi.md +95 -45
- data/docs/PythonPythonDistribution.md +24 -23
- data/docs/PythonPythonDistributionResponse.md +36 -35
- data/docs/PythonPythonPackageContentResponse.md +70 -69
- data/docs/PythonPythonPublication.md +10 -9
- data/docs/PythonPythonPublicationResponse.md +20 -19
- data/docs/PythonPythonRemote.md +60 -59
- data/docs/PythonPythonRemoteResponse.md +60 -59
- data/docs/PythonPythonRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/PythonPythonRepository.md +18 -17
- data/docs/PythonPythonRepositoryResponse.md +30 -29
- data/docs/RemotesPythonApi.md +420 -198
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesPythonApi.md +444 -207
- data/docs/RepositoriesPythonVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/SummaryResponse.md +12 -11
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +21 -15
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +89 -56
- data/lib/pulp_python_client/api/publications_pypi_api.rb +67 -47
- data/lib/pulp_python_client/api/pypi_api.rb +6 -5
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +11 -7
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +6 -5
- data/lib/pulp_python_client/api/pypi_simple_api.rb +19 -13
- data/lib/pulp_python_client/api/remotes_python_api.rb +113 -73
- data/lib/pulp_python_client/api/repositories_python_api.rb +107 -66
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +40 -30
- data/lib/pulp_python_client/api_client.rb +137 -102
- data/lib/pulp_python_client/api_error.rb +2 -1
- data/lib/pulp_python_client/configuration.rb +162 -21
- data/lib/pulp_python_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_python_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_python_client/models/exclude_platforms_enum.rb +8 -4
- data/lib/pulp_python_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_python_client/models/nested_role.rb +32 -22
- data/lib/pulp_python_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_python_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_python_client/models/package_metadata_response.rb +41 -37
- data/lib/pulp_python_client/models/package_types_enum.rb +8 -4
- data/lib/pulp_python_client/models/package_upload_task_response.rb +37 -23
- data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +34 -22
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +34 -22
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +40 -24
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +82 -44
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +35 -23
- data/lib/pulp_python_client/models/policy_enum.rb +8 -4
- data/lib/pulp_python_client/models/python_python_distribution.rb +34 -22
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +36 -24
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +38 -24
- data/lib/pulp_python_client/models/python_python_publication.rb +30 -22
- data/lib/pulp_python_client/models/python_python_publication_response.rb +32 -24
- data/lib/pulp_python_client/models/python_python_remote.rb +76 -42
- data/lib/pulp_python_client/models/python_python_remote_response.rb +79 -45
- data/lib/pulp_python_client/models/{python_python_remote_response_hidden_fields.rb → python_python_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_python_client/models/python_python_repository.rb +32 -22
- data/lib/pulp_python_client/models/python_python_repository_response.rb +34 -24
- data/lib/pulp_python_client/models/repair.rb +30 -22
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_python_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_python_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_python_client/models/set_label.rb +34 -22
- data/lib/pulp_python_client/models/set_label_response.rb +34 -22
- data/lib/pulp_python_client/models/summary_response.rb +36 -22
- data/lib/pulp_python_client/models/unset_label.rb +32 -22
- data/lib/pulp_python_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_python_client/version.rb +2 -2
- data/lib/pulp_python_client.rb +2 -5
- data/pulp_python_client.gemspec +9 -6
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/distributions_pypi_api_spec.rb +13 -13
- data/spec/api/publications_pypi_api_spec.rb +16 -15
- data/spec/api/pypi_api_spec.rb +2 -2
- data/spec/api/pypi_legacy_api_spec.rb +2 -2
- data/spec/api/pypi_metadata_api_spec.rb +2 -2
- data/spec/api/pypi_simple_api_spec.rb +4 -4
- data/spec/api/remotes_python_api_spec.rb +21 -20
- data/spec/api/repositories_python_api_spec.rb +15 -15
- data/spec/api/repositories_python_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/exclude_platforms_enum_spec.rb +6 -11
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/package_metadata_response_spec.rb +10 -15
- data/spec/models/package_types_enum_spec.rb +6 -11
- data/spec/models/package_upload_task_response_spec.rb +9 -14
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedpython_python_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedpython_python_distribution_spec.rb +15 -20
- data/spec/models/patchedpython_python_remote_spec.rb +33 -38
- data/spec/models/patchedpython_python_repository_spec.rb +12 -17
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/python_python_distribution_response_spec.rb +21 -26
- data/spec/models/python_python_distribution_spec.rb +15 -20
- data/spec/models/python_python_package_content_response_spec.rb +38 -43
- data/spec/models/python_python_publication_response_spec.rb +13 -18
- data/spec/models/python_python_publication_spec.rb +8 -13
- data/spec/models/{python_python_remote_response_hidden_fields_spec.rb → python_python_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/python_python_remote_response_spec.rb +33 -38
- data/spec/models/python_python_remote_spec.rb +33 -38
- data/spec/models/python_python_repository_response_spec.rb +18 -23
- data/spec/models/python_python_repository_spec.rb +12 -17
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/summary_response_spec.rb +9 -14
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +81 -69
- data/docs/PackageUpload.md +0 -21
- data/docs/PythonBanderRemote.md +0 -21
- data/docs/PythonPythonPackageContent.md +0 -71
- data/docs/PythonPythonRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_python_client/models/package_upload.rb +0 -283
- data/lib/pulp_python_client/models/python_bander_remote.rb +0 -257
- data/lib/pulp_python_client/models/python_python_package_content.rb +0 -534
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/package_upload_spec.rb +0 -53
- data/spec/models/python_bander_remote_spec.rb +0 -53
- data/spec/models/python_python_package_content_spec.rb +0 -203
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3247afef6bcc3b645cec68e8f63a721c6b07c2519de36afb5bf98c2e55b1cc
|
4
|
+
data.tar.gz: 0b5f8ab4b1d4a24b4fb064bae5efcee7580dfb6484b941f8314ed1daed16e9fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21df1e1aaa4e77bbae703962c970352ed599a678b74bf1161ad4cf9312a4713fdbc8daa4d9314e966e0351dd75216be644f0b5e748a07f6df0fef7680edf7535
|
7
|
+
data.tar.gz: 6463bccb88b33cffce4b2a82bef58ce3b038f46d73d610595bcc28643bb76da0e08f628499cb9cd722738f895c81b0276edec9ad5ac193690c653af8e1480a7e
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.
|
10
|
+
- Package version: 3.13.0
|
11
|
+
- Generator version: 7.10.0
|
11
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
14
|
|
@@ -24,16 +25,16 @@ gem build pulp_python_client.gemspec
|
|
24
25
|
Then either install the gem locally:
|
25
26
|
|
26
27
|
```shell
|
27
|
-
gem install ./pulp_python_client-3.
|
28
|
+
gem install ./pulp_python_client-3.13.0.gem
|
28
29
|
```
|
29
30
|
|
30
|
-
(for development, run `gem install --dev ./pulp_python_client-3.
|
31
|
+
(for development, run `gem install --dev ./pulp_python_client-3.13.0.gem` to install the development dependencies)
|
31
32
|
|
32
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
34
|
|
34
35
|
Finally add this to the Gemfile:
|
35
36
|
|
36
|
-
gem 'pulp_python_client', '~> 3.
|
37
|
+
gem 'pulp_python_client', '~> 3.13.0'
|
37
38
|
|
38
39
|
### Install from Git
|
39
40
|
|
@@ -62,6 +63,8 @@ PulpPythonClient.configure do |config|
|
|
62
63
|
# Configure HTTP basic authorization: basicAuth
|
63
64
|
config.username = 'YOUR_USERNAME'
|
64
65
|
config.password = 'YOUR_PASSWORD'
|
66
|
+
# Configure faraday connection
|
67
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
65
68
|
end
|
66
69
|
|
67
70
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
@@ -69,10 +72,10 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
69
72
|
opts = {
|
70
73
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
71
74
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
72
|
-
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
75
|
+
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
73
76
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
74
77
|
file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
|
75
|
-
sha256: '', # String | The SHA256 digest of this package.
|
78
|
+
sha256: 'sha256_example', # String | The SHA256 digest of this package.
|
76
79
|
summary: 'summary_example', # String | A one-line summary of what the package does.
|
77
80
|
description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
|
78
81
|
description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
|
@@ -86,14 +89,14 @@ opts = {
|
|
86
89
|
license: 'license_example', # String | Text indicating the license covering the distribution
|
87
90
|
requires_python: 'requires_python_example', # String | The Python version(s) that the distribution is guaranteed to be compatible with.
|
88
91
|
project_url: 'project_url_example', # String | A browsable URL for the project and a label for it, separated by a comma.
|
89
|
-
project_urls:
|
92
|
+
project_urls: TODO, # Object | A dictionary of labels and URLs for the project.
|
90
93
|
platform: 'platform_example', # String | A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
91
94
|
supported_platform: 'supported_platform_example', # String | Field to specify the OS and CPU for which the binary package was compiled.
|
92
|
-
requires_dist:
|
93
|
-
provides_dist:
|
94
|
-
obsoletes_dist:
|
95
|
-
requires_external:
|
96
|
-
classifiers:
|
95
|
+
requires_dist: TODO, # Object | A JSON list containing names of some other distutils project required by this distribution.
|
96
|
+
provides_dist: TODO, # Object | A JSON list containing names of a Distutils project which is contained within this distribution.
|
97
|
+
obsoletes_dist: TODO, # Object | A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
98
|
+
requires_external: TODO, # Object | A JSON list containing some dependency in the system that the distribution is to be used.
|
99
|
+
classifiers: TODO # Object | A JSON list containing classification values for a Python package.
|
97
100
|
}
|
98
101
|
|
99
102
|
begin
|
@@ -185,7 +188,6 @@ Class | Method | HTTP request | Description
|
|
185
188
|
- [PulpPythonClient::ObjectRolesResponse](docs/ObjectRolesResponse.md)
|
186
189
|
- [PulpPythonClient::PackageMetadataResponse](docs/PackageMetadataResponse.md)
|
187
190
|
- [PulpPythonClient::PackageTypesEnum](docs/PackageTypesEnum.md)
|
188
|
-
- [PulpPythonClient::PackageUpload](docs/PackageUpload.md)
|
189
191
|
- [PulpPythonClient::PackageUploadTaskResponse](docs/PackageUploadTaskResponse.md)
|
190
192
|
- [PulpPythonClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
|
191
193
|
- [PulpPythonClient::PaginatedpythonPythonDistributionResponseList](docs/PaginatedpythonPythonDistributionResponseList.md)
|
@@ -197,16 +199,14 @@ Class | Method | HTTP request | Description
|
|
197
199
|
- [PulpPythonClient::PatchedpythonPythonRemote](docs/PatchedpythonPythonRemote.md)
|
198
200
|
- [PulpPythonClient::PatchedpythonPythonRepository](docs/PatchedpythonPythonRepository.md)
|
199
201
|
- [PulpPythonClient::PolicyEnum](docs/PolicyEnum.md)
|
200
|
-
- [PulpPythonClient::PythonBanderRemote](docs/PythonBanderRemote.md)
|
201
202
|
- [PulpPythonClient::PythonPythonDistribution](docs/PythonPythonDistribution.md)
|
202
203
|
- [PulpPythonClient::PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md)
|
203
|
-
- [PulpPythonClient::PythonPythonPackageContent](docs/PythonPythonPackageContent.md)
|
204
204
|
- [PulpPythonClient::PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md)
|
205
205
|
- [PulpPythonClient::PythonPythonPublication](docs/PythonPythonPublication.md)
|
206
206
|
- [PulpPythonClient::PythonPythonPublicationResponse](docs/PythonPythonPublicationResponse.md)
|
207
207
|
- [PulpPythonClient::PythonPythonRemote](docs/PythonPythonRemote.md)
|
208
208
|
- [PulpPythonClient::PythonPythonRemoteResponse](docs/PythonPythonRemoteResponse.md)
|
209
|
-
- [PulpPythonClient::
|
209
|
+
- [PulpPythonClient::PythonPythonRemoteResponseHiddenFieldsInner](docs/PythonPythonRemoteResponseHiddenFieldsInner.md)
|
210
210
|
- [PulpPythonClient::PythonPythonRepository](docs/PythonPythonRepository.md)
|
211
211
|
- [PulpPythonClient::PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
212
212
|
- [PulpPythonClient::Repair](docs/Repair.md)
|
@@ -223,6 +223,7 @@ Class | Method | HTTP request | Description
|
|
223
223
|
## Documentation for Authorization
|
224
224
|
|
225
225
|
|
226
|
+
Authentication schemes defined for the API:
|
226
227
|
### basicAuth
|
227
228
|
|
228
229
|
- **Type**: HTTP basic authentication
|
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**task** | **String** | The href of the task. |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **task** | **String** | The href of the task. | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_python_client'
|
13
13
|
|
14
|
-
instance = PulpPythonClient::AsyncOperationResponse.new(
|
14
|
+
instance = PulpPythonClient::AsyncOperationResponse.new(
|
15
|
+
task: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -2,26 +2,25 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/python/packages/ | Create a python package content
|
8
|
-
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/python/packages/ | List python package contents
|
9
|
-
[**read**](ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/python/packages/ | Create a python package content |
|
8
|
+
| [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/python/packages/ | List python package contents |
|
9
|
+
| [**read**](ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content |
|
11
10
|
|
12
11
|
|
13
12
|
## create
|
14
13
|
|
15
|
-
> AsyncOperationResponse create(relative_path, opts)
|
14
|
+
> <AsyncOperationResponse> create(relative_path, opts)
|
16
15
|
|
17
16
|
Create a python package content
|
18
17
|
|
19
18
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
19
|
|
21
|
-
###
|
20
|
+
### Examples
|
22
21
|
|
23
22
|
```ruby
|
24
|
-
|
23
|
+
require 'time'
|
25
24
|
require 'pulp_python_client'
|
26
25
|
# setup authorization
|
27
26
|
PulpPythonClient.configure do |config|
|
@@ -35,10 +34,10 @@ relative_path = 'relative_path_example' # String | Path where the artifact is lo
|
|
35
34
|
opts = {
|
36
35
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
37
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
38
|
-
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
37
|
+
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
39
38
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
39
|
file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
|
41
|
-
sha256: '', # String | The SHA256 digest of this package.
|
40
|
+
sha256: 'sha256_example', # String | The SHA256 digest of this package.
|
42
41
|
summary: 'summary_example', # String | A one-line summary of what the package does.
|
43
42
|
description: 'description_example', # String | A longer description of the package that can run to several paragraphs.
|
44
43
|
description_content_type: 'description_content_type_example', # String | A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
|
@@ -52,58 +51,75 @@ opts = {
|
|
52
51
|
license: 'license_example', # String | Text indicating the license covering the distribution
|
53
52
|
requires_python: 'requires_python_example', # String | The Python version(s) that the distribution is guaranteed to be compatible with.
|
54
53
|
project_url: 'project_url_example', # String | A browsable URL for the project and a label for it, separated by a comma.
|
55
|
-
project_urls:
|
54
|
+
project_urls: TODO, # Object | A dictionary of labels and URLs for the project.
|
56
55
|
platform: 'platform_example', # String | A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
57
56
|
supported_platform: 'supported_platform_example', # String | Field to specify the OS and CPU for which the binary package was compiled.
|
58
|
-
requires_dist:
|
59
|
-
provides_dist:
|
60
|
-
obsoletes_dist:
|
61
|
-
requires_external:
|
62
|
-
classifiers:
|
57
|
+
requires_dist: TODO, # Object | A JSON list containing names of some other distutils project required by this distribution.
|
58
|
+
provides_dist: TODO, # Object | A JSON list containing names of a Distutils project which is contained within this distribution.
|
59
|
+
obsoletes_dist: TODO, # Object | A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
60
|
+
requires_external: TODO, # Object | A JSON list containing some dependency in the system that the distribution is to be used.
|
61
|
+
classifiers: TODO # Object | A JSON list containing classification values for a Python package.
|
63
62
|
}
|
64
63
|
|
65
64
|
begin
|
66
|
-
#Create a python package content
|
65
|
+
# Create a python package content
|
67
66
|
result = api_instance.create(relative_path, opts)
|
68
67
|
p result
|
69
68
|
rescue PulpPythonClient::ApiError => e
|
70
|
-
puts "
|
69
|
+
puts "Error when calling ContentPackagesApi->create: #{e}"
|
71
70
|
end
|
72
71
|
```
|
73
72
|
|
74
|
-
|
73
|
+
#### Using the create_with_http_info variant
|
74
|
+
|
75
|
+
This returns an Array which contains the response data, status code and headers.
|
76
|
+
|
77
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(relative_path, opts)
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
begin
|
81
|
+
# Create a python package content
|
82
|
+
data, status_code, headers = api_instance.create_with_http_info(relative_path, opts)
|
83
|
+
p status_code # => 2xx
|
84
|
+
p headers # => { ... }
|
85
|
+
p data # => <AsyncOperationResponse>
|
86
|
+
rescue PulpPythonClient::ApiError => e
|
87
|
+
puts "Error when calling ContentPackagesApi->create_with_http_info: #{e}"
|
88
|
+
end
|
89
|
+
```
|
75
90
|
|
91
|
+
### Parameters
|
76
92
|
|
77
|
-
Name | Type | Description
|
78
|
-
|
79
|
-
**relative_path** | **String
|
80
|
-
**repository** | **String
|
81
|
-
**artifact** | **String
|
82
|
-
**file** | **File
|
83
|
-
**upload** | **String
|
84
|
-
**file_url** | **String
|
85
|
-
**sha256** | **String
|
86
|
-
**summary** | **String
|
87
|
-
**description** | **String
|
88
|
-
**description_content_type** | **String
|
89
|
-
**keywords** | **String
|
90
|
-
**home_page** | **String
|
91
|
-
**download_url** | **String
|
92
|
-
**author** | **String
|
93
|
-
**author_email** | **String
|
94
|
-
**maintainer** | **String
|
95
|
-
**maintainer_email** | **String
|
96
|
-
**license** | **String
|
97
|
-
**requires_python** | **String
|
98
|
-
**project_url** | **String
|
99
|
-
**project_urls** | [**Object**](Object.md)| A dictionary of labels and URLs for the project. | [optional]
|
100
|
-
**platform** | **String
|
101
|
-
**supported_platform** | **String
|
102
|
-
**requires_dist** | [**Object**](Object.md)| A JSON list containing names of some other distutils project required by this distribution. | [optional]
|
103
|
-
**provides_dist** | [**Object**](Object.md)| A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
|
104
|
-
**obsoletes_dist** | [**Object**](Object.md)| A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. | [optional]
|
105
|
-
**requires_external** | [**Object**](Object.md)| A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
|
106
|
-
**classifiers** | [**Object**](Object.md)| A JSON list containing classification values for a Python package. | [optional]
|
93
|
+
| Name | Type | Description | Notes |
|
94
|
+
| ---- | ---- | ----------- | ----- |
|
95
|
+
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
96
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
97
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
98
|
+
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
99
|
+
| **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
|
100
|
+
| **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
|
101
|
+
| **sha256** | **String** | The SHA256 digest of this package. | [optional][default to ''] |
|
102
|
+
| **summary** | **String** | A one-line summary of what the package does. | [optional] |
|
103
|
+
| **description** | **String** | A longer description of the package that can run to several paragraphs. | [optional] |
|
104
|
+
| **description_content_type** | **String** | A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description. | [optional] |
|
105
|
+
| **keywords** | **String** | Additional keywords to be used to assist searching for the package in a larger catalog. | [optional] |
|
106
|
+
| **home_page** | **String** | The URL for the package's home page. | [optional] |
|
107
|
+
| **download_url** | **String** | Legacy field denoting the URL from which this package can be downloaded. | [optional] |
|
108
|
+
| **author** | **String** | Text containing the author's name. Contact information can also be added, separated with newlines. | [optional] |
|
109
|
+
| **author_email** | **String** | The author's e-mail address. | [optional] |
|
110
|
+
| **maintainer** | **String** | The maintainer's name at a minimum; additional contact information may be provided. | [optional] |
|
111
|
+
| **maintainer_email** | **String** | The maintainer's e-mail address. | [optional] |
|
112
|
+
| **license** | **String** | Text indicating the license covering the distribution | [optional] |
|
113
|
+
| **requires_python** | **String** | The Python version(s) that the distribution is guaranteed to be compatible with. | [optional] |
|
114
|
+
| **project_url** | **String** | A browsable URL for the project and a label for it, separated by a comma. | [optional] |
|
115
|
+
| **project_urls** | [**Object**](Object.md) | A dictionary of labels and URLs for the project. | [optional] |
|
116
|
+
| **platform** | **String** | A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional] |
|
117
|
+
| **supported_platform** | **String** | Field to specify the OS and CPU for which the binary package was compiled. | [optional] |
|
118
|
+
| **requires_dist** | [**Object**](Object.md) | A JSON list containing names of some other distutils project required by this distribution. | [optional] |
|
119
|
+
| **provides_dist** | [**Object**](Object.md) | A JSON list containing names of a Distutils project which is contained within this distribution. | [optional] |
|
120
|
+
| **obsoletes_dist** | [**Object**](Object.md) | A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time. | [optional] |
|
121
|
+
| **requires_external** | [**Object**](Object.md) | A JSON list containing some dependency in the system that the distribution is to be used. | [optional] |
|
122
|
+
| **classifiers** | [**Object**](Object.md) | A JSON list containing classification values for a Python package. | [optional] |
|
107
123
|
|
108
124
|
### Return type
|
109
125
|
|
@@ -121,16 +137,16 @@ Name | Type | Description | Notes
|
|
121
137
|
|
122
138
|
## list
|
123
139
|
|
124
|
-
> PaginatedpythonPythonPackageContentResponseList list(opts)
|
140
|
+
> <PaginatedpythonPythonPackageContentResponseList> list(opts)
|
125
141
|
|
126
142
|
List python package contents
|
127
143
|
|
128
144
|
PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
129
145
|
|
130
|
-
###
|
146
|
+
### Examples
|
131
147
|
|
132
148
|
```ruby
|
133
|
-
|
149
|
+
require 'time'
|
134
150
|
require 'pulp_python_client'
|
135
151
|
# setup authorization
|
136
152
|
PulpPythonClient.configure do |config|
|
@@ -142,89 +158,106 @@ end
|
|
142
158
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
143
159
|
opts = {
|
144
160
|
author: 'author_example', # String | Filter results where author matches value
|
145
|
-
author__in: ['
|
161
|
+
author__in: ['inner_example'], # Array<String> | Filter results where author is in a comma-separated list of values
|
146
162
|
filename: 'filename_example', # String | Filter results where filename matches value
|
147
163
|
filename__contains: 'filename__contains_example', # String | Filter results where filename contains value
|
148
|
-
filename__in: ['
|
164
|
+
filename__in: ['inner_example'], # Array<String> | Filter results where filename is in a comma-separated list of values
|
149
165
|
keywords__contains: 'keywords__contains_example', # String | Filter results where keywords contains value
|
150
|
-
keywords__in: ['
|
166
|
+
keywords__in: ['inner_example'], # Array<String> | Filter results where keywords is in a comma-separated list of values
|
151
167
|
limit: 56, # Integer | Number of results to return per page.
|
152
168
|
name: 'name_example', # String | Filter results where name matches value
|
153
|
-
name__in: ['
|
169
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
154
170
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
-
ordering: ['
|
156
|
-
orphaned_for:
|
157
|
-
packagetype: '
|
158
|
-
packagetype__in: ['
|
159
|
-
prn__in: ['
|
160
|
-
pulp_href__in: ['
|
161
|
-
pulp_id__in: ['
|
171
|
+
ordering: ['-author'], # Array<String> | 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)
|
172
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
173
|
+
packagetype: 'bdist_dmg', # String | 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
|
174
|
+
packagetype__in: ['inner_example'], # Array<String> | Filter results where packagetype is in a comma-separated list of values
|
175
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
176
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
177
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
162
178
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
163
179
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
164
180
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
165
181
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
166
182
|
requires_python: 'requires_python_example', # String | Filter results where requires_python matches value
|
167
183
|
requires_python__contains: 'requires_python__contains_example', # String | Filter results where requires_python contains value
|
168
|
-
requires_python__in: ['
|
184
|
+
requires_python__in: ['inner_example'], # Array<String> | Filter results where requires_python is in a comma-separated list of values
|
169
185
|
sha256: 'sha256_example', # String | Filter results where sha256 matches value
|
170
|
-
sha256__in: ['
|
186
|
+
sha256__in: ['inner_example'], # Array<String> | Filter results where sha256 is in a comma-separated list of values
|
171
187
|
version: 'version_example', # String | Filter results where version matches value
|
172
188
|
version__gt: 'version__gt_example', # String | Filter results where version is greater than value
|
173
189
|
version__gte: 'version__gte_example', # String | Filter results where version is greater than or equal to value
|
174
190
|
version__lt: 'version__lt_example', # String | Filter results where version is less than value
|
175
191
|
version__lte: 'version__lte_example', # String | Filter results where version is less than or equal to value
|
176
|
-
fields: ['
|
177
|
-
exclude_fields: ['
|
192
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
193
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
178
194
|
}
|
179
195
|
|
180
196
|
begin
|
181
|
-
#List python package contents
|
197
|
+
# List python package contents
|
182
198
|
result = api_instance.list(opts)
|
183
199
|
p result
|
184
200
|
rescue PulpPythonClient::ApiError => e
|
185
|
-
puts "
|
201
|
+
puts "Error when calling ContentPackagesApi->list: #{e}"
|
186
202
|
end
|
187
203
|
```
|
188
204
|
|
189
|
-
|
205
|
+
#### Using the list_with_http_info variant
|
190
206
|
|
207
|
+
This returns an Array which contains the response data, status code and headers.
|
191
208
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
**
|
211
|
-
**
|
212
|
-
**
|
213
|
-
**
|
214
|
-
**
|
215
|
-
**
|
216
|
-
**
|
217
|
-
**
|
218
|
-
**
|
219
|
-
**
|
220
|
-
**
|
221
|
-
**
|
222
|
-
**
|
223
|
-
**
|
224
|
-
**
|
225
|
-
**
|
226
|
-
**
|
227
|
-
**
|
209
|
+
> <Array(<PaginatedpythonPythonPackageContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
210
|
+
|
211
|
+
```ruby
|
212
|
+
begin
|
213
|
+
# List python package contents
|
214
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
215
|
+
p status_code # => 2xx
|
216
|
+
p headers # => { ... }
|
217
|
+
p data # => <PaginatedpythonPythonPackageContentResponseList>
|
218
|
+
rescue PulpPythonClient::ApiError => e
|
219
|
+
puts "Error when calling ContentPackagesApi->list_with_http_info: #{e}"
|
220
|
+
end
|
221
|
+
```
|
222
|
+
|
223
|
+
### Parameters
|
224
|
+
|
225
|
+
| Name | Type | Description | Notes |
|
226
|
+
| ---- | ---- | ----------- | ----- |
|
227
|
+
| **author** | **String** | Filter results where author matches value | [optional] |
|
228
|
+
| **author__in** | [**Array<String>**](String.md) | Filter results where author is in a comma-separated list of values | [optional] |
|
229
|
+
| **filename** | **String** | Filter results where filename matches value | [optional] |
|
230
|
+
| **filename__contains** | **String** | Filter results where filename contains value | [optional] |
|
231
|
+
| **filename__in** | [**Array<String>**](String.md) | Filter results where filename is in a comma-separated list of values | [optional] |
|
232
|
+
| **keywords__contains** | **String** | Filter results where keywords contains value | [optional] |
|
233
|
+
| **keywords__in** | [**Array<String>**](String.md) | Filter results where keywords is in a comma-separated list of values | [optional] |
|
234
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
235
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
236
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
237
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
238
|
+
| **ordering** | [**Array<String>**](String.md) | 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) | [optional] |
|
239
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
240
|
+
| **packagetype** | **String** | 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 | [optional] |
|
241
|
+
| **packagetype__in** | [**Array<String>**](String.md) | Filter results where packagetype is in a comma-separated list of values | [optional] |
|
242
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
243
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
244
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
245
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
246
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
247
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
248
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
249
|
+
| **requires_python** | **String** | Filter results where requires_python matches value | [optional] |
|
250
|
+
| **requires_python__contains** | **String** | Filter results where requires_python contains value | [optional] |
|
251
|
+
| **requires_python__in** | [**Array<String>**](String.md) | Filter results where requires_python is in a comma-separated list of values | [optional] |
|
252
|
+
| **sha256** | **String** | Filter results where sha256 matches value | [optional] |
|
253
|
+
| **sha256__in** | [**Array<String>**](String.md) | Filter results where sha256 is in a comma-separated list of values | [optional] |
|
254
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
255
|
+
| **version__gt** | **String** | Filter results where version is greater than value | [optional] |
|
256
|
+
| **version__gte** | **String** | Filter results where version is greater than or equal to value | [optional] |
|
257
|
+
| **version__lt** | **String** | Filter results where version is less than value | [optional] |
|
258
|
+
| **version__lte** | **String** | Filter results where version is less than or equal to value | [optional] |
|
259
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
260
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
228
261
|
|
229
262
|
### Return type
|
230
263
|
|
@@ -242,16 +275,16 @@ Name | Type | Description | Notes
|
|
242
275
|
|
243
276
|
## read
|
244
277
|
|
245
|
-
> PythonPythonPackageContentResponse read(python_python_package_content_href, opts)
|
278
|
+
> <PythonPythonPackageContentResponse> read(python_python_package_content_href, opts)
|
246
279
|
|
247
280
|
Inspect a python package content
|
248
281
|
|
249
282
|
PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
250
283
|
|
251
|
-
###
|
284
|
+
### Examples
|
252
285
|
|
253
286
|
```ruby
|
254
|
-
|
287
|
+
require 'time'
|
255
288
|
require 'pulp_python_client'
|
256
289
|
# setup authorization
|
257
290
|
PulpPythonClient.configure do |config|
|
@@ -263,27 +296,44 @@ end
|
|
263
296
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
264
297
|
python_python_package_content_href = 'python_python_package_content_href_example' # String |
|
265
298
|
opts = {
|
266
|
-
fields: ['
|
267
|
-
exclude_fields: ['
|
299
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
300
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
268
301
|
}
|
269
302
|
|
270
303
|
begin
|
271
|
-
#Inspect a python package content
|
304
|
+
# Inspect a python package content
|
272
305
|
result = api_instance.read(python_python_package_content_href, opts)
|
273
306
|
p result
|
274
307
|
rescue PulpPythonClient::ApiError => e
|
275
|
-
puts "
|
308
|
+
puts "Error when calling ContentPackagesApi->read: #{e}"
|
276
309
|
end
|
277
310
|
```
|
278
311
|
|
279
|
-
|
312
|
+
#### Using the read_with_http_info variant
|
313
|
+
|
314
|
+
This returns an Array which contains the response data, status code and headers.
|
315
|
+
|
316
|
+
> <Array(<PythonPythonPackageContentResponse>, Integer, Hash)> read_with_http_info(python_python_package_content_href, opts)
|
280
317
|
|
318
|
+
```ruby
|
319
|
+
begin
|
320
|
+
# Inspect a python package content
|
321
|
+
data, status_code, headers = api_instance.read_with_http_info(python_python_package_content_href, opts)
|
322
|
+
p status_code # => 2xx
|
323
|
+
p headers # => { ... }
|
324
|
+
p data # => <PythonPythonPackageContentResponse>
|
325
|
+
rescue PulpPythonClient::ApiError => e
|
326
|
+
puts "Error when calling ContentPackagesApi->read_with_http_info: #{e}"
|
327
|
+
end
|
328
|
+
```
|
329
|
+
|
330
|
+
### Parameters
|
281
331
|
|
282
|
-
Name | Type | Description
|
283
|
-
|
284
|
-
**python_python_package_content_href** | **String
|
285
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
286
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
332
|
+
| Name | Type | Description | Notes |
|
333
|
+
| ---- | ---- | ----------- | ----- |
|
334
|
+
| **python_python_package_content_href** | **String** | | |
|
335
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
336
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
287
337
|
|
288
338
|
### Return type
|
289
339
|
|