pulp_container_client 2.16.9 → 2.16.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository.rb +52 -52
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
- 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/container_container_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +68 -76
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
@@ -301,20 +301,20 @@ module PulpContainerClient
|
|
301
301
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
302
|
end
|
303
303
|
|
304
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
304
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
306
|
end
|
307
307
|
|
308
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
308
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
309
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
312
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
313
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
316
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
317
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
318
318
|
end
|
319
319
|
|
320
320
|
if @upstream_name.nil?
|
@@ -330,10 +330,10 @@ module PulpContainerClient
|
|
330
330
|
return false if @name.nil?
|
331
331
|
return false if @url.nil?
|
332
332
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
333
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
334
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
335
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
336
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
337
337
|
return false if @upstream_name.nil?
|
338
338
|
true
|
339
339
|
end
|
@@ -351,8 +351,8 @@ module PulpContainerClient
|
|
351
351
|
# Custom attribute writer method with validation
|
352
352
|
# @param [Object] total_timeout Value to be assigned
|
353
353
|
def total_timeout=(total_timeout)
|
354
|
-
if !total_timeout.nil? && total_timeout < 0
|
355
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
354
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
355
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
356
356
|
end
|
357
357
|
|
358
358
|
@total_timeout = total_timeout
|
@@ -361,8 +361,8 @@ module PulpContainerClient
|
|
361
361
|
# Custom attribute writer method with validation
|
362
362
|
# @param [Object] connect_timeout Value to be assigned
|
363
363
|
def connect_timeout=(connect_timeout)
|
364
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
364
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
365
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
366
366
|
end
|
367
367
|
|
368
368
|
@connect_timeout = connect_timeout
|
@@ -371,8 +371,8 @@ module PulpContainerClient
|
|
371
371
|
# Custom attribute writer method with validation
|
372
372
|
# @param [Object] sock_connect_timeout Value to be assigned
|
373
373
|
def sock_connect_timeout=(sock_connect_timeout)
|
374
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
374
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
375
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
376
376
|
end
|
377
377
|
|
378
378
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -381,8 +381,8 @@ module PulpContainerClient
|
|
381
381
|
# Custom attribute writer method with validation
|
382
382
|
# @param [Object] sock_read_timeout Value to be assigned
|
383
383
|
def sock_read_timeout=(sock_read_timeout)
|
384
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
384
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
385
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
386
386
|
end
|
387
387
|
|
388
388
|
@sock_read_timeout = sock_read_timeout
|
@@ -68,12 +68,22 @@ module PulpContainerClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
18
|
# Whether this distribution should be shown in the content app.
|
25
19
|
attr_accessor :hidden
|
26
20
|
|
21
|
+
# The latest RepositoryVersion for this Repository will be served.
|
22
|
+
attr_accessor :repository
|
23
|
+
|
27
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
28
25
|
attr_accessor :base_path
|
29
26
|
|
30
|
-
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
+
attr_accessor :name
|
31
29
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
30
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
31
|
+
attr_accessor :content_guard
|
32
|
+
|
33
|
+
attr_accessor :pulp_labels
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -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
|
-
:'content_guard' => :'content_guard',
|
48
|
-
:'name' => :'name',
|
49
47
|
:'hidden' => :'hidden',
|
48
|
+
:'repository' => :'repository',
|
50
49
|
:'base_path' => :'base_path',
|
50
|
+
:'name' => :'name',
|
51
|
+
:'content_guard' => :'content_guard',
|
51
52
|
:'pulp_labels' => :'pulp_labels',
|
52
|
-
:'repository' => :'repository',
|
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
|
-
:'content_guard' => :'String',
|
63
|
-
:'name' => :'String',
|
64
62
|
:'hidden' => :'Boolean',
|
63
|
+
:'repository' => :'String',
|
65
64
|
:'base_path' => :'String',
|
65
|
+
:'name' => :'String',
|
66
|
+
:'content_guard' => :'String',
|
66
67
|
:'pulp_labels' => :'Hash<String, String>',
|
67
|
-
:'repository' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,34 +95,34 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'content_guard')
|
99
|
-
self.content_guard = attributes[:'content_guard']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'name')
|
103
|
-
self.name = attributes[:'name']
|
104
|
-
end
|
105
|
-
|
106
98
|
if attributes.key?(:'hidden')
|
107
99
|
self.hidden = attributes[:'hidden']
|
108
100
|
else
|
109
101
|
self.hidden = false
|
110
102
|
end
|
111
103
|
|
104
|
+
if attributes.key?(:'repository')
|
105
|
+
self.repository = attributes[:'repository']
|
106
|
+
end
|
107
|
+
|
112
108
|
if attributes.key?(:'base_path')
|
113
109
|
self.base_path = attributes[:'base_path']
|
114
110
|
end
|
115
111
|
|
112
|
+
if attributes.key?(:'name')
|
113
|
+
self.name = attributes[:'name']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'content_guard')
|
117
|
+
self.content_guard = attributes[:'content_guard']
|
118
|
+
end
|
119
|
+
|
116
120
|
if attributes.key?(:'pulp_labels')
|
117
121
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
122
|
self.pulp_labels = value
|
119
123
|
end
|
120
124
|
end
|
121
125
|
|
122
|
-
if attributes.key?(:'repository')
|
123
|
-
self.repository = attributes[:'repository']
|
124
|
-
end
|
125
|
-
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if !@name.nil? && @name.to_s.length < 1
|
144
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
145
|
-
end
|
146
|
-
|
147
143
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
148
144
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
145
|
end
|
150
146
|
|
147
|
+
if !@name.nil? && @name.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
153
153
|
end
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
159
159
|
# @return true if the model is valid
|
160
160
|
def valid?
|
161
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
162
161
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
162
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
164
164
|
true
|
165
165
|
end
|
166
166
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] name Value to be assigned
|
169
|
-
def name=(name)
|
170
|
-
if !name.nil? && name.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@name = name
|
175
|
-
end
|
176
|
-
|
177
167
|
# Custom attribute writer method with validation
|
178
168
|
# @param [Object] base_path Value to be assigned
|
179
169
|
def base_path=(base_path)
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
184
174
|
@base_path = base_path
|
185
175
|
end
|
186
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
187
|
# Custom attribute writer method with validation
|
188
188
|
# @param [Object] description Value to be assigned
|
189
189
|
def description=(description)
|
@@ -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
|
-
content_guard == o.content_guard &&
|
203
|
-
name == o.name &&
|
204
202
|
hidden == o.hidden &&
|
203
|
+
repository == o.repository &&
|
205
204
|
base_path == o.base_path &&
|
205
|
+
name == o.name &&
|
206
|
+
content_guard == o.content_guard &&
|
206
207
|
pulp_labels == o.pulp_labels &&
|
207
|
-
repository == o.repository &&
|
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
|
+
[hidden, repository, base_path, name, content_guard, pulp_labels, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
# An optional description.
|
19
|
-
attr_accessor :description
|
20
|
-
|
21
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
22
|
-
attr_accessor :retain_repo_versions
|
23
|
-
|
24
18
|
# A unique name for this repository.
|
25
19
|
attr_accessor :name
|
26
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
25
|
+
|
27
26
|
# A reference to an associated signing service.
|
28
27
|
attr_accessor :manifest_signing_service
|
29
28
|
|
30
|
-
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
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
|
-
:'description' => :'description',
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
35
|
:'name' => :'name',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'description' => :'description',
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
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
|
-
:'retain_repo_versions' => :'Integer',
|
48
46
|
:'name' => :'String',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'description' => :'String',
|
49
49
|
:'manifest_signing_service' => :'String',
|
50
|
-
:'
|
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
|
-
:'retain_repo_versions',
|
59
58
|
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'name')
|
79
|
+
self.name = attributes[:'name']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
84
86
|
end
|
85
87
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
+
if attributes.key?(:'description')
|
89
|
+
self.description = attributes[:'description']
|
88
90
|
end
|
89
91
|
|
90
92
|
if attributes.key?(:'manifest_signing_service')
|
91
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ 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 !@name.nil? && @name.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@description.nil? && @description.to_s.length < 1
|
106
110
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
111
|
end
|
@@ -110,22 +114,28 @@ module PulpContainerClient
|
|
110
114
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
115
|
end
|
112
116
|
|
113
|
-
if !@name.nil? && @name.to_s.length < 1
|
114
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
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 !@name.nil? && @name.to_s.length < 1
|
123
124
|
return false if !@description.nil? && @description.to_s.length < 1
|
124
125
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] name Value to be assigned
|
131
|
+
def name=(name)
|
132
|
+
if !name.nil? && name.to_s.length < 1
|
133
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
134
|
+
end
|
135
|
+
|
136
|
+
@name = name
|
137
|
+
end
|
138
|
+
|
129
139
|
# Custom attribute writer method with validation
|
130
140
|
# @param [Object] description Value to be assigned
|
131
141
|
def description=(description)
|
@@ -146,26 +156,16 @@ module PulpContainerClient
|
|
146
156
|
@retain_repo_versions = retain_repo_versions
|
147
157
|
end
|
148
158
|
|
149
|
-
# Custom attribute writer method with validation
|
150
|
-
# @param [Object] name Value to be assigned
|
151
|
-
def name=(name)
|
152
|
-
if !name.nil? && name.to_s.length < 1
|
153
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
154
|
-
end
|
155
|
-
|
156
|
-
@name = name
|
157
|
-
end
|
158
|
-
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
description == o.description &&
|
165
|
-
retain_repo_versions == o.retain_repo_versions &&
|
166
164
|
name == o.name &&
|
165
|
+
pulp_labels == o.pulp_labels &&
|
166
|
+
description == o.description &&
|
167
167
|
manifest_signing_service == o.manifest_signing_service &&
|
168
|
-
|
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
|
+
[name, pulp_labels, description, 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
|
@@ -78,8 +78,6 @@ require 'pulp_container_client/api/content_manifests_api'
|
|
78
78
|
require 'pulp_container_client/api/content_signatures_api'
|
79
79
|
require 'pulp_container_client/api/content_tags_api'
|
80
80
|
require 'pulp_container_client/api/distributions_container_api'
|
81
|
-
require 'pulp_container_client/api/index_dynamic_api'
|
82
|
-
require 'pulp_container_client/api/index_static_api'
|
83
81
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
84
82
|
require 'pulp_container_client/api/remotes_container_api'
|
85
83
|
require 'pulp_container_client/api/repositories_container_api'
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpContainerClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://localhost:24817")
|
22
22
|
# PulpContainerClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpContainerClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://localhost:24817")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|