pulp_rpm_client 3.22.6 → 3.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentAdvisoriesApi.md +4 -2
- data/docs/ContentModulemdsApi.md +2 -2
- data/docs/ContentPackagesApi.md +6 -4
- data/docs/PatchedrpmRpmDistribution.md +3 -1
- data/docs/PatchedrpmRpmRepository.md +5 -3
- data/docs/RpmPackage.md +2 -2
- data/docs/RpmRpmDistribution.md +3 -1
- data/docs/RpmRpmDistributionResponse.md +3 -1
- data/docs/RpmRpmPublication.md +5 -3
- data/docs/RpmRpmPublicationResponse.md +5 -3
- data/docs/RpmRpmRepository.md +5 -3
- data/docs/RpmRpmRepositoryResponse.md +5 -3
- 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_modulemds_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packages_api.rb +7 -4
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +17 -5
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +18 -10
- data/lib/pulp_rpm_client/models/rpm_package.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +17 -5
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +17 -5
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +18 -10
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +18 -10
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +15 -5
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +2 -1
- data/spec/api/content_modulemds_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +3 -2
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
- data/spec/models/rpm_rpm_distribution_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/rpm_rpm_publication_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_publication_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
- data/spec/models/rpm_update_record_spec.rb +6 -0
- metadata +83 -83
@@ -24,10 +24,10 @@ module PulpRpmClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -35,6 +35,9 @@ module PulpRpmClient
|
|
35
35
|
# Publication to be served
|
36
36
|
attr_accessor :publication
|
37
37
|
|
38
|
+
# An option specifying whether Pulp should generate *.repo files.
|
39
|
+
attr_accessor :generate_repo_config
|
40
|
+
|
38
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
42
|
def self.attribute_map
|
40
43
|
{
|
@@ -44,7 +47,8 @@ module PulpRpmClient
|
|
44
47
|
:'pulp_labels' => :'pulp_labels',
|
45
48
|
:'name' => :'name',
|
46
49
|
:'repository' => :'repository',
|
47
|
-
:'publication' => :'publication'
|
50
|
+
:'publication' => :'publication',
|
51
|
+
:'generate_repo_config' => :'generate_repo_config'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -57,7 +61,8 @@ module PulpRpmClient
|
|
57
61
|
:'pulp_labels' => :'Hash<String, String>',
|
58
62
|
:'name' => :'String',
|
59
63
|
:'repository' => :'String',
|
60
|
-
:'publication' => :'String'
|
64
|
+
:'publication' => :'String',
|
65
|
+
:'generate_repo_config' => :'Boolean'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
@@ -66,7 +71,7 @@ module PulpRpmClient
|
|
66
71
|
Set.new([
|
67
72
|
:'content_guard',
|
68
73
|
:'repository',
|
69
|
-
:'publication'
|
74
|
+
:'publication',
|
70
75
|
])
|
71
76
|
end
|
72
77
|
|
@@ -116,6 +121,12 @@ module PulpRpmClient
|
|
116
121
|
if attributes.key?(:'publication')
|
117
122
|
self.publication = attributes[:'publication']
|
118
123
|
end
|
124
|
+
|
125
|
+
if attributes.key?(:'generate_repo_config')
|
126
|
+
self.generate_repo_config = attributes[:'generate_repo_config']
|
127
|
+
else
|
128
|
+
self.generate_repo_config = false
|
129
|
+
end
|
119
130
|
end
|
120
131
|
|
121
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -190,7 +201,8 @@ module PulpRpmClient
|
|
190
201
|
pulp_labels == o.pulp_labels &&
|
191
202
|
name == o.name &&
|
192
203
|
repository == o.repository &&
|
193
|
-
publication == o.publication
|
204
|
+
publication == o.publication &&
|
205
|
+
generate_repo_config == o.generate_repo_config
|
194
206
|
end
|
195
207
|
|
196
208
|
# @see the `==` method
|
@@ -202,7 +214,7 @@ module PulpRpmClient
|
|
202
214
|
# Calculates hash code according to all attributes.
|
203
215
|
# @return [Integer] Hash code
|
204
216
|
def hash
|
205
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
217
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config].hash
|
206
218
|
end
|
207
219
|
|
208
220
|
# Builds the object from hash
|
@@ -43,6 +43,9 @@ module PulpRpmClient
|
|
43
43
|
# Publication to be served
|
44
44
|
attr_accessor :publication
|
45
45
|
|
46
|
+
# An option specifying whether Pulp should generate *.repo files.
|
47
|
+
attr_accessor :generate_repo_config
|
48
|
+
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
50
|
def self.attribute_map
|
48
51
|
{
|
@@ -55,7 +58,8 @@ module PulpRpmClient
|
|
55
58
|
:'pulp_labels' => :'pulp_labels',
|
56
59
|
:'name' => :'name',
|
57
60
|
:'repository' => :'repository',
|
58
|
-
:'publication' => :'publication'
|
61
|
+
:'publication' => :'publication',
|
62
|
+
:'generate_repo_config' => :'generate_repo_config'
|
59
63
|
}
|
60
64
|
end
|
61
65
|
|
@@ -71,7 +75,8 @@ module PulpRpmClient
|
|
71
75
|
:'pulp_labels' => :'Hash<String, String>',
|
72
76
|
:'name' => :'String',
|
73
77
|
:'repository' => :'String',
|
74
|
-
:'publication' => :'String'
|
78
|
+
:'publication' => :'String',
|
79
|
+
:'generate_repo_config' => :'Boolean'
|
75
80
|
}
|
76
81
|
end
|
77
82
|
|
@@ -80,7 +85,7 @@ module PulpRpmClient
|
|
80
85
|
Set.new([
|
81
86
|
:'content_guard',
|
82
87
|
:'repository',
|
83
|
-
:'publication'
|
88
|
+
:'publication',
|
84
89
|
])
|
85
90
|
end
|
86
91
|
|
@@ -142,6 +147,12 @@ module PulpRpmClient
|
|
142
147
|
if attributes.key?(:'publication')
|
143
148
|
self.publication = attributes[:'publication']
|
144
149
|
end
|
150
|
+
|
151
|
+
if attributes.key?(:'generate_repo_config')
|
152
|
+
self.generate_repo_config = attributes[:'generate_repo_config']
|
153
|
+
else
|
154
|
+
self.generate_repo_config = false
|
155
|
+
end
|
145
156
|
end
|
146
157
|
|
147
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,7 +192,8 @@ module PulpRpmClient
|
|
181
192
|
pulp_labels == o.pulp_labels &&
|
182
193
|
name == o.name &&
|
183
194
|
repository == o.repository &&
|
184
|
-
publication == o.publication
|
195
|
+
publication == o.publication &&
|
196
|
+
generate_repo_config == o.generate_repo_config
|
185
197
|
end
|
186
198
|
|
187
199
|
# @see the `==` method
|
@@ -193,7 +205,7 @@ module PulpRpmClient
|
|
193
205
|
# Calculates hash code according to all attributes.
|
194
206
|
# @return [Integer] Hash code
|
195
207
|
def hash
|
196
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
208
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config].hash
|
197
209
|
end
|
198
210
|
|
199
211
|
# Builds the object from hash
|
@@ -26,15 +26,18 @@ module PulpRpmClient
|
|
26
26
|
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
27
27
|
attr_accessor :package_checksum_type
|
28
28
|
|
29
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
29
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
30
30
|
attr_accessor :gpgcheck
|
31
31
|
|
32
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
32
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
33
33
|
attr_accessor :repo_gpgcheck
|
34
34
|
|
35
35
|
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
36
36
|
attr_accessor :sqlite_metadata
|
37
37
|
|
38
|
+
# A JSON document describing config.repo file
|
39
|
+
attr_accessor :repo_config
|
40
|
+
|
38
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
42
|
def self.attribute_map
|
40
43
|
{
|
@@ -44,7 +47,8 @@ module PulpRpmClient
|
|
44
47
|
:'package_checksum_type' => :'package_checksum_type',
|
45
48
|
:'gpgcheck' => :'gpgcheck',
|
46
49
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
47
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
50
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
51
|
+
:'repo_config' => :'repo_config'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -57,13 +61,16 @@ module PulpRpmClient
|
|
57
61
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
58
62
|
:'gpgcheck' => :'Integer',
|
59
63
|
:'repo_gpgcheck' => :'Integer',
|
60
|
-
:'sqlite_metadata' => :'Boolean'
|
64
|
+
:'sqlite_metadata' => :'Boolean',
|
65
|
+
:'repo_config' => :'Object'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
64
69
|
# List of attributes with nullable: true
|
65
70
|
def self.openapi_nullable
|
66
71
|
Set.new([
|
72
|
+
:'gpgcheck',
|
73
|
+
:'repo_gpgcheck',
|
67
74
|
])
|
68
75
|
end
|
69
76
|
|
@@ -111,6 +118,10 @@ module PulpRpmClient
|
|
111
118
|
else
|
112
119
|
self.sqlite_metadata = false
|
113
120
|
end
|
121
|
+
|
122
|
+
if attributes.key?(:'repo_config')
|
123
|
+
self.repo_config = attributes[:'repo_config']
|
124
|
+
end
|
114
125
|
end
|
115
126
|
|
116
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -185,7 +196,8 @@ module PulpRpmClient
|
|
185
196
|
package_checksum_type == o.package_checksum_type &&
|
186
197
|
gpgcheck == o.gpgcheck &&
|
187
198
|
repo_gpgcheck == o.repo_gpgcheck &&
|
188
|
-
sqlite_metadata == o.sqlite_metadata
|
199
|
+
sqlite_metadata == o.sqlite_metadata &&
|
200
|
+
repo_config == o.repo_config
|
189
201
|
end
|
190
202
|
|
191
203
|
# @see the `==` method
|
@@ -197,7 +209,7 @@ module PulpRpmClient
|
|
197
209
|
# Calculates hash code according to all attributes.
|
198
210
|
# @return [Integer] Hash code
|
199
211
|
def hash
|
200
|
-
[repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
212
|
+
[repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config].hash
|
201
213
|
end
|
202
214
|
|
203
215
|
# Builds the object from hash
|
@@ -31,15 +31,18 @@ module PulpRpmClient
|
|
31
31
|
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
32
32
|
attr_accessor :package_checksum_type
|
33
33
|
|
34
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
34
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
35
35
|
attr_accessor :gpgcheck
|
36
36
|
|
37
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
37
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
38
38
|
attr_accessor :repo_gpgcheck
|
39
39
|
|
40
40
|
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
41
41
|
attr_accessor :sqlite_metadata
|
42
42
|
|
43
|
+
# A JSON document describing config.repo file
|
44
|
+
attr_accessor :repo_config
|
45
|
+
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
@@ -51,7 +54,8 @@ module PulpRpmClient
|
|
51
54
|
:'package_checksum_type' => :'package_checksum_type',
|
52
55
|
:'gpgcheck' => :'gpgcheck',
|
53
56
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
54
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
57
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
58
|
+
:'repo_config' => :'repo_config'
|
55
59
|
}
|
56
60
|
end
|
57
61
|
|
@@ -66,13 +70,16 @@ module PulpRpmClient
|
|
66
70
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
67
71
|
:'gpgcheck' => :'Integer',
|
68
72
|
:'repo_gpgcheck' => :'Integer',
|
69
|
-
:'sqlite_metadata' => :'Boolean'
|
73
|
+
:'sqlite_metadata' => :'Boolean',
|
74
|
+
:'repo_config' => :'Object'
|
70
75
|
}
|
71
76
|
end
|
72
77
|
|
73
78
|
# List of attributes with nullable: true
|
74
79
|
def self.openapi_nullable
|
75
80
|
Set.new([
|
81
|
+
:'gpgcheck',
|
82
|
+
:'repo_gpgcheck',
|
76
83
|
])
|
77
84
|
end
|
78
85
|
|
@@ -128,6 +135,10 @@ module PulpRpmClient
|
|
128
135
|
else
|
129
136
|
self.sqlite_metadata = false
|
130
137
|
end
|
138
|
+
|
139
|
+
if attributes.key?(:'repo_config')
|
140
|
+
self.repo_config = attributes[:'repo_config']
|
141
|
+
end
|
131
142
|
end
|
132
143
|
|
133
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -204,7 +215,8 @@ module PulpRpmClient
|
|
204
215
|
package_checksum_type == o.package_checksum_type &&
|
205
216
|
gpgcheck == o.gpgcheck &&
|
206
217
|
repo_gpgcheck == o.repo_gpgcheck &&
|
207
|
-
sqlite_metadata == o.sqlite_metadata
|
218
|
+
sqlite_metadata == o.sqlite_metadata &&
|
219
|
+
repo_config == o.repo_config
|
208
220
|
end
|
209
221
|
|
210
222
|
# @see the `==` method
|
@@ -216,7 +228,7 @@ module PulpRpmClient
|
|
216
228
|
# Calculates hash code according to all attributes.
|
217
229
|
# @return [Integer] Hash code
|
218
230
|
def hash
|
219
|
-
[pulp_href, pulp_created, repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
231
|
+
[pulp_href, pulp_created, repository_version, repository, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config].hash
|
220
232
|
end
|
221
233
|
|
222
234
|
# Builds the object from hash
|
@@ -44,15 +44,18 @@ module PulpRpmClient
|
|
44
44
|
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
45
45
|
attr_accessor :package_checksum_type
|
46
46
|
|
47
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
47
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
48
48
|
attr_accessor :gpgcheck
|
49
49
|
|
50
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
50
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
51
51
|
attr_accessor :repo_gpgcheck
|
52
52
|
|
53
53
|
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
54
54
|
attr_accessor :sqlite_metadata
|
55
55
|
|
56
|
+
# A JSON document describing config.repo file
|
57
|
+
attr_accessor :repo_config
|
58
|
+
|
56
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
60
|
def self.attribute_map
|
58
61
|
{
|
@@ -68,7 +71,8 @@ module PulpRpmClient
|
|
68
71
|
:'package_checksum_type' => :'package_checksum_type',
|
69
72
|
:'gpgcheck' => :'gpgcheck',
|
70
73
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
71
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
74
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
75
|
+
:'repo_config' => :'repo_config'
|
72
76
|
}
|
73
77
|
end
|
74
78
|
|
@@ -87,7 +91,8 @@ module PulpRpmClient
|
|
87
91
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
88
92
|
:'gpgcheck' => :'Integer',
|
89
93
|
:'repo_gpgcheck' => :'Integer',
|
90
|
-
:'sqlite_metadata' => :'Boolean'
|
94
|
+
:'sqlite_metadata' => :'Boolean',
|
95
|
+
:'repo_config' => :'Object'
|
91
96
|
}
|
92
97
|
end
|
93
98
|
|
@@ -100,6 +105,8 @@ module PulpRpmClient
|
|
100
105
|
:'metadata_signing_service',
|
101
106
|
:'metadata_checksum_type',
|
102
107
|
:'package_checksum_type',
|
108
|
+
:'gpgcheck',
|
109
|
+
:'repo_gpgcheck',
|
103
110
|
])
|
104
111
|
end
|
105
112
|
|
@@ -164,14 +171,10 @@ module PulpRpmClient
|
|
164
171
|
|
165
172
|
if attributes.key?(:'gpgcheck')
|
166
173
|
self.gpgcheck = attributes[:'gpgcheck']
|
167
|
-
else
|
168
|
-
self.gpgcheck = 0
|
169
174
|
end
|
170
175
|
|
171
176
|
if attributes.key?(:'repo_gpgcheck')
|
172
177
|
self.repo_gpgcheck = attributes[:'repo_gpgcheck']
|
173
|
-
else
|
174
|
-
self.repo_gpgcheck = 0
|
175
178
|
end
|
176
179
|
|
177
180
|
if attributes.key?(:'sqlite_metadata')
|
@@ -179,6 +182,10 @@ module PulpRpmClient
|
|
179
182
|
else
|
180
183
|
self.sqlite_metadata = false
|
181
184
|
end
|
185
|
+
|
186
|
+
if attributes.key?(:'repo_config')
|
187
|
+
self.repo_config = attributes[:'repo_config']
|
188
|
+
end
|
182
189
|
end
|
183
190
|
|
184
191
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -328,7 +335,8 @@ module PulpRpmClient
|
|
328
335
|
package_checksum_type == o.package_checksum_type &&
|
329
336
|
gpgcheck == o.gpgcheck &&
|
330
337
|
repo_gpgcheck == o.repo_gpgcheck &&
|
331
|
-
sqlite_metadata == o.sqlite_metadata
|
338
|
+
sqlite_metadata == o.sqlite_metadata &&
|
339
|
+
repo_config == o.repo_config
|
332
340
|
end
|
333
341
|
|
334
342
|
# @see the `==` method
|
@@ -340,7 +348,7 @@ module PulpRpmClient
|
|
340
348
|
# Calculates hash code according to all attributes.
|
341
349
|
# @return [Integer] Hash code
|
342
350
|
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, sqlite_metadata].hash
|
351
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config].hash
|
344
352
|
end
|
345
353
|
|
346
354
|
# Builds the object from hash
|
@@ -53,15 +53,18 @@ module PulpRpmClient
|
|
53
53
|
# The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
54
54
|
attr_accessor :package_checksum_type
|
55
55
|
|
56
|
-
# An option specifying whether a client should perform a GPG signature check on packages.
|
56
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
|
57
57
|
attr_accessor :gpgcheck
|
58
58
|
|
59
|
-
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
59
|
+
# DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
|
60
60
|
attr_accessor :repo_gpgcheck
|
61
61
|
|
62
62
|
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
63
63
|
attr_accessor :sqlite_metadata
|
64
64
|
|
65
|
+
# A JSON document describing config.repo file
|
66
|
+
attr_accessor :repo_config
|
67
|
+
|
65
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
69
|
def self.attribute_map
|
67
70
|
{
|
@@ -81,7 +84,8 @@ module PulpRpmClient
|
|
81
84
|
:'package_checksum_type' => :'package_checksum_type',
|
82
85
|
:'gpgcheck' => :'gpgcheck',
|
83
86
|
:'repo_gpgcheck' => :'repo_gpgcheck',
|
84
|
-
:'sqlite_metadata' => :'sqlite_metadata'
|
87
|
+
:'sqlite_metadata' => :'sqlite_metadata',
|
88
|
+
:'repo_config' => :'repo_config'
|
85
89
|
}
|
86
90
|
end
|
87
91
|
|
@@ -104,7 +108,8 @@ module PulpRpmClient
|
|
104
108
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
105
109
|
:'gpgcheck' => :'Integer',
|
106
110
|
:'repo_gpgcheck' => :'Integer',
|
107
|
-
:'sqlite_metadata' => :'Boolean'
|
111
|
+
:'sqlite_metadata' => :'Boolean',
|
112
|
+
:'repo_config' => :'Object'
|
108
113
|
}
|
109
114
|
end
|
110
115
|
|
@@ -117,6 +122,8 @@ module PulpRpmClient
|
|
117
122
|
:'metadata_signing_service',
|
118
123
|
:'metadata_checksum_type',
|
119
124
|
:'package_checksum_type',
|
125
|
+
:'gpgcheck',
|
126
|
+
:'repo_gpgcheck',
|
120
127
|
])
|
121
128
|
end
|
122
129
|
|
@@ -197,14 +204,10 @@ module PulpRpmClient
|
|
197
204
|
|
198
205
|
if attributes.key?(:'gpgcheck')
|
199
206
|
self.gpgcheck = attributes[:'gpgcheck']
|
200
|
-
else
|
201
|
-
self.gpgcheck = 0
|
202
207
|
end
|
203
208
|
|
204
209
|
if attributes.key?(:'repo_gpgcheck')
|
205
210
|
self.repo_gpgcheck = attributes[:'repo_gpgcheck']
|
206
|
-
else
|
207
|
-
self.repo_gpgcheck = 0
|
208
211
|
end
|
209
212
|
|
210
213
|
if attributes.key?(:'sqlite_metadata')
|
@@ -212,6 +215,10 @@ module PulpRpmClient
|
|
212
215
|
else
|
213
216
|
self.sqlite_metadata = false
|
214
217
|
end
|
218
|
+
|
219
|
+
if attributes.key?(:'repo_config')
|
220
|
+
self.repo_config = attributes[:'repo_config']
|
221
|
+
end
|
215
222
|
end
|
216
223
|
|
217
224
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -331,7 +338,8 @@ module PulpRpmClient
|
|
331
338
|
package_checksum_type == o.package_checksum_type &&
|
332
339
|
gpgcheck == o.gpgcheck &&
|
333
340
|
repo_gpgcheck == o.repo_gpgcheck &&
|
334
|
-
sqlite_metadata == o.sqlite_metadata
|
341
|
+
sqlite_metadata == o.sqlite_metadata &&
|
342
|
+
repo_config == o.repo_config
|
335
343
|
end
|
336
344
|
|
337
345
|
# @see the `==` method
|
@@ -343,7 +351,7 @@ module PulpRpmClient
|
|
343
351
|
# Calculates hash code according to all attributes.
|
344
352
|
# @return [Integer] Hash code
|
345
353
|
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
|
354
|
+
[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, repo_config].hash
|
347
355
|
end
|
348
356
|
|
349
357
|
# 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
|
@@ -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
|
@@ -56,7 +56,7 @@ describe 'ContentModulemdsApi' do
|
|
56
56
|
# @option opts [String] :name Filter results where name matches value
|
57
57
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
58
58
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
59
|
-
# @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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
59
|
+
# @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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `stream` - Stream * `-stream` - Stream (descending) * `version` - Version * `-version` - Version (descending) * `context` - Context * `-context` - Context (descending) * `arch` - Arch * `-arch` - Arch (descending) * `static_context` - Static context * `-static_context` - Static context (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `artifacts` - Artifacts * `-artifacts` - Artifacts (descending) * `profiles` - Profiles * `-profiles` - Profiles (descending) * `description` - Description * `-description` - Description (descending) * `digest` - Digest * `-digest` - Digest (descending) * `snippet` - Snippet * `-snippet` - Snippet (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
60
60
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
61
61
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
62
62
|
# @option opts [String] :q
|
@@ -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
|
@@ -63,6 +63,7 @@ describe 'ContentPackagesApi' do
|
|
63
63
|
# @option opts [String] :epoch Filter results where epoch matches value
|
64
64
|
# @option opts [Array<String>] :epoch__in Filter results where epoch is in a comma-separated list of values
|
65
65
|
# @option opts [String] :epoch__ne Filter results where epoch not equal to value
|
66
|
+
# @option opts [String] :filename
|
66
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
67
68
|
# @option opts [String] :name Filter results where name matches value
|
68
69
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -74,4 +74,10 @@ describe 'PatchedrpmRpmDistribution' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe 'test attribute "generate_repo_config"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
77
83
|
end
|
@@ -110,4 +110,10 @@ describe 'PatchedrpmRpmRepository' do
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
describe 'test attribute "repo_config"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
113
119
|
end
|
@@ -92,4 +92,10 @@ describe 'RpmRpmDistributionResponse' do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
describe 'test attribute "generate_repo_config"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
95
101
|
end
|