pulp_rpm_client 3.26.3 → 3.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/docs/AcsRpmApi.md +3 -5
- data/docs/ArtifactResponse.md +0 -2
- data/docs/ContentAdvisoriesApi.md +10 -14
- data/docs/ContentDistributionTreesApi.md +9 -11
- data/docs/ContentModulemdDefaultsApi.md +9 -11
- data/docs/ContentModulemdObsoletesApi.md +9 -11
- data/docs/ContentModulemdsApi.md +9 -11
- data/docs/ContentPackagecategoriesApi.md +9 -11
- data/docs/ContentPackageenvironmentsApi.md +9 -11
- data/docs/ContentPackagegroupsApi.md +9 -11
- data/docs/ContentPackagelangpacksApi.md +9 -11
- data/docs/ContentPackagesApi.md +11 -15
- data/docs/ContentRepoMetadataFilesApi.md +9 -11
- data/docs/DistributionsRpmApi.md +3 -5
- data/docs/PatchedrpmRpmRepository.md +4 -0
- data/docs/PrunePackages.md +21 -0
- data/docs/PublicationsRpmApi.md +11 -13
- data/docs/RemotesRpmApi.md +3 -5
- data/docs/RemotesUlnApi.md +3 -5
- data/docs/RepositoriesRpmApi.md +7 -9
- data/docs/RepositoriesRpmVersionsApi.md +7 -9
- data/docs/RepositoryVersionResponse.md +0 -2
- data/docs/RpmCompsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -1
- data/docs/RpmModulemdDefaultsResponse.md +0 -2
- data/docs/RpmModulemdObsoleteResponse.md +0 -2
- data/docs/RpmModulemdResponse.md +0 -2
- data/docs/RpmPackage.md +1 -3
- data/docs/RpmPackageCategoryResponse.md +0 -2
- data/docs/RpmPackageEnvironmentResponse.md +0 -2
- data/docs/RpmPackageGroupResponse.md +0 -2
- data/docs/RpmPackageLangpacksResponse.md +0 -2
- data/docs/RpmPackageResponse.md +0 -2
- data/docs/RpmPruneApi.md +61 -0
- data/docs/RpmRepoMetadataFileResponse.md +0 -2
- data/docs/RpmRpmAlternateContentSourceResponse.md +0 -2
- data/docs/RpmRpmDistributionResponse.md +0 -4
- data/docs/RpmRpmPublicationResponse.md +0 -2
- data/docs/RpmRpmRemoteResponse.md +0 -2
- data/docs/RpmRpmRepository.md +4 -0
- data/docs/RpmRpmRepositoryResponse.md +4 -2
- data/docs/RpmUlnRemoteResponse.md +0 -2
- data/docs/RpmUpdateRecord.md +1 -3
- data/docs/RpmUpdateRecordResponse.md +0 -2
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +2 -5
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +8 -18
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +8 -11
- data/lib/pulp_rpm_client/api/content_packages_api.rb +10 -20
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +8 -11
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +2 -5
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -14
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +2 -5
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +2 -5
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +6 -9
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +7 -10
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +84 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/artifact_response.rb +2 -12
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +20 -20
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +39 -1
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +20 -20
- data/lib/pulp_rpm_client/models/prune_packages.rb +254 -0
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_rpm_client/models/repository_version_response.rb +2 -12
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_package.rb +4 -29
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +1 -21
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -11
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +20 -20
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +21 -31
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +39 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +39 -11
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +20 -20
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +21 -31
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +4 -29
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +1 -11
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +2 -0
- data/spec/api/acs_rpm_api_spec.rb +1 -2
- data/spec/api/content_advisories_api_spec.rb +4 -6
- data/spec/api/content_distribution_trees_api_spec.rb +4 -5
- data/spec/api/content_modulemd_defaults_api_spec.rb +4 -5
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +4 -5
- data/spec/api/content_modulemds_api_spec.rb +4 -5
- data/spec/api/content_packagecategories_api_spec.rb +4 -5
- data/spec/api/content_packageenvironments_api_spec.rb +4 -5
- data/spec/api/content_packagegroups_api_spec.rb +4 -5
- data/spec/api/content_packagelangpacks_api_spec.rb +4 -5
- data/spec/api/content_packages_api_spec.rb +5 -7
- data/spec/api/content_repo_metadata_files_api_spec.rb +4 -5
- data/spec/api/distributions_rpm_api_spec.rb +1 -2
- data/spec/api/publications_rpm_api_spec.rb +5 -6
- data/spec/api/remotes_rpm_api_spec.rb +1 -2
- data/spec/api/remotes_uln_api_spec.rb +1 -2
- data/spec/api/repositories_rpm_api_spec.rb +3 -4
- data/spec/api/repositories_rpm_versions_api_spec.rb +3 -4
- data/spec/api/rpm_prune_api_spec.rb +46 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_response_spec.rb +0 -6
- data/spec/models/patchedrpm_rpm_repository_spec.rb +12 -0
- data/spec/models/prune_packages_spec.rb +53 -0
- data/spec/models/repository_version_response_spec.rb +0 -6
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +0 -6
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +0 -6
- data/spec/models/rpm_modulemd_response_spec.rb +0 -6
- data/spec/models/rpm_package_category_response_spec.rb +0 -6
- data/spec/models/rpm_package_environment_response_spec.rb +0 -6
- data/spec/models/rpm_package_group_response_spec.rb +0 -6
- data/spec/models/rpm_package_langpacks_response_spec.rb +0 -6
- data/spec/models/rpm_package_response_spec.rb +0 -6
- data/spec/models/rpm_package_spec.rb +0 -6
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +0 -6
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +0 -6
- data/spec/models/rpm_rpm_distribution_response_spec.rb +0 -12
- data/spec/models/rpm_rpm_publication_response_spec.rb +0 -6
- data/spec/models/rpm_rpm_remote_response_spec.rb +0 -6
- data/spec/models/rpm_rpm_repository_response_spec.rb +12 -6
- data/spec/models/rpm_rpm_repository_spec.rb +12 -0
- data/spec/models/rpm_uln_remote_response_spec.rb +0 -6
- data/spec/models/rpm_update_record_response_spec.rb +0 -6
- data/spec/models/rpm_update_record_spec.rb +0 -6
- metadata +104 -96
@@ -230,7 +230,6 @@ module PulpRpmClient
|
|
230
230
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
231
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
232
232
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
233
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
234
233
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
235
234
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
236
235
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -240,7 +239,7 @@ module PulpRpmClient
|
|
240
239
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
241
240
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
242
241
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
243
|
-
# @option opts [String] :q
|
242
|
+
# @option opts [String] :q
|
244
243
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
245
244
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
246
245
|
# @return [PaginatedrpmUlnRemoteResponseList]
|
@@ -264,7 +263,6 @@ module PulpRpmClient
|
|
264
263
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
265
264
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
266
265
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
267
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
268
266
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
269
267
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
270
268
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -274,7 +272,7 @@ module PulpRpmClient
|
|
274
272
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
275
273
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
276
274
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
277
|
-
# @option opts [String] :q
|
275
|
+
# @option opts [String] :q
|
278
276
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
279
277
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
280
278
|
# @return [Array<(PaginatedrpmUlnRemoteResponseList, Integer, Hash)>] PaginatedrpmUlnRemoteResponseList data, response status code and response headers
|
@@ -303,7 +301,6 @@ module PulpRpmClient
|
|
303
301
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
304
302
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
305
303
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
306
|
-
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
307
304
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
308
305
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
309
306
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
@@ -218,7 +218,7 @@ module PulpRpmClient
|
|
218
218
|
# List rpm repositorys
|
219
219
|
# A ViewSet for RpmRepository.
|
220
220
|
# @param [Hash] opts the optional parameters
|
221
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
221
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
222
222
|
# @option opts [Integer] :limit Number of results to return per page.
|
223
223
|
# @option opts [String] :name Filter results where name matches value
|
224
224
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -231,11 +231,10 @@ module PulpRpmClient
|
|
231
231
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
232
232
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
233
233
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
234
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
235
234
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
236
235
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
237
236
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
238
|
-
# @option opts [String] :q
|
237
|
+
# @option opts [String] :q
|
239
238
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
240
239
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
241
240
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -245,7 +244,7 @@ module PulpRpmClient
|
|
245
244
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
246
245
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
247
246
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
248
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
247
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
249
248
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
250
249
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
251
250
|
# @return [PaginatedrpmRpmRepositoryResponseList]
|
@@ -257,7 +256,7 @@ module PulpRpmClient
|
|
257
256
|
# List rpm repositorys
|
258
257
|
# A ViewSet for RpmRepository.
|
259
258
|
# @param [Hash] opts the optional parameters
|
260
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
259
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
261
260
|
# @option opts [Integer] :limit Number of results to return per page.
|
262
261
|
# @option opts [String] :name Filter results where name matches value
|
263
262
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -270,11 +269,10 @@ module PulpRpmClient
|
|
270
269
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
271
270
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
272
271
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
273
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
274
272
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
275
273
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
276
274
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
277
|
-
# @option opts [String] :q
|
275
|
+
# @option opts [String] :q
|
278
276
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
279
277
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
280
278
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -284,7 +282,7 @@ module PulpRpmClient
|
|
284
282
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
285
283
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
286
284
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
287
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
285
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
288
286
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
289
287
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
290
288
|
# @return [Array<(PaginatedrpmRpmRepositoryResponseList, Integer, Hash)>] PaginatedrpmRpmRepositoryResponseList data, response status code and response headers
|
@@ -314,7 +312,6 @@ module PulpRpmClient
|
|
314
312
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
315
313
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
316
314
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
317
|
-
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
318
315
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
319
316
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
320
317
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
@@ -85,8 +85,8 @@ module PulpRpmClient
|
|
85
85
|
# RpmRepositoryVersion represents a single rpm repository version.
|
86
86
|
# @param rpm_rpm_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
-
# @option opts [
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
91
|
# @option opts [Integer] :number Filter results where number matches value
|
92
92
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -96,7 +96,6 @@ module PulpRpmClient
|
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
99
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
100
99
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
101
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
102
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -104,7 +103,7 @@ module PulpRpmClient
|
|
104
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
105
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
106
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
107
|
-
# @option opts [String] :q
|
106
|
+
# @option opts [String] :q
|
108
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
109
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
110
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -117,8 +116,8 @@ module PulpRpmClient
|
|
117
116
|
# RpmRepositoryVersion represents a single rpm repository version.
|
118
117
|
# @param rpm_rpm_repository_href [String]
|
119
118
|
# @param [Hash] opts the optional parameters
|
120
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
121
|
-
# @option opts [
|
119
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
120
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
122
121
|
# @option opts [Integer] :limit Number of results to return per page.
|
123
122
|
# @option opts [Integer] :number Filter results where number matches value
|
124
123
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -128,7 +127,6 @@ module PulpRpmClient
|
|
128
127
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
129
128
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
130
129
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
131
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
132
130
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
133
131
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
134
132
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -136,7 +134,7 @@ module PulpRpmClient
|
|
136
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
137
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
138
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
139
|
-
# @option opts [String] :q
|
137
|
+
# @option opts [String] :q
|
140
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
141
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
142
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -158,7 +156,7 @@ module PulpRpmClient
|
|
158
156
|
# query parameters
|
159
157
|
query_params = opts[:query_params] || {}
|
160
158
|
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
161
|
-
query_params[:'content__in'] =
|
159
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
162
160
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
163
161
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
164
162
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
@@ -168,7 +166,6 @@ module PulpRpmClient
|
|
168
166
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
169
167
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
170
168
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
171
|
-
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
172
169
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
173
170
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
174
171
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
@@ -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
|
@@ -128,7 +128,7 @@ module PulpRpmClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpRpmClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -13,13 +13,10 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
|
-
# Base serializer for use with
|
16
|
+
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
17
17
|
class ArtifactResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
-
# The Pulp Resource Name (PRN).
|
21
|
-
attr_accessor :prn
|
22
|
-
|
23
20
|
# Timestamp of creation.
|
24
21
|
attr_accessor :pulp_created
|
25
22
|
|
@@ -54,7 +51,6 @@ module PulpRpmClient
|
|
54
51
|
def self.attribute_map
|
55
52
|
{
|
56
53
|
:'pulp_href' => :'pulp_href',
|
57
|
-
:'prn' => :'prn',
|
58
54
|
:'pulp_created' => :'pulp_created',
|
59
55
|
:'pulp_last_updated' => :'pulp_last_updated',
|
60
56
|
:'file' => :'file',
|
@@ -72,7 +68,6 @@ module PulpRpmClient
|
|
72
68
|
def self.openapi_types
|
73
69
|
{
|
74
70
|
:'pulp_href' => :'String',
|
75
|
-
:'prn' => :'String',
|
76
71
|
:'pulp_created' => :'DateTime',
|
77
72
|
:'pulp_last_updated' => :'DateTime',
|
78
73
|
:'file' => :'String',
|
@@ -117,10 +112,6 @@ module PulpRpmClient
|
|
117
112
|
self.pulp_href = attributes[:'pulp_href']
|
118
113
|
end
|
119
114
|
|
120
|
-
if attributes.key?(:'prn')
|
121
|
-
self.prn = attributes[:'prn']
|
122
|
-
end
|
123
|
-
|
124
115
|
if attributes.key?(:'pulp_created')
|
125
116
|
self.pulp_created = attributes[:'pulp_created']
|
126
117
|
end
|
@@ -186,7 +177,6 @@ module PulpRpmClient
|
|
186
177
|
return true if self.equal?(o)
|
187
178
|
self.class == o.class &&
|
188
179
|
pulp_href == o.pulp_href &&
|
189
|
-
prn == o.prn &&
|
190
180
|
pulp_created == o.pulp_created &&
|
191
181
|
pulp_last_updated == o.pulp_last_updated &&
|
192
182
|
file == o.file &&
|
@@ -208,7 +198,7 @@ module PulpRpmClient
|
|
208
198
|
# Calculates hash code according to all attributes.
|
209
199
|
# @return [Integer] Hash code
|
210
200
|
def hash
|
211
|
-
[pulp_href,
|
201
|
+
[pulp_href, pulp_created, pulp_last_updated, file, size, md5, sha1, sha224, sha256, sha384, sha512].hash
|
212
202
|
end
|
213
203
|
|
214
204
|
# Builds the object from hash
|
@@ -314,20 +314,20 @@ module PulpRpmClient
|
|
314
314
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
315
315
|
end
|
316
316
|
|
317
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
318
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
317
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
318
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
319
319
|
end
|
320
320
|
|
321
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
322
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
321
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
322
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
323
323
|
end
|
324
324
|
|
325
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
326
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
325
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
326
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
327
327
|
end
|
328
328
|
|
329
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
330
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
329
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
330
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
331
331
|
end
|
332
332
|
|
333
333
|
if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
@@ -351,10 +351,10 @@ module PulpRpmClient
|
|
351
351
|
return false if !@username.nil? && @username.to_s.length < 1
|
352
352
|
return false if !@password.nil? && @password.to_s.length < 1
|
353
353
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
354
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
355
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
356
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
357
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
354
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
355
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
356
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
357
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
358
358
|
return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
359
359
|
true
|
360
360
|
end
|
@@ -472,8 +472,8 @@ module PulpRpmClient
|
|
472
472
|
# Custom attribute writer method with validation
|
473
473
|
# @param [Object] total_timeout Value to be assigned
|
474
474
|
def total_timeout=(total_timeout)
|
475
|
-
if !total_timeout.nil? && total_timeout < 0
|
476
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
475
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
476
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
477
477
|
end
|
478
478
|
|
479
479
|
@total_timeout = total_timeout
|
@@ -482,8 +482,8 @@ module PulpRpmClient
|
|
482
482
|
# Custom attribute writer method with validation
|
483
483
|
# @param [Object] connect_timeout Value to be assigned
|
484
484
|
def connect_timeout=(connect_timeout)
|
485
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
486
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
485
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
486
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
487
487
|
end
|
488
488
|
|
489
489
|
@connect_timeout = connect_timeout
|
@@ -492,8 +492,8 @@ module PulpRpmClient
|
|
492
492
|
# Custom attribute writer method with validation
|
493
493
|
# @param [Object] sock_connect_timeout Value to be assigned
|
494
494
|
def sock_connect_timeout=(sock_connect_timeout)
|
495
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
496
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
495
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
496
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
497
497
|
end
|
498
498
|
|
499
499
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -502,8 +502,8 @@ module PulpRpmClient
|
|
502
502
|
# Custom attribute writer method with validation
|
503
503
|
# @param [Object] sock_read_timeout Value to be assigned
|
504
504
|
def sock_read_timeout=(sock_read_timeout)
|
505
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
506
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
505
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
506
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
507
507
|
end
|
508
508
|
|
509
509
|
@sock_read_timeout = sock_read_timeout
|
@@ -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
|