pulp_rpm_client 3.35.2 → 3.37.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 +4 -4
- data/README.md +4 -4
- data/docs/ContentAdvisoriesApi.md +2 -0
- data/docs/ContentPackagesApi.md +8 -2
- data/docs/Copy.md +3 -1
- data/docs/PatchedrpmRpmDistribution.md +2 -0
- data/docs/PatchedrpmRpmRepository.md +4 -2
- data/docs/RepositoriesRpmApi.md +18 -2
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/docs/RpmModulemd.md +2 -0
- data/docs/RpmModulemdDefaults.md +2 -0
- data/docs/RpmModulemdObsolete.md +2 -0
- data/docs/RpmPackageResponse.md +3 -1
- data/docs/RpmRpmDistribution.md +2 -0
- data/docs/RpmRpmDistributionResponse.md +4 -0
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRepository.md +4 -2
- data/docs/RpmRpmRepositoryResponse.md +4 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +12 -3
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +27 -3
- data/lib/pulp_rpm_client/models/copy.rb +16 -4
- data/lib/pulp_rpm_client/models/layout_enum.rb +1 -2
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +34 -8
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +17 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +22 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +34 -8
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +34 -8
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +4 -1
- data/spec/api/repositories_rpm_api_spec.rb +9 -1
- data/spec/models/copy_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_package_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_distribution_response_spec.rb +12 -0
- data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_spec.rb +6 -0
- metadata +78 -78
|
@@ -24,6 +24,7 @@ module PulpRpmClient
|
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
27
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
27
28
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
28
29
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
29
30
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
|
@@ -42,6 +43,7 @@ module PulpRpmClient
|
|
|
42
43
|
# @param [Hash] opts the optional parameters
|
|
43
44
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
44
45
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
46
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
45
47
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
46
48
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
47
49
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
|
@@ -82,6 +84,7 @@ module PulpRpmClient
|
|
|
82
84
|
# form parameters
|
|
83
85
|
form_params = opts[:form_params] || {}
|
|
84
86
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
87
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
85
88
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
86
89
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
87
90
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
|
@@ -139,7 +142,7 @@ module PulpRpmClient
|
|
|
139
142
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
|
140
143
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
141
144
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
142
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
145
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `signing_keys` - Signing keys * `-signing_keys` - Signing keys (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
143
146
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
144
147
|
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
|
145
148
|
# @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
|
@@ -157,6 +160,7 @@ module PulpRpmClient
|
|
|
157
160
|
# @option opts [String] :repository_version_added
|
|
158
161
|
# @option opts [String] :repository_version_removed
|
|
159
162
|
# @option opts [String] :sha256
|
|
163
|
+
# @option opts [String] :signing_key
|
|
160
164
|
# @option opts [String] :version Filter results where version matches value
|
|
161
165
|
# @option opts [Array<String>] :version__in Filter results where version is in a comma-separated list of values
|
|
162
166
|
# @option opts [String] :version__ne Filter results where version not equal to value
|
|
@@ -191,7 +195,7 @@ module PulpRpmClient
|
|
|
191
195
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
|
192
196
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
193
197
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
194
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
198
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `epoch` - Epoch * `-epoch` - Epoch (descending) * `version` - Version * `-version` - Version (descending) * `release` - Release * `-release` - Release (descending) * `arch` - Arch * `-arch` - Arch (descending) * `evr` - Evr * `-evr` - Evr (descending) * `pkgId` - Pkgid * `-pkgId` - Pkgid (descending) * `checksum_type` - Checksum type * `-checksum_type` - Checksum type (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `url` - Url * `-url` - Url (descending) * `changelogs` - Changelogs * `-changelogs` - Changelogs (descending) * `files` - Files * `-files` - Files (descending) * `requires` - Requires * `-requires` - Requires (descending) * `provides` - Provides * `-provides` - Provides (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `obsoletes` - Obsoletes * `-obsoletes` - Obsoletes (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `supplements` - Supplements * `-supplements` - Supplements (descending) * `location_base` - Location base * `-location_base` - Location base (descending) * `location_href` - Location href * `-location_href` - Location href (descending) * `rpm_buildhost` - Rpm buildhost * `-rpm_buildhost` - Rpm buildhost (descending) * `rpm_group` - Rpm group * `-rpm_group` - Rpm group (descending) * `rpm_license` - Rpm license * `-rpm_license` - Rpm license (descending) * `rpm_packager` - Rpm packager * `-rpm_packager` - Rpm packager (descending) * `rpm_sourcerpm` - Rpm sourcerpm * `-rpm_sourcerpm` - Rpm sourcerpm (descending) * `rpm_vendor` - Rpm vendor * `-rpm_vendor` - Rpm vendor (descending) * `rpm_header_start` - Rpm header start * `-rpm_header_start` - Rpm header start (descending) * `rpm_header_end` - Rpm header end * `-rpm_header_end` - Rpm header end (descending) * `size_archive` - Size archive * `-size_archive` - Size archive (descending) * `size_installed` - Size installed * `-size_installed` - Size installed (descending) * `size_package` - Size package * `-size_package` - Size package (descending) * `time_build` - Time build * `-time_build` - Time build (descending) * `time_file` - Time file * `-time_file` - Time file (descending) * `is_modular` - Is modular * `-is_modular` - Is modular (descending) * `signing_keys` - Signing keys * `-signing_keys` - Signing keys (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
195
199
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
196
200
|
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
|
197
201
|
# @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
|
@@ -209,6 +213,7 @@ module PulpRpmClient
|
|
|
209
213
|
# @option opts [String] :repository_version_added
|
|
210
214
|
# @option opts [String] :repository_version_removed
|
|
211
215
|
# @option opts [String] :sha256
|
|
216
|
+
# @option opts [String] :signing_key
|
|
212
217
|
# @option opts [String] :version Filter results where version matches value
|
|
213
218
|
# @option opts [Array<String>] :version__in Filter results where version is in a comma-separated list of values
|
|
214
219
|
# @option opts [String] :version__ne Filter results where version not equal to value
|
|
@@ -223,7 +228,7 @@ module PulpRpmClient
|
|
|
223
228
|
if @api_client.config.client_side_validation && opts[:'checksum_type'] && !allowable_values.include?(opts[:'checksum_type'])
|
|
224
229
|
fail ArgumentError, "invalid value for \"checksum_type\", must be one of #{allowable_values}"
|
|
225
230
|
end
|
|
226
|
-
allowable_values = ["-arch", "-changelogs", "-checksum_type", "-conflicts", "-description", "-enhances", "-epoch", "-evr", "-files", "-is_modular", "-location_base", "-location_href", "-name", "-obsoletes", "-pk", "-pkgId", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-release", "-requires", "-rpm_buildhost", "-rpm_group", "-rpm_header_end", "-rpm_header_start", "-rpm_license", "-rpm_packager", "-rpm_sourcerpm", "-rpm_vendor", "-size_archive", "-size_installed", "-size_package", "-suggests", "-summary", "-supplements", "-time_build", "-time_file", "-timestamp_of_interest", "-upstream_id", "-url", "-version", "arch", "changelogs", "checksum_type", "conflicts", "description", "enhances", "epoch", "evr", "files", "is_modular", "location_base", "location_href", "name", "obsoletes", "pk", "pkgId", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "release", "requires", "rpm_buildhost", "rpm_group", "rpm_header_end", "rpm_header_start", "rpm_license", "rpm_packager", "rpm_sourcerpm", "rpm_vendor", "size_archive", "size_installed", "size_package", "suggests", "summary", "supplements", "time_build", "time_file", "timestamp_of_interest", "upstream_id", "url", "version"]
|
|
231
|
+
allowable_values = ["-arch", "-changelogs", "-checksum_type", "-conflicts", "-description", "-enhances", "-epoch", "-evr", "-files", "-is_modular", "-location_base", "-location_href", "-name", "-obsoletes", "-pk", "-pkgId", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-release", "-requires", "-rpm_buildhost", "-rpm_group", "-rpm_header_end", "-rpm_header_start", "-rpm_license", "-rpm_packager", "-rpm_sourcerpm", "-rpm_vendor", "-signing_keys", "-size_archive", "-size_installed", "-size_package", "-suggests", "-summary", "-supplements", "-time_build", "-time_file", "-timestamp_of_interest", "-upstream_id", "-url", "-version", "arch", "changelogs", "checksum_type", "conflicts", "description", "enhances", "epoch", "evr", "files", "is_modular", "location_base", "location_href", "name", "obsoletes", "pk", "pkgId", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "release", "requires", "rpm_buildhost", "rpm_group", "rpm_header_end", "rpm_header_start", "rpm_license", "rpm_packager", "rpm_sourcerpm", "rpm_vendor", "signing_keys", "size_archive", "size_installed", "size_package", "suggests", "summary", "supplements", "time_build", "time_file", "timestamp_of_interest", "upstream_id", "url", "version"]
|
|
227
232
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
228
233
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
229
234
|
end
|
|
@@ -269,6 +274,7 @@ module PulpRpmClient
|
|
|
269
274
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
270
275
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
271
276
|
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
|
277
|
+
query_params[:'signing_key'] = opts[:'signing_key'] if !opts[:'signing_key'].nil?
|
|
272
278
|
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
|
273
279
|
query_params[:'version__in'] = @api_client.build_collection_param(opts[:'version__in'], :csv) if !opts[:'version__in'].nil?
|
|
274
280
|
query_params[:'version__ne'] = opts[:'version__ne'] if !opts[:'version__ne'].nil?
|
|
@@ -540,6 +546,7 @@ module PulpRpmClient
|
|
|
540
546
|
# Synchronously upload an RPM package.
|
|
541
547
|
# @param [Hash] opts the optional parameters
|
|
542
548
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
549
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
543
550
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
544
551
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
545
552
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -556,6 +563,7 @@ module PulpRpmClient
|
|
|
556
563
|
# Synchronously upload an RPM package.
|
|
557
564
|
# @param [Hash] opts the optional parameters
|
|
558
565
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
566
|
+
# @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
559
567
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
560
568
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
561
569
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -590,6 +598,7 @@ module PulpRpmClient
|
|
|
590
598
|
|
|
591
599
|
# form parameters
|
|
592
600
|
form_params = opts[:form_params] || {}
|
|
601
|
+
form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
|
|
593
602
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
|
594
603
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
|
595
604
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
@@ -249,13 +249,21 @@ module PulpRpmClient
|
|
|
249
249
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
250
250
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
251
251
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
252
|
-
# @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)
|
|
252
|
+
# @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) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
253
253
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
254
254
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
255
255
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
256
256
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
257
257
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
258
258
|
# @option opts [String] :remote
|
|
259
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
260
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
261
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
262
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
263
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
264
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
265
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
266
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
259
267
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
260
268
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
261
269
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -289,13 +297,21 @@ module PulpRpmClient
|
|
|
289
297
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
290
298
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
291
299
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
292
|
-
# @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)
|
|
300
|
+
# @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) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
293
301
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
294
302
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
295
303
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
296
304
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
297
305
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
298
306
|
# @option opts [String] :remote
|
|
307
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
308
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
309
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
310
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
311
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
312
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
313
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
314
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
299
315
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
300
316
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
301
317
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -312,7 +328,7 @@ module PulpRpmClient
|
|
|
312
328
|
if @api_client.config.debugging
|
|
313
329
|
@api_client.config.logger.debug 'Calling API: RepositoriesRpmApi.list ...'
|
|
314
330
|
end
|
|
315
|
-
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
|
|
331
|
+
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
|
|
316
332
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
317
333
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
318
334
|
end
|
|
@@ -340,6 +356,14 @@ module PulpRpmClient
|
|
|
340
356
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
341
357
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
342
358
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
|
359
|
+
query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
|
|
360
|
+
query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
|
|
361
|
+
query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
|
|
362
|
+
query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
|
|
363
|
+
query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
|
|
364
|
+
query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
|
|
365
|
+
query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
|
|
366
|
+
query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
|
|
343
367
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
|
344
368
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
|
345
369
|
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
|
@@ -22,11 +22,15 @@ module PulpRpmClient
|
|
|
22
22
|
# Also copy dependencies of the content being copied.
|
|
23
23
|
attr_accessor :dependency_solving
|
|
24
24
|
|
|
25
|
+
# Resolve dependencies to their latest compatible versions instead of preferring versions already in the destination.
|
|
26
|
+
attr_accessor :dependency_upgrade
|
|
27
|
+
|
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
29
|
def self.attribute_map
|
|
27
30
|
{
|
|
28
31
|
:'config' => :'config',
|
|
29
|
-
:'dependency_solving' => :'dependency_solving'
|
|
32
|
+
:'dependency_solving' => :'dependency_solving',
|
|
33
|
+
:'dependency_upgrade' => :'dependency_upgrade'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
32
36
|
|
|
@@ -39,7 +43,8 @@ module PulpRpmClient
|
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
41
45
|
:'config' => :'Object',
|
|
42
|
-
:'dependency_solving' => :'Boolean'
|
|
46
|
+
:'dependency_solving' => :'Boolean',
|
|
47
|
+
:'dependency_upgrade' => :'Boolean'
|
|
43
48
|
}
|
|
44
49
|
end
|
|
45
50
|
|
|
@@ -76,6 +81,12 @@ module PulpRpmClient
|
|
|
76
81
|
else
|
|
77
82
|
self.dependency_solving = true
|
|
78
83
|
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'dependency_upgrade')
|
|
86
|
+
self.dependency_upgrade = attributes[:'dependency_upgrade']
|
|
87
|
+
else
|
|
88
|
+
self.dependency_upgrade = false
|
|
89
|
+
end
|
|
79
90
|
end
|
|
80
91
|
|
|
81
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -99,7 +110,8 @@ module PulpRpmClient
|
|
|
99
110
|
return true if self.equal?(o)
|
|
100
111
|
self.class == o.class &&
|
|
101
112
|
config == o.config &&
|
|
102
|
-
dependency_solving == o.dependency_solving
|
|
113
|
+
dependency_solving == o.dependency_solving &&
|
|
114
|
+
dependency_upgrade == o.dependency_upgrade
|
|
103
115
|
end
|
|
104
116
|
|
|
105
117
|
# @see the `==` method
|
|
@@ -111,7 +123,7 @@ module PulpRpmClient
|
|
|
111
123
|
# Calculates hash code according to all attributes.
|
|
112
124
|
# @return [Integer] Hash code
|
|
113
125
|
def hash
|
|
114
|
-
[config, dependency_solving].hash
|
|
126
|
+
[config, dependency_solving, dependency_upgrade].hash
|
|
115
127
|
end
|
|
116
128
|
|
|
117
129
|
# Builds the object from hash
|
|
@@ -18,10 +18,9 @@ module PulpRpmClient
|
|
|
18
18
|
NESTED_ALPHABETICALLY = "nested_alphabetically".freeze
|
|
19
19
|
FLAT = "flat".freeze
|
|
20
20
|
NESTED_BY_DIGEST = "nested_by_digest".freeze
|
|
21
|
-
NESTED_BY_BOTH = "nested_by_both".freeze
|
|
22
21
|
|
|
23
22
|
def self.all_vars
|
|
24
|
-
@all_vars ||= [NESTED_ALPHABETICALLY, FLAT, NESTED_BY_DIGEST
|
|
23
|
+
@all_vars ||= [NESTED_ALPHABETICALLY, FLAT, NESTED_BY_DIGEST].freeze
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
# Builds the enum from string
|
|
@@ -33,6 +33,9 @@ module PulpRpmClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
36
39
|
# Publication to be served
|
|
37
40
|
attr_accessor :publication
|
|
38
41
|
|
|
@@ -50,6 +53,7 @@ module PulpRpmClient
|
|
|
50
53
|
:'pulp_labels' => :'pulp_labels',
|
|
51
54
|
:'name' => :'name',
|
|
52
55
|
:'repository' => :'repository',
|
|
56
|
+
:'repository_version' => :'repository_version',
|
|
53
57
|
:'publication' => :'publication',
|
|
54
58
|
:'generate_repo_config' => :'generate_repo_config',
|
|
55
59
|
:'checkpoint' => :'checkpoint'
|
|
@@ -70,6 +74,7 @@ module PulpRpmClient
|
|
|
70
74
|
:'pulp_labels' => :'Hash<String, String>',
|
|
71
75
|
:'name' => :'String',
|
|
72
76
|
:'repository' => :'String',
|
|
77
|
+
:'repository_version' => :'String',
|
|
73
78
|
:'publication' => :'String',
|
|
74
79
|
:'generate_repo_config' => :'Boolean',
|
|
75
80
|
:'checkpoint' => :'Boolean'
|
|
@@ -81,6 +86,7 @@ module PulpRpmClient
|
|
|
81
86
|
Set.new([
|
|
82
87
|
:'content_guard',
|
|
83
88
|
:'repository',
|
|
89
|
+
:'repository_version',
|
|
84
90
|
:'publication',
|
|
85
91
|
])
|
|
86
92
|
end
|
|
@@ -128,6 +134,10 @@ module PulpRpmClient
|
|
|
128
134
|
self.repository = attributes[:'repository']
|
|
129
135
|
end
|
|
130
136
|
|
|
137
|
+
if attributes.key?(:'repository_version')
|
|
138
|
+
self.repository_version = attributes[:'repository_version']
|
|
139
|
+
end
|
|
140
|
+
|
|
131
141
|
if attributes.key?(:'publication')
|
|
132
142
|
self.publication = attributes[:'publication']
|
|
133
143
|
end
|
|
@@ -207,6 +217,7 @@ module PulpRpmClient
|
|
|
207
217
|
pulp_labels == o.pulp_labels &&
|
|
208
218
|
name == o.name &&
|
|
209
219
|
repository == o.repository &&
|
|
220
|
+
repository_version == o.repository_version &&
|
|
210
221
|
publication == o.publication &&
|
|
211
222
|
generate_repo_config == o.generate_repo_config &&
|
|
212
223
|
checkpoint == o.checkpoint
|
|
@@ -221,7 +232,7 @@ module PulpRpmClient
|
|
|
221
232
|
# Calculates hash code according to all attributes.
|
|
222
233
|
# @return [Integer] Hash code
|
|
223
234
|
def hash
|
|
224
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config, checkpoint].hash
|
|
235
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, generate_repo_config, checkpoint].hash
|
|
225
236
|
end
|
|
226
237
|
|
|
227
238
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpRpmClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -39,7 +42,7 @@ module PulpRpmClient
|
|
|
39
42
|
# A reference to an associated package signing service.
|
|
40
43
|
attr_accessor :package_signing_service
|
|
41
44
|
|
|
42
|
-
# The pubkey
|
|
45
|
+
# The pubkey fingerprint to be passed to the package signing service. Format: 'v<N>:<hex-fingerprint>' or 'keyid:<16-hex-char>'. Example: 'v4:ABCDEF1234567890ABCDEF1234567890ABCDEF12'.
|
|
43
46
|
attr_accessor :package_signing_fingerprint
|
|
44
47
|
|
|
45
48
|
# 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.
|
|
@@ -54,7 +57,7 @@ module PulpRpmClient
|
|
|
54
57
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz * `none` - none
|
|
55
58
|
attr_accessor :compression_type
|
|
56
59
|
|
|
57
|
-
# How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
|
|
60
|
+
# How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
|
|
58
61
|
attr_accessor :layout
|
|
59
62
|
|
|
60
63
|
class EnumAttributeValidator
|
|
@@ -86,6 +89,7 @@ module PulpRpmClient
|
|
|
86
89
|
:'name' => :'name',
|
|
87
90
|
:'description' => :'description',
|
|
88
91
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
92
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
89
93
|
:'remote' => :'remote',
|
|
90
94
|
:'autopublish' => :'autopublish',
|
|
91
95
|
:'metadata_signing_service' => :'metadata_signing_service',
|
|
@@ -111,6 +115,7 @@ module PulpRpmClient
|
|
|
111
115
|
:'name' => :'String',
|
|
112
116
|
:'description' => :'String',
|
|
113
117
|
:'retain_repo_versions' => :'Integer',
|
|
118
|
+
:'retain_checkpoints' => :'Integer',
|
|
114
119
|
:'remote' => :'String',
|
|
115
120
|
:'autopublish' => :'Boolean',
|
|
116
121
|
:'metadata_signing_service' => :'String',
|
|
@@ -129,6 +134,7 @@ module PulpRpmClient
|
|
|
129
134
|
Set.new([
|
|
130
135
|
:'description',
|
|
131
136
|
:'retain_repo_versions',
|
|
137
|
+
:'retain_checkpoints',
|
|
132
138
|
:'remote',
|
|
133
139
|
:'metadata_signing_service',
|
|
134
140
|
:'package_signing_service',
|
|
@@ -173,6 +179,10 @@ module PulpRpmClient
|
|
|
173
179
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
174
180
|
end
|
|
175
181
|
|
|
182
|
+
if attributes.key?(:'retain_checkpoints')
|
|
183
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
184
|
+
end
|
|
185
|
+
|
|
176
186
|
if attributes.key?(:'remote')
|
|
177
187
|
self.remote = attributes[:'remote']
|
|
178
188
|
end
|
|
@@ -233,8 +243,12 @@ module PulpRpmClient
|
|
|
233
243
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
234
244
|
end
|
|
235
245
|
|
|
236
|
-
if !@
|
|
237
|
-
invalid_properties.push('invalid value for "
|
|
246
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
247
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
251
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.')
|
|
238
252
|
end
|
|
239
253
|
|
|
240
254
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
@@ -255,7 +269,8 @@ module PulpRpmClient
|
|
|
255
269
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
256
270
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
257
271
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
258
|
-
return false if !@
|
|
272
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
273
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
259
274
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
260
275
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
|
261
276
|
true
|
|
@@ -295,11 +310,21 @@ module PulpRpmClient
|
|
|
295
310
|
@retain_repo_versions = retain_repo_versions
|
|
296
311
|
end
|
|
297
312
|
|
|
313
|
+
# Custom attribute writer method with validation
|
|
314
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
315
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
316
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
317
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
@retain_checkpoints = retain_checkpoints
|
|
321
|
+
end
|
|
322
|
+
|
|
298
323
|
# Custom attribute writer method with validation
|
|
299
324
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
300
325
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
301
|
-
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length >
|
|
302
|
-
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to
|
|
326
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 68
|
|
327
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.'
|
|
303
328
|
end
|
|
304
329
|
|
|
305
330
|
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length < 1
|
|
@@ -332,6 +357,7 @@ module PulpRpmClient
|
|
|
332
357
|
name == o.name &&
|
|
333
358
|
description == o.description &&
|
|
334
359
|
retain_repo_versions == o.retain_repo_versions &&
|
|
360
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
335
361
|
remote == o.remote &&
|
|
336
362
|
autopublish == o.autopublish &&
|
|
337
363
|
metadata_signing_service == o.metadata_signing_service &&
|
|
@@ -353,7 +379,7 @@ module PulpRpmClient
|
|
|
353
379
|
# Calculates hash code according to all attributes.
|
|
354
380
|
# @return [Integer] Hash code
|
|
355
381
|
def hash
|
|
356
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, repo_config, compression_type, layout].hash
|
|
382
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, repo_config, compression_type, layout].hash
|
|
357
383
|
end
|
|
358
384
|
|
|
359
385
|
# Builds the object from hash
|
|
@@ -25,12 +25,16 @@ module PulpRpmClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpRpmClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpRpmClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpRpmClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpRpmClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module PulpRpmClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -62,6 +65,7 @@ module PulpRpmClient
|
|
|
62
65
|
def self.attribute_map
|
|
63
66
|
{
|
|
64
67
|
:'repository' => :'repository',
|
|
68
|
+
:'overwrite' => :'overwrite',
|
|
65
69
|
:'pulp_labels' => :'pulp_labels',
|
|
66
70
|
:'name' => :'name',
|
|
67
71
|
:'stream' => :'stream',
|
|
@@ -87,6 +91,7 @@ module PulpRpmClient
|
|
|
87
91
|
def self.openapi_types
|
|
88
92
|
{
|
|
89
93
|
:'repository' => :'String',
|
|
94
|
+
:'overwrite' => :'Boolean',
|
|
90
95
|
:'pulp_labels' => :'Hash<String, String>',
|
|
91
96
|
:'name' => :'String',
|
|
92
97
|
:'stream' => :'String',
|
|
@@ -131,6 +136,10 @@ module PulpRpmClient
|
|
|
131
136
|
self.repository = attributes[:'repository']
|
|
132
137
|
end
|
|
133
138
|
|
|
139
|
+
if attributes.key?(:'overwrite')
|
|
140
|
+
self.overwrite = attributes[:'overwrite']
|
|
141
|
+
end
|
|
142
|
+
|
|
134
143
|
if attributes.key?(:'pulp_labels')
|
|
135
144
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
136
145
|
self.pulp_labels = value
|
|
@@ -397,6 +406,7 @@ module PulpRpmClient
|
|
|
397
406
|
return true if self.equal?(o)
|
|
398
407
|
self.class == o.class &&
|
|
399
408
|
repository == o.repository &&
|
|
409
|
+
overwrite == o.overwrite &&
|
|
400
410
|
pulp_labels == o.pulp_labels &&
|
|
401
411
|
name == o.name &&
|
|
402
412
|
stream == o.stream &&
|
|
@@ -421,7 +431,7 @@ module PulpRpmClient
|
|
|
421
431
|
# Calculates hash code according to all attributes.
|
|
422
432
|
# @return [Integer] Hash code
|
|
423
433
|
def hash
|
|
424
|
-
[repository, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
|
434
|
+
[repository, overwrite, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
|
425
435
|
end
|
|
426
436
|
|
|
427
437
|
# Builds the object from hash
|