pulp_rpm_client 3.8.0 → 3.9.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/DistributionsRpmApi.md +8 -0
- data/docs/PatchedrpmRpmDistribution.md +2 -0
- data/docs/PatchedrpmRpmRemote.md +12 -0
- data/docs/PatchedrpmRpmRepository.md +3 -1
- data/docs/RemotesRpmApi.md +8 -0
- data/docs/RepositoriesRpmApi.md +8 -0
- data/docs/RepositoriesRpmVersionsApi.md +2 -2
- data/docs/RpmModulemdDefaultsResponse.md +13 -3
- data/docs/RpmModulemdResponse.md +13 -3
- data/docs/RpmPackageResponse.md +12 -2
- data/docs/RpmRepoMetadataFileResponse.md +13 -3
- data/docs/RpmRpmDistribution.md +2 -0
- data/docs/RpmRpmDistributionResponse.md +2 -0
- data/docs/RpmRpmPublication.md +3 -1
- data/docs/RpmRpmPublicationResponse.md +3 -1
- data/docs/RpmRpmRemote.md +12 -0
- data/docs/RpmRpmRemoteResponse.md +12 -0
- data/docs/RpmRpmRepository.md +3 -1
- data/docs/RpmRpmRepositoryResponse.md +2 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +12 -0
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +12 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +12 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +4 -4
- data/lib/pulp_rpm_client/models/image_response.rb +1 -5
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +10 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +125 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +10 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +64 -14
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +64 -14
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +61 -11
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +64 -14
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +10 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +10 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +16 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +16 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +125 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +125 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +10 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +10 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/distributions_rpm_api_spec.rb +4 -0
- data/spec/api/remotes_rpm_api_spec.rb +4 -0
- data/spec/api/repositories_rpm_api_spec.rb +4 -0
- data/spec/api/repositories_rpm_versions_api_spec.rb +2 -2
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_remote_spec.rb +36 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +35 -5
- data/spec/models/rpm_modulemd_response_spec.rb +36 -6
- data/spec/models/rpm_package_response_spec.rb +36 -6
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +36 -6
- 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_remote_response_spec.rb +36 -0
- data/spec/models/rpm_rpm_remote_spec.rb +36 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_spec.rb +6 -0
- metadata +58 -58
@@ -150,9 +150,13 @@ module PulpRpmClient
|
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
152
|
# @option opts [String] :name name
|
153
|
+
# @option opts [String] :name__contains name__contains
|
154
|
+
# @option opts [String] :name__icontains name__icontains
|
153
155
|
# @option opts [String] :name__in name__in
|
156
|
+
# @option opts [String] :name__startswith name__startswith
|
154
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
155
158
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
159
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
156
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
157
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
158
162
|
# @return [PaginatedrpmRpmRepositoryResponseList]
|
@@ -166,9 +170,13 @@ module PulpRpmClient
|
|
166
170
|
# @param [Hash] opts the optional parameters
|
167
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
168
172
|
# @option opts [String] :name name
|
173
|
+
# @option opts [String] :name__contains name__contains
|
174
|
+
# @option opts [String] :name__icontains name__icontains
|
169
175
|
# @option opts [String] :name__in name__in
|
176
|
+
# @option opts [String] :name__startswith name__startswith
|
170
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
171
178
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
179
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
172
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
173
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
174
182
|
# @return [Array<(PaginatedrpmRpmRepositoryResponseList, Integer, Hash)>] PaginatedrpmRpmRepositoryResponseList data, response status code and response headers
|
@@ -183,9 +191,13 @@ module PulpRpmClient
|
|
183
191
|
query_params = opts[:query_params] || {}
|
184
192
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
185
193
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
194
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
195
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
186
196
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
197
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
187
198
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
188
199
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
200
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
189
201
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
190
202
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
191
203
|
|
@@ -20,7 +20,7 @@ module PulpRpmClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Delete a repository version
|
23
|
-
# Trigger an asynchronous task to delete a
|
23
|
+
# Trigger an asynchronous task to delete a repository version.
|
24
24
|
# @param rpm_rpm_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
@@ -30,7 +30,7 @@ module PulpRpmClient
|
|
30
30
|
end
|
31
31
|
|
32
32
|
# Delete a repository version
|
33
|
-
# Trigger an asynchronous task to delete a
|
33
|
+
# Trigger an asynchronous task to delete a repository version.
|
34
34
|
# @param rpm_rpm_repository_version_href [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
@@ -268,7 +268,7 @@ module PulpRpmClient
|
|
268
268
|
return data, status_code, headers
|
269
269
|
end
|
270
270
|
|
271
|
-
# Trigger an asynchronous task to repair a
|
271
|
+
# Trigger an asynchronous task to repair a repository version.
|
272
272
|
# @param rpm_rpm_repository_version_href [String]
|
273
273
|
# @param repository_version [RepositoryVersion]
|
274
274
|
# @param [Hash] opts the optional parameters
|
@@ -278,7 +278,7 @@ module PulpRpmClient
|
|
278
278
|
data
|
279
279
|
end
|
280
280
|
|
281
|
-
# Trigger an asynchronous task to repair a
|
281
|
+
# Trigger an asynchronous task to repair a repository version.
|
282
282
|
# @param rpm_rpm_repository_version_href [String]
|
283
283
|
# @param repository_version [RepositoryVersion]
|
284
284
|
# @param [Hash] opts the optional parameters
|
@@ -49,6 +49,7 @@ module PulpRpmClient
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
+
:'artifact'
|
52
53
|
])
|
53
54
|
end
|
54
55
|
|
@@ -100,10 +101,6 @@ module PulpRpmClient
|
|
100
101
|
invalid_properties.push('invalid value for "platforms", platforms cannot be nil.')
|
101
102
|
end
|
102
103
|
|
103
|
-
if @artifact.nil?
|
104
|
-
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
104
|
invalid_properties
|
108
105
|
end
|
109
106
|
|
@@ -113,7 +110,6 @@ module PulpRpmClient
|
|
113
110
|
return false if @name.nil?
|
114
111
|
return false if @path.nil?
|
115
112
|
return false if @platforms.nil?
|
116
|
-
return false if @artifact.nil?
|
117
113
|
true
|
118
114
|
end
|
119
115
|
|
@@ -21,6 +21,8 @@ module PulpRpmClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
@@ -32,6 +34,7 @@ module PulpRpmClient
|
|
32
34
|
{
|
33
35
|
:'base_path' => :'base_path',
|
34
36
|
:'content_guard' => :'content_guard',
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'publication' => :'publication'
|
37
40
|
}
|
@@ -42,6 +45,7 @@ module PulpRpmClient
|
|
42
45
|
{
|
43
46
|
:'base_path' => :'String',
|
44
47
|
:'content_guard' => :'String',
|
48
|
+
:'pulp_labels' => :'Object',
|
45
49
|
:'name' => :'String',
|
46
50
|
:'publication' => :'String'
|
47
51
|
}
|
@@ -78,6 +82,10 @@ module PulpRpmClient
|
|
78
82
|
self.content_guard = attributes[:'content_guard']
|
79
83
|
end
|
80
84
|
|
85
|
+
if attributes.key?(:'pulp_labels')
|
86
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'name')
|
82
90
|
self.name = attributes[:'name']
|
83
91
|
end
|
@@ -107,6 +115,7 @@ module PulpRpmClient
|
|
107
115
|
self.class == o.class &&
|
108
116
|
base_path == o.base_path &&
|
109
117
|
content_guard == o.content_guard &&
|
118
|
+
pulp_labels == o.pulp_labels &&
|
110
119
|
name == o.name &&
|
111
120
|
publication == o.publication
|
112
121
|
end
|
@@ -120,7 +129,7 @@ module PulpRpmClient
|
|
120
129
|
# Calculates hash code according to all attributes.
|
121
130
|
# @return [Integer] Hash code
|
122
131
|
def hash
|
123
|
-
[base_path, content_guard, name, publication].hash
|
132
|
+
[base_path, content_guard, pulp_labels, name, publication].hash
|
124
133
|
end
|
125
134
|
|
126
135
|
# Builds the object from hash
|
@@ -42,12 +42,29 @@ module PulpRpmClient
|
|
42
42
|
# The password to be used for authentication when syncing.
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
|
+
attr_accessor :pulp_labels
|
46
|
+
|
45
47
|
# Total number of simultaneous connections.
|
46
48
|
attr_accessor :download_concurrency
|
47
49
|
|
48
50
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
49
51
|
attr_accessor :policy
|
50
52
|
|
53
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
54
|
+
attr_accessor :total_timeout
|
55
|
+
|
56
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
57
|
+
attr_accessor :connect_timeout
|
58
|
+
|
59
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
60
|
+
attr_accessor :sock_connect_timeout
|
61
|
+
|
62
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
|
+
attr_accessor :sock_read_timeout
|
64
|
+
|
65
|
+
# Limits total download rate in requests per second
|
66
|
+
attr_accessor :rate_limit
|
67
|
+
|
51
68
|
# Authentication token for SLES repositories.
|
52
69
|
attr_accessor :sles_auth_token
|
53
70
|
|
@@ -63,8 +80,14 @@ module PulpRpmClient
|
|
63
80
|
:'proxy_url' => :'proxy_url',
|
64
81
|
:'username' => :'username',
|
65
82
|
:'password' => :'password',
|
83
|
+
:'pulp_labels' => :'pulp_labels',
|
66
84
|
:'download_concurrency' => :'download_concurrency',
|
67
85
|
:'policy' => :'policy',
|
86
|
+
:'total_timeout' => :'total_timeout',
|
87
|
+
:'connect_timeout' => :'connect_timeout',
|
88
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
90
|
+
:'rate_limit' => :'rate_limit',
|
68
91
|
:'sles_auth_token' => :'sles_auth_token'
|
69
92
|
}
|
70
93
|
end
|
@@ -81,8 +104,14 @@ module PulpRpmClient
|
|
81
104
|
:'proxy_url' => :'String',
|
82
105
|
:'username' => :'String',
|
83
106
|
:'password' => :'String',
|
107
|
+
:'pulp_labels' => :'Object',
|
84
108
|
:'download_concurrency' => :'Integer',
|
85
109
|
:'policy' => :'PolicyEnum',
|
110
|
+
:'total_timeout' => :'Float',
|
111
|
+
:'connect_timeout' => :'Float',
|
112
|
+
:'sock_connect_timeout' => :'Float',
|
113
|
+
:'sock_read_timeout' => :'Float',
|
114
|
+
:'rate_limit' => :'Integer',
|
86
115
|
:'sles_auth_token' => :'String'
|
87
116
|
}
|
88
117
|
end
|
@@ -96,6 +125,11 @@ module PulpRpmClient
|
|
96
125
|
:'proxy_url',
|
97
126
|
:'username',
|
98
127
|
:'password',
|
128
|
+
:'total_timeout',
|
129
|
+
:'connect_timeout',
|
130
|
+
:'sock_connect_timeout',
|
131
|
+
:'sock_read_timeout',
|
132
|
+
:'rate_limit',
|
99
133
|
:'sles_auth_token'
|
100
134
|
])
|
101
135
|
end
|
@@ -151,6 +185,10 @@ module PulpRpmClient
|
|
151
185
|
self.password = attributes[:'password']
|
152
186
|
end
|
153
187
|
|
188
|
+
if attributes.key?(:'pulp_labels')
|
189
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
190
|
+
end
|
191
|
+
|
154
192
|
if attributes.key?(:'download_concurrency')
|
155
193
|
self.download_concurrency = attributes[:'download_concurrency']
|
156
194
|
end
|
@@ -159,6 +197,26 @@ module PulpRpmClient
|
|
159
197
|
self.policy = attributes[:'policy']
|
160
198
|
end
|
161
199
|
|
200
|
+
if attributes.key?(:'total_timeout')
|
201
|
+
self.total_timeout = attributes[:'total_timeout']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'connect_timeout')
|
205
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'sock_connect_timeout')
|
209
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'sock_read_timeout')
|
213
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'rate_limit')
|
217
|
+
self.rate_limit = attributes[:'rate_limit']
|
218
|
+
end
|
219
|
+
|
162
220
|
if attributes.key?(:'sles_auth_token')
|
163
221
|
self.sles_auth_token = attributes[:'sles_auth_token']
|
164
222
|
end
|
@@ -172,6 +230,22 @@ module PulpRpmClient
|
|
172
230
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
173
231
|
end
|
174
232
|
|
233
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
234
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
235
|
+
end
|
236
|
+
|
237
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
238
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
239
|
+
end
|
240
|
+
|
241
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
242
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
243
|
+
end
|
244
|
+
|
245
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
246
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
247
|
+
end
|
248
|
+
|
175
249
|
invalid_properties
|
176
250
|
end
|
177
251
|
|
@@ -179,6 +253,10 @@ module PulpRpmClient
|
|
179
253
|
# @return true if the model is valid
|
180
254
|
def valid?
|
181
255
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
256
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
257
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
258
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
259
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
182
260
|
true
|
183
261
|
end
|
184
262
|
|
@@ -192,6 +270,46 @@ module PulpRpmClient
|
|
192
270
|
@download_concurrency = download_concurrency
|
193
271
|
end
|
194
272
|
|
273
|
+
# Custom attribute writer method with validation
|
274
|
+
# @param [Object] total_timeout Value to be assigned
|
275
|
+
def total_timeout=(total_timeout)
|
276
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
277
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
278
|
+
end
|
279
|
+
|
280
|
+
@total_timeout = total_timeout
|
281
|
+
end
|
282
|
+
|
283
|
+
# Custom attribute writer method with validation
|
284
|
+
# @param [Object] connect_timeout Value to be assigned
|
285
|
+
def connect_timeout=(connect_timeout)
|
286
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
287
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
288
|
+
end
|
289
|
+
|
290
|
+
@connect_timeout = connect_timeout
|
291
|
+
end
|
292
|
+
|
293
|
+
# Custom attribute writer method with validation
|
294
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
295
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
296
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
297
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
298
|
+
end
|
299
|
+
|
300
|
+
@sock_connect_timeout = sock_connect_timeout
|
301
|
+
end
|
302
|
+
|
303
|
+
# Custom attribute writer method with validation
|
304
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
305
|
+
def sock_read_timeout=(sock_read_timeout)
|
306
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
307
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
308
|
+
end
|
309
|
+
|
310
|
+
@sock_read_timeout = sock_read_timeout
|
311
|
+
end
|
312
|
+
|
195
313
|
# Checks equality by comparing each attribute.
|
196
314
|
# @param [Object] Object to be compared
|
197
315
|
def ==(o)
|
@@ -206,8 +324,14 @@ module PulpRpmClient
|
|
206
324
|
proxy_url == o.proxy_url &&
|
207
325
|
username == o.username &&
|
208
326
|
password == o.password &&
|
327
|
+
pulp_labels == o.pulp_labels &&
|
209
328
|
download_concurrency == o.download_concurrency &&
|
210
329
|
policy == o.policy &&
|
330
|
+
total_timeout == o.total_timeout &&
|
331
|
+
connect_timeout == o.connect_timeout &&
|
332
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
333
|
+
sock_read_timeout == o.sock_read_timeout &&
|
334
|
+
rate_limit == o.rate_limit &&
|
211
335
|
sles_auth_token == o.sles_auth_token
|
212
336
|
end
|
213
337
|
|
@@ -220,7 +344,7 @@ module PulpRpmClient
|
|
220
344
|
# Calculates hash code according to all attributes.
|
221
345
|
# @return [Integer] Hash code
|
222
346
|
def hash
|
223
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, sles_auth_token].hash
|
347
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, sles_auth_token].hash
|
224
348
|
end
|
225
349
|
|
226
350
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpRpmClient
|
16
16
|
# Serializer for Rpm Repositories.
|
17
17
|
class PatchedrpmRpmRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -32,6 +34,7 @@ module PulpRpmClient
|
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'description' => :'description',
|
37
40
|
:'remote' => :'remote',
|
@@ -43,6 +46,7 @@ module PulpRpmClient
|
|
43
46
|
# Attribute type mapping.
|
44
47
|
def self.openapi_types
|
45
48
|
{
|
49
|
+
:'pulp_labels' => :'Object',
|
46
50
|
:'name' => :'String',
|
47
51
|
:'description' => :'String',
|
48
52
|
:'remote' => :'String',
|
@@ -75,6 +79,10 @@ module PulpRpmClient
|
|
75
79
|
h[k.to_sym] = v
|
76
80
|
}
|
77
81
|
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
84
|
+
end
|
85
|
+
|
78
86
|
if attributes.key?(:'name')
|
79
87
|
self.name = attributes[:'name']
|
80
88
|
end
|
@@ -129,6 +137,7 @@ module PulpRpmClient
|
|
129
137
|
def ==(o)
|
130
138
|
return true if self.equal?(o)
|
131
139
|
self.class == o.class &&
|
140
|
+
pulp_labels == o.pulp_labels &&
|
132
141
|
name == o.name &&
|
133
142
|
description == o.description &&
|
134
143
|
remote == o.remote &&
|
@@ -145,7 +154,7 @@ module PulpRpmClient
|
|
145
154
|
# Calculates hash code according to all attributes.
|
146
155
|
# @return [Integer] Hash code
|
147
156
|
def hash
|
148
|
-
[name, description, remote, metadata_signing_service, retain_package_versions].hash
|
157
|
+
[pulp_labels, name, description, remote, metadata_signing_service, retain_package_versions].hash
|
149
158
|
end
|
150
159
|
|
151
160
|
# Builds the object from hash
|
@@ -20,6 +20,24 @@ module PulpRpmClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# The MD5 checksum if available.
|
24
|
+
attr_accessor :md5
|
25
|
+
|
26
|
+
# The SHA-1 checksum if available.
|
27
|
+
attr_accessor :sha1
|
28
|
+
|
29
|
+
# The SHA-224 checksum if available.
|
30
|
+
attr_accessor :sha224
|
31
|
+
|
32
|
+
# The SHA-256 checksum if available.
|
33
|
+
attr_accessor :sha256
|
34
|
+
|
35
|
+
# The SHA-384 checksum if available.
|
36
|
+
attr_accessor :sha384
|
37
|
+
|
38
|
+
# The SHA-512 checksum if available.
|
39
|
+
attr_accessor :sha512
|
40
|
+
|
23
41
|
# Artifact file representing the physical content
|
24
42
|
attr_accessor :artifact
|
25
43
|
|
@@ -32,19 +50,21 @@ module PulpRpmClient
|
|
32
50
|
# Default profiles for modulemd streams.
|
33
51
|
attr_accessor :profiles
|
34
52
|
|
35
|
-
# The SHA-256 checksum if available.
|
36
|
-
attr_accessor :sha256
|
37
|
-
|
38
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
54
|
def self.attribute_map
|
40
55
|
{
|
41
56
|
:'pulp_href' => :'pulp_href',
|
42
57
|
:'pulp_created' => :'pulp_created',
|
58
|
+
:'md5' => :'md5',
|
59
|
+
:'sha1' => :'sha1',
|
60
|
+
:'sha224' => :'sha224',
|
61
|
+
:'sha256' => :'sha256',
|
62
|
+
:'sha384' => :'sha384',
|
63
|
+
:'sha512' => :'sha512',
|
43
64
|
:'artifact' => :'artifact',
|
44
65
|
:'_module' => :'module',
|
45
66
|
:'stream' => :'stream',
|
46
|
-
:'profiles' => :'profiles'
|
47
|
-
:'sha256' => :'sha256'
|
67
|
+
:'profiles' => :'profiles'
|
48
68
|
}
|
49
69
|
end
|
50
70
|
|
@@ -53,11 +73,16 @@ module PulpRpmClient
|
|
53
73
|
{
|
54
74
|
:'pulp_href' => :'String',
|
55
75
|
:'pulp_created' => :'DateTime',
|
76
|
+
:'md5' => :'String',
|
77
|
+
:'sha1' => :'String',
|
78
|
+
:'sha224' => :'String',
|
79
|
+
:'sha256' => :'String',
|
80
|
+
:'sha384' => :'String',
|
81
|
+
:'sha512' => :'String',
|
56
82
|
:'artifact' => :'String',
|
57
83
|
:'_module' => :'String',
|
58
84
|
:'stream' => :'String',
|
59
|
-
:'profiles' => :'Object'
|
60
|
-
:'sha256' => :'String'
|
85
|
+
:'profiles' => :'Object'
|
61
86
|
}
|
62
87
|
end
|
63
88
|
|
@@ -90,6 +115,30 @@ module PulpRpmClient
|
|
90
115
|
self.pulp_created = attributes[:'pulp_created']
|
91
116
|
end
|
92
117
|
|
118
|
+
if attributes.key?(:'md5')
|
119
|
+
self.md5 = attributes[:'md5']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'sha1')
|
123
|
+
self.sha1 = attributes[:'sha1']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'sha224')
|
127
|
+
self.sha224 = attributes[:'sha224']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'sha256')
|
131
|
+
self.sha256 = attributes[:'sha256']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'sha384')
|
135
|
+
self.sha384 = attributes[:'sha384']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'sha512')
|
139
|
+
self.sha512 = attributes[:'sha512']
|
140
|
+
end
|
141
|
+
|
93
142
|
if attributes.key?(:'artifact')
|
94
143
|
self.artifact = attributes[:'artifact']
|
95
144
|
end
|
@@ -105,10 +154,6 @@ module PulpRpmClient
|
|
105
154
|
if attributes.key?(:'profiles')
|
106
155
|
self.profiles = attributes[:'profiles']
|
107
156
|
end
|
108
|
-
|
109
|
-
if attributes.key?(:'sha256')
|
110
|
-
self.sha256 = attributes[:'sha256']
|
111
|
-
end
|
112
157
|
end
|
113
158
|
|
114
159
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -146,11 +191,16 @@ module PulpRpmClient
|
|
146
191
|
self.class == o.class &&
|
147
192
|
pulp_href == o.pulp_href &&
|
148
193
|
pulp_created == o.pulp_created &&
|
194
|
+
md5 == o.md5 &&
|
195
|
+
sha1 == o.sha1 &&
|
196
|
+
sha224 == o.sha224 &&
|
197
|
+
sha256 == o.sha256 &&
|
198
|
+
sha384 == o.sha384 &&
|
199
|
+
sha512 == o.sha512 &&
|
149
200
|
artifact == o.artifact &&
|
150
201
|
_module == o._module &&
|
151
202
|
stream == o.stream &&
|
152
|
-
profiles == o.profiles
|
153
|
-
sha256 == o.sha256
|
203
|
+
profiles == o.profiles
|
154
204
|
end
|
155
205
|
|
156
206
|
# @see the `==` method
|
@@ -162,7 +212,7 @@ module PulpRpmClient
|
|
162
212
|
# Calculates hash code according to all attributes.
|
163
213
|
# @return [Integer] Hash code
|
164
214
|
def hash
|
165
|
-
[pulp_href, pulp_created, artifact, _module, stream, profiles
|
215
|
+
[pulp_href, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, artifact, _module, stream, profiles].hash
|
166
216
|
end
|
167
217
|
|
168
218
|
# Builds the object from hash
|