pulp_rpm_client 3.2.0 → 3.3.0b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContentModulemdDefaultsApi.md +2 -0
- data/docs/ContentModulemdsApi.md +2 -0
- data/docs/ContentPackagesApi.md +2 -0
- data/docs/Copy.md +19 -0
- data/docs/RpmCopyApi.md +62 -0
- data/docs/RpmModulemd.md +3 -1
- data/docs/RpmModulemdDefaults.md +3 -1
- data/docs/RpmPackage.md +2 -0
- data/docs/RpmRepoMetadataFile.md +3 -1
- data/docs/RpmRpmRepository.md +3 -1
- data/lib/pulp_rpm_client.rb +3 -1
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +4 -1
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +4 -1
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +1 -1
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -1
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +1 -1
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +1 -1
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +1 -1
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +1 -1
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +1 -1
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +1 -1
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +86 -0
- data/lib/pulp_rpm_client/api_client.rb +1 -1
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +1 -1
- data/lib/pulp_rpm_client/models/addon.rb +1 -1
- data/lib/pulp_rpm_client/models/artifact.rb +1 -1
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +1 -1
- data/lib/pulp_rpm_client/models/content_summary.rb +1 -1
- data/lib/pulp_rpm_client/models/copy.rb +224 -0
- data/lib/pulp_rpm_client/models/image.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response200.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response20014.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_rpm_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_rpm_client/models/repository_version.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution_tree.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +30 -5
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +30 -5
- data/lib/pulp_rpm_client/models/rpm_package.rb +27 -2
- data/lib/pulp_rpm_client/models/rpm_package_category.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_environment.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_group.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file.rb +30 -5
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +17 -6
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +1 -1
- data/lib/pulp_rpm_client/models/variant.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/pulp_rpm_client.gemspec +1 -1
- data/spec/api/content_advisories_api_spec.rb +1 -1
- data/spec/api/content_distribution_trees_api_spec.rb +1 -1
- data/spec/api/content_modulemd_defaults_api_spec.rb +2 -1
- data/spec/api/content_modulemds_api_spec.rb +2 -1
- data/spec/api/content_packagecategories_api_spec.rb +1 -1
- data/spec/api/content_packageenvironments_api_spec.rb +1 -1
- data/spec/api/content_packagegroups_api_spec.rb +1 -1
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -1
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -1
- data/spec/api/distributions_rpm_api_spec.rb +1 -1
- data/spec/api/publications_rpm_api_spec.rb +1 -1
- data/spec/api/remotes_rpm_api_spec.rb +1 -1
- data/spec/api/repositories_rpm_api_spec.rb +1 -1
- data/spec/api/repositories_rpm_versions_api_spec.rb +1 -1
- data/spec/api/rpm_copy_api_spec.rb +47 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/copy_spec.rb +47 -0
- data/spec/models/image_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +1 -1
- data/spec/models/inline_response20012_spec.rb +1 -1
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20014_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/rpm_distribution_tree_spec.rb +1 -1
- data/spec/models/rpm_modulemd_defaults_spec.rb +7 -1
- data/spec/models/rpm_modulemd_spec.rb +7 -1
- data/spec/models/rpm_package_category_spec.rb +1 -1
- data/spec/models/rpm_package_environment_spec.rb +1 -1
- data/spec/models/rpm_package_group_spec.rb +1 -1
- data/spec/models/rpm_package_langpacks_spec.rb +1 -1
- data/spec/models/rpm_package_spec.rb +7 -1
- data/spec/models/rpm_repo_metadata_file_spec.rb +7 -1
- data/spec/models/rpm_repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_rpm_distribution_spec.rb +1 -1
- data/spec/models/rpm_rpm_publication_spec.rb +1 -1
- data/spec/models/rpm_rpm_remote_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +7 -1
- data/spec/models/rpm_update_collection_spec.rb +1 -1
- data/spec/models/rpm_update_record_spec.rb +1 -1
- data/spec/models/variant_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +12 -4
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,6 +31,9 @@ module PulpRpmClient
|
|
31
31
|
# Checksum for the file.
|
32
32
|
attr_accessor :checksum
|
33
33
|
|
34
|
+
# The SHA-256 checksum if available.
|
35
|
+
attr_accessor :sha256
|
36
|
+
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
38
|
def self.attribute_map
|
36
39
|
{
|
@@ -39,7 +42,8 @@ module PulpRpmClient
|
|
39
42
|
:'artifact' => :'artifact',
|
40
43
|
:'data_type' => :'data_type',
|
41
44
|
:'checksum_type' => :'checksum_type',
|
42
|
-
:'checksum' => :'checksum'
|
45
|
+
:'checksum' => :'checksum',
|
46
|
+
:'sha256' => :'sha256'
|
43
47
|
}
|
44
48
|
end
|
45
49
|
|
@@ -51,7 +55,8 @@ module PulpRpmClient
|
|
51
55
|
:'artifact' => :'String',
|
52
56
|
:'data_type' => :'String',
|
53
57
|
:'checksum_type' => :'String',
|
54
|
-
:'checksum' => :'String'
|
58
|
+
:'checksum' => :'String',
|
59
|
+
:'sha256' => :'String'
|
55
60
|
}
|
56
61
|
end
|
57
62
|
|
@@ -99,6 +104,10 @@ module PulpRpmClient
|
|
99
104
|
if attributes.key?(:'checksum')
|
100
105
|
self.checksum = attributes[:'checksum']
|
101
106
|
end
|
107
|
+
|
108
|
+
if attributes.key?(:'sha256')
|
109
|
+
self.sha256 = attributes[:'sha256']
|
110
|
+
end
|
102
111
|
end
|
103
112
|
|
104
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,6 +138,10 @@ module PulpRpmClient
|
|
129
138
|
invalid_properties.push('invalid value for "checksum", the character length must be great than or equal to 1.')
|
130
139
|
end
|
131
140
|
|
141
|
+
if !@sha256.nil? && @sha256.to_s.length < 1
|
142
|
+
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
143
|
+
end
|
144
|
+
|
132
145
|
invalid_properties
|
133
146
|
end
|
134
147
|
|
@@ -141,6 +154,7 @@ module PulpRpmClient
|
|
141
154
|
return false if @checksum_type.to_s.length < 1
|
142
155
|
return false if @checksum.nil?
|
143
156
|
return false if @checksum.to_s.length < 1
|
157
|
+
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
144
158
|
true
|
145
159
|
end
|
146
160
|
|
@@ -186,6 +200,16 @@ module PulpRpmClient
|
|
186
200
|
@checksum = checksum
|
187
201
|
end
|
188
202
|
|
203
|
+
# Custom attribute writer method with validation
|
204
|
+
# @param [Object] sha256 Value to be assigned
|
205
|
+
def sha256=(sha256)
|
206
|
+
if !sha256.nil? && sha256.to_s.length < 1
|
207
|
+
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
208
|
+
end
|
209
|
+
|
210
|
+
@sha256 = sha256
|
211
|
+
end
|
212
|
+
|
189
213
|
# Checks equality by comparing each attribute.
|
190
214
|
# @param [Object] Object to be compared
|
191
215
|
def ==(o)
|
@@ -196,7 +220,8 @@ module PulpRpmClient
|
|
196
220
|
artifact == o.artifact &&
|
197
221
|
data_type == o.data_type &&
|
198
222
|
checksum_type == o.checksum_type &&
|
199
|
-
checksum == o.checksum
|
223
|
+
checksum == o.checksum &&
|
224
|
+
sha256 == o.sha256
|
200
225
|
end
|
201
226
|
|
202
227
|
# @see the `==` method
|
@@ -208,7 +233,7 @@ module PulpRpmClient
|
|
208
233
|
# Calculates hash code according to all attributes.
|
209
234
|
# @return [Integer] Hash code
|
210
235
|
def hash
|
211
|
-
[pulp_href, pulp_created, artifact, data_type, checksum_type, checksum].hash
|
236
|
+
[pulp_href, pulp_created, artifact, data_type, checksum_type, checksum, sha256].hash
|
212
237
|
end
|
213
238
|
|
214
239
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,6 +29,9 @@ module PulpRpmClient
|
|
29
29
|
# An optional description.
|
30
30
|
attr_accessor :description
|
31
31
|
|
32
|
+
# A reference to an associated signing service.
|
33
|
+
attr_accessor :metadata_signing_service
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -37,7 +40,8 @@ module PulpRpmClient
|
|
37
40
|
:'versions_href' => :'versions_href',
|
38
41
|
:'latest_version_href' => :'latest_version_href',
|
39
42
|
:'name' => :'name',
|
40
|
-
:'description' => :'description'
|
43
|
+
:'description' => :'description',
|
44
|
+
:'metadata_signing_service' => :'metadata_signing_service'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -49,14 +53,16 @@ module PulpRpmClient
|
|
49
53
|
:'versions_href' => :'String',
|
50
54
|
:'latest_version_href' => :'String',
|
51
55
|
:'name' => :'String',
|
52
|
-
:'description' => :'String'
|
56
|
+
:'description' => :'String',
|
57
|
+
:'metadata_signing_service' => :'String'
|
53
58
|
}
|
54
59
|
end
|
55
60
|
|
56
61
|
# List of attributes with nullable: true
|
57
62
|
def self.openapi_nullable
|
58
63
|
Set.new([
|
59
|
-
:'description'
|
64
|
+
:'description',
|
65
|
+
:'metadata_signing_service'
|
60
66
|
])
|
61
67
|
end
|
62
68
|
|
@@ -98,6 +104,10 @@ module PulpRpmClient
|
|
98
104
|
if attributes.key?(:'description')
|
99
105
|
self.description = attributes[:'description']
|
100
106
|
end
|
107
|
+
|
108
|
+
if attributes.key?(:'metadata_signing_service')
|
109
|
+
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
110
|
+
end
|
101
111
|
end
|
102
112
|
|
103
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -162,7 +172,8 @@ module PulpRpmClient
|
|
162
172
|
versions_href == o.versions_href &&
|
163
173
|
latest_version_href == o.latest_version_href &&
|
164
174
|
name == o.name &&
|
165
|
-
description == o.description
|
175
|
+
description == o.description &&
|
176
|
+
metadata_signing_service == o.metadata_signing_service
|
166
177
|
end
|
167
178
|
|
168
179
|
# @see the `==` method
|
@@ -174,7 +185,7 @@ module PulpRpmClient
|
|
174
185
|
# Calculates hash code according to all attributes.
|
175
186
|
# @return [Integer] Hash code
|
176
187
|
def hash
|
177
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description].hash
|
188
|
+
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, metadata_signing_service].hash
|
178
189
|
end
|
179
190
|
|
180
191
|
# Builds the object from hash
|
data/pulp_rpm_client.gemspec
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -58,6 +58,7 @@ describe 'ContentModulemdDefaultsApi' do
|
|
58
58
|
# @option opts [String] :module__in Filter results where module is in a comma-separated list of values
|
59
59
|
# @option opts [String] :stream Filter results where stream matches value
|
60
60
|
# @option opts [String] :stream__in Filter results where stream is in a comma-separated list of values
|
61
|
+
# @option opts [String] :sha256
|
61
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
62
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
63
64
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,6 +63,7 @@ describe 'ContentModulemdsApi' do
|
|
63
63
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
64
64
|
# @option opts [String] :stream Filter results where stream matches value
|
65
65
|
# @option opts [String] :stream__in Filter results where stream is in a comma-separated list of values
|
66
|
+
# @option opts [String] :sha256
|
66
67
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
67
68
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
68
69
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -71,6 +71,7 @@ describe 'ContentPackagesApi' do
|
|
71
71
|
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
72
72
|
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
73
73
|
# @option opts [String] :checksum_type__ne Filter results where checksum_type not equal to value
|
74
|
+
# @option opts [String] :sha256
|
74
75
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
75
76
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
76
77
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|