pulp_container_client 2.20.0 → 2.20.2
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 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/DistributionsPullThroughApi.md +1 -1
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedcontainerBlobResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
- data/docs/PaginatedcontainerTagResponseList.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RemotesPullThroughApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -54
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +6 -6
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +73 -81
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
@@ -311,20 +311,20 @@ module PulpContainerClient
|
|
311
311
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
312
312
|
end
|
313
313
|
|
314
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
315
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
314
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
315
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
316
316
|
end
|
317
317
|
|
318
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
319
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
318
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
319
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
320
320
|
end
|
321
321
|
|
322
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
323
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
322
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
323
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
324
324
|
end
|
325
325
|
|
326
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
327
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
326
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
327
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
328
328
|
end
|
329
329
|
|
330
330
|
invalid_properties
|
@@ -346,10 +346,10 @@ module PulpContainerClient
|
|
346
346
|
return false if !@username.nil? && @username.to_s.length < 1
|
347
347
|
return false if !@password.nil? && @password.to_s.length < 1
|
348
348
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
349
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
350
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
351
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
352
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
349
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
350
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
351
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
352
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
353
353
|
true
|
354
354
|
end
|
355
355
|
|
@@ -474,8 +474,8 @@ module PulpContainerClient
|
|
474
474
|
# Custom attribute writer method with validation
|
475
475
|
# @param [Object] total_timeout Value to be assigned
|
476
476
|
def total_timeout=(total_timeout)
|
477
|
-
if !total_timeout.nil? && total_timeout < 0
|
478
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
477
|
+
if !total_timeout.nil? && total_timeout < 0
|
478
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
479
479
|
end
|
480
480
|
|
481
481
|
@total_timeout = total_timeout
|
@@ -484,8 +484,8 @@ module PulpContainerClient
|
|
484
484
|
# Custom attribute writer method with validation
|
485
485
|
# @param [Object] connect_timeout Value to be assigned
|
486
486
|
def connect_timeout=(connect_timeout)
|
487
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
488
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
487
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
488
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
489
489
|
end
|
490
490
|
|
491
491
|
@connect_timeout = connect_timeout
|
@@ -494,8 +494,8 @@ module PulpContainerClient
|
|
494
494
|
# Custom attribute writer method with validation
|
495
495
|
# @param [Object] sock_connect_timeout Value to be assigned
|
496
496
|
def sock_connect_timeout=(sock_connect_timeout)
|
497
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
498
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
497
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
498
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
499
499
|
end
|
500
500
|
|
501
501
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -504,8 +504,8 @@ module PulpContainerClient
|
|
504
504
|
# Custom attribute writer method with validation
|
505
505
|
# @param [Object] sock_read_timeout Value to be assigned
|
506
506
|
def sock_read_timeout=(sock_read_timeout)
|
507
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
508
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
507
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
508
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
509
509
|
end
|
510
510
|
|
511
511
|
@sock_read_timeout = sock_read_timeout
|
@@ -20,6 +20,9 @@ module PulpContainerClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the most recent update of the remote.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# A unique name for this remote.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -40,9 +43,6 @@ module PulpContainerClient
|
|
40
43
|
|
41
44
|
attr_accessor :pulp_labels
|
42
45
|
|
43
|
-
# Timestamp of the most recent update of the remote.
|
44
|
-
attr_accessor :pulp_last_updated
|
45
|
-
|
46
46
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
@@ -77,6 +77,7 @@ module PulpContainerClient
|
|
77
77
|
{
|
78
78
|
:'pulp_href' => :'pulp_href',
|
79
79
|
:'pulp_created' => :'pulp_created',
|
80
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
80
81
|
:'name' => :'name',
|
81
82
|
:'url' => :'url',
|
82
83
|
:'ca_cert' => :'ca_cert',
|
@@ -84,7 +85,6 @@ module PulpContainerClient
|
|
84
85
|
:'tls_validation' => :'tls_validation',
|
85
86
|
:'proxy_url' => :'proxy_url',
|
86
87
|
:'pulp_labels' => :'pulp_labels',
|
87
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
88
88
|
:'download_concurrency' => :'download_concurrency',
|
89
89
|
:'max_retries' => :'max_retries',
|
90
90
|
:'policy' => :'policy',
|
@@ -103,6 +103,7 @@ module PulpContainerClient
|
|
103
103
|
{
|
104
104
|
:'pulp_href' => :'String',
|
105
105
|
:'pulp_created' => :'DateTime',
|
106
|
+
:'pulp_last_updated' => :'DateTime',
|
106
107
|
:'name' => :'String',
|
107
108
|
:'url' => :'String',
|
108
109
|
:'ca_cert' => :'String',
|
@@ -110,7 +111,6 @@ module PulpContainerClient
|
|
110
111
|
:'tls_validation' => :'Boolean',
|
111
112
|
:'proxy_url' => :'String',
|
112
113
|
:'pulp_labels' => :'Hash<String, String>',
|
113
|
-
:'pulp_last_updated' => :'DateTime',
|
114
114
|
:'download_concurrency' => :'Integer',
|
115
115
|
:'max_retries' => :'Integer',
|
116
116
|
:'policy' => :'Policy8e2Enum',
|
@@ -163,6 +163,10 @@ module PulpContainerClient
|
|
163
163
|
self.pulp_created = attributes[:'pulp_created']
|
164
164
|
end
|
165
165
|
|
166
|
+
if attributes.key?(:'pulp_last_updated')
|
167
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
168
|
+
end
|
169
|
+
|
166
170
|
if attributes.key?(:'name')
|
167
171
|
self.name = attributes[:'name']
|
168
172
|
end
|
@@ -193,10 +197,6 @@ module PulpContainerClient
|
|
193
197
|
end
|
194
198
|
end
|
195
199
|
|
196
|
-
if attributes.key?(:'pulp_last_updated')
|
197
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
198
|
-
end
|
199
|
-
|
200
200
|
if attributes.key?(:'download_concurrency')
|
201
201
|
self.download_concurrency = attributes[:'download_concurrency']
|
202
202
|
end
|
@@ -258,20 +258,20 @@ module PulpContainerClient
|
|
258
258
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
259
259
|
end
|
260
260
|
|
261
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
262
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
261
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
262
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
263
263
|
end
|
264
264
|
|
265
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
266
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
265
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
266
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
267
267
|
end
|
268
268
|
|
269
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
270
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
269
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
270
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
271
271
|
end
|
272
272
|
|
273
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
274
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
273
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
274
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
275
275
|
end
|
276
276
|
|
277
277
|
invalid_properties
|
@@ -283,10 +283,10 @@ module PulpContainerClient
|
|
283
283
|
return false if @name.nil?
|
284
284
|
return false if @url.nil?
|
285
285
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
286
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
287
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
288
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
289
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
286
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
287
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
288
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
289
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
290
290
|
true
|
291
291
|
end
|
292
292
|
|
@@ -303,8 +303,8 @@ module PulpContainerClient
|
|
303
303
|
# Custom attribute writer method with validation
|
304
304
|
# @param [Object] total_timeout Value to be assigned
|
305
305
|
def total_timeout=(total_timeout)
|
306
|
-
if !total_timeout.nil? && total_timeout < 0
|
307
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
306
|
+
if !total_timeout.nil? && total_timeout < 0
|
307
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
308
308
|
end
|
309
309
|
|
310
310
|
@total_timeout = total_timeout
|
@@ -313,8 +313,8 @@ module PulpContainerClient
|
|
313
313
|
# Custom attribute writer method with validation
|
314
314
|
# @param [Object] connect_timeout Value to be assigned
|
315
315
|
def connect_timeout=(connect_timeout)
|
316
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
317
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
316
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
317
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
318
318
|
end
|
319
319
|
|
320
320
|
@connect_timeout = connect_timeout
|
@@ -323,8 +323,8 @@ module PulpContainerClient
|
|
323
323
|
# Custom attribute writer method with validation
|
324
324
|
# @param [Object] sock_connect_timeout Value to be assigned
|
325
325
|
def sock_connect_timeout=(sock_connect_timeout)
|
326
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
327
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
326
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
327
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
328
328
|
end
|
329
329
|
|
330
330
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -333,8 +333,8 @@ module PulpContainerClient
|
|
333
333
|
# Custom attribute writer method with validation
|
334
334
|
# @param [Object] sock_read_timeout Value to be assigned
|
335
335
|
def sock_read_timeout=(sock_read_timeout)
|
336
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
337
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
336
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
337
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
338
338
|
end
|
339
339
|
|
340
340
|
@sock_read_timeout = sock_read_timeout
|
@@ -347,6 +347,7 @@ module PulpContainerClient
|
|
347
347
|
self.class == o.class &&
|
348
348
|
pulp_href == o.pulp_href &&
|
349
349
|
pulp_created == o.pulp_created &&
|
350
|
+
pulp_last_updated == o.pulp_last_updated &&
|
350
351
|
name == o.name &&
|
351
352
|
url == o.url &&
|
352
353
|
ca_cert == o.ca_cert &&
|
@@ -354,7 +355,6 @@ module PulpContainerClient
|
|
354
355
|
tls_validation == o.tls_validation &&
|
355
356
|
proxy_url == o.proxy_url &&
|
356
357
|
pulp_labels == o.pulp_labels &&
|
357
|
-
pulp_last_updated == o.pulp_last_updated &&
|
358
358
|
download_concurrency == o.download_concurrency &&
|
359
359
|
max_retries == o.max_retries &&
|
360
360
|
policy == o.policy &&
|
@@ -376,7 +376,7 @@ module PulpContainerClient
|
|
376
376
|
# Calculates hash code according to all attributes.
|
377
377
|
# @return [Integer] Hash code
|
378
378
|
def hash
|
379
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels,
|
379
|
+
[pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
|
380
380
|
end
|
381
381
|
|
382
382
|
# Builds the object from hash
|
@@ -68,12 +68,22 @@ module PulpContainerClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A reference to an associated signing service.
|
22
|
-
attr_accessor :manifest_signing_service
|
18
|
+
# A unique name for this repository.
|
19
|
+
attr_accessor :name
|
23
20
|
|
24
21
|
attr_accessor :pulp_labels
|
25
22
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
23
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
24
|
+
attr_accessor :retain_repo_versions
|
28
25
|
|
29
26
|
# An optional description.
|
30
27
|
attr_accessor :description
|
31
28
|
|
29
|
+
# A reference to an associated signing service.
|
30
|
+
attr_accessor :manifest_signing_service
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
38
35
|
:'name' => :'name',
|
39
|
-
:'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
+
:'description' => :'description',
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'manifest_signing_service' => :'String',
|
48
|
-
:'pulp_labels' => :'Hash<String, String>',
|
49
46
|
:'name' => :'String',
|
50
|
-
:'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
49
|
+
:'description' => :'String',
|
50
|
+
:'manifest_signing_service' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'retain_repo_versions',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'description',
|
59
|
+
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,12 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'manifest_signing_service')
|
83
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
78
|
+
if attributes.key?(:'name')
|
79
|
+
self.name = attributes[:'name']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'pulp_labels')
|
@@ -89,23 +85,23 @@ module PulpContainerClient
|
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'retain_repo_versions')
|
89
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
90
|
end
|
95
91
|
|
96
92
|
if attributes.key?(:'description')
|
97
93
|
self.description = attributes[:'description']
|
98
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
105
|
if @name.nil?
|
110
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
111
107
|
end
|
@@ -114,6 +110,10 @@ module PulpContainerClient
|
|
114
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
if !@description.nil? && @description.to_s.length < 1
|
118
118
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
119
|
end
|
@@ -124,23 +124,13 @@ module PulpContainerClient
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
127
|
return false if @name.nil?
|
129
128
|
return false if @name.to_s.length < 1
|
129
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
130
|
return false if !@description.nil? && @description.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
-
# Custom attribute writer method with validation
|
135
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
136
|
-
def retain_repo_versions=(retain_repo_versions)
|
137
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
138
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
139
|
-
end
|
140
|
-
|
141
|
-
@retain_repo_versions = retain_repo_versions
|
142
|
-
end
|
143
|
-
|
144
134
|
# Custom attribute writer method with validation
|
145
135
|
# @param [Object] name Value to be assigned
|
146
136
|
def name=(name)
|
@@ -155,6 +145,16 @@ module PulpContainerClient
|
|
155
145
|
@name = name
|
156
146
|
end
|
157
147
|
|
148
|
+
# Custom attribute writer method with validation
|
149
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
150
|
+
def retain_repo_versions=(retain_repo_versions)
|
151
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
152
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
153
|
+
end
|
154
|
+
|
155
|
+
@retain_repo_versions = retain_repo_versions
|
156
|
+
end
|
157
|
+
|
158
158
|
# Custom attribute writer method with validation
|
159
159
|
# @param [Object] description Value to be assigned
|
160
160
|
def description=(description)
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
manifest_signing_service == o.manifest_signing_service &&
|
175
|
-
pulp_labels == o.pulp_labels &&
|
176
173
|
name == o.name &&
|
177
|
-
|
174
|
+
pulp_labels == o.pulp_labels &&
|
175
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
|
+
description == o.description &&
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[name, pulp_labels, retain_repo_versions, description, manifest_signing_service].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|