pulp_rpm_client 3.26.1 → 3.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +5 -1
- data/docs/PrunePackages.md +21 -0
- data/docs/RpmModulemd.md +3 -3
- data/docs/RpmModulemdDefaults.md +1 -1
- data/docs/RpmModulemdDefaultsResponse.md +1 -1
- data/docs/RpmModulemdResponse.md +3 -3
- data/docs/RpmPackageCategoryResponse.md +3 -3
- data/docs/RpmPackageEnvironmentResponse.md +4 -4
- data/docs/RpmPackageGroupResponse.md +3 -3
- data/docs/RpmPackageLangpacksResponse.md +1 -1
- data/docs/RpmPackageResponse.md +10 -10
- data/docs/RpmPruneApi.md +61 -0
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRepository.md +5 -1
- data/docs/RpmRpmRepositoryResponse.md +5 -1
- data/docs/RpmUpdateCollection.md +1 -1
- data/docs/RpmUpdateCollectionResponse.md +1 -1
- data/lib/pulp_rpm_client/api/content_packages_api.rb +2 -2
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +84 -0
- data/lib/pulp_rpm_client/models/copy.rb +1 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +40 -2
- data/lib/pulp_rpm_client/models/prune_packages.rb +254 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +4 -4
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +10 -10
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +40 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +40 -2
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +2 -0
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/rpm_prune_api_spec.rb +46 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +12 -0
- data/spec/models/prune_packages_spec.rb +53 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +12 -0
- data/spec/models/rpm_rpm_repository_spec.rb +12 -0
- metadata +90 -82
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e36498d09db5659ee0f921d05974dc33aa02c6d7140421f891631e6f6ff0b376
|
4
|
+
data.tar.gz: 265ea2c8cb546dd4c5da530235cb56f4ba0dd0fffd3f073107f8ad14ee06cb5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c013ab4a8b550c52d3c609f814c23b01a68d4109e615d4cea3709504f8b811eb4adca06a53cdaca5e17b2d926640ce46e752956484dee6406a1d326f7f1439dc
|
7
|
+
data.tar.gz: 07ae57a0151e32f0f857fd6e8256c24e18db793e1d4cc8258a0e1ecda321bc64130d4a41490d189d2387f8e840cf06ff31d1bfdc00ac16102665fa6e7ae0903c
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ 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.27.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_rpm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_rpm_client-3.
|
27
|
+
gem install ./pulp_rpm_client-3.27.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_rpm_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_rpm_client-3.27.1.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_rpm_client', '~> 3.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.27.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -186,6 +186,7 @@ Class | Method | HTTP request | Description
|
|
186
186
|
*PulpRpmClient::RepositoriesRpmVersionsApi* | [**repair**](docs/RepositoriesRpmVersionsApi.md#repair) | **POST** {rpm_rpm_repository_version_href}repair/ |
|
187
187
|
*PulpRpmClient::RpmCompsApi* | [**rpm_comps_upload**](docs/RpmCompsApi.md#rpm_comps_upload) | **POST** /pulp/api/v3/rpm/comps/ | Upload comps.xml
|
188
188
|
*PulpRpmClient::RpmCopyApi* | [**copy_content**](docs/RpmCopyApi.md#copy_content) | **POST** /pulp/api/v3/rpm/copy/ | Copy content
|
189
|
+
*PulpRpmClient::RpmPruneApi* | [**prune_packages**](docs/RpmPruneApi.md#prune_packages) | **POST** /pulp/api/v3/rpm/prune/ |
|
189
190
|
|
190
191
|
|
191
192
|
## Documentation for Models
|
@@ -228,6 +229,7 @@ Class | Method | HTTP request | Description
|
|
228
229
|
- [PulpRpmClient::PatchedrpmRpmRepository](docs/PatchedrpmRpmRepository.md)
|
229
230
|
- [PulpRpmClient::PatchedrpmUlnRemote](docs/PatchedrpmUlnRemote.md)
|
230
231
|
- [PulpRpmClient::PolicyEnum](docs/PolicyEnum.md)
|
232
|
+
- [PulpRpmClient::PrunePackages](docs/PrunePackages.md)
|
231
233
|
- [PulpRpmClient::Repair](docs/Repair.md)
|
232
234
|
- [PulpRpmClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
233
235
|
- [PulpRpmClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
16
16
|
|
17
17
|
Create a package
|
18
18
|
|
19
|
-
Trigger an asynchronous task to create
|
19
|
+
Trigger an asynchronous task to create an RPM package,optionally create new repository version.
|
20
20
|
|
21
21
|
### Example
|
22
22
|
|
data/docs/Copy.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**config** | [**
|
7
|
+
**config** | [**AnyType**](.md) | A JSON document describing sources, destinations, and content to be copied |
|
8
8
|
**dependency_solving** | **Boolean** | Also copy dependencies of the content being copied. | [optional] [default to true]
|
9
9
|
|
10
10
|
## Code Sample
|
@@ -11,13 +11,15 @@ Name | Type | Description | Notes
|
|
11
11
|
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
14
|
+
**package_signing_service** | **String** | A reference to an associated package signing service. | [optional]
|
15
|
+
**package_signing_fingerprint** | **String** | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to '']
|
14
16
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
15
17
|
**checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
16
18
|
**metadata_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
17
19
|
**package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
18
20
|
**gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages. | [optional]
|
19
21
|
**repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
|
20
|
-
**repo_config** | [**
|
22
|
+
**repo_config** | [**AnyType**](.md) | A JSON document describing config.repo file | [optional]
|
21
23
|
**compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional]
|
22
24
|
|
23
25
|
## Code Sample
|
@@ -32,6 +34,8 @@ instance = PulpRpmClient::PatchedrpmRpmRepository.new(pulp_labels: null,
|
|
32
34
|
remote: null,
|
33
35
|
autopublish: null,
|
34
36
|
metadata_signing_service: null,
|
37
|
+
package_signing_service: null,
|
38
|
+
package_signing_fingerprint: null,
|
35
39
|
retain_package_versions: null,
|
36
40
|
checksum_type: null,
|
37
41
|
metadata_checksum_type: null,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpRpmClient::PrunePackages
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**repo_hrefs** | **Array<String>** | Will prune old packages from the specified list of repos. Use ['*'] to specify all repos. Will prune based on the specified repositories' latest_versions. |
|
8
|
+
**keep_days** | **Integer** | Prune packages introduced *prior-to* this many days ago. Default is 14. A value of 0 implies 'keep latest package only.' | [optional] [default to 14]
|
9
|
+
**dry_run** | **Boolean** | Determine what would-be-pruned and log the list of packages. Intended as a debugging aid. | [optional] [default to false]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpRpmClient'
|
15
|
+
|
16
|
+
instance = PulpRpmClient::PrunePackages.new(repo_hrefs: null,
|
17
|
+
keep_days: null,
|
18
|
+
dry_run: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
data/docs/RpmModulemd.md
CHANGED
@@ -11,11 +11,11 @@ Name | Type | Description | Notes
|
|
11
11
|
**static_context** | **Boolean** | Modulemd static-context flag. | [optional]
|
12
12
|
**context** | **String** | Modulemd context. |
|
13
13
|
**arch** | **String** | Modulemd architecture. |
|
14
|
-
**artifacts** | [**
|
15
|
-
**dependencies** | [**
|
14
|
+
**artifacts** | [**AnyType**](.md) | Modulemd artifacts. |
|
15
|
+
**dependencies** | [**AnyType**](.md) | Modulemd dependencies. |
|
16
16
|
**packages** | **Array<String>** | Modulemd artifacts' packages. | [optional]
|
17
17
|
**snippet** | **String** | Modulemd snippet |
|
18
|
-
**profiles** | [**
|
18
|
+
**profiles** | [**AnyType**](.md) | Modulemd profiles. |
|
19
19
|
**description** | **String** | Description of module. |
|
20
20
|
|
21
21
|
## Code Sample
|
data/docs/RpmModulemdDefaults.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
8
8
|
**_module** | **String** | Modulemd name. |
|
9
9
|
**stream** | **String** | Modulemd default stream. |
|
10
|
-
**profiles** | [**
|
10
|
+
**profiles** | [**AnyType**](.md) | Default profiles for modulemd streams. |
|
11
11
|
**snippet** | **String** | Modulemd default snippet |
|
12
12
|
|
13
13
|
## Code Sample
|
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
10
10
|
**_module** | **String** | Modulemd name. |
|
11
11
|
**stream** | **String** | Modulemd default stream. |
|
12
|
-
**profiles** | [**
|
12
|
+
**profiles** | [**AnyType**](.md) | Default profiles for modulemd streams. |
|
13
13
|
|
14
14
|
## Code Sample
|
15
15
|
|
data/docs/RpmModulemdResponse.md
CHANGED
@@ -13,10 +13,10 @@ Name | Type | Description | Notes
|
|
13
13
|
**static_context** | **Boolean** | Modulemd static-context flag. | [optional]
|
14
14
|
**context** | **String** | Modulemd context. |
|
15
15
|
**arch** | **String** | Modulemd architecture. |
|
16
|
-
**artifacts** | [**
|
17
|
-
**dependencies** | [**
|
16
|
+
**artifacts** | [**AnyType**](.md) | Modulemd artifacts. |
|
17
|
+
**dependencies** | [**AnyType**](.md) | Modulemd dependencies. |
|
18
18
|
**packages** | **Array<String>** | Modulemd artifacts' packages. | [optional]
|
19
|
-
**profiles** | [**
|
19
|
+
**profiles** | [**AnyType**](.md) | Modulemd profiles. |
|
20
20
|
**description** | **String** | Description of module. |
|
21
21
|
|
22
22
|
## Code Sample
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
11
11
|
**name** | **String** | Category name. |
|
12
12
|
**description** | **String** | Category description. |
|
13
13
|
**display_order** | **Integer** | Category display order. |
|
14
|
-
**group_ids** | [**
|
15
|
-
**desc_by_lang** | [**
|
16
|
-
**name_by_lang** | [**
|
14
|
+
**group_ids** | [**AnyType**](.md) | Category group list. |
|
15
|
+
**desc_by_lang** | [**AnyType**](.md) | Category description by language. |
|
16
|
+
**name_by_lang** | [**AnyType**](.md) | Category name by language. |
|
17
17
|
**digest** | **String** | Category digest. |
|
18
18
|
|
19
19
|
## Code Sample
|
@@ -11,10 +11,10 @@ Name | Type | Description | Notes
|
|
11
11
|
**name** | **String** | Environment name. |
|
12
12
|
**description** | **String** | Environment description. |
|
13
13
|
**display_order** | **Integer** | Environment display order. |
|
14
|
-
**group_ids** | [**
|
15
|
-
**option_ids** | [**
|
16
|
-
**desc_by_lang** | [**
|
17
|
-
**name_by_lang** | [**
|
14
|
+
**group_ids** | [**AnyType**](.md) | Environment group list. |
|
15
|
+
**option_ids** | [**AnyType**](.md) | Environment option ids |
|
16
|
+
**desc_by_lang** | [**AnyType**](.md) | Environment description by language. |
|
17
|
+
**name_by_lang** | [**AnyType**](.md) | Environment name by language. |
|
18
18
|
**digest** | **String** | Environment digest. |
|
19
19
|
|
20
20
|
## Code Sample
|
@@ -13,10 +13,10 @@ Name | Type | Description | Notes
|
|
13
13
|
**display_order** | **Integer** | PackageGroup display order. |
|
14
14
|
**name** | **String** | PackageGroup name. |
|
15
15
|
**description** | **String** | PackageGroup description. |
|
16
|
-
**packages** | [**
|
16
|
+
**packages** | [**AnyType**](.md) | PackageGroup package list. |
|
17
17
|
**biarch_only** | **Boolean** | PackageGroup biarch only. | [optional]
|
18
|
-
**desc_by_lang** | [**
|
19
|
-
**name_by_lang** | [**
|
18
|
+
**desc_by_lang** | [**AnyType**](.md) | PackageGroup description by language. |
|
19
|
+
**name_by_lang** | [**AnyType**](.md) | PackageGroup name by language. |
|
20
20
|
**digest** | **String** | PackageGroup digest. |
|
21
21
|
|
22
22
|
## Code Sample
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
10
|
-
**matches** | [**
|
10
|
+
**matches** | [**AnyType**](.md) | Langpacks matches. |
|
11
11
|
**digest** | **String** | Langpacks digest. |
|
12
12
|
|
13
13
|
## Code Sample
|
data/docs/RpmPackageResponse.md
CHANGED
@@ -24,16 +24,16 @@ Name | Type | Description | Notes
|
|
24
24
|
**summary** | **String** | Short description of the packaged software | [optional] [readonly]
|
25
25
|
**description** | **String** | In-depth description of the packaged software | [optional] [readonly]
|
26
26
|
**url** | **String** | URL with more information about the packaged software | [optional] [readonly]
|
27
|
-
**changelogs** | [**
|
28
|
-
**files** | [**
|
29
|
-
**requires** | [**
|
30
|
-
**provides** | [**
|
31
|
-
**conflicts** | [**
|
32
|
-
**obsoletes** | [**
|
33
|
-
**suggests** | [**
|
34
|
-
**enhances** | [**
|
35
|
-
**recommends** | [**
|
36
|
-
**supplements** | [**
|
27
|
+
**changelogs** | [**AnyType**](.md) | Changelogs that package contains | [optional] [readonly]
|
28
|
+
**files** | [**AnyType**](.md) | Files that package contains | [optional] [readonly]
|
29
|
+
**requires** | [**AnyType**](.md) | Capabilities the package requires | [optional] [readonly]
|
30
|
+
**provides** | [**AnyType**](.md) | Capabilities the package provides | [optional] [readonly]
|
31
|
+
**conflicts** | [**AnyType**](.md) | Capabilities the package conflicts | [optional] [readonly]
|
32
|
+
**obsoletes** | [**AnyType**](.md) | Capabilities the package obsoletes | [optional] [readonly]
|
33
|
+
**suggests** | [**AnyType**](.md) | Capabilities the package suggests | [optional] [readonly]
|
34
|
+
**enhances** | [**AnyType**](.md) | Capabilities the package enhances | [optional] [readonly]
|
35
|
+
**recommends** | [**AnyType**](.md) | Capabilities the package recommends | [optional] [readonly]
|
36
|
+
**supplements** | [**AnyType**](.md) | Capabilities the package supplements | [optional] [readonly]
|
37
37
|
**location_base** | **String** | Base location of this package | [optional] [readonly]
|
38
38
|
**location_href** | **String** | Relative location of package to the repodata | [optional] [readonly]
|
39
39
|
**rpm_buildhost** | **String** | Hostname of the system that built the package | [optional] [readonly]
|
data/docs/RpmPruneApi.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# PulpRpmClient::RpmPruneApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**prune_packages**](RpmPruneApi.md#prune_packages) | **POST** /pulp/api/v3/rpm/prune/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## prune_packages
|
12
|
+
|
13
|
+
> TaskGroupOperationResponse prune_packages(prune_packages)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Trigger an asynchronous old-Package-prune operation.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_rpm_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpRpmClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpRpmClient::RpmPruneApi.new
|
32
|
+
prune_packages = PulpRpmClient::PrunePackages.new # PrunePackages |
|
33
|
+
|
34
|
+
begin
|
35
|
+
result = api_instance.prune_packages(prune_packages)
|
36
|
+
p result
|
37
|
+
rescue PulpRpmClient::ApiError => e
|
38
|
+
puts "Exception when calling RpmPruneApi->prune_packages: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**prune_packages** | [**PrunePackages**](PrunePackages.md)| |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**TaskGroupOperationResponse**](TaskGroupOperationResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[basicAuth](../README.md#basicAuth)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
data/docs/RpmRpmPublication.md
CHANGED
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
12
12
|
**gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages. | [optional]
|
13
13
|
**repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
|
14
|
-
**repo_config** | [**
|
14
|
+
**repo_config** | [**AnyType**](.md) | A JSON document describing config.repo file | [optional]
|
15
15
|
**compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional]
|
16
16
|
|
17
17
|
## Code Sample
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
15
15
|
**gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages. | [optional]
|
16
16
|
**repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
|
17
17
|
**sqlite_metadata** | **Boolean** | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release | [optional] [readonly] [default to false]
|
18
|
-
**repo_config** | [**
|
18
|
+
**repo_config** | [**AnyType**](.md) | A JSON document describing config.repo file | [optional]
|
19
19
|
**compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional]
|
20
20
|
|
21
21
|
## Code Sample
|
data/docs/RpmRpmRepository.md
CHANGED
@@ -11,13 +11,15 @@ Name | Type | Description | Notes
|
|
11
11
|
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
14
|
+
**package_signing_service** | **String** | A reference to an associated package signing service. | [optional]
|
15
|
+
**package_signing_fingerprint** | **String** | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to '']
|
14
16
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
15
17
|
**checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
16
18
|
**metadata_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
17
19
|
**package_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
18
20
|
**gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages. | [optional]
|
19
21
|
**repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
|
20
|
-
**repo_config** | [**
|
22
|
+
**repo_config** | [**AnyType**](.md) | A JSON document describing config.repo file | [optional]
|
21
23
|
**compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional]
|
22
24
|
|
23
25
|
## Code Sample
|
@@ -32,6 +34,8 @@ instance = PulpRpmClient::RpmRpmRepository.new(pulp_labels: null,
|
|
32
34
|
remote: null,
|
33
35
|
autopublish: null,
|
34
36
|
metadata_signing_service: null,
|
37
|
+
package_signing_service: null,
|
38
|
+
package_signing_fingerprint: null,
|
35
39
|
retain_package_versions: null,
|
36
40
|
checksum_type: null,
|
37
41
|
metadata_checksum_type: null,
|
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
17
17
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
18
18
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
19
|
+
**package_signing_service** | **String** | A reference to an associated package signing service. | [optional]
|
20
|
+
**package_signing_fingerprint** | **String** | The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository. | [optional] [default to '']
|
19
21
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
20
22
|
**checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
21
23
|
**metadata_checksum_type** | [**PackageChecksumTypeEnum**](PackageChecksumTypeEnum.md) | DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512 | [optional]
|
@@ -23,7 +25,7 @@ Name | Type | Description | Notes
|
|
23
25
|
**gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages. | [optional]
|
24
26
|
**repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional]
|
25
27
|
**sqlite_metadata** | **Boolean** | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release | [optional] [readonly] [default to false]
|
26
|
-
**repo_config** | [**
|
28
|
+
**repo_config** | [**AnyType**](.md) | A JSON document describing config.repo file | [optional]
|
27
29
|
**compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional]
|
28
30
|
|
29
31
|
## Code Sample
|
@@ -43,6 +45,8 @@ instance = PulpRpmClient::RpmRpmRepositoryResponse.new(pulp_href: null,
|
|
43
45
|
remote: null,
|
44
46
|
autopublish: null,
|
45
47
|
metadata_signing_service: null,
|
48
|
+
package_signing_service: null,
|
49
|
+
package_signing_fingerprint: null,
|
46
50
|
retain_package_versions: null,
|
47
51
|
checksum_type: null,
|
48
52
|
metadata_checksum_type: null,
|
data/docs/RpmUpdateCollection.md
CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | Collection name. |
|
8
8
|
**shortname** | **String** | Collection short name. |
|
9
|
-
**_module** | [**
|
9
|
+
**_module** | [**AnyType**](.md) | Collection modular NSVCA. |
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**name** | **String** | Collection name. |
|
8
8
|
**shortname** | **String** | Collection short name. |
|
9
|
-
**_module** | [**
|
9
|
+
**_module** | [**AnyType**](.md) | Collection modular NSVCA. |
|
10
10
|
**packages** | **Array<Object>** | List of packages | [optional] [readonly]
|
11
11
|
|
12
12
|
## Code Sample
|
@@ -20,7 +20,7 @@ module PulpRpmClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a package
|
23
|
-
# Trigger an asynchronous task to create
|
23
|
+
# Trigger an asynchronous task to create an RPM package,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -34,7 +34,7 @@ module PulpRpmClient
|
|
34
34
|
end
|
35
35
|
|
36
36
|
# Create a package
|
37
|
-
# Trigger an asynchronous task to create
|
37
|
+
# Trigger an asynchronous task to create an RPM package,optionally create new repository version.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -0,0 +1,84 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class RpmPruneApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Trigger an asynchronous old-Package-prune operation.
|
23
|
+
# @param prune_packages [PrunePackages]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [TaskGroupOperationResponse]
|
26
|
+
def prune_packages(prune_packages, opts = {})
|
27
|
+
data, _status_code, _headers = prune_packages_with_http_info(prune_packages, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Trigger an asynchronous old-Package-prune operation.
|
32
|
+
# @param prune_packages [PrunePackages]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
|
35
|
+
def prune_packages_with_http_info(prune_packages, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: RpmPruneApi.prune_packages ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'prune_packages' is set
|
40
|
+
if @api_client.config.client_side_validation && prune_packages.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'prune_packages' when calling RpmPruneApi.prune_packages"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/pulp/api/v3/rpm/prune/'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:body] || @api_client.object_to_http_body(prune_packages)
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'TaskGroupOperationResponse'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: RpmPruneApi#prune_packages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|