pulp_container_client 2.22.0 → 2.22.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 +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +45 -45
- 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 +20 -20
- data/lib/pulp_container_client/models/container_container_push_repository.rb +25 -25
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +25 -25
- 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 +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +65 -65
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
# The latest RepositoryVersion for this Repository will be served.
|
24
19
|
attr_accessor :repository
|
25
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
26
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
24
|
attr_accessor :content_guard
|
28
25
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
26
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
|
+
attr_accessor :base_path
|
31
28
|
|
32
29
|
# Whether this distribution should be shown in the content app.
|
33
30
|
attr_accessor :hidden
|
34
31
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'base_path' => :'base_path',
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
49
47
|
:'repository' => :'repository',
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
50
49
|
:'content_guard' => :'content_guard',
|
51
|
-
:'
|
50
|
+
:'base_path' => :'base_path',
|
52
51
|
:'hidden' => :'hidden',
|
52
|
+
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'base_path' => :'String',
|
63
|
-
:'pulp_labels' => :'Hash<String, String>',
|
64
62
|
:'repository' => :'String',
|
63
|
+
:'pulp_labels' => :'Hash<String, String>',
|
65
64
|
:'content_guard' => :'String',
|
66
|
-
:'
|
65
|
+
:'base_path' => :'String',
|
67
66
|
:'hidden' => :'Boolean',
|
67
|
+
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,8 +95,8 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
98
|
+
if attributes.key?(:'repository')
|
99
|
+
self.repository = attributes[:'repository']
|
100
100
|
end
|
101
101
|
|
102
102
|
if attributes.key?(:'pulp_labels')
|
@@ -105,16 +105,12 @@ module PulpContainerClient
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
if attributes.key?(:'repository')
|
109
|
-
self.repository = attributes[:'repository']
|
110
|
-
end
|
111
|
-
|
112
108
|
if attributes.key?(:'content_guard')
|
113
109
|
self.content_guard = attributes[:'content_guard']
|
114
110
|
end
|
115
111
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
112
|
+
if attributes.key?(:'base_path')
|
113
|
+
self.base_path = attributes[:'base_path']
|
118
114
|
end
|
119
115
|
|
120
116
|
if attributes.key?(:'hidden')
|
@@ -123,6 +119,10 @@ module PulpContainerClient
|
|
123
119
|
self.hidden = false
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
base_path == o.base_path &&
|
203
|
-
pulp_labels == o.pulp_labels &&
|
204
202
|
repository == o.repository &&
|
203
|
+
pulp_labels == o.pulp_labels &&
|
205
204
|
content_guard == o.content_guard &&
|
206
|
-
|
205
|
+
base_path == o.base_path &&
|
207
206
|
hidden == o.hidden &&
|
207
|
+
name == o.name &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[
|
222
|
+
[repository, pulp_labels, content_guard, base_path, hidden, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
# The latest RepositoryVersion for this Repository will be served.
|
24
19
|
attr_accessor :repository
|
25
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
26
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
24
|
attr_accessor :content_guard
|
28
25
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
26
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
|
+
attr_accessor :base_path
|
31
28
|
|
32
29
|
# Whether this distribution should be shown in the content app.
|
33
30
|
attr_accessor :hidden
|
34
31
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
37
37
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'base_path' => :'base_path',
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
52
50
|
:'repository' => :'repository',
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
53
52
|
:'content_guard' => :'content_guard',
|
54
|
-
:'
|
53
|
+
:'base_path' => :'base_path',
|
55
54
|
:'hidden' => :'hidden',
|
55
|
+
:'name' => :'name',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'base_path' => :'String',
|
67
|
-
:'pulp_labels' => :'Hash<String, String>',
|
68
66
|
:'repository' => :'String',
|
67
|
+
:'pulp_labels' => :'Hash<String, String>',
|
69
68
|
:'content_guard' => :'String',
|
70
|
-
:'
|
69
|
+
:'base_path' => :'String',
|
71
70
|
:'hidden' => :'Boolean',
|
71
|
+
:'name' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,8 +99,8 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
102
|
+
if attributes.key?(:'repository')
|
103
|
+
self.repository = attributes[:'repository']
|
104
104
|
end
|
105
105
|
|
106
106
|
if attributes.key?(:'pulp_labels')
|
@@ -109,16 +109,12 @@ module PulpContainerClient
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
-
if attributes.key?(:'repository')
|
113
|
-
self.repository = attributes[:'repository']
|
114
|
-
end
|
115
|
-
|
116
112
|
if attributes.key?(:'content_guard')
|
117
113
|
self.content_guard = attributes[:'content_guard']
|
118
114
|
end
|
119
115
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
116
|
+
if attributes.key?(:'base_path')
|
117
|
+
self.base_path = attributes[:'base_path']
|
122
118
|
end
|
123
119
|
|
124
120
|
if attributes.key?(:'hidden')
|
@@ -127,6 +123,10 @@ module PulpContainerClient
|
|
127
123
|
self.hidden = false
|
128
124
|
end
|
129
125
|
|
126
|
+
if attributes.key?(:'name')
|
127
|
+
self.name = attributes[:'name']
|
128
|
+
end
|
129
|
+
|
130
130
|
if attributes.key?(:'remote')
|
131
131
|
self.remote = attributes[:'remote']
|
132
132
|
end
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
209
209
|
def ==(o)
|
210
210
|
return true if self.equal?(o)
|
211
211
|
self.class == o.class &&
|
212
|
-
base_path == o.base_path &&
|
213
|
-
pulp_labels == o.pulp_labels &&
|
214
212
|
repository == o.repository &&
|
213
|
+
pulp_labels == o.pulp_labels &&
|
215
214
|
content_guard == o.content_guard &&
|
216
|
-
|
215
|
+
base_path == o.base_path &&
|
217
216
|
hidden == o.hidden &&
|
217
|
+
name == o.name &&
|
218
218
|
remote == o.remote &&
|
219
219
|
distributions == o.distributions &&
|
220
220
|
private == o.private &&
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
230
230
|
# Calculates hash code according to all attributes.
|
231
231
|
# @return [Integer] Hash code
|
232
232
|
def hash
|
233
|
-
[
|
233
|
+
[repository, pulp_labels, content_guard, base_path, hidden, name, remote, distributions, private, description].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# Builds the object from hash
|
@@ -327,20 +327,20 @@ module PulpContainerClient
|
|
327
327
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
328
328
|
end
|
329
329
|
|
330
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
331
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
330
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
331
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
332
332
|
end
|
333
333
|
|
334
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
334
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
335
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
336
336
|
end
|
337
337
|
|
338
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
339
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
338
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
339
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
340
340
|
end
|
341
341
|
|
342
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
343
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
342
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
343
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
344
344
|
end
|
345
345
|
|
346
346
|
invalid_properties
|
@@ -360,10 +360,10 @@ module PulpContainerClient
|
|
360
360
|
return false if !@username.nil? && @username.to_s.length < 1
|
361
361
|
return false if !@password.nil? && @password.to_s.length < 1
|
362
362
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
363
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
364
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
365
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
363
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
364
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
365
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
366
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
367
367
|
true
|
368
368
|
end
|
369
369
|
|
@@ -480,8 +480,8 @@ module PulpContainerClient
|
|
480
480
|
# Custom attribute writer method with validation
|
481
481
|
# @param [Object] total_timeout Value to be assigned
|
482
482
|
def total_timeout=(total_timeout)
|
483
|
-
if !total_timeout.nil? && total_timeout < 0
|
484
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
483
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
484
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
485
485
|
end
|
486
486
|
|
487
487
|
@total_timeout = total_timeout
|
@@ -490,8 +490,8 @@ module PulpContainerClient
|
|
490
490
|
# Custom attribute writer method with validation
|
491
491
|
# @param [Object] connect_timeout Value to be assigned
|
492
492
|
def connect_timeout=(connect_timeout)
|
493
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
494
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
493
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
494
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
495
495
|
end
|
496
496
|
|
497
497
|
@connect_timeout = connect_timeout
|
@@ -500,8 +500,8 @@ module PulpContainerClient
|
|
500
500
|
# Custom attribute writer method with validation
|
501
501
|
# @param [Object] sock_connect_timeout Value to be assigned
|
502
502
|
def sock_connect_timeout=(sock_connect_timeout)
|
503
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
504
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
503
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
504
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
505
505
|
end
|
506
506
|
|
507
507
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -510,8 +510,8 @@ module PulpContainerClient
|
|
510
510
|
# Custom attribute writer method with validation
|
511
511
|
# @param [Object] sock_read_timeout Value to be assigned
|
512
512
|
def sock_read_timeout=(sock_read_timeout)
|
513
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
514
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
513
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
514
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
515
515
|
end
|
516
516
|
|
517
517
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# An optional description.
|
19
21
|
attr_accessor :description
|
20
22
|
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
23
|
# A unique name for this repository.
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
-
attr_accessor :retain_repo_versions
|
28
|
-
|
29
26
|
# A reference to an associated signing service.
|
30
27
|
attr_accessor :manifest_signing_service
|
31
28
|
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
30
|
+
attr_accessor :retain_repo_versions
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'description' => :'description',
|
36
35
|
:'pulp_labels' => :'pulp_labels',
|
36
|
+
:'description' => :'description',
|
37
37
|
:'name' => :'name',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'description' => :'String',
|
47
46
|
:'pulp_labels' => :'Hash<String, String>',
|
47
|
+
:'description' => :'String',
|
48
48
|
:'name' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'manifest_signing_service' => :'String',
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
:'description',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,27 +75,27 @@ 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
|
-
|
82
78
|
if attributes.key?(:'pulp_labels')
|
83
79
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
80
|
self.pulp_labels = value
|
85
81
|
end
|
86
82
|
end
|
87
83
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
84
|
+
if attributes.key?(:'description')
|
85
|
+
self.description = attributes[:'description']
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'name')
|
89
|
+
self.name = attributes[:'name']
|
94
90
|
end
|
95
91
|
|
96
92
|
if attributes.key?(:'manifest_signing_service')
|
97
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -161,11 +161,11 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
description == o.description &&
|
165
164
|
pulp_labels == o.pulp_labels &&
|
165
|
+
description == o.description &&
|
166
166
|
name == o.name &&
|
167
|
-
|
168
|
-
|
167
|
+
manifest_signing_service == o.manifest_signing_service &&
|
168
|
+
retain_repo_versions == o.retain_repo_versions
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[pulp_labels, description, name, manifest_signing_service, retain_repo_versions].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -346,20 +346,20 @@ module PulpContainerClient
|
|
346
346
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
347
347
|
end
|
348
348
|
|
349
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
349
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
350
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
351
351
|
end
|
352
352
|
|
353
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
353
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
354
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
357
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
358
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
361
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
362
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
363
363
|
end
|
364
364
|
|
365
365
|
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
@@ -387,10 +387,10 @@ module PulpContainerClient
|
|
387
387
|
return false if !@username.nil? && @username.to_s.length < 1
|
388
388
|
return false if !@password.nil? && @password.to_s.length < 1
|
389
389
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
390
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
390
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
391
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
392
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
393
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
394
394
|
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
395
395
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
396
396
|
true
|
@@ -509,8 +509,8 @@ module PulpContainerClient
|
|
509
509
|
# Custom attribute writer method with validation
|
510
510
|
# @param [Object] total_timeout Value to be assigned
|
511
511
|
def total_timeout=(total_timeout)
|
512
|
-
if !total_timeout.nil? && total_timeout < 0
|
513
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
512
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
513
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
514
514
|
end
|
515
515
|
|
516
516
|
@total_timeout = total_timeout
|
@@ -519,8 +519,8 @@ module PulpContainerClient
|
|
519
519
|
# Custom attribute writer method with validation
|
520
520
|
# @param [Object] connect_timeout Value to be assigned
|
521
521
|
def connect_timeout=(connect_timeout)
|
522
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
522
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
523
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
524
524
|
end
|
525
525
|
|
526
526
|
@connect_timeout = connect_timeout
|
@@ -529,8 +529,8 @@ module PulpContainerClient
|
|
529
529
|
# Custom attribute writer method with validation
|
530
530
|
# @param [Object] sock_connect_timeout Value to be assigned
|
531
531
|
def sock_connect_timeout=(sock_connect_timeout)
|
532
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
532
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
533
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
534
534
|
end
|
535
535
|
|
536
536
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -539,8 +539,8 @@ module PulpContainerClient
|
|
539
539
|
# Custom attribute writer method with validation
|
540
540
|
# @param [Object] sock_read_timeout Value to be assigned
|
541
541
|
def sock_read_timeout=(sock_read_timeout)
|
542
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
542
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
543
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
544
544
|
end
|
545
545
|
|
546
546
|
@sock_read_timeout = sock_read_timeout
|
@@ -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 "repository"' 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_last_updated"' 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 "content_guard"' 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 "pulp_created"' 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 "base_path"' 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 "prn"' 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
|
@@ -86,13 +86,13 @@ describe 'ContainerContainerDistributionResponse' do
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "name"' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "no_content_change_since"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
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 "repository"' 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,25 +44,25 @@ describe 'ContainerContainerDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "content_guard"' 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 "hidden"' 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 "name"' 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
|