pulp_container_client 2.21.1 → 2.21.2
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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +59 -59
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +59 -59
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
- 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 +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +63 -63
- 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 +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +50 -50
- 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 +34 -34
- 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 +11 -11
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- 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 +3 -3
- metadata +64 -64
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
18
|
-
|
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
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
19
23
|
|
20
24
|
# An optional content-guard. If none is specified, a default one will be used.
|
21
25
|
attr_accessor :content_guard
|
22
26
|
|
23
|
-
# Whether this distribution should be shown in the content app.
|
24
|
-
attr_accessor :hidden
|
25
|
-
|
26
27
|
# The latest RepositoryVersion for this Repository will be served.
|
27
28
|
attr_accessor :repository
|
28
29
|
|
29
|
-
|
30
|
-
attr_accessor :name
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# Whether this distribution should be shown in the content app.
|
33
|
+
attr_accessor :hidden
|
34
34
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
@@ -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
|
-
:'
|
50
|
+
:'base_path' => :'base_path',
|
51
|
+
:'name' => :'name',
|
51
52
|
:'content_guard' => :'content_guard',
|
52
|
-
:'hidden' => :'hidden',
|
53
53
|
:'repository' => :'repository',
|
54
|
-
:'
|
55
|
-
:'
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'hidden' => :'hidden',
|
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
|
-
:'
|
66
|
+
:'base_path' => :'String',
|
67
|
+
:'name' => :'String',
|
67
68
|
:'content_guard' => :'String',
|
68
|
-
:'hidden' => :'Boolean',
|
69
69
|
:'repository' => :'String',
|
70
|
-
:'
|
71
|
-
:'
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
71
|
+
:'hidden' => :'Boolean',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,32 +99,32 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
|
104
|
-
self.pulp_labels = value
|
105
|
-
end
|
102
|
+
if attributes.key?(:'base_path')
|
103
|
+
self.base_path = attributes[:'base_path']
|
106
104
|
end
|
107
105
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
106
|
+
if attributes.key?(:'name')
|
107
|
+
self.name = attributes[:'name']
|
110
108
|
end
|
111
109
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
else
|
115
|
-
self.hidden = false
|
110
|
+
if attributes.key?(:'content_guard')
|
111
|
+
self.content_guard = attributes[:'content_guard']
|
116
112
|
end
|
117
113
|
|
118
114
|
if attributes.key?(:'repository')
|
119
115
|
self.repository = attributes[:'repository']
|
120
116
|
end
|
121
117
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
|
118
|
+
if attributes.key?(:'pulp_labels')
|
119
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
120
|
+
self.pulp_labels = value
|
121
|
+
end
|
124
122
|
end
|
125
123
|
|
126
|
-
if attributes.key?(:'
|
127
|
-
self.
|
124
|
+
if attributes.key?(:'hidden')
|
125
|
+
self.hidden = attributes[:'hidden']
|
126
|
+
else
|
127
|
+
self.hidden = false
|
128
128
|
end
|
129
129
|
|
130
130
|
if attributes.key?(:'remote')
|
@@ -150,14 +150,14 @@ module PulpContainerClient
|
|
150
150
|
# @return Array for valid properties with the reasons
|
151
151
|
def list_invalid_properties
|
152
152
|
invalid_properties = Array.new
|
153
|
-
if !@name.nil? && @name.to_s.length < 1
|
154
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
155
|
-
end
|
156
|
-
|
157
153
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
158
154
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
159
155
|
end
|
160
156
|
|
157
|
+
if !@name.nil? && @name.to_s.length < 1
|
158
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
159
|
+
end
|
160
|
+
|
161
161
|
if !@description.nil? && @description.to_s.length < 1
|
162
162
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
163
163
|
end
|
@@ -168,22 +168,12 @@ module PulpContainerClient
|
|
168
168
|
# Check to see if the all the properties in the model are valid
|
169
169
|
# @return true if the model is valid
|
170
170
|
def valid?
|
171
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
172
171
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
172
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
173
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
174
174
|
true
|
175
175
|
end
|
176
176
|
|
177
|
-
# Custom attribute writer method with validation
|
178
|
-
# @param [Object] name Value to be assigned
|
179
|
-
def name=(name)
|
180
|
-
if !name.nil? && name.to_s.length < 1
|
181
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
182
|
-
end
|
183
|
-
|
184
|
-
@name = name
|
185
|
-
end
|
186
|
-
|
187
177
|
# Custom attribute writer method with validation
|
188
178
|
# @param [Object] base_path Value to be assigned
|
189
179
|
def base_path=(base_path)
|
@@ -194,6 +184,16 @@ module PulpContainerClient
|
|
194
184
|
@base_path = base_path
|
195
185
|
end
|
196
186
|
|
187
|
+
# Custom attribute writer method with validation
|
188
|
+
# @param [Object] name Value to be assigned
|
189
|
+
def name=(name)
|
190
|
+
if !name.nil? && name.to_s.length < 1
|
191
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
192
|
+
end
|
193
|
+
|
194
|
+
@name = name
|
195
|
+
end
|
196
|
+
|
197
197
|
# Custom attribute writer method with validation
|
198
198
|
# @param [Object] description Value to be assigned
|
199
199
|
def description=(description)
|
@@ -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
|
-
|
212
|
+
base_path == o.base_path &&
|
213
|
+
name == o.name &&
|
213
214
|
content_guard == o.content_guard &&
|
214
|
-
hidden == o.hidden &&
|
215
215
|
repository == o.repository &&
|
216
|
-
|
217
|
-
|
216
|
+
pulp_labels == o.pulp_labels &&
|
217
|
+
hidden == o.hidden &&
|
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
|
+
[base_path, name, content_guard, repository, pulp_labels, hidden, 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,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
|
18
|
+
# A unique name for this repository.
|
19
|
+
attr_accessor :name
|
19
20
|
|
20
21
|
# A reference to an associated signing service.
|
21
22
|
attr_accessor :manifest_signing_service
|
22
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
23
26
|
# An optional description.
|
24
27
|
attr_accessor :description
|
25
28
|
|
26
|
-
# A unique name for this repository.
|
27
|
-
attr_accessor :name
|
28
|
-
|
29
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
30
30
|
attr_accessor :retain_repo_versions
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'name' => :'name',
|
36
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
37
38
|
:'description' => :'description',
|
38
|
-
:'name' => :'name',
|
39
39
|
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
@@ -43,10 +43,10 @@ module PulpContainerClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'
|
46
|
+
:'name' => :'String',
|
47
47
|
:'manifest_signing_service' => :'String',
|
48
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
49
|
:'description' => :'String',
|
49
|
-
:'name' => :'String',
|
50
50
|
:'retain_repo_versions' => :'Integer'
|
51
51
|
}
|
52
52
|
end
|
@@ -75,22 +75,22 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
|
80
|
-
self.pulp_labels = value
|
81
|
-
end
|
78
|
+
if attributes.key?(:'name')
|
79
|
+
self.name = attributes[:'name']
|
82
80
|
end
|
83
81
|
|
84
82
|
if attributes.key?(:'manifest_signing_service')
|
85
83
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
86
84
|
end
|
87
85
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
|
86
|
+
if attributes.key?(:'pulp_labels')
|
87
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
88
|
+
self.pulp_labels = value
|
89
|
+
end
|
90
90
|
end
|
91
91
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
94
|
end
|
95
95
|
|
96
96
|
if attributes.key?(:'retain_repo_versions')
|
@@ -102,14 +102,14 @@ module PulpContainerClient
|
|
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
|
-
|
109
105
|
if !@name.nil? && @name.to_s.length < 1
|
110
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
107
|
end
|
112
108
|
|
109
|
+
if !@description.nil? && @description.to_s.length < 1
|
110
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
|
+
end
|
112
|
+
|
113
113
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
114
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
115
|
end
|
@@ -120,22 +120,12 @@ module PulpContainerClient
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
124
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
125
125
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] description Value to be assigned
|
131
|
-
def description=(description)
|
132
|
-
if !description.nil? && description.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@description = description
|
137
|
-
end
|
138
|
-
|
139
129
|
# Custom attribute writer method with validation
|
140
130
|
# @param [Object] name Value to be assigned
|
141
131
|
def name=(name)
|
@@ -146,6 +136,16 @@ module PulpContainerClient
|
|
146
136
|
@name = name
|
147
137
|
end
|
148
138
|
|
139
|
+
# Custom attribute writer method with validation
|
140
|
+
# @param [Object] description Value to be assigned
|
141
|
+
def description=(description)
|
142
|
+
if !description.nil? && description.to_s.length < 1
|
143
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
144
|
+
end
|
145
|
+
|
146
|
+
@description = description
|
147
|
+
end
|
148
|
+
|
149
149
|
# Custom attribute writer method with validation
|
150
150
|
# @param [Object] retain_repo_versions Value to be assigned
|
151
151
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -161,10 +161,10 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
|
164
|
+
name == o.name &&
|
165
165
|
manifest_signing_service == o.manifest_signing_service &&
|
166
|
+
pulp_labels == o.pulp_labels &&
|
166
167
|
description == o.description &&
|
167
|
-
name == o.name &&
|
168
168
|
retain_repo_versions == o.retain_repo_versions
|
169
169
|
end
|
170
170
|
|
@@ -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
|
+
[name, manifest_signing_service, pulp_labels, description, 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,67 +32,67 @@ 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 "base_path"' 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
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "prn"' 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
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "content_guard"' 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 "repository"' 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 "no_content_change_since"' 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_last_updated"' 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
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "pulp_href"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "pulp_labels"' 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 "hidden"' 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,19 +32,19 @@ 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 "base_path"' 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 "name"' 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
|
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
|
@@ -56,13 +56,13 @@ describe 'ContainerContainerDistribution' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "pulp_labels"' 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 "hidden"' 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
|