pulp_python_client 3.0.0b9 → 3.0.0b11
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.
- checksums.yaml +4 -4
- data/README.md +49 -42
- data/docs/ContentPackagesApi.md +54 -56
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/PatchedpythonPythonDistribution.md +23 -0
- data/docs/PatchedpythonPythonRemote.md +43 -0
- data/docs/PatchedpythonPythonRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsPypiApi.md +40 -40
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
- data/docs/PythonPythonPackageContent.md +61 -0
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
- data/docs/PythonPythonRemote.md +6 -12
- data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
- data/docs/RemotesPythonApi.md +181 -65
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -60
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
- data/lib/pulp_python_client.rb +15 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +73 -84
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
- data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
- data/lib/pulp_python_client/api/remotes_python_api.rb +253 -100
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
- data/lib/pulp_python_client/api_client.rb +2 -2
- data/lib/pulp_python_client/api_error.rb +2 -2
- data/lib/pulp_python_client/configuration.rb +3 -3
- data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_python_client/models/content_summary.rb +9 -15
- data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_python_client/models/inline_response200.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
- data/lib/pulp_python_client/models/policy_enum.rb +37 -0
- data/lib/pulp_python_client/models/{project_specifier.rb → python_bander_remote.rb} +26 -40
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
- data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
- data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_python_client/models/repository_version.rb +7 -43
- data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb} +8 -6
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +24 -25
- data/spec/api/distributions_pypi_api_spec.rb +39 -18
- data/spec/api/publications_pypi_api_spec.rb +14 -14
- data/spec/api/remotes_python_api_spec.rb +61 -21
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -22
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
- data/spec/models/patchedpython_python_remote_spec.rb +119 -0
- data/spec/models/patchedpython_python_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
- data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
- data/spec/models/python_python_package_content_spec.rb +173 -0
- data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
- data/spec/models/python_python_repository_spec.rb +5 -23
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/{repository_version_read_spec.rb → repository_version_response_spec.rb} +8 -8
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +70 -46
- data/docs/ProjectSpecifier.md +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a430180b62937a1b6c04db3d4935ab7757d55fea03c2eeb577cef9a1f5512b6
|
|
4
|
+
data.tar.gz: 3aebc53e66b40eff17882fc3eadcc054fe597609098e173dff9919ae5507e631
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 840e070ac2a7445f025eeaf0999ed1183d07db996d3cf82e9dc9869acac52c2e86b71a7ad319df2a6474462b42842f5fcd8a72ea5eb46f020aa5ef1970c5a23f
|
|
7
|
+
data.tar.gz: dc23180d8d55da6e4274550b3d42d0e8d9c82b9fd232eb7ceec3ad7042c26ff0764cedc42930c788764adc5263335c8392231bc6557407f426e744b42c520385
|
data/README.md
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
PulpPythonClient - the Ruby gem for the Pulp 3 API
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
6
6
|
|
|
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.0.
|
|
10
|
+
- Package version: 3.0.0b11
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
|
+
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
12
13
|
|
|
13
14
|
## Installation
|
|
14
15
|
|
|
@@ -23,16 +24,16 @@ gem build pulp_python_client.gemspec
|
|
|
23
24
|
Then either install the gem locally:
|
|
24
25
|
|
|
25
26
|
```shell
|
|
26
|
-
gem install ./pulp_python_client-3.0.
|
|
27
|
+
gem install ./pulp_python_client-3.0.0b11.gem
|
|
27
28
|
```
|
|
28
29
|
|
|
29
|
-
(for development, run `gem install --dev ./pulp_python_client-3.0.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_python_client-3.0.0b11.gem` to install the development dependencies)
|
|
30
31
|
|
|
31
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
33
|
|
|
33
34
|
Finally add this to the Gemfile:
|
|
34
35
|
|
|
35
|
-
gem 'pulp_python_client', '~> 3.0.
|
|
36
|
+
gem 'pulp_python_client', '~> 3.0.0b11'
|
|
36
37
|
|
|
37
38
|
### Install from Git
|
|
38
39
|
|
|
@@ -58,14 +59,13 @@ require 'pulp_python_client'
|
|
|
58
59
|
|
|
59
60
|
# Setup authorization
|
|
60
61
|
PulpPythonClient.configure do |config|
|
|
61
|
-
# Configure HTTP basic authorization:
|
|
62
|
+
# Configure HTTP basic authorization: basicAuth
|
|
62
63
|
config.username = 'YOUR_USERNAME'
|
|
63
64
|
config.password = 'YOUR_PASSWORD'
|
|
64
65
|
end
|
|
65
66
|
|
|
66
67
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
|
67
68
|
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
|
68
|
-
filename = 'filename_example' # String | The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
|
69
69
|
opts = {
|
|
70
70
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
71
71
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
@@ -84,16 +84,16 @@ opts = {
|
|
|
84
84
|
project_url: 'project_url_example', # String | A browsable URL for the project and a label for it, separated by a comma.
|
|
85
85
|
platform: 'platform_example', # String | A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
86
86
|
supported_platform: 'supported_platform_example', # String | Field to specify the OS and CPU for which the binary package was compiled.
|
|
87
|
-
requires_dist:
|
|
88
|
-
provides_dist:
|
|
89
|
-
obsoletes_dist:
|
|
90
|
-
requires_external:
|
|
91
|
-
classifiers:
|
|
87
|
+
requires_dist: nil, # Object | A JSON list containing names of some other distutils project required by this distribution.
|
|
88
|
+
provides_dist: nil, # Object | A JSON list containing names of a Distutils project which is contained within this distribution.
|
|
89
|
+
obsoletes_dist: nil, # 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.
|
|
90
|
+
requires_external: nil, # Object | A JSON list containing some dependency in the system that the distribution is to be used.
|
|
91
|
+
classifiers: nil # Object | A JSON list containing classification values for a Python package.
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
begin
|
|
95
95
|
#Create a python package content
|
|
96
|
-
result = api_instance.create(relative_path,
|
|
96
|
+
result = api_instance.create(relative_path, opts)
|
|
97
97
|
p result
|
|
98
98
|
rescue PulpPythonClient::ApiError => e
|
|
99
99
|
puts "Exception when calling ContentPackagesApi->create: #{e}"
|
|
@@ -109,67 +109,74 @@ Class | Method | HTTP request | Description
|
|
|
109
109
|
------------ | ------------- | ------------- | -------------
|
|
110
110
|
*PulpPythonClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/python/packages/ | Create a python package content
|
|
111
111
|
*PulpPythonClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/python/packages/ | List python package contents
|
|
112
|
-
*PulpPythonClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {
|
|
112
|
+
*PulpPythonClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
|
|
113
113
|
*PulpPythonClient::DistributionsPypiApi* | [**create**](docs/DistributionsPypiApi.md#create) | **POST** /pulp/api/v3/distributions/python/pypi/ | Create a python distribution
|
|
114
|
-
*PulpPythonClient::DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {
|
|
114
|
+
*PulpPythonClient::DistributionsPypiApi* | [**delete**](docs/DistributionsPypiApi.md#delete) | **DELETE** {python_python_distribution_href} | Delete a python distribution
|
|
115
115
|
*PulpPythonClient::DistributionsPypiApi* | [**list**](docs/DistributionsPypiApi.md#list) | **GET** /pulp/api/v3/distributions/python/pypi/ | List python distributions
|
|
116
|
-
*PulpPythonClient::DistributionsPypiApi* | [**partial_update**](docs/DistributionsPypiApi.md#partial_update) | **PATCH** {
|
|
117
|
-
*PulpPythonClient::DistributionsPypiApi* | [**read**](docs/DistributionsPypiApi.md#read) | **GET** {
|
|
118
|
-
*PulpPythonClient::DistributionsPypiApi* | [**update**](docs/DistributionsPypiApi.md#update) | **PUT** {
|
|
116
|
+
*PulpPythonClient::DistributionsPypiApi* | [**partial_update**](docs/DistributionsPypiApi.md#partial_update) | **PATCH** {python_python_distribution_href} | Update a python distribution
|
|
117
|
+
*PulpPythonClient::DistributionsPypiApi* | [**read**](docs/DistributionsPypiApi.md#read) | **GET** {python_python_distribution_href} | Inspect a python distribution
|
|
118
|
+
*PulpPythonClient::DistributionsPypiApi* | [**update**](docs/DistributionsPypiApi.md#update) | **PUT** {python_python_distribution_href} | Update a python distribution
|
|
119
119
|
*PulpPythonClient::PublicationsPypiApi* | [**create**](docs/PublicationsPypiApi.md#create) | **POST** /pulp/api/v3/publications/python/pypi/ | Create a python publication
|
|
120
|
-
*PulpPythonClient::PublicationsPypiApi* | [**delete**](docs/PublicationsPypiApi.md#delete) | **DELETE** {
|
|
120
|
+
*PulpPythonClient::PublicationsPypiApi* | [**delete**](docs/PublicationsPypiApi.md#delete) | **DELETE** {python_python_publication_href} | Delete a python publication
|
|
121
121
|
*PulpPythonClient::PublicationsPypiApi* | [**list**](docs/PublicationsPypiApi.md#list) | **GET** /pulp/api/v3/publications/python/pypi/ | List python publications
|
|
122
|
-
*PulpPythonClient::PublicationsPypiApi* | [**read**](docs/PublicationsPypiApi.md#read) | **GET** {
|
|
122
|
+
*PulpPythonClient::PublicationsPypiApi* | [**read**](docs/PublicationsPypiApi.md#read) | **GET** {python_python_publication_href} | Inspect a python publication
|
|
123
123
|
*PulpPythonClient::RemotesPythonApi* | [**create**](docs/RemotesPythonApi.md#create) | **POST** /pulp/api/v3/remotes/python/python/ | Create a python remote
|
|
124
|
-
*PulpPythonClient::RemotesPythonApi* | [**delete**](docs/RemotesPythonApi.md#delete) | **DELETE** {
|
|
124
|
+
*PulpPythonClient::RemotesPythonApi* | [**delete**](docs/RemotesPythonApi.md#delete) | **DELETE** {python_python_remote_href} | Delete a python remote
|
|
125
|
+
*PulpPythonClient::RemotesPythonApi* | [**from_bandersnatch**](docs/RemotesPythonApi.md#from_bandersnatch) | **POST** /pulp/api/v3/remotes/python/python/from_bandersnatch/ | Create from Bandersnatch
|
|
125
126
|
*PulpPythonClient::RemotesPythonApi* | [**list**](docs/RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
|
|
126
|
-
*PulpPythonClient::RemotesPythonApi* | [**partial_update**](docs/RemotesPythonApi.md#partial_update) | **PATCH** {
|
|
127
|
-
*PulpPythonClient::RemotesPythonApi* | [**read**](docs/RemotesPythonApi.md#read) | **GET** {
|
|
128
|
-
*PulpPythonClient::RemotesPythonApi* | [**update**](docs/RemotesPythonApi.md#update) | **PUT** {
|
|
127
|
+
*PulpPythonClient::RemotesPythonApi* | [**partial_update**](docs/RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
|
|
128
|
+
*PulpPythonClient::RemotesPythonApi* | [**read**](docs/RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
|
|
129
|
+
*PulpPythonClient::RemotesPythonApi* | [**update**](docs/RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
|
|
129
130
|
*PulpPythonClient::RepositoriesPythonApi* | [**create**](docs/RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
|
|
130
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**delete**](docs/RepositoriesPythonApi.md#delete) | **DELETE** {
|
|
131
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**delete**](docs/RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
|
|
131
132
|
*PulpPythonClient::RepositoriesPythonApi* | [**list**](docs/RepositoriesPythonApi.md#list) | **GET** /pulp/api/v3/repositories/python/python/ | List python repositorys
|
|
132
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**modify**](docs/RepositoriesPythonApi.md#modify) | **POST** {
|
|
133
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**partial_update**](docs/RepositoriesPythonApi.md#partial_update) | **PATCH** {
|
|
134
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**read**](docs/RepositoriesPythonApi.md#read) | **GET** {
|
|
135
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {
|
|
136
|
-
*PulpPythonClient::RepositoriesPythonApi* | [**update**](docs/RepositoriesPythonApi.md#update) | **PUT** {
|
|
137
|
-
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**delete**](docs/RepositoriesPythonVersionsApi.md#delete) | **DELETE** {
|
|
138
|
-
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {
|
|
139
|
-
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**read**](docs/RepositoriesPythonVersionsApi.md#read) | **GET** {
|
|
140
|
-
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**repair**](docs/RepositoriesPythonVersionsApi.md#repair) | **POST** {
|
|
133
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**modify**](docs/RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
|
|
134
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**partial_update**](docs/RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
|
135
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**read**](docs/RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
|
136
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**sync**](docs/RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
|
137
|
+
*PulpPythonClient::RepositoriesPythonApi* | [**update**](docs/RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
|
|
138
|
+
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**delete**](docs/RepositoriesPythonVersionsApi.md#delete) | **DELETE** {python_python_repository_version_href} | Delete a repository version
|
|
139
|
+
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**list**](docs/RepositoriesPythonVersionsApi.md#list) | **GET** {python_python_repository_href}versions/ | List repository versions
|
|
140
|
+
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**read**](docs/RepositoriesPythonVersionsApi.md#read) | **GET** {python_python_repository_version_href} | Inspect a repository version
|
|
141
|
+
*PulpPythonClient::RepositoriesPythonVersionsApi* | [**repair**](docs/RepositoriesPythonVersionsApi.md#repair) | **POST** {python_python_repository_version_href}repair/ |
|
|
141
142
|
|
|
142
143
|
|
|
143
144
|
## Documentation for Models
|
|
144
145
|
|
|
145
146
|
- [PulpPythonClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
|
146
147
|
- [PulpPythonClient::ContentSummary](docs/ContentSummary.md)
|
|
148
|
+
- [PulpPythonClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
|
147
149
|
- [PulpPythonClient::InlineResponse200](docs/InlineResponse200.md)
|
|
148
150
|
- [PulpPythonClient::InlineResponse2001](docs/InlineResponse2001.md)
|
|
149
151
|
- [PulpPythonClient::InlineResponse2002](docs/InlineResponse2002.md)
|
|
150
152
|
- [PulpPythonClient::InlineResponse2003](docs/InlineResponse2003.md)
|
|
151
153
|
- [PulpPythonClient::InlineResponse2004](docs/InlineResponse2004.md)
|
|
152
154
|
- [PulpPythonClient::InlineResponse2005](docs/InlineResponse2005.md)
|
|
153
|
-
- [PulpPythonClient::
|
|
155
|
+
- [PulpPythonClient::PatchedpythonPythonDistribution](docs/PatchedpythonPythonDistribution.md)
|
|
156
|
+
- [PulpPythonClient::PatchedpythonPythonRemote](docs/PatchedpythonPythonRemote.md)
|
|
157
|
+
- [PulpPythonClient::PatchedpythonPythonRepository](docs/PatchedpythonPythonRepository.md)
|
|
158
|
+
- [PulpPythonClient::PolicyEnum](docs/PolicyEnum.md)
|
|
159
|
+
- [PulpPythonClient::PythonBanderRemote](docs/PythonBanderRemote.md)
|
|
154
160
|
- [PulpPythonClient::PythonPythonDistribution](docs/PythonPythonDistribution.md)
|
|
155
|
-
- [PulpPythonClient::
|
|
156
|
-
- [PulpPythonClient::
|
|
161
|
+
- [PulpPythonClient::PythonPythonDistributionResponse](docs/PythonPythonDistributionResponse.md)
|
|
162
|
+
- [PulpPythonClient::PythonPythonPackageContent](docs/PythonPythonPackageContent.md)
|
|
163
|
+
- [PulpPythonClient::PythonPythonPackageContentResponse](docs/PythonPythonPackageContentResponse.md)
|
|
157
164
|
- [PulpPythonClient::PythonPythonPublication](docs/PythonPythonPublication.md)
|
|
158
|
-
- [PulpPythonClient::
|
|
165
|
+
- [PulpPythonClient::PythonPythonPublicationResponse](docs/PythonPythonPublicationResponse.md)
|
|
159
166
|
- [PulpPythonClient::PythonPythonRemote](docs/PythonPythonRemote.md)
|
|
160
|
-
- [PulpPythonClient::
|
|
167
|
+
- [PulpPythonClient::PythonPythonRemoteResponse](docs/PythonPythonRemoteResponse.md)
|
|
161
168
|
- [PulpPythonClient::PythonPythonRepository](docs/PythonPythonRepository.md)
|
|
162
|
-
- [PulpPythonClient::
|
|
169
|
+
- [PulpPythonClient::PythonPythonRepositoryResponse](docs/PythonPythonRepositoryResponse.md)
|
|
163
170
|
- [PulpPythonClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
|
164
171
|
- [PulpPythonClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
|
165
172
|
- [PulpPythonClient::RepositoryVersion](docs/RepositoryVersion.md)
|
|
166
|
-
- [PulpPythonClient::
|
|
173
|
+
- [PulpPythonClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
|
167
174
|
|
|
168
175
|
|
|
169
176
|
## Documentation for Authorization
|
|
170
177
|
|
|
171
178
|
|
|
172
|
-
###
|
|
179
|
+
### basicAuth
|
|
173
180
|
|
|
174
181
|
- **Type**: HTTP basic authentication
|
|
175
182
|
|
data/docs/ContentPackagesApi.md
CHANGED
|
@@ -6,13 +6,13 @@ Method | HTTP request | Description
|
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/python/packages/ | Create a python package content
|
|
8
8
|
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/python/packages/ | List python package contents
|
|
9
|
-
[**read**](ContentPackagesApi.md#read) | **GET** {
|
|
9
|
+
[**read**](ContentPackagesApi.md#read) | **GET** {python_python_package_content_href} | Inspect a python package content
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
## create
|
|
14
14
|
|
|
15
|
-
> AsyncOperationResponse create(relative_path,
|
|
15
|
+
> AsyncOperationResponse create(relative_path, opts)
|
|
16
16
|
|
|
17
17
|
Create a python package content
|
|
18
18
|
|
|
@@ -25,14 +25,13 @@ Trigger an asynchronous task to create content,optionally create new repository
|
|
|
25
25
|
require 'pulp_python_client'
|
|
26
26
|
# setup authorization
|
|
27
27
|
PulpPythonClient.configure do |config|
|
|
28
|
-
# Configure HTTP basic authorization:
|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
|
29
29
|
config.username = 'YOUR USERNAME'
|
|
30
30
|
config.password = 'YOUR PASSWORD'
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
|
34
34
|
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
|
35
|
-
filename = 'filename_example' # String | The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
|
36
35
|
opts = {
|
|
37
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
|
38
37
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
@@ -51,16 +50,16 @@ opts = {
|
|
|
51
50
|
project_url: 'project_url_example', # String | A browsable URL for the project and a label for it, separated by a comma.
|
|
52
51
|
platform: 'platform_example', # String | A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
53
52
|
supported_platform: 'supported_platform_example', # String | Field to specify the OS and CPU for which the binary package was compiled.
|
|
54
|
-
requires_dist:
|
|
55
|
-
provides_dist:
|
|
56
|
-
obsoletes_dist:
|
|
57
|
-
requires_external:
|
|
58
|
-
classifiers:
|
|
53
|
+
requires_dist: nil, # Object | A JSON list containing names of some other distutils project required by this distribution.
|
|
54
|
+
provides_dist: nil, # Object | A JSON list containing names of a Distutils project which is contained within this distribution.
|
|
55
|
+
obsoletes_dist: nil, # 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.
|
|
56
|
+
requires_external: nil, # Object | A JSON list containing some dependency in the system that the distribution is to be used.
|
|
57
|
+
classifiers: nil # Object | A JSON list containing classification values for a Python package.
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
begin
|
|
62
61
|
#Create a python package content
|
|
63
|
-
result = api_instance.create(relative_path,
|
|
62
|
+
result = api_instance.create(relative_path, opts)
|
|
64
63
|
p result
|
|
65
64
|
rescue PulpPythonClient::ApiError => e
|
|
66
65
|
puts "Exception when calling ContentPackagesApi->create: #{e}"
|
|
@@ -73,7 +72,6 @@ end
|
|
|
73
72
|
Name | Type | Description | Notes
|
|
74
73
|
------------- | ------------- | ------------- | -------------
|
|
75
74
|
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
|
|
76
|
-
**filename** | **String**| The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype} |
|
|
77
75
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
|
78
76
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
79
77
|
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
@@ -91,11 +89,11 @@ Name | Type | Description | Notes
|
|
|
91
89
|
**project_url** | **String**| A browsable URL for the project and a label for it, separated by a comma. | [optional]
|
|
92
90
|
**platform** | **String**| A comma-separated list of platform specifications, summarizing the operating systems supported by the package. | [optional]
|
|
93
91
|
**supported_platform** | **String**| Field to specify the OS and CPU for which the binary package was compiled. | [optional]
|
|
94
|
-
**requires_dist** | **
|
|
95
|
-
**provides_dist** | **
|
|
96
|
-
**obsoletes_dist** | **
|
|
97
|
-
**requires_external** | **
|
|
98
|
-
**classifiers** | **
|
|
92
|
+
**requires_dist** | [**Object**](Object.md)| A JSON list containing names of some other distutils project required by this distribution. | [optional]
|
|
93
|
+
**provides_dist** | [**Object**](Object.md)| A JSON list containing names of a Distutils project which is contained within this distribution. | [optional]
|
|
94
|
+
**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]
|
|
95
|
+
**requires_external** | [**Object**](Object.md)| A JSON list containing some dependency in the system that the distribution is to be used. | [optional]
|
|
96
|
+
**classifiers** | [**Object**](Object.md)| A JSON list containing classification values for a Python package. | [optional]
|
|
99
97
|
|
|
100
98
|
### Return type
|
|
101
99
|
|
|
@@ -103,7 +101,7 @@ Name | Type | Description | Notes
|
|
|
103
101
|
|
|
104
102
|
### Authorization
|
|
105
103
|
|
|
106
|
-
[
|
|
104
|
+
[basicAuth](../README.md#basicAuth)
|
|
107
105
|
|
|
108
106
|
### HTTP request headers
|
|
109
107
|
|
|
@@ -126,30 +124,30 @@ List python package contents
|
|
|
126
124
|
require 'pulp_python_client'
|
|
127
125
|
# setup authorization
|
|
128
126
|
PulpPythonClient.configure do |config|
|
|
129
|
-
# Configure HTTP basic authorization:
|
|
127
|
+
# Configure HTTP basic authorization: basicAuth
|
|
130
128
|
config.username = 'YOUR USERNAME'
|
|
131
129
|
config.password = 'YOUR PASSWORD'
|
|
132
130
|
end
|
|
133
131
|
|
|
134
132
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
|
135
133
|
opts = {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
filename: 'filename_example', # String | Filter results where filename matches value
|
|
144
|
-
filename__in: 'filename__in_example', # String | Filter results where filename is in a comma-separated list of values
|
|
145
|
-
filename__contains: 'filename__contains_example', # String | Filter results where filename contains value
|
|
146
|
-
keywords__in: 'keywords__in_example', # String | Filter results where keywords is in a comma-separated list of values
|
|
147
|
-
keywords__contains: 'keywords__contains_example', # String | Filter results where keywords contains value
|
|
148
|
-
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
149
|
-
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
|
150
|
-
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
|
134
|
+
author: 'author_example', # String | author
|
|
135
|
+
author__in: 'author__in_example', # String | author__in
|
|
136
|
+
filename: 'filename_example', # String | filename
|
|
137
|
+
filename__contains: 'filename__contains_example', # String | filename__contains
|
|
138
|
+
filename__in: 'filename__in_example', # String | filename__in
|
|
139
|
+
keywords__contains: 'keywords__contains_example', # String | keywords__contains
|
|
140
|
+
keywords__in: 'keywords__in_example', # String | keywords__in
|
|
151
141
|
limit: 56, # Integer | Number of results to return per page.
|
|
142
|
+
name: 'name_example', # String | name
|
|
143
|
+
name__in: 'name__in_example', # String | name__in
|
|
152
144
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
145
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
146
|
+
packagetype: 'packagetype_example', # String | packagetype
|
|
147
|
+
packagetype__in: 'packagetype__in_example', # String | packagetype__in
|
|
148
|
+
repository_version: 'repository_version_example', # String | repository_version
|
|
149
|
+
repository_version_added: 'repository_version_added_example', # String | repository_version_added
|
|
150
|
+
repository_version_removed: 'repository_version_removed_example', # String | repository_version_removed
|
|
153
151
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
154
152
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
155
153
|
}
|
|
@@ -168,23 +166,23 @@ end
|
|
|
168
166
|
|
|
169
167
|
Name | Type | Description | Notes
|
|
170
168
|
------------- | ------------- | ------------- | -------------
|
|
171
|
-
**
|
|
172
|
-
**
|
|
173
|
-
**
|
|
174
|
-
**
|
|
175
|
-
**
|
|
176
|
-
**
|
|
177
|
-
**
|
|
178
|
-
**filename** | **String**| Filter results where filename matches value | [optional]
|
|
179
|
-
**filename__in** | **String**| Filter results where filename is in a comma-separated list of values | [optional]
|
|
180
|
-
**filename__contains** | **String**| Filter results where filename contains value | [optional]
|
|
181
|
-
**keywords__in** | **String**| Filter results where keywords is in a comma-separated list of values | [optional]
|
|
182
|
-
**keywords__contains** | **String**| Filter results where keywords contains value | [optional]
|
|
183
|
-
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
|
184
|
-
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
|
185
|
-
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
|
169
|
+
**author** | **String**| author | [optional]
|
|
170
|
+
**author__in** | **String**| author__in | [optional]
|
|
171
|
+
**filename** | **String**| filename | [optional]
|
|
172
|
+
**filename__contains** | **String**| filename__contains | [optional]
|
|
173
|
+
**filename__in** | **String**| filename__in | [optional]
|
|
174
|
+
**keywords__contains** | **String**| keywords__contains | [optional]
|
|
175
|
+
**keywords__in** | **String**| keywords__in | [optional]
|
|
186
176
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
177
|
+
**name** | **String**| name | [optional]
|
|
178
|
+
**name__in** | **String**| name__in | [optional]
|
|
187
179
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
180
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
181
|
+
**packagetype** | **String**| packagetype | [optional]
|
|
182
|
+
**packagetype__in** | **String**| packagetype__in | [optional]
|
|
183
|
+
**repository_version** | **String**| repository_version | [optional]
|
|
184
|
+
**repository_version_added** | **String**| repository_version_added | [optional]
|
|
185
|
+
**repository_version_removed** | **String**| repository_version_removed | [optional]
|
|
188
186
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
189
187
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
190
188
|
|
|
@@ -194,7 +192,7 @@ Name | Type | Description | Notes
|
|
|
194
192
|
|
|
195
193
|
### Authorization
|
|
196
194
|
|
|
197
|
-
[
|
|
195
|
+
[basicAuth](../README.md#basicAuth)
|
|
198
196
|
|
|
199
197
|
### HTTP request headers
|
|
200
198
|
|
|
@@ -204,7 +202,7 @@ Name | Type | Description | Notes
|
|
|
204
202
|
|
|
205
203
|
## read
|
|
206
204
|
|
|
207
|
-
>
|
|
205
|
+
> PythonPythonPackageContentResponse read(python_python_package_content_href, opts)
|
|
208
206
|
|
|
209
207
|
Inspect a python package content
|
|
210
208
|
|
|
@@ -217,13 +215,13 @@ Inspect a python package content
|
|
|
217
215
|
require 'pulp_python_client'
|
|
218
216
|
# setup authorization
|
|
219
217
|
PulpPythonClient.configure do |config|
|
|
220
|
-
# Configure HTTP basic authorization:
|
|
218
|
+
# Configure HTTP basic authorization: basicAuth
|
|
221
219
|
config.username = 'YOUR USERNAME'
|
|
222
220
|
config.password = 'YOUR PASSWORD'
|
|
223
221
|
end
|
|
224
222
|
|
|
225
223
|
api_instance = PulpPythonClient::ContentPackagesApi.new
|
|
226
|
-
|
|
224
|
+
python_python_package_content_href = 'python_python_package_content_href_example' # String |
|
|
227
225
|
opts = {
|
|
228
226
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
229
227
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
@@ -231,7 +229,7 @@ opts = {
|
|
|
231
229
|
|
|
232
230
|
begin
|
|
233
231
|
#Inspect a python package content
|
|
234
|
-
result = api_instance.read(
|
|
232
|
+
result = api_instance.read(python_python_package_content_href, opts)
|
|
235
233
|
p result
|
|
236
234
|
rescue PulpPythonClient::ApiError => e
|
|
237
235
|
puts "Exception when calling ContentPackagesApi->read: #{e}"
|
|
@@ -243,17 +241,17 @@ end
|
|
|
243
241
|
|
|
244
242
|
Name | Type | Description | Notes
|
|
245
243
|
------------- | ------------- | ------------- | -------------
|
|
246
|
-
**
|
|
244
|
+
**python_python_package_content_href** | **String**| |
|
|
247
245
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
248
246
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
249
247
|
|
|
250
248
|
### Return type
|
|
251
249
|
|
|
252
|
-
[**
|
|
250
|
+
[**PythonPythonPackageContentResponse**](PythonPythonPackageContentResponse.md)
|
|
253
251
|
|
|
254
252
|
### Authorization
|
|
255
253
|
|
|
256
|
-
[
|
|
254
|
+
[basicAuth](../README.md#basicAuth)
|
|
257
255
|
|
|
258
256
|
### HTTP request headers
|
|
259
257
|
|
data/docs/ContentSummary.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**added** | **
|
|
8
|
-
**removed** | **
|
|
9
|
-
**present** | **
|
|
7
|
+
**added** | [**Object**](.md) | |
|
|
8
|
+
**removed** | [**Object**](.md) | |
|
|
9
|
+
**present** | [**Object**](.md) | |
|
|
10
10
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpPythonClient::ContentSummaryResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**added** | [**Object**](.md) | |
|
|
8
|
+
**removed** | [**Object**](.md) | |
|
|
9
|
+
**present** | [**Object**](.md) | |
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'PulpPythonClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpPythonClient::ContentSummaryResponse.new(added: null,
|
|
17
|
+
removed: null,
|
|
18
|
+
present: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|