pulp_container_client 2.9.6 → 2.10.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/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
- data/lib/pulp_container_client/api_client.rb +4 -1
- data/lib/pulp_container_client/configuration.rb +0 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +70 -17
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +52 -18
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
- data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +62 -17
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
- data/lib/pulp_container_client/models/remove_image.rb +19 -0
- data/lib/pulp_container_client/models/tag_image.rb +28 -0
- data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +52 -57
@@ -74,7 +74,7 @@ module PulpContainerClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Name of the upstream repository
|
@@ -291,6 +291,46 @@ module PulpContainerClient
|
|
291
291
|
# @return Array for valid properties with the reasons
|
292
292
|
def list_invalid_properties
|
293
293
|
invalid_properties = Array.new
|
294
|
+
if !@name.nil? && @name.to_s.length < 1
|
295
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
296
|
+
end
|
297
|
+
|
298
|
+
if !@url.nil? && @url.to_s.length < 1
|
299
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
300
|
+
end
|
301
|
+
|
302
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
303
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
304
|
+
end
|
305
|
+
|
306
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
307
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
308
|
+
end
|
309
|
+
|
310
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
311
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
312
|
+
end
|
313
|
+
|
314
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
315
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
316
|
+
end
|
317
|
+
|
318
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
319
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
320
|
+
end
|
321
|
+
|
322
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
323
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
324
|
+
end
|
325
|
+
|
326
|
+
if !@username.nil? && @username.to_s.length < 1
|
327
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
328
|
+
end
|
329
|
+
|
330
|
+
if !@password.nil? && @password.to_s.length < 1
|
331
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
332
|
+
end
|
333
|
+
|
294
334
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
295
335
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
296
336
|
end
|
@@ -311,20 +351,135 @@ module PulpContainerClient
|
|
311
351
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
312
352
|
end
|
313
353
|
|
354
|
+
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
355
|
+
invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
|
356
|
+
end
|
357
|
+
|
314
358
|
invalid_properties
|
315
359
|
end
|
316
360
|
|
317
361
|
# Check to see if the all the properties in the model are valid
|
318
362
|
# @return true if the model is valid
|
319
363
|
def valid?
|
364
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
365
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
366
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
367
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
368
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
369
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
370
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
371
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
372
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
373
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
320
374
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
321
375
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
322
376
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
323
377
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
378
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
379
|
+
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
325
380
|
true
|
326
381
|
end
|
327
382
|
|
383
|
+
# Custom attribute writer method with validation
|
384
|
+
# @param [Object] name Value to be assigned
|
385
|
+
def name=(name)
|
386
|
+
if !name.nil? && name.to_s.length < 1
|
387
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
388
|
+
end
|
389
|
+
|
390
|
+
@name = name
|
391
|
+
end
|
392
|
+
|
393
|
+
# Custom attribute writer method with validation
|
394
|
+
# @param [Object] url Value to be assigned
|
395
|
+
def url=(url)
|
396
|
+
if !url.nil? && url.to_s.length < 1
|
397
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
398
|
+
end
|
399
|
+
|
400
|
+
@url = url
|
401
|
+
end
|
402
|
+
|
403
|
+
# Custom attribute writer method with validation
|
404
|
+
# @param [Object] ca_cert Value to be assigned
|
405
|
+
def ca_cert=(ca_cert)
|
406
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
407
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
408
|
+
end
|
409
|
+
|
410
|
+
@ca_cert = ca_cert
|
411
|
+
end
|
412
|
+
|
413
|
+
# Custom attribute writer method with validation
|
414
|
+
# @param [Object] client_cert Value to be assigned
|
415
|
+
def client_cert=(client_cert)
|
416
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
417
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
418
|
+
end
|
419
|
+
|
420
|
+
@client_cert = client_cert
|
421
|
+
end
|
422
|
+
|
423
|
+
# Custom attribute writer method with validation
|
424
|
+
# @param [Object] client_key Value to be assigned
|
425
|
+
def client_key=(client_key)
|
426
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
427
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
428
|
+
end
|
429
|
+
|
430
|
+
@client_key = client_key
|
431
|
+
end
|
432
|
+
|
433
|
+
# Custom attribute writer method with validation
|
434
|
+
# @param [Object] proxy_url Value to be assigned
|
435
|
+
def proxy_url=(proxy_url)
|
436
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
437
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
438
|
+
end
|
439
|
+
|
440
|
+
@proxy_url = proxy_url
|
441
|
+
end
|
442
|
+
|
443
|
+
# Custom attribute writer method with validation
|
444
|
+
# @param [Object] proxy_username Value to be assigned
|
445
|
+
def proxy_username=(proxy_username)
|
446
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
448
|
+
end
|
449
|
+
|
450
|
+
@proxy_username = proxy_username
|
451
|
+
end
|
452
|
+
|
453
|
+
# Custom attribute writer method with validation
|
454
|
+
# @param [Object] proxy_password Value to be assigned
|
455
|
+
def proxy_password=(proxy_password)
|
456
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
457
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
458
|
+
end
|
459
|
+
|
460
|
+
@proxy_password = proxy_password
|
461
|
+
end
|
462
|
+
|
463
|
+
# Custom attribute writer method with validation
|
464
|
+
# @param [Object] username Value to be assigned
|
465
|
+
def username=(username)
|
466
|
+
if !username.nil? && username.to_s.length < 1
|
467
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
468
|
+
end
|
469
|
+
|
470
|
+
@username = username
|
471
|
+
end
|
472
|
+
|
473
|
+
# Custom attribute writer method with validation
|
474
|
+
# @param [Object] password Value to be assigned
|
475
|
+
def password=(password)
|
476
|
+
if !password.nil? && password.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
478
|
+
end
|
479
|
+
|
480
|
+
@password = password
|
481
|
+
end
|
482
|
+
|
328
483
|
# Custom attribute writer method with validation
|
329
484
|
# @param [Object] download_concurrency Value to be assigned
|
330
485
|
def download_concurrency=(download_concurrency)
|
@@ -375,6 +530,16 @@ module PulpContainerClient
|
|
375
530
|
@sock_read_timeout = sock_read_timeout
|
376
531
|
end
|
377
532
|
|
533
|
+
# Custom attribute writer method with validation
|
534
|
+
# @param [Object] upstream_name Value to be assigned
|
535
|
+
def upstream_name=(upstream_name)
|
536
|
+
if !upstream_name.nil? && upstream_name.to_s.length < 1
|
537
|
+
fail ArgumentError, 'invalid value for "upstream_name", the character length must be great than or equal to 1.'
|
538
|
+
end
|
539
|
+
|
540
|
+
@upstream_name = upstream_name
|
541
|
+
end
|
542
|
+
|
378
543
|
# Checks equality by comparing each attribute.
|
379
544
|
# @param [Object] Object to be compared
|
380
545
|
def ==(o)
|
@@ -100,6 +100,14 @@ module PulpContainerClient
|
|
100
100
|
# @return Array for valid properties with the reasons
|
101
101
|
def list_invalid_properties
|
102
102
|
invalid_properties = Array.new
|
103
|
+
if !@name.nil? && @name.to_s.length < 1
|
104
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if !@description.nil? && @description.to_s.length < 1
|
108
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
109
|
+
end
|
110
|
+
|
103
111
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
112
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
105
113
|
end
|
@@ -110,10 +118,32 @@ module PulpContainerClient
|
|
110
118
|
# Check to see if the all the properties in the model are valid
|
111
119
|
# @return true if the model is valid
|
112
120
|
def valid?
|
121
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
122
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
113
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
124
|
true
|
115
125
|
end
|
116
126
|
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] name Value to be assigned
|
129
|
+
def name=(name)
|
130
|
+
if !name.nil? && name.to_s.length < 1
|
131
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
132
|
+
end
|
133
|
+
|
134
|
+
@name = name
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] description Value to be assigned
|
139
|
+
def description=(description)
|
140
|
+
if !description.nil? && description.to_s.length < 1
|
141
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
142
|
+
end
|
143
|
+
|
144
|
+
@description = description
|
145
|
+
end
|
146
|
+
|
117
147
|
# Custom attribute writer method with validation
|
118
148
|
# @param [Object] retain_repo_versions Value to be assigned
|
119
149
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -72,15 +72,45 @@ module PulpContainerClient
|
|
72
72
|
# @return Array for valid properties with the reasons
|
73
73
|
def list_invalid_properties
|
74
74
|
invalid_properties = Array.new
|
75
|
+
if !@name.nil? && @name.to_s.length < 1
|
76
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
77
|
+
end
|
78
|
+
|
79
|
+
if !@description.nil? && @description.to_s.length < 1
|
80
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
81
|
+
end
|
82
|
+
|
75
83
|
invalid_properties
|
76
84
|
end
|
77
85
|
|
78
86
|
# Check to see if the all the properties in the model are valid
|
79
87
|
# @return true if the model is valid
|
80
88
|
def valid?
|
89
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
90
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
81
91
|
true
|
82
92
|
end
|
83
93
|
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param [Object] name Value to be assigned
|
96
|
+
def name=(name)
|
97
|
+
if !name.nil? && name.to_s.length < 1
|
98
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
99
|
+
end
|
100
|
+
|
101
|
+
@name = name
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method with validation
|
105
|
+
# @param [Object] description Value to be assigned
|
106
|
+
def description=(description)
|
107
|
+
if !description.nil? && description.to_s.length < 1
|
108
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
109
|
+
end
|
110
|
+
|
111
|
+
@description = description
|
112
|
+
end
|
113
|
+
|
84
114
|
# Checks equality by comparing each attribute.
|
85
115
|
# @param [Object] Object to be compared
|
86
116
|
def ==(o)
|
@@ -66,6 +66,10 @@ module PulpContainerClient
|
|
66
66
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
67
67
|
end
|
68
68
|
|
69
|
+
if @digest.to_s.length < 1
|
70
|
+
invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
|
71
|
+
end
|
72
|
+
|
69
73
|
invalid_properties
|
70
74
|
end
|
71
75
|
|
@@ -73,9 +77,24 @@ module PulpContainerClient
|
|
73
77
|
# @return true if the model is valid
|
74
78
|
def valid?
|
75
79
|
return false if @digest.nil?
|
80
|
+
return false if @digest.to_s.length < 1
|
76
81
|
true
|
77
82
|
end
|
78
83
|
|
84
|
+
# Custom attribute writer method with validation
|
85
|
+
# @param [Object] digest Value to be assigned
|
86
|
+
def digest=(digest)
|
87
|
+
if digest.nil?
|
88
|
+
fail ArgumentError, 'digest cannot be nil'
|
89
|
+
end
|
90
|
+
|
91
|
+
if digest.to_s.length < 1
|
92
|
+
fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
|
93
|
+
end
|
94
|
+
|
95
|
+
@digest = digest
|
96
|
+
end
|
97
|
+
|
79
98
|
# Checks equality by comparing each attribute.
|
80
99
|
# @param [Object] Object to be compared
|
81
100
|
def ==(o)
|
@@ -75,6 +75,10 @@ module PulpContainerClient
|
|
75
75
|
invalid_properties.push('invalid value for "tag", tag cannot be nil.')
|
76
76
|
end
|
77
77
|
|
78
|
+
if @tag.to_s.length < 1
|
79
|
+
invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
|
80
|
+
end
|
81
|
+
|
78
82
|
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
79
83
|
if @tag !~ pattern
|
80
84
|
invalid_properties.push("invalid value for \"tag\", must conform to the pattern #{pattern}.")
|
@@ -84,6 +88,10 @@ module PulpContainerClient
|
|
84
88
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
85
89
|
end
|
86
90
|
|
91
|
+
if @digest.to_s.length < 1
|
92
|
+
invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
|
93
|
+
end
|
94
|
+
|
87
95
|
invalid_properties
|
88
96
|
end
|
89
97
|
|
@@ -91,8 +99,10 @@ module PulpContainerClient
|
|
91
99
|
# @return true if the model is valid
|
92
100
|
def valid?
|
93
101
|
return false if @tag.nil?
|
102
|
+
return false if @tag.to_s.length < 1
|
94
103
|
return false if @tag !~ Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
95
104
|
return false if @digest.nil?
|
105
|
+
return false if @digest.to_s.length < 1
|
96
106
|
true
|
97
107
|
end
|
98
108
|
|
@@ -103,6 +113,10 @@ module PulpContainerClient
|
|
103
113
|
fail ArgumentError, 'tag cannot be nil'
|
104
114
|
end
|
105
115
|
|
116
|
+
if tag.to_s.length < 1
|
117
|
+
fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
|
118
|
+
end
|
119
|
+
|
106
120
|
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
107
121
|
if tag !~ pattern
|
108
122
|
fail ArgumentError, "invalid value for \"tag\", must conform to the pattern #{pattern}."
|
@@ -111,6 +125,20 @@ module PulpContainerClient
|
|
111
125
|
@tag = tag
|
112
126
|
end
|
113
127
|
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param [Object] digest Value to be assigned
|
130
|
+
def digest=(digest)
|
131
|
+
if digest.nil?
|
132
|
+
fail ArgumentError, 'digest cannot be nil'
|
133
|
+
end
|
134
|
+
|
135
|
+
if digest.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@digest = digest
|
140
|
+
end
|
141
|
+
|
114
142
|
# Checks equality by comparing each attribute.
|
115
143
|
# @param [Object] Object to be compared
|
116
144
|
def ==(o)
|
@@ -66,6 +66,10 @@ module PulpContainerClient
|
|
66
66
|
invalid_properties.push('invalid value for "tag", tag cannot be nil.')
|
67
67
|
end
|
68
68
|
|
69
|
+
if @tag.to_s.length < 1
|
70
|
+
invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
|
71
|
+
end
|
72
|
+
|
69
73
|
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
70
74
|
if @tag !~ pattern
|
71
75
|
invalid_properties.push("invalid value for \"tag\", must conform to the pattern #{pattern}.")
|
@@ -78,6 +82,7 @@ module PulpContainerClient
|
|
78
82
|
# @return true if the model is valid
|
79
83
|
def valid?
|
80
84
|
return false if @tag.nil?
|
85
|
+
return false if @tag.to_s.length < 1
|
81
86
|
return false if @tag !~ Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
82
87
|
true
|
83
88
|
end
|
@@ -89,6 +94,10 @@ module PulpContainerClient
|
|
89
94
|
fail ArgumentError, 'tag cannot be nil'
|
90
95
|
end
|
91
96
|
|
97
|
+
if tag.to_s.length < 1
|
98
|
+
fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
|
99
|
+
end
|
100
|
+
|
92
101
|
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
93
102
|
if tag !~ pattern
|
94
103
|
fail ArgumentError, "invalid value for \"tag\", must conform to the pattern #{pattern}."
|
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '>= 0.
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -32,13 +32,13 @@ describe 'ContainerContainerDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_created"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_labels"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
@@ -50,25 +50,25 @@ describe 'ContainerContainerDistributionResponse' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "base_path"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "pulp_href"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "repository"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
@@ -32,7 +32,7 @@ describe 'ContainerContainerDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_labels"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
@@ -44,19 +44,19 @@ describe 'ContainerContainerDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "name"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "base_path"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "repository"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
@@ -32,7 +32,7 @@ describe 'ContainerContainerPushRepositoryResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_created"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
@@ -44,37 +44,37 @@ describe 'ContainerContainerPushRepositoryResponse' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "pulp_labels"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "name"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "versions_href"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "latest_version_href"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "pulp_href"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
@@ -44,13 +44,13 @@ describe 'ContainerContainerPushRepository' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "retain_repo_versions"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -32,7 +32,7 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_labels"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
@@ -44,19 +44,19 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "name"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "base_path"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "repository"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
@@ -44,13 +44,13 @@ describe 'PatchedcontainerContainerPushRepository' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "retain_repo_versions"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|