pulp_container_client 2.20.0 → 2.20.3
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 +9 -9
- data/docs/ContainerContainerDistributionResponse.md +13 -11
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -11
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
- 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 +9 -9
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- 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 +63 -63
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -52
- 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 +63 -63
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -52
- 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 +40 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
- 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 +54 -54
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +54 -54
- 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 +40 -40
- 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 +14 -8
- 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 +14 -8
- 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 +70 -78
- 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,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
20
|
+
|
|
18
21
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
22
|
attr_accessor :retain_repo_versions
|
|
20
23
|
|
|
24
|
+
# A unique name for this repository.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
21
27
|
# A reference to an associated signing service.
|
|
22
28
|
attr_accessor :manifest_signing_service
|
|
23
29
|
|
|
24
30
|
attr_accessor :pulp_labels
|
|
25
31
|
|
|
26
|
-
# A unique name for this repository.
|
|
27
|
-
attr_accessor :name
|
|
28
|
-
|
|
29
|
-
# An optional description.
|
|
30
|
-
attr_accessor :description
|
|
31
|
-
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
+
:'description' => :'description',
|
|
35
36
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
|
38
37
|
:'name' => :'name',
|
|
39
|
-
:'
|
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
+
:'description' => :'String',
|
|
46
47
|
:'retain_repo_versions' => :'Integer',
|
|
47
|
-
:'manifest_signing_service' => :'String',
|
|
48
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
49
48
|
:'name' => :'String',
|
|
50
|
-
:'
|
|
49
|
+
:'manifest_signing_service' => :'String',
|
|
50
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
+
:'description',
|
|
57
58
|
:'retain_repo_versions',
|
|
58
59
|
:'manifest_signing_service',
|
|
59
|
-
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,10 +75,18 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
if attributes.key?(:'description')
|
|
79
|
+
self.description = attributes[:'description']
|
|
80
|
+
end
|
|
81
|
+
|
|
78
82
|
if attributes.key?(:'retain_repo_versions')
|
|
79
83
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
80
84
|
end
|
|
81
85
|
|
|
86
|
+
if attributes.key?(:'name')
|
|
87
|
+
self.name = attributes[:'name']
|
|
88
|
+
end
|
|
89
|
+
|
|
82
90
|
if attributes.key?(:'manifest_signing_service')
|
|
83
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
84
92
|
end
|
|
@@ -88,20 +96,16 @@ module PulpContainerClient
|
|
|
88
96
|
self.pulp_labels = value
|
|
89
97
|
end
|
|
90
98
|
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'name')
|
|
93
|
-
self.name = attributes[:'name']
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'description')
|
|
97
|
-
self.description = attributes[:'description']
|
|
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 !@description.nil? && @description.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
107
|
+
end
|
|
108
|
+
|
|
105
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
107
111
|
end
|
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
|
114
118
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
119
|
end
|
|
116
120
|
|
|
117
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
118
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
121
|
invalid_properties
|
|
122
122
|
end
|
|
123
123
|
|
|
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 !@description.nil? && @description.to_s.length < 1
|
|
127
128
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
128
129
|
return false if @name.nil?
|
|
129
130
|
return false if @name.to_s.length < 1
|
|
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] description Value to be assigned
|
|
136
|
+
def description=(description)
|
|
137
|
+
if !description.nil? && description.to_s.length < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@description = description
|
|
142
|
+
end
|
|
143
|
+
|
|
134
144
|
# Custom attribute writer method with validation
|
|
135
145
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
136
146
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
|
155
165
|
@name = name
|
|
156
166
|
end
|
|
157
167
|
|
|
158
|
-
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object] description Value to be assigned
|
|
160
|
-
def description=(description)
|
|
161
|
-
if !description.nil? && description.to_s.length < 1
|
|
162
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
@description = description
|
|
166
|
-
end
|
|
167
|
-
|
|
168
168
|
# Checks equality by comparing each attribute.
|
|
169
169
|
# @param [Object] Object to be compared
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
+
description == o.description &&
|
|
173
174
|
retain_repo_versions == o.retain_repo_versions &&
|
|
174
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
175
|
-
pulp_labels == o.pulp_labels &&
|
|
176
175
|
name == o.name &&
|
|
177
|
-
|
|
176
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
177
|
+
pulp_labels == o.pulp_labels
|
|
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
|
+
[description, retain_repo_versions, name, manifest_signing_service, pulp_labels].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|
|
@@ -15,65 +15,70 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
|
-
attr_accessor :retain_repo_versions
|
|
20
|
-
|
|
21
|
-
attr_accessor :pulp_href
|
|
22
|
-
|
|
23
|
-
# A reference to an associated signing service.
|
|
24
|
-
attr_accessor :manifest_signing_service
|
|
25
|
-
|
|
26
18
|
# Timestamp of creation.
|
|
27
19
|
attr_accessor :pulp_created
|
|
28
20
|
|
|
29
21
|
attr_accessor :latest_version_href
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
# An optional description.
|
|
24
|
+
attr_accessor :description
|
|
25
|
+
|
|
26
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
27
|
+
attr_accessor :pulp_last_updated
|
|
28
|
+
|
|
29
|
+
attr_accessor :versions_href
|
|
30
|
+
|
|
31
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
32
|
+
attr_accessor :retain_repo_versions
|
|
32
33
|
|
|
33
34
|
# A unique name for this repository.
|
|
34
35
|
attr_accessor :name
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
# A reference to an associated signing service.
|
|
38
|
+
attr_accessor :manifest_signing_service
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
attr_accessor :pulp_href
|
|
41
|
+
|
|
42
|
+
attr_accessor :pulp_labels
|
|
40
43
|
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
45
|
def self.attribute_map
|
|
43
46
|
{
|
|
44
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
45
|
-
:'pulp_href' => :'pulp_href',
|
|
46
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
47
47
|
:'pulp_created' => :'pulp_created',
|
|
48
48
|
:'latest_version_href' => :'latest_version_href',
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
49
|
+
:'description' => :'description',
|
|
50
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
51
51
|
:'versions_href' => :'versions_href',
|
|
52
|
-
:'
|
|
52
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
53
|
+
:'name' => :'name',
|
|
54
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
|
+
:'pulp_href' => :'pulp_href',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
56
60
|
# Attribute type mapping.
|
|
57
61
|
def self.openapi_types
|
|
58
62
|
{
|
|
59
|
-
:'retain_repo_versions' => :'Integer',
|
|
60
|
-
:'pulp_href' => :'String',
|
|
61
|
-
:'manifest_signing_service' => :'String',
|
|
62
63
|
:'pulp_created' => :'DateTime',
|
|
63
64
|
:'latest_version_href' => :'String',
|
|
64
|
-
:'
|
|
65
|
-
:'
|
|
65
|
+
:'description' => :'String',
|
|
66
|
+
:'pulp_last_updated' => :'DateTime',
|
|
66
67
|
:'versions_href' => :'String',
|
|
67
|
-
:'
|
|
68
|
+
:'retain_repo_versions' => :'Integer',
|
|
69
|
+
:'name' => :'String',
|
|
70
|
+
:'manifest_signing_service' => :'String',
|
|
71
|
+
:'pulp_href' => :'String',
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
68
73
|
}
|
|
69
74
|
end
|
|
70
75
|
|
|
71
76
|
# List of attributes with nullable: true
|
|
72
77
|
def self.openapi_nullable
|
|
73
78
|
Set.new([
|
|
79
|
+
:'description',
|
|
74
80
|
:'retain_repo_versions',
|
|
75
81
|
:'manifest_signing_service',
|
|
76
|
-
:'description'
|
|
77
82
|
])
|
|
78
83
|
end
|
|
79
84
|
|
|
@@ -92,42 +97,46 @@ module PulpContainerClient
|
|
|
92
97
|
h[k.to_sym] = v
|
|
93
98
|
}
|
|
94
99
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
100
|
+
if attributes.key?(:'pulp_created')
|
|
101
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
97
102
|
end
|
|
98
103
|
|
|
99
|
-
if attributes.key?(:'
|
|
100
|
-
self.
|
|
104
|
+
if attributes.key?(:'latest_version_href')
|
|
105
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
101
106
|
end
|
|
102
107
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
108
|
+
if attributes.key?(:'description')
|
|
109
|
+
self.description = attributes[:'description']
|
|
105
110
|
end
|
|
106
111
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
112
|
+
if attributes.key?(:'pulp_last_updated')
|
|
113
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
109
114
|
end
|
|
110
115
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
116
|
+
if attributes.key?(:'versions_href')
|
|
117
|
+
self.versions_href = attributes[:'versions_href']
|
|
113
118
|
end
|
|
114
119
|
|
|
115
|
-
if attributes.key?(:'
|
|
116
|
-
|
|
117
|
-
self.pulp_labels = value
|
|
118
|
-
end
|
|
120
|
+
if attributes.key?(:'retain_repo_versions')
|
|
121
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
119
122
|
end
|
|
120
123
|
|
|
121
124
|
if attributes.key?(:'name')
|
|
122
125
|
self.name = attributes[:'name']
|
|
123
126
|
end
|
|
124
127
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
128
|
+
if attributes.key?(:'manifest_signing_service')
|
|
129
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
127
130
|
end
|
|
128
131
|
|
|
129
|
-
if attributes.key?(:'
|
|
130
|
-
self.
|
|
132
|
+
if attributes.key?(:'pulp_href')
|
|
133
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'pulp_labels')
|
|
137
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
138
|
+
self.pulp_labels = value
|
|
139
|
+
end
|
|
131
140
|
end
|
|
132
141
|
end
|
|
133
142
|
|
|
@@ -169,15 +178,16 @@ module PulpContainerClient
|
|
|
169
178
|
def ==(o)
|
|
170
179
|
return true if self.equal?(o)
|
|
171
180
|
self.class == o.class &&
|
|
172
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
173
|
-
pulp_href == o.pulp_href &&
|
|
174
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
175
181
|
pulp_created == o.pulp_created &&
|
|
176
182
|
latest_version_href == o.latest_version_href &&
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
description == o.description &&
|
|
184
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
179
185
|
versions_href == o.versions_href &&
|
|
180
|
-
|
|
186
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
187
|
+
name == o.name &&
|
|
188
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
189
|
+
pulp_href == o.pulp_href &&
|
|
190
|
+
pulp_labels == o.pulp_labels
|
|
181
191
|
end
|
|
182
192
|
|
|
183
193
|
# @see the `==` method
|
|
@@ -189,7 +199,7 @@ module PulpContainerClient
|
|
|
189
199
|
# Calculates hash code according to all attributes.
|
|
190
200
|
# @return [Integer] Hash code
|
|
191
201
|
def hash
|
|
192
|
-
[
|
|
202
|
+
[pulp_created, latest_version_href, description, pulp_last_updated, versions_href, retain_repo_versions, name, manifest_signing_service, pulp_href, pulp_labels].hash
|
|
193
203
|
end
|
|
194
204
|
|
|
195
205
|
# Builds the object from hash
|