pulp_rpm_client 3.23.0 → 3.25.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 +5 -5
- data/docs/{MetadataChecksumTypeEnum.md → CompressionTypeEnum.md} +2 -2
- data/docs/ContentAdvisoriesApi.md +4 -2
- data/docs/ContentPackagesApi.md +4 -4
- data/docs/PatchedrpmRpmRepository.md +10 -6
- data/docs/RpmPackage.md +2 -2
- data/docs/RpmRpmPublication.md +10 -6
- data/docs/RpmRpmPublicationResponse.md +12 -6
- data/docs/RpmRpmRepository.md +10 -6
- data/docs/RpmRpmRepositoryResponse.md +12 -6
- data/docs/RpmUpdateRecord.md +4 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +5 -2
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -4
- data/lib/pulp_rpm_client/models/{metadata_checksum_type_enum.rb → compression_type_enum.rb} +5 -10
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +37 -19
- data/lib/pulp_rpm_client/models/rpm_package.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +35 -15
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +42 -10
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +37 -19
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +44 -14
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +15 -5
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +2 -1
- data/spec/api/content_packages_api_spec.rb +2 -2
- data/spec/models/{metadata_checksum_type_enum_spec.rb → compression_type_enum_spec.rb} +6 -6
- data/spec/models/patchedrpm_rpm_repository_spec.rb +13 -1
- data/spec/models/rpm_rpm_publication_response_spec.rb +18 -0
- data/spec/models/rpm_rpm_publication_spec.rb +13 -1
- data/spec/models/rpm_rpm_repository_response_spec.rb +18 -0
- data/spec/models/rpm_rpm_repository_spec.rb +13 -1
- data/spec/models/rpm_update_record_spec.rb +6 -0
- metadata +86 -86
|
@@ -20,31 +20,39 @@ module PulpRpmClient
|
|
|
20
20
|
# A URI of the repository to be published.
|
|
21
21
|
attr_accessor :repository
|
|
22
22
|
|
|
23
|
-
# The checksum type
|
|
23
|
+
# The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
24
|
+
attr_accessor :checksum_type
|
|
25
|
+
|
|
26
|
+
# DEPRECATED: The checksum type for metadata. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
24
27
|
attr_accessor :metadata_checksum_type
|
|
25
28
|
|
|
26
|
-
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
29
|
+
# DEPRECATED: The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
27
30
|
attr_accessor :package_checksum_type
|
|
28
31
|
|
|
29
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
|
32
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
|
30
33
|
attr_accessor :gpgcheck
|
|
31
34
|
|
|
32
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
35
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
33
36
|
attr_accessor :repo_gpgcheck
|
|
34
37
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
38
|
+
# A JSON document describing config.repo file
|
|
39
|
+
attr_accessor :repo_config
|
|
40
|
+
|
|
41
|
+
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
|
42
|
+
attr_accessor :compression_type
|
|
37
43
|
|
|
38
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
45
|
def self.attribute_map
|
|
40
46
|
{
|
|
41
47
|
:'repository_version' => :'repository_version',
|
|
42
48
|
:'repository' => :'repository',
|
|
49
|
+
:'checksum_type' => :'checksum_type',
|
|
43
50
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
|
44
51
|
:'package_checksum_type' => :'package_checksum_type',
|
|
45
52
|
:'gpgcheck' => :'gpgcheck',
|
|
46
53
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
|
47
|
-
:'
|
|
54
|
+
:'repo_config' => :'repo_config',
|
|
55
|
+
:'compression_type' => :'compression_type'
|
|
48
56
|
}
|
|
49
57
|
end
|
|
50
58
|
|
|
@@ -53,17 +61,21 @@ module PulpRpmClient
|
|
|
53
61
|
{
|
|
54
62
|
:'repository_version' => :'String',
|
|
55
63
|
:'repository' => :'String',
|
|
56
|
-
:'
|
|
64
|
+
:'checksum_type' => :'PackageChecksumTypeEnum',
|
|
65
|
+
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
|
57
66
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
|
58
67
|
:'gpgcheck' => :'Integer',
|
|
59
68
|
:'repo_gpgcheck' => :'Integer',
|
|
60
|
-
:'
|
|
69
|
+
:'repo_config' => :'Object',
|
|
70
|
+
:'compression_type' => :'CompressionTypeEnum'
|
|
61
71
|
}
|
|
62
72
|
end
|
|
63
73
|
|
|
64
74
|
# List of attributes with nullable: true
|
|
65
75
|
def self.openapi_nullable
|
|
66
76
|
Set.new([
|
|
77
|
+
:'gpgcheck',
|
|
78
|
+
:'repo_gpgcheck',
|
|
67
79
|
])
|
|
68
80
|
end
|
|
69
81
|
|
|
@@ -90,6 +102,10 @@ module PulpRpmClient
|
|
|
90
102
|
self.repository = attributes[:'repository']
|
|
91
103
|
end
|
|
92
104
|
|
|
105
|
+
if attributes.key?(:'checksum_type')
|
|
106
|
+
self.checksum_type = attributes[:'checksum_type']
|
|
107
|
+
end
|
|
108
|
+
|
|
93
109
|
if attributes.key?(:'metadata_checksum_type')
|
|
94
110
|
self.metadata_checksum_type = attributes[:'metadata_checksum_type']
|
|
95
111
|
end
|
|
@@ -106,10 +122,12 @@ module PulpRpmClient
|
|
|
106
122
|
self.repo_gpgcheck = attributes[:'repo_gpgcheck']
|
|
107
123
|
end
|
|
108
124
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
111
|
-
|
|
112
|
-
|
|
125
|
+
if attributes.key?(:'repo_config')
|
|
126
|
+
self.repo_config = attributes[:'repo_config']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'compression_type')
|
|
130
|
+
self.compression_type = attributes[:'compression_type']
|
|
113
131
|
end
|
|
114
132
|
end
|
|
115
133
|
|
|
@@ -181,11 +199,13 @@ module PulpRpmClient
|
|
|
181
199
|
self.class == o.class &&
|
|
182
200
|
repository_version == o.repository_version &&
|
|
183
201
|
repository == o.repository &&
|
|
202
|
+
checksum_type == o.checksum_type &&
|
|
184
203
|
metadata_checksum_type == o.metadata_checksum_type &&
|
|
185
204
|
package_checksum_type == o.package_checksum_type &&
|
|
186
205
|
gpgcheck == o.gpgcheck &&
|
|
187
206
|
repo_gpgcheck == o.repo_gpgcheck &&
|
|
188
|
-
|
|
207
|
+
repo_config == o.repo_config &&
|
|
208
|
+
compression_type == o.compression_type
|
|
189
209
|
end
|
|
190
210
|
|
|
191
211
|
# @see the `==` method
|
|
@@ -197,7 +217,7 @@ module PulpRpmClient
|
|
|
197
217
|
# Calculates hash code according to all attributes.
|
|
198
218
|
# @return [Integer] Hash code
|
|
199
219
|
def hash
|
|
200
|
-
[repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck,
|
|
220
|
+
[repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
|
|
201
221
|
end
|
|
202
222
|
|
|
203
223
|
# Builds the object from hash
|
|
@@ -25,21 +25,30 @@ module PulpRpmClient
|
|
|
25
25
|
# A URI of the repository to be published.
|
|
26
26
|
attr_accessor :repository
|
|
27
27
|
|
|
28
|
-
# The checksum type
|
|
28
|
+
# The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
29
|
+
attr_accessor :checksum_type
|
|
30
|
+
|
|
31
|
+
# DEPRECATED: The checksum type for metadata. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
29
32
|
attr_accessor :metadata_checksum_type
|
|
30
33
|
|
|
31
|
-
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
34
|
+
# DEPRECATED: The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
32
35
|
attr_accessor :package_checksum_type
|
|
33
36
|
|
|
34
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
|
37
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
|
35
38
|
attr_accessor :gpgcheck
|
|
36
39
|
|
|
37
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
40
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
38
41
|
attr_accessor :repo_gpgcheck
|
|
39
42
|
|
|
40
|
-
#
|
|
43
|
+
# REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release
|
|
41
44
|
attr_accessor :sqlite_metadata
|
|
42
45
|
|
|
46
|
+
# A JSON document describing config.repo file
|
|
47
|
+
attr_accessor :repo_config
|
|
48
|
+
|
|
49
|
+
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
|
50
|
+
attr_accessor :compression_type
|
|
51
|
+
|
|
43
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
53
|
def self.attribute_map
|
|
45
54
|
{
|
|
@@ -47,11 +56,14 @@ module PulpRpmClient
|
|
|
47
56
|
:'pulp_created' => :'pulp_created',
|
|
48
57
|
:'repository_version' => :'repository_version',
|
|
49
58
|
:'repository' => :'repository',
|
|
59
|
+
:'checksum_type' => :'checksum_type',
|
|
50
60
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
|
51
61
|
:'package_checksum_type' => :'package_checksum_type',
|
|
52
62
|
:'gpgcheck' => :'gpgcheck',
|
|
53
63
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
|
54
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
|
64
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
|
65
|
+
:'repo_config' => :'repo_config',
|
|
66
|
+
:'compression_type' => :'compression_type'
|
|
55
67
|
}
|
|
56
68
|
end
|
|
57
69
|
|
|
@@ -62,17 +74,22 @@ module PulpRpmClient
|
|
|
62
74
|
:'pulp_created' => :'DateTime',
|
|
63
75
|
:'repository_version' => :'String',
|
|
64
76
|
:'repository' => :'String',
|
|
65
|
-
:'
|
|
77
|
+
:'checksum_type' => :'PackageChecksumTypeEnum',
|
|
78
|
+
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
|
66
79
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
|
67
80
|
:'gpgcheck' => :'Integer',
|
|
68
81
|
:'repo_gpgcheck' => :'Integer',
|
|
69
|
-
:'sqlite_metadata' => :'Boolean'
|
|
82
|
+
:'sqlite_metadata' => :'Boolean',
|
|
83
|
+
:'repo_config' => :'Object',
|
|
84
|
+
:'compression_type' => :'CompressionTypeEnum'
|
|
70
85
|
}
|
|
71
86
|
end
|
|
72
87
|
|
|
73
88
|
# List of attributes with nullable: true
|
|
74
89
|
def self.openapi_nullable
|
|
75
90
|
Set.new([
|
|
91
|
+
:'gpgcheck',
|
|
92
|
+
:'repo_gpgcheck',
|
|
76
93
|
])
|
|
77
94
|
end
|
|
78
95
|
|
|
@@ -107,6 +124,10 @@ module PulpRpmClient
|
|
|
107
124
|
self.repository = attributes[:'repository']
|
|
108
125
|
end
|
|
109
126
|
|
|
127
|
+
if attributes.key?(:'checksum_type')
|
|
128
|
+
self.checksum_type = attributes[:'checksum_type']
|
|
129
|
+
end
|
|
130
|
+
|
|
110
131
|
if attributes.key?(:'metadata_checksum_type')
|
|
111
132
|
self.metadata_checksum_type = attributes[:'metadata_checksum_type']
|
|
112
133
|
end
|
|
@@ -128,6 +149,14 @@ module PulpRpmClient
|
|
|
128
149
|
else
|
|
129
150
|
self.sqlite_metadata = false
|
|
130
151
|
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'repo_config')
|
|
154
|
+
self.repo_config = attributes[:'repo_config']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'compression_type')
|
|
158
|
+
self.compression_type = attributes[:'compression_type']
|
|
159
|
+
end
|
|
131
160
|
end
|
|
132
161
|
|
|
133
162
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -200,11 +229,14 @@ module PulpRpmClient
|
|
|
200
229
|
pulp_created == o.pulp_created &&
|
|
201
230
|
repository_version == o.repository_version &&
|
|
202
231
|
repository == o.repository &&
|
|
232
|
+
checksum_type == o.checksum_type &&
|
|
203
233
|
metadata_checksum_type == o.metadata_checksum_type &&
|
|
204
234
|
package_checksum_type == o.package_checksum_type &&
|
|
205
235
|
gpgcheck == o.gpgcheck &&
|
|
206
236
|
repo_gpgcheck == o.repo_gpgcheck &&
|
|
207
|
-
sqlite_metadata == o.sqlite_metadata
|
|
237
|
+
sqlite_metadata == o.sqlite_metadata &&
|
|
238
|
+
repo_config == o.repo_config &&
|
|
239
|
+
compression_type == o.compression_type
|
|
208
240
|
end
|
|
209
241
|
|
|
210
242
|
# @see the `==` method
|
|
@@ -216,7 +248,7 @@ module PulpRpmClient
|
|
|
216
248
|
# Calculates hash code according to all attributes.
|
|
217
249
|
# @return [Integer] Hash code
|
|
218
250
|
def hash
|
|
219
|
-
[pulp_href, pulp_created, repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
|
251
|
+
[pulp_href, pulp_created, repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
|
|
220
252
|
end
|
|
221
253
|
|
|
222
254
|
# Builds the object from hash
|
|
@@ -38,20 +38,26 @@ module PulpRpmClient
|
|
|
38
38
|
# 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
39
|
attr_accessor :retain_package_versions
|
|
40
40
|
|
|
41
|
-
# The checksum type
|
|
41
|
+
# The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
42
|
+
attr_accessor :checksum_type
|
|
43
|
+
|
|
44
|
+
# DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
42
45
|
attr_accessor :metadata_checksum_type
|
|
43
46
|
|
|
44
|
-
#
|
|
47
|
+
# DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
45
48
|
attr_accessor :package_checksum_type
|
|
46
49
|
|
|
47
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
|
50
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
|
48
51
|
attr_accessor :gpgcheck
|
|
49
52
|
|
|
50
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
53
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
51
54
|
attr_accessor :repo_gpgcheck
|
|
52
55
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
56
|
+
# A JSON document describing config.repo file
|
|
57
|
+
attr_accessor :repo_config
|
|
58
|
+
|
|
59
|
+
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
|
60
|
+
attr_accessor :compression_type
|
|
55
61
|
|
|
56
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
63
|
def self.attribute_map
|
|
@@ -64,11 +70,13 @@ module PulpRpmClient
|
|
|
64
70
|
:'autopublish' => :'autopublish',
|
|
65
71
|
:'metadata_signing_service' => :'metadata_signing_service',
|
|
66
72
|
:'retain_package_versions' => :'retain_package_versions',
|
|
73
|
+
:'checksum_type' => :'checksum_type',
|
|
67
74
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
|
68
75
|
:'package_checksum_type' => :'package_checksum_type',
|
|
69
76
|
:'gpgcheck' => :'gpgcheck',
|
|
70
77
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
|
71
|
-
:'
|
|
78
|
+
:'repo_config' => :'repo_config',
|
|
79
|
+
:'compression_type' => :'compression_type'
|
|
72
80
|
}
|
|
73
81
|
end
|
|
74
82
|
|
|
@@ -83,11 +91,13 @@ module PulpRpmClient
|
|
|
83
91
|
:'autopublish' => :'Boolean',
|
|
84
92
|
:'metadata_signing_service' => :'String',
|
|
85
93
|
:'retain_package_versions' => :'Integer',
|
|
86
|
-
:'
|
|
94
|
+
:'checksum_type' => :'PackageChecksumTypeEnum',
|
|
95
|
+
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
|
87
96
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
|
88
97
|
:'gpgcheck' => :'Integer',
|
|
89
98
|
:'repo_gpgcheck' => :'Integer',
|
|
90
|
-
:'
|
|
99
|
+
:'repo_config' => :'Object',
|
|
100
|
+
:'compression_type' => :'CompressionTypeEnum'
|
|
91
101
|
}
|
|
92
102
|
end
|
|
93
103
|
|
|
@@ -98,8 +108,12 @@ module PulpRpmClient
|
|
|
98
108
|
:'retain_repo_versions',
|
|
99
109
|
:'remote',
|
|
100
110
|
:'metadata_signing_service',
|
|
111
|
+
:'checksum_type',
|
|
101
112
|
:'metadata_checksum_type',
|
|
102
113
|
:'package_checksum_type',
|
|
114
|
+
:'gpgcheck',
|
|
115
|
+
:'repo_gpgcheck',
|
|
116
|
+
:'compression_type'
|
|
103
117
|
])
|
|
104
118
|
end
|
|
105
119
|
|
|
@@ -154,6 +168,10 @@ module PulpRpmClient
|
|
|
154
168
|
self.retain_package_versions = attributes[:'retain_package_versions']
|
|
155
169
|
end
|
|
156
170
|
|
|
171
|
+
if attributes.key?(:'checksum_type')
|
|
172
|
+
self.checksum_type = attributes[:'checksum_type']
|
|
173
|
+
end
|
|
174
|
+
|
|
157
175
|
if attributes.key?(:'metadata_checksum_type')
|
|
158
176
|
self.metadata_checksum_type = attributes[:'metadata_checksum_type']
|
|
159
177
|
end
|
|
@@ -164,20 +182,18 @@ module PulpRpmClient
|
|
|
164
182
|
|
|
165
183
|
if attributes.key?(:'gpgcheck')
|
|
166
184
|
self.gpgcheck = attributes[:'gpgcheck']
|
|
167
|
-
else
|
|
168
|
-
self.gpgcheck = 0
|
|
169
185
|
end
|
|
170
186
|
|
|
171
187
|
if attributes.key?(:'repo_gpgcheck')
|
|
172
188
|
self.repo_gpgcheck = attributes[:'repo_gpgcheck']
|
|
173
|
-
else
|
|
174
|
-
self.repo_gpgcheck = 0
|
|
175
189
|
end
|
|
176
190
|
|
|
177
|
-
if attributes.key?(:'
|
|
178
|
-
self.
|
|
179
|
-
|
|
180
|
-
|
|
191
|
+
if attributes.key?(:'repo_config')
|
|
192
|
+
self.repo_config = attributes[:'repo_config']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'compression_type')
|
|
196
|
+
self.compression_type = attributes[:'compression_type']
|
|
181
197
|
end
|
|
182
198
|
end
|
|
183
199
|
|
|
@@ -324,11 +340,13 @@ module PulpRpmClient
|
|
|
324
340
|
autopublish == o.autopublish &&
|
|
325
341
|
metadata_signing_service == o.metadata_signing_service &&
|
|
326
342
|
retain_package_versions == o.retain_package_versions &&
|
|
343
|
+
checksum_type == o.checksum_type &&
|
|
327
344
|
metadata_checksum_type == o.metadata_checksum_type &&
|
|
328
345
|
package_checksum_type == o.package_checksum_type &&
|
|
329
346
|
gpgcheck == o.gpgcheck &&
|
|
330
347
|
repo_gpgcheck == o.repo_gpgcheck &&
|
|
331
|
-
|
|
348
|
+
repo_config == o.repo_config &&
|
|
349
|
+
compression_type == o.compression_type
|
|
332
350
|
end
|
|
333
351
|
|
|
334
352
|
# @see the `==` method
|
|
@@ -340,7 +358,7 @@ module PulpRpmClient
|
|
|
340
358
|
# Calculates hash code according to all attributes.
|
|
341
359
|
# @return [Integer] Hash code
|
|
342
360
|
def hash
|
|
343
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck,
|
|
361
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
|
|
344
362
|
end
|
|
345
363
|
|
|
346
364
|
# Builds the object from hash
|
|
@@ -47,21 +47,30 @@ module PulpRpmClient
|
|
|
47
47
|
# 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.
|
|
48
48
|
attr_accessor :retain_package_versions
|
|
49
49
|
|
|
50
|
-
# The checksum type
|
|
50
|
+
# The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
51
|
+
attr_accessor :checksum_type
|
|
52
|
+
|
|
53
|
+
# DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
51
54
|
attr_accessor :metadata_checksum_type
|
|
52
55
|
|
|
53
|
-
#
|
|
56
|
+
# DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
|
54
57
|
attr_accessor :package_checksum_type
|
|
55
58
|
|
|
56
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
|
59
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
|
57
60
|
attr_accessor :gpgcheck
|
|
58
61
|
|
|
59
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
62
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
|
60
63
|
attr_accessor :repo_gpgcheck
|
|
61
64
|
|
|
62
|
-
#
|
|
65
|
+
# REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release
|
|
63
66
|
attr_accessor :sqlite_metadata
|
|
64
67
|
|
|
68
|
+
# A JSON document describing config.repo file
|
|
69
|
+
attr_accessor :repo_config
|
|
70
|
+
|
|
71
|
+
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
|
72
|
+
attr_accessor :compression_type
|
|
73
|
+
|
|
65
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
75
|
def self.attribute_map
|
|
67
76
|
{
|
|
@@ -77,11 +86,14 @@ module PulpRpmClient
|
|
|
77
86
|
:'autopublish' => :'autopublish',
|
|
78
87
|
:'metadata_signing_service' => :'metadata_signing_service',
|
|
79
88
|
:'retain_package_versions' => :'retain_package_versions',
|
|
89
|
+
:'checksum_type' => :'checksum_type',
|
|
80
90
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
|
81
91
|
:'package_checksum_type' => :'package_checksum_type',
|
|
82
92
|
:'gpgcheck' => :'gpgcheck',
|
|
83
93
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
|
84
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
|
94
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
|
95
|
+
:'repo_config' => :'repo_config',
|
|
96
|
+
:'compression_type' => :'compression_type'
|
|
85
97
|
}
|
|
86
98
|
end
|
|
87
99
|
|
|
@@ -100,11 +112,14 @@ module PulpRpmClient
|
|
|
100
112
|
:'autopublish' => :'Boolean',
|
|
101
113
|
:'metadata_signing_service' => :'String',
|
|
102
114
|
:'retain_package_versions' => :'Integer',
|
|
103
|
-
:'
|
|
115
|
+
:'checksum_type' => :'PackageChecksumTypeEnum',
|
|
116
|
+
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
|
104
117
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
|
105
118
|
:'gpgcheck' => :'Integer',
|
|
106
119
|
:'repo_gpgcheck' => :'Integer',
|
|
107
|
-
:'sqlite_metadata' => :'Boolean'
|
|
120
|
+
:'sqlite_metadata' => :'Boolean',
|
|
121
|
+
:'repo_config' => :'Object',
|
|
122
|
+
:'compression_type' => :'CompressionTypeEnum'
|
|
108
123
|
}
|
|
109
124
|
end
|
|
110
125
|
|
|
@@ -115,8 +130,12 @@ module PulpRpmClient
|
|
|
115
130
|
:'retain_repo_versions',
|
|
116
131
|
:'remote',
|
|
117
132
|
:'metadata_signing_service',
|
|
133
|
+
:'checksum_type',
|
|
118
134
|
:'metadata_checksum_type',
|
|
119
135
|
:'package_checksum_type',
|
|
136
|
+
:'gpgcheck',
|
|
137
|
+
:'repo_gpgcheck',
|
|
138
|
+
:'compression_type'
|
|
120
139
|
])
|
|
121
140
|
end
|
|
122
141
|
|
|
@@ -187,6 +206,10 @@ module PulpRpmClient
|
|
|
187
206
|
self.retain_package_versions = attributes[:'retain_package_versions']
|
|
188
207
|
end
|
|
189
208
|
|
|
209
|
+
if attributes.key?(:'checksum_type')
|
|
210
|
+
self.checksum_type = attributes[:'checksum_type']
|
|
211
|
+
end
|
|
212
|
+
|
|
190
213
|
if attributes.key?(:'metadata_checksum_type')
|
|
191
214
|
self.metadata_checksum_type = attributes[:'metadata_checksum_type']
|
|
192
215
|
end
|
|
@@ -197,14 +220,10 @@ module PulpRpmClient
|
|
|
197
220
|
|
|
198
221
|
if attributes.key?(:'gpgcheck')
|
|
199
222
|
self.gpgcheck = attributes[:'gpgcheck']
|
|
200
|
-
else
|
|
201
|
-
self.gpgcheck = 0
|
|
202
223
|
end
|
|
203
224
|
|
|
204
225
|
if attributes.key?(:'repo_gpgcheck')
|
|
205
226
|
self.repo_gpgcheck = attributes[:'repo_gpgcheck']
|
|
206
|
-
else
|
|
207
|
-
self.repo_gpgcheck = 0
|
|
208
227
|
end
|
|
209
228
|
|
|
210
229
|
if attributes.key?(:'sqlite_metadata')
|
|
@@ -212,6 +231,14 @@ module PulpRpmClient
|
|
|
212
231
|
else
|
|
213
232
|
self.sqlite_metadata = false
|
|
214
233
|
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'repo_config')
|
|
236
|
+
self.repo_config = attributes[:'repo_config']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'compression_type')
|
|
240
|
+
self.compression_type = attributes[:'compression_type']
|
|
241
|
+
end
|
|
215
242
|
end
|
|
216
243
|
|
|
217
244
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -327,11 +354,14 @@ module PulpRpmClient
|
|
|
327
354
|
autopublish == o.autopublish &&
|
|
328
355
|
metadata_signing_service == o.metadata_signing_service &&
|
|
329
356
|
retain_package_versions == o.retain_package_versions &&
|
|
357
|
+
checksum_type == o.checksum_type &&
|
|
330
358
|
metadata_checksum_type == o.metadata_checksum_type &&
|
|
331
359
|
package_checksum_type == o.package_checksum_type &&
|
|
332
360
|
gpgcheck == o.gpgcheck &&
|
|
333
361
|
repo_gpgcheck == o.repo_gpgcheck &&
|
|
334
|
-
sqlite_metadata == o.sqlite_metadata
|
|
362
|
+
sqlite_metadata == o.sqlite_metadata &&
|
|
363
|
+
repo_config == o.repo_config &&
|
|
364
|
+
compression_type == o.compression_type
|
|
335
365
|
end
|
|
336
366
|
|
|
337
367
|
# @see the `==` method
|
|
@@ -343,7 +373,7 @@ module PulpRpmClient
|
|
|
343
373
|
# Calculates hash code according to all attributes.
|
|
344
374
|
# @return [Integer] Hash code
|
|
345
375
|
def hash
|
|
346
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
|
376
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
|
|
347
377
|
end
|
|
348
378
|
|
|
349
379
|
# Builds the object from hash
|
|
@@ -18,14 +18,18 @@ module PulpRpmClient
|
|
|
18
18
|
# A URI of a repository the new content unit should be associated with.
|
|
19
19
|
attr_accessor :repository
|
|
20
20
|
|
|
21
|
-
# An uploaded file that may be turned into the
|
|
21
|
+
# An uploaded file that may be turned into the content unit.
|
|
22
22
|
attr_accessor :file
|
|
23
23
|
|
|
24
|
+
# An uncommitted upload that may be turned into the content unit.
|
|
25
|
+
attr_accessor :upload
|
|
26
|
+
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
28
|
def self.attribute_map
|
|
26
29
|
{
|
|
27
30
|
:'repository' => :'repository',
|
|
28
|
-
:'file' => :'file'
|
|
31
|
+
:'file' => :'file',
|
|
32
|
+
:'upload' => :'upload'
|
|
29
33
|
}
|
|
30
34
|
end
|
|
31
35
|
|
|
@@ -33,7 +37,8 @@ module PulpRpmClient
|
|
|
33
37
|
def self.openapi_types
|
|
34
38
|
{
|
|
35
39
|
:'repository' => :'String',
|
|
36
|
-
:'file' => :'File'
|
|
40
|
+
:'file' => :'File',
|
|
41
|
+
:'upload' => :'String'
|
|
37
42
|
}
|
|
38
43
|
end
|
|
39
44
|
|
|
@@ -65,6 +70,10 @@ module PulpRpmClient
|
|
|
65
70
|
if attributes.key?(:'file')
|
|
66
71
|
self.file = attributes[:'file']
|
|
67
72
|
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'upload')
|
|
75
|
+
self.upload = attributes[:'upload']
|
|
76
|
+
end
|
|
68
77
|
end
|
|
69
78
|
|
|
70
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -86,7 +95,8 @@ module PulpRpmClient
|
|
|
86
95
|
return true if self.equal?(o)
|
|
87
96
|
self.class == o.class &&
|
|
88
97
|
repository == o.repository &&
|
|
89
|
-
file == o.file
|
|
98
|
+
file == o.file &&
|
|
99
|
+
upload == o.upload
|
|
90
100
|
end
|
|
91
101
|
|
|
92
102
|
# @see the `==` method
|
|
@@ -98,7 +108,7 @@ module PulpRpmClient
|
|
|
98
108
|
# Calculates hash code according to all attributes.
|
|
99
109
|
# @return [Integer] Hash code
|
|
100
110
|
def hash
|
|
101
|
-
[repository, file].hash
|
|
111
|
+
[repository, file, upload].hash
|
|
102
112
|
end
|
|
103
113
|
|
|
104
114
|
# Builds the object from hash
|
data/lib/pulp_rpm_client.rb
CHANGED
|
@@ -21,11 +21,11 @@ require 'pulp_rpm_client/models/addon_response'
|
|
|
21
21
|
require 'pulp_rpm_client/models/artifact_response'
|
|
22
22
|
require 'pulp_rpm_client/models/async_operation_response'
|
|
23
23
|
require 'pulp_rpm_client/models/checksum_response'
|
|
24
|
+
require 'pulp_rpm_client/models/compression_type_enum'
|
|
24
25
|
require 'pulp_rpm_client/models/comps_xml'
|
|
25
26
|
require 'pulp_rpm_client/models/content_summary_response'
|
|
26
27
|
require 'pulp_rpm_client/models/copy'
|
|
27
28
|
require 'pulp_rpm_client/models/image_response'
|
|
28
|
-
require 'pulp_rpm_client/models/metadata_checksum_type_enum'
|
|
29
29
|
require 'pulp_rpm_client/models/my_permissions_response'
|
|
30
30
|
require 'pulp_rpm_client/models/nested_role'
|
|
31
31
|
require 'pulp_rpm_client/models/nested_role_response'
|
|
@@ -37,7 +37,8 @@ describe 'ContentAdvisoriesApi' do
|
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
40
|
-
# @option opts [File] :file An uploaded file that may be turned into the
|
|
40
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
41
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
41
42
|
# @return [AsyncOperationResponse]
|
|
42
43
|
describe 'create test' do
|
|
43
44
|
it 'should work' do
|
|
@@ -39,8 +39,8 @@ describe 'ContentPackagesApi' do
|
|
|
39
39
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
40
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
41
41
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
|
42
|
-
# @option opts [File] :file An uploaded file that may be turned into the
|
|
43
|
-
# @option opts [String] :upload An uncommitted upload that may be turned into the
|
|
42
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
44
44
|
# @return [AsyncOperationResponse]
|
|
45
45
|
describe 'create test' do
|
|
46
46
|
it 'should work' do
|