pulp_rpm_client 3.26.1 → 3.27.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d172bd58c22d864076a73bed677cf22daeffe9eaa1e4603e4e1f3d2b371aaf0
4
- data.tar.gz: 1ec6d594df62fdd6822d4af3d3b8c5b705966baec940b65a5ff406fa788844cb
3
+ metadata.gz: d95d75caeb68d1ff260e6960e8bba5e8597039ca3d21c7706945cbc82eb5009b
4
+ data.tar.gz: 17b03d1c4fa8812ceef599033a01bfe73371372f434da0c0128be40a19788da7
5
5
  SHA512:
6
- metadata.gz: 92e9649b1322f33ad256040475279bd29f20dc80b13a44e7e59f4ee373240f5b912cccd737cb11be01093f525e1be3188899d849caf37e48b6718a661153faa2
7
- data.tar.gz: e93d64fc5916c88ebe857f08203456550fa766a9f3d021dcb85f20036d08b7de5801da2259a6f2b9b61e99df772b195e38194fbcda2c8599eddf3bc498d9250d
6
+ metadata.gz: 57d0c57784bdc83facde491132f99732d1b78150178f2a55eb72d7a27963ab1580a8974500a70eb0ce85fe68b4ffd67585759ddfd77c3ff000c3e1444759b421
7
+ data.tar.gz: 66e3b8dd137b093a487106bed852fe254e70a590db2d2ed27c5ec920d18d76f5bb1ddca11bf4e0d05320ce23b66be2cee421cb57e7f856c48a8d17da3b3b48be
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.26.1
10
+ - Package version: 3.27.0
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.26.1.gem
27
+ gem install ./pulp_rpm_client-3.27.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_rpm_client-3.26.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_rpm_client-3.27.0.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.26.1'
36
+ gem 'pulp_rpm_client', '~> 3.27.0'
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)
@@ -16,7 +16,7 @@ Method | HTTP request | Description
16
16
 
17
17
  Create a package
18
18
 
19
- Trigger an asynchronous task to create content,optionally create new repository version.
19
+ Trigger an asynchronous task to create an RPM package,optionally create new repository version.
20
20
 
21
21
  ### Example
22
22
 
@@ -11,6 +11,8 @@ 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]
@@ -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
+
@@ -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
+
@@ -11,6 +11,8 @@ 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]
@@ -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]
@@ -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,
@@ -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 content,optionally create new repository version.
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 content,optionally create new repository version.
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
@@ -35,6 +35,12 @@ module PulpRpmClient
35
35
  # A reference to an associated signing service.
36
36
  attr_accessor :metadata_signing_service
37
37
 
38
+ # A reference to an associated package signing service.
39
+ attr_accessor :package_signing_service
40
+
41
+ # 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.
42
+ attr_accessor :package_signing_fingerprint
43
+
38
44
  # 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.
39
45
  attr_accessor :retain_package_versions
40
46
 
@@ -69,6 +75,8 @@ module PulpRpmClient
69
75
  :'remote' => :'remote',
70
76
  :'autopublish' => :'autopublish',
71
77
  :'metadata_signing_service' => :'metadata_signing_service',
78
+ :'package_signing_service' => :'package_signing_service',
79
+ :'package_signing_fingerprint' => :'package_signing_fingerprint',
72
80
  :'retain_package_versions' => :'retain_package_versions',
73
81
  :'checksum_type' => :'checksum_type',
74
82
  :'metadata_checksum_type' => :'metadata_checksum_type',
@@ -90,6 +98,8 @@ module PulpRpmClient
90
98
  :'remote' => :'String',
91
99
  :'autopublish' => :'Boolean',
92
100
  :'metadata_signing_service' => :'String',
101
+ :'package_signing_service' => :'String',
102
+ :'package_signing_fingerprint' => :'String',
93
103
  :'retain_package_versions' => :'Integer',
94
104
  :'checksum_type' => :'PackageChecksumTypeEnum',
95
105
  :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
@@ -108,6 +118,7 @@ module PulpRpmClient
108
118
  :'retain_repo_versions',
109
119
  :'remote',
110
120
  :'metadata_signing_service',
121
+ :'package_signing_service',
111
122
  :'checksum_type',
112
123
  :'metadata_checksum_type',
113
124
  :'package_checksum_type',
@@ -164,6 +175,16 @@ module PulpRpmClient
164
175
  self.metadata_signing_service = attributes[:'metadata_signing_service']
165
176
  end
166
177
 
178
+ if attributes.key?(:'package_signing_service')
179
+ self.package_signing_service = attributes[:'package_signing_service']
180
+ end
181
+
182
+ if attributes.key?(:'package_signing_fingerprint')
183
+ self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
184
+ else
185
+ self.package_signing_fingerprint = ''
186
+ end
187
+
167
188
  if attributes.key?(:'retain_package_versions')
168
189
  self.retain_package_versions = attributes[:'retain_package_versions']
169
190
  end
@@ -213,6 +234,10 @@ module PulpRpmClient
213
234
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
214
235
  end
215
236
 
237
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
238
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
239
+ end
240
+
216
241
  if !@retain_package_versions.nil? && @retain_package_versions < 0
217
242
  invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
218
243
  end
@@ -242,6 +267,7 @@ module PulpRpmClient
242
267
  return false if !@name.nil? && @name.to_s.length < 1
243
268
  return false if !@description.nil? && @description.to_s.length < 1
244
269
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
270
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
245
271
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
246
272
  return false if !@gpgcheck.nil? && @gpgcheck > 1
247
273
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -280,6 +306,16 @@ module PulpRpmClient
280
306
  @retain_repo_versions = retain_repo_versions
281
307
  end
282
308
 
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] package_signing_fingerprint Value to be assigned
311
+ def package_signing_fingerprint=(package_signing_fingerprint)
312
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
313
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
314
+ end
315
+
316
+ @package_signing_fingerprint = package_signing_fingerprint
317
+ end
318
+
283
319
  # Custom attribute writer method with validation
284
320
  # @param [Object] retain_package_versions Value to be assigned
285
321
  def retain_package_versions=(retain_package_versions)
@@ -330,6 +366,8 @@ module PulpRpmClient
330
366
  remote == o.remote &&
331
367
  autopublish == o.autopublish &&
332
368
  metadata_signing_service == o.metadata_signing_service &&
369
+ package_signing_service == o.package_signing_service &&
370
+ package_signing_fingerprint == o.package_signing_fingerprint &&
333
371
  retain_package_versions == o.retain_package_versions &&
334
372
  checksum_type == o.checksum_type &&
335
373
  metadata_checksum_type == o.metadata_checksum_type &&
@@ -349,7 +387,7 @@ module PulpRpmClient
349
387
  # Calculates hash code according to all attributes.
350
388
  # @return [Integer] Hash code
351
389
  def hash
352
- [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
390
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
353
391
  end
354
392
 
355
393
  # Builds the object from hash
@@ -0,0 +1,254 @@
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 'date'
14
+
15
+ module PulpRpmClient
16
+ # Serializer for prune-old-Packages operation.
17
+ class PrunePackages
18
+ # Will prune old packages from the specified list of repos. Use ['*'] to specify all repos. Will prune based on the specified repositories' latest_versions.
19
+ attr_accessor :repo_hrefs
20
+
21
+ # Prune packages introduced *prior-to* this many days ago. Default is 14. A value of 0 implies 'keep latest package only.'
22
+ attr_accessor :keep_days
23
+
24
+ # Determine what would-be-pruned and log the list of packages. Intended as a debugging aid.
25
+ attr_accessor :dry_run
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'repo_hrefs' => :'repo_hrefs',
31
+ :'keep_days' => :'keep_days',
32
+ :'dry_run' => :'dry_run'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'repo_hrefs' => :'Array<String>',
40
+ :'keep_days' => :'Integer',
41
+ :'dry_run' => :'Boolean'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::PrunePackages` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::PrunePackages`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'repo_hrefs')
67
+ if (value = attributes[:'repo_hrefs']).is_a?(Array)
68
+ self.repo_hrefs = value
69
+ end
70
+ end
71
+
72
+ if attributes.key?(:'keep_days')
73
+ self.keep_days = attributes[:'keep_days']
74
+ else
75
+ self.keep_days = 14
76
+ end
77
+
78
+ if attributes.key?(:'dry_run')
79
+ self.dry_run = attributes[:'dry_run']
80
+ else
81
+ self.dry_run = false
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ if @repo_hrefs.nil?
90
+ invalid_properties.push('invalid value for "repo_hrefs", repo_hrefs cannot be nil.')
91
+ end
92
+
93
+ if !@keep_days.nil? && @keep_days < 0
94
+ invalid_properties.push('invalid value for "keep_days", must be greater than or equal to 0.')
95
+ end
96
+
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ return false if @repo_hrefs.nil?
104
+ return false if !@keep_days.nil? && @keep_days < 0
105
+ true
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] keep_days Value to be assigned
110
+ def keep_days=(keep_days)
111
+ if !keep_days.nil? && keep_days < 0
112
+ fail ArgumentError, 'invalid value for "keep_days", must be greater than or equal to 0.'
113
+ end
114
+
115
+ @keep_days = keep_days
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ repo_hrefs == o.repo_hrefs &&
124
+ keep_days == o.keep_days &&
125
+ dry_run == o.dry_run
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [repo_hrefs, keep_days, dry_run].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ new.build_from_hash(attributes)
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ end
159
+ elsif !attributes[self.class.attribute_map[key]].nil?
160
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :DateTime
174
+ DateTime.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ PulpRpmClient.const_get(type).build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+ end
254
+ end
@@ -35,6 +35,12 @@ module PulpRpmClient
35
35
  # A reference to an associated signing service.
36
36
  attr_accessor :metadata_signing_service
37
37
 
38
+ # A reference to an associated package signing service.
39
+ attr_accessor :package_signing_service
40
+
41
+ # 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.
42
+ attr_accessor :package_signing_fingerprint
43
+
38
44
  # 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.
39
45
  attr_accessor :retain_package_versions
40
46
 
@@ -69,6 +75,8 @@ module PulpRpmClient
69
75
  :'remote' => :'remote',
70
76
  :'autopublish' => :'autopublish',
71
77
  :'metadata_signing_service' => :'metadata_signing_service',
78
+ :'package_signing_service' => :'package_signing_service',
79
+ :'package_signing_fingerprint' => :'package_signing_fingerprint',
72
80
  :'retain_package_versions' => :'retain_package_versions',
73
81
  :'checksum_type' => :'checksum_type',
74
82
  :'metadata_checksum_type' => :'metadata_checksum_type',
@@ -90,6 +98,8 @@ module PulpRpmClient
90
98
  :'remote' => :'String',
91
99
  :'autopublish' => :'Boolean',
92
100
  :'metadata_signing_service' => :'String',
101
+ :'package_signing_service' => :'String',
102
+ :'package_signing_fingerprint' => :'String',
93
103
  :'retain_package_versions' => :'Integer',
94
104
  :'checksum_type' => :'PackageChecksumTypeEnum',
95
105
  :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
@@ -108,6 +118,7 @@ module PulpRpmClient
108
118
  :'retain_repo_versions',
109
119
  :'remote',
110
120
  :'metadata_signing_service',
121
+ :'package_signing_service',
111
122
  :'checksum_type',
112
123
  :'metadata_checksum_type',
113
124
  :'package_checksum_type',
@@ -164,6 +175,16 @@ module PulpRpmClient
164
175
  self.metadata_signing_service = attributes[:'metadata_signing_service']
165
176
  end
166
177
 
178
+ if attributes.key?(:'package_signing_service')
179
+ self.package_signing_service = attributes[:'package_signing_service']
180
+ end
181
+
182
+ if attributes.key?(:'package_signing_fingerprint')
183
+ self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
184
+ else
185
+ self.package_signing_fingerprint = ''
186
+ end
187
+
167
188
  if attributes.key?(:'retain_package_versions')
168
189
  self.retain_package_versions = attributes[:'retain_package_versions']
169
190
  end
@@ -217,6 +238,10 @@ module PulpRpmClient
217
238
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
218
239
  end
219
240
 
241
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
242
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
243
+ end
244
+
220
245
  if !@retain_package_versions.nil? && @retain_package_versions < 0
221
246
  invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
222
247
  end
@@ -247,6 +272,7 @@ module PulpRpmClient
247
272
  return false if @name.to_s.length < 1
248
273
  return false if !@description.nil? && @description.to_s.length < 1
249
274
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
275
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
250
276
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
251
277
  return false if !@gpgcheck.nil? && @gpgcheck > 1
252
278
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -289,6 +315,16 @@ module PulpRpmClient
289
315
  @retain_repo_versions = retain_repo_versions
290
316
  end
291
317
 
318
+ # Custom attribute writer method with validation
319
+ # @param [Object] package_signing_fingerprint Value to be assigned
320
+ def package_signing_fingerprint=(package_signing_fingerprint)
321
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
322
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
323
+ end
324
+
325
+ @package_signing_fingerprint = package_signing_fingerprint
326
+ end
327
+
292
328
  # Custom attribute writer method with validation
293
329
  # @param [Object] retain_package_versions Value to be assigned
294
330
  def retain_package_versions=(retain_package_versions)
@@ -339,6 +375,8 @@ module PulpRpmClient
339
375
  remote == o.remote &&
340
376
  autopublish == o.autopublish &&
341
377
  metadata_signing_service == o.metadata_signing_service &&
378
+ package_signing_service == o.package_signing_service &&
379
+ package_signing_fingerprint == o.package_signing_fingerprint &&
342
380
  retain_package_versions == o.retain_package_versions &&
343
381
  checksum_type == o.checksum_type &&
344
382
  metadata_checksum_type == o.metadata_checksum_type &&
@@ -358,7 +396,7 @@ module PulpRpmClient
358
396
  # Calculates hash code according to all attributes.
359
397
  # @return [Integer] Hash code
360
398
  def hash
361
- [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
399
+ [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
362
400
  end
363
401
 
364
402
  # Builds the object from hash
@@ -47,6 +47,12 @@ module PulpRpmClient
47
47
  # A reference to an associated signing service.
48
48
  attr_accessor :metadata_signing_service
49
49
 
50
+ # A reference to an associated package signing service.
51
+ attr_accessor :package_signing_service
52
+
53
+ # 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.
54
+ attr_accessor :package_signing_fingerprint
55
+
50
56
  # 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.
51
57
  attr_accessor :retain_package_versions
52
58
 
@@ -89,6 +95,8 @@ module PulpRpmClient
89
95
  :'remote' => :'remote',
90
96
  :'autopublish' => :'autopublish',
91
97
  :'metadata_signing_service' => :'metadata_signing_service',
98
+ :'package_signing_service' => :'package_signing_service',
99
+ :'package_signing_fingerprint' => :'package_signing_fingerprint',
92
100
  :'retain_package_versions' => :'retain_package_versions',
93
101
  :'checksum_type' => :'checksum_type',
94
102
  :'metadata_checksum_type' => :'metadata_checksum_type',
@@ -116,6 +124,8 @@ module PulpRpmClient
116
124
  :'remote' => :'String',
117
125
  :'autopublish' => :'Boolean',
118
126
  :'metadata_signing_service' => :'String',
127
+ :'package_signing_service' => :'String',
128
+ :'package_signing_fingerprint' => :'String',
119
129
  :'retain_package_versions' => :'Integer',
120
130
  :'checksum_type' => :'PackageChecksumTypeEnum',
121
131
  :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
@@ -135,6 +145,7 @@ module PulpRpmClient
135
145
  :'retain_repo_versions',
136
146
  :'remote',
137
147
  :'metadata_signing_service',
148
+ :'package_signing_service',
138
149
  :'checksum_type',
139
150
  :'metadata_checksum_type',
140
151
  :'package_checksum_type',
@@ -211,6 +222,16 @@ module PulpRpmClient
211
222
  self.metadata_signing_service = attributes[:'metadata_signing_service']
212
223
  end
213
224
 
225
+ if attributes.key?(:'package_signing_service')
226
+ self.package_signing_service = attributes[:'package_signing_service']
227
+ end
228
+
229
+ if attributes.key?(:'package_signing_fingerprint')
230
+ self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
231
+ else
232
+ self.package_signing_fingerprint = ''
233
+ end
234
+
214
235
  if attributes.key?(:'retain_package_versions')
215
236
  self.retain_package_versions = attributes[:'retain_package_versions']
216
237
  end
@@ -262,6 +283,10 @@ module PulpRpmClient
262
283
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
263
284
  end
264
285
 
286
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
287
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
288
+ end
289
+
265
290
  if !@retain_package_versions.nil? && @retain_package_versions < 0
266
291
  invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
267
292
  end
@@ -290,6 +315,7 @@ module PulpRpmClient
290
315
  def valid?
291
316
  return false if @name.nil?
292
317
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
318
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
293
319
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
294
320
  return false if !@gpgcheck.nil? && @gpgcheck > 1
295
321
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -308,6 +334,16 @@ module PulpRpmClient
308
334
  @retain_repo_versions = retain_repo_versions
309
335
  end
310
336
 
337
+ # Custom attribute writer method with validation
338
+ # @param [Object] package_signing_fingerprint Value to be assigned
339
+ def package_signing_fingerprint=(package_signing_fingerprint)
340
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
341
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
342
+ end
343
+
344
+ @package_signing_fingerprint = package_signing_fingerprint
345
+ end
346
+
311
347
  # Custom attribute writer method with validation
312
348
  # @param [Object] retain_package_versions Value to be assigned
313
349
  def retain_package_versions=(retain_package_versions)
@@ -363,6 +399,8 @@ module PulpRpmClient
363
399
  remote == o.remote &&
364
400
  autopublish == o.autopublish &&
365
401
  metadata_signing_service == o.metadata_signing_service &&
402
+ package_signing_service == o.package_signing_service &&
403
+ package_signing_fingerprint == o.package_signing_fingerprint &&
366
404
  retain_package_versions == o.retain_package_versions &&
367
405
  checksum_type == o.checksum_type &&
368
406
  metadata_checksum_type == o.metadata_checksum_type &&
@@ -383,7 +421,7 @@ module PulpRpmClient
383
421
  # Calculates hash code according to all attributes.
384
422
  # @return [Integer] Hash code
385
423
  def hash
386
- [pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
424
+ [pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
387
425
  end
388
426
 
389
427
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.26.1'
14
+ VERSION = '3.27.0'
15
15
  end
@@ -55,6 +55,7 @@ require 'pulp_rpm_client/models/patchedrpm_rpm_remote'
55
55
  require 'pulp_rpm_client/models/patchedrpm_rpm_repository'
56
56
  require 'pulp_rpm_client/models/patchedrpm_uln_remote'
57
57
  require 'pulp_rpm_client/models/policy_enum'
58
+ require 'pulp_rpm_client/models/prune_packages'
58
59
  require 'pulp_rpm_client/models/repair'
59
60
  require 'pulp_rpm_client/models/repository_add_remove_content'
60
61
  require 'pulp_rpm_client/models/repository_version_response'
@@ -120,6 +121,7 @@ require 'pulp_rpm_client/api/repositories_rpm_api'
120
121
  require 'pulp_rpm_client/api/repositories_rpm_versions_api'
121
122
  require 'pulp_rpm_client/api/rpm_comps_api'
122
123
  require 'pulp_rpm_client/api/rpm_copy_api'
124
+ require 'pulp_rpm_client/api/rpm_prune_api'
123
125
 
124
126
  module PulpRpmClient
125
127
  class << self
@@ -34,7 +34,7 @@ describe 'ContentPackagesApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create a package
37
- # Trigger an asynchronous task to create content,optionally create new repository version.
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,46 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpRpmClient::RpmPruneApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RpmPruneApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpRpmClient::RpmPruneApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RpmPruneApi' do
30
+ it 'should create an instance of RpmPruneApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::RpmPruneApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for prune_packages
36
+ # Trigger an asynchronous old-Package-prune operation.
37
+ # @param prune_packages
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [TaskGroupOperationResponse]
40
+ describe 'prune_packages test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -74,6 +74,18 @@ describe 'PatchedrpmRpmRepository' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "package_signing_service"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "package_signing_fingerprint"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
77
89
  describe 'test attribute "retain_package_versions"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,53 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpRpmClient::PrunePackages
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PrunePackages' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpRpmClient::PrunePackages.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PrunePackages' do
31
+ it 'should create an instance of PrunePackages' do
32
+ expect(@instance).to be_instance_of(PulpRpmClient::PrunePackages)
33
+ end
34
+ end
35
+ describe 'test attribute "repo_hrefs"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "keep_days"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "dry_run"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
@@ -104,6 +104,18 @@ describe 'RpmRpmRepositoryResponse' do
104
104
  end
105
105
  end
106
106
 
107
+ describe 'test attribute "package_signing_service"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "package_signing_fingerprint"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
107
119
  describe 'test attribute "retain_package_versions"' do
108
120
  it 'should work' do
109
121
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,18 @@ describe 'RpmRpmRepository' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "package_signing_service"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "package_signing_fingerprint"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
77
89
  describe 'test attribute "retain_package_versions"' do
78
90
  it 'should work' do
79
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_rpm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.26.1
4
+ version: 3.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -131,6 +131,7 @@ files:
131
131
  - docs/PatchedrpmRpmRepository.md
132
132
  - docs/PatchedrpmUlnRemote.md
133
133
  - docs/PolicyEnum.md
134
+ - docs/PrunePackages.md
134
135
  - docs/PublicationsRpmApi.md
135
136
  - docs/RemotesRpmApi.md
136
137
  - docs/RemotesUlnApi.md
@@ -154,6 +155,7 @@ files:
154
155
  - docs/RpmPackageGroupResponse.md
155
156
  - docs/RpmPackageLangpacksResponse.md
156
157
  - docs/RpmPackageResponse.md
158
+ - docs/RpmPruneApi.md
157
159
  - docs/RpmRepoMetadataFileResponse.md
158
160
  - docs/RpmRepositorySyncURL.md
159
161
  - docs/RpmRpmAlternateContentSource.md
@@ -202,6 +204,7 @@ files:
202
204
  - lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb
203
205
  - lib/pulp_rpm_client/api/rpm_comps_api.rb
204
206
  - lib/pulp_rpm_client/api/rpm_copy_api.rb
207
+ - lib/pulp_rpm_client/api/rpm_prune_api.rb
205
208
  - lib/pulp_rpm_client/api_client.rb
206
209
  - lib/pulp_rpm_client/api_error.rb
207
210
  - lib/pulp_rpm_client/configuration.rb
@@ -243,6 +246,7 @@ files:
243
246
  - lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb
244
247
  - lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb
245
248
  - lib/pulp_rpm_client/models/policy_enum.rb
249
+ - lib/pulp_rpm_client/models/prune_packages.rb
246
250
  - lib/pulp_rpm_client/models/repair.rb
247
251
  - lib/pulp_rpm_client/models/repository_add_remove_content.rb
248
252
  - lib/pulp_rpm_client/models/repository_version_response.rb
@@ -308,6 +312,7 @@ files:
308
312
  - spec/api/repositories_rpm_versions_api_spec.rb
309
313
  - spec/api/rpm_comps_api_spec.rb
310
314
  - spec/api/rpm_copy_api_spec.rb
315
+ - spec/api/rpm_prune_api_spec.rb
311
316
  - spec/api_client_spec.rb
312
317
  - spec/configuration_spec.rb
313
318
  - spec/models/addon_response_spec.rb
@@ -348,6 +353,7 @@ files:
348
353
  - spec/models/patchedrpm_rpm_repository_spec.rb
349
354
  - spec/models/patchedrpm_uln_remote_spec.rb
350
355
  - spec/models/policy_enum_spec.rb
356
+ - spec/models/prune_packages_spec.rb
351
357
  - spec/models/repair_spec.rb
352
358
  - spec/models/repository_add_remove_content_spec.rb
353
359
  - spec/models/repository_version_response_spec.rb
@@ -431,6 +437,7 @@ test_files:
431
437
  - spec/api/publications_rpm_api_spec.rb
432
438
  - spec/api/content_packagelangpacks_api_spec.rb
433
439
  - spec/api/rpm_copy_api_spec.rb
440
+ - spec/api/rpm_prune_api_spec.rb
434
441
  - spec/api/content_packages_api_spec.rb
435
442
  - spec/api/repositories_rpm_api_spec.rb
436
443
  - spec/api/acs_rpm_api_spec.rb
@@ -443,6 +450,7 @@ test_files:
443
450
  - spec/models/rpm_uln_remote_response_spec.rb
444
451
  - spec/models/paginatedrpm_package_group_response_list_spec.rb
445
452
  - spec/models/paginatedrpm_uln_remote_response_list_spec.rb
453
+ - spec/models/prune_packages_spec.rb
446
454
  - spec/models/rpm_modulemd_spec.rb
447
455
  - spec/models/content_summary_response_spec.rb
448
456
  - spec/models/paginatedrpm_package_environment_response_list_spec.rb