pulp_container_client 2.16.9 → 2.16.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
  8. data/docs/ContentBlobsApi.md +1 -1
  9. data/docs/ContentManifestsApi.md +1 -1
  10. data/docs/ContentSignaturesApi.md +1 -1
  11. data/docs/ContentTagsApi.md +1 -1
  12. data/docs/DistributionsContainerApi.md +1 -1
  13. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  14. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  15. data/docs/PulpContainerNamespacesApi.md +1 -1
  16. data/docs/RemotesContainerApi.md +1 -1
  17. data/docs/RepositoriesContainerApi.md +1 -1
  18. data/docs/RepositoriesContainerPushApi.md +1 -1
  19. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  20. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  21. data/docs/TokenApi.md +1 -1
  22. data/lib/pulp_container_client/configuration.rb +2 -2
  23. data/lib/pulp_container_client/models/container_container_distribution.rb +52 -52
  24. data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -43
  25. data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
  26. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -42
  27. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  28. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  29. data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +10 -0
  30. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +43 -43
  31. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
  32. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  33. data/lib/pulp_container_client/version.rb +1 -1
  34. data/lib/pulp_container_client.rb +0 -2
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  37. data/spec/models/container_container_distribution_spec.rb +5 -5
  38. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  39. data/spec/models/container_container_push_repository_spec.rb +5 -5
  40. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  41. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  42. metadata +69 -77
  43. data/docs/IndexDynamicApi.md +0 -50
  44. data/docs/IndexStaticApi.md +0 -50
  45. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  46. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  47. data/spec/api/index_dynamic_api_spec.rb +0 -45
  48. 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
+ # 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
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
23
+
18
24
  # An optional content-guard. If none is specified, a default one will be used.
19
25
  attr_accessor :content_guard
20
26
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
27
  # Whether this distribution should be shown in the content app.
25
28
  attr_accessor :hidden
26
29
 
27
- # 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
- attr_accessor :base_path
29
-
30
30
  attr_accessor :pulp_labels
31
31
 
32
- # The latest RepositoryVersion for this Repository will be served.
33
- attr_accessor :repository
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
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
+ :'base_path' => :'base_path',
48
+ :'repository' => :'repository',
47
49
  :'content_guard' => :'content_guard',
48
- :'name' => :'name',
49
50
  :'hidden' => :'hidden',
50
- :'base_path' => :'base_path',
51
51
  :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
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
+ :'repository' => :'String',
62
64
  :'content_guard' => :'String',
63
- :'name' => :'String',
64
65
  :'hidden' => :'Boolean',
65
- :'base_path' => :'String',
66
66
  :'pulp_labels' => :'Hash<String, String>',
67
- :'repository' => :'String',
67
+ :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,12 +95,16 @@ 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']
98
+ if attributes.key?(:'base_path')
99
+ self.base_path = attributes[:'base_path']
100
100
  end
101
101
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
102
+ if attributes.key?(:'repository')
103
+ self.repository = attributes[:'repository']
104
+ end
105
+
106
+ if attributes.key?(:'content_guard')
107
+ self.content_guard = attributes[:'content_guard']
104
108
  end
105
109
 
106
110
  if attributes.key?(:'hidden')
@@ -109,18 +113,14 @@ module PulpContainerClient
109
113
  self.hidden = false
110
114
  end
111
115
 
112
- if attributes.key?(:'base_path')
113
- self.base_path = attributes[:'base_path']
114
- end
115
-
116
116
  if attributes.key?(:'pulp_labels')
117
117
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
118
  self.pulp_labels = value
119
119
  end
120
120
  end
121
121
 
122
- if attributes.key?(:'repository')
123
- self.repository = attributes[:'repository']
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -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
+ base_path == o.base_path &&
203
+ repository == o.repository &&
202
204
  content_guard == o.content_guard &&
203
- name == o.name &&
204
205
  hidden == o.hidden &&
205
- base_path == o.base_path &&
206
206
  pulp_labels == o.pulp_labels &&
207
- repository == o.repository &&
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
- [content_guard, name, hidden, base_path, pulp_labels, repository, repository_version, private, description].hash
222
+ [base_path, repository, content_guard, hidden, pulp_labels, name, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,8 +15,10 @@ 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
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ attr_accessor :pulp_labels
20
22
 
21
23
  # Retain X versions of the repository. Default is null which retains all versions.
22
24
  attr_accessor :retain_repo_versions
@@ -24,39 +26,37 @@ module PulpContainerClient
24
26
  # A unique name for this repository.
25
27
  attr_accessor :name
26
28
 
27
- # A reference to an associated signing service.
28
- attr_accessor :manifest_signing_service
29
-
30
- attr_accessor :pulp_labels
29
+ # An optional description.
30
+ attr_accessor :description
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',
35
+ :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
36
37
  :'retain_repo_versions' => :'retain_repo_versions',
37
38
  :'name' => :'name',
38
- :'manifest_signing_service' => :'manifest_signing_service',
39
- :'pulp_labels' => :'pulp_labels'
39
+ :'description' => :'description'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'description' => :'String',
46
+ :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
47
48
  :'retain_repo_versions' => :'Integer',
48
49
  :'name' => :'String',
49
- :'manifest_signing_service' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
50
+ :'description' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'description',
58
- :'retain_repo_versions',
59
57
  :'manifest_signing_service',
58
+ :'retain_repo_versions',
59
+ :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -75,8 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
80
+ end
81
+
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
80
86
  end
81
87
 
82
88
  if attributes.key?(:'retain_repo_versions')
@@ -87,14 +93,8 @@ module PulpContainerClient
87
93
  self.name = attributes[:'name']
88
94
  end
89
95
 
90
- if attributes.key?(:'manifest_signing_service')
91
- self.manifest_signing_service = attributes[:'manifest_signing_service']
92
- end
93
-
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
96
+ if attributes.key?(:'description')
97
+ self.description = attributes[:'description']
98
98
  end
99
99
  end
100
100
 
@@ -102,10 +102,6 @@ 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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
@@ -114,28 +110,22 @@ module PulpContainerClient
114
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
111
  end
116
112
 
113
+ if !@description.nil? && @description.to_s.length < 1
114
+ invalid_properties.push('invalid value for "description", 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 !@description.nil? && @description.to_s.length < 1
124
123
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
124
  return false if !@name.nil? && @name.to_s.length < 1
125
+ return false if !@description.nil? && @description.to_s.length < 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] retain_repo_versions Value to be assigned
141
131
  def retain_repo_versions=(retain_repo_versions)
@@ -156,16 +146,26 @@ module PulpContainerClient
156
146
  @name = name
157
147
  end
158
148
 
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] description Value to be assigned
151
+ def description=(description)
152
+ if !description.nil? && description.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @description = description
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 &&
164
+ manifest_signing_service == o.manifest_signing_service &&
165
+ pulp_labels == o.pulp_labels &&
165
166
  retain_repo_versions == o.retain_repo_versions &&
166
167
  name == o.name &&
167
- manifest_signing_service == o.manifest_signing_service &&
168
- pulp_labels == o.pulp_labels
168
+ description == o.description
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
- [description, retain_repo_versions, name, manifest_signing_service, pulp_labels].hash
180
+ [manifest_signing_service, pulp_labels, retain_repo_versions, name, description].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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.16.9'
14
+ VERSION = '2.16.10'
15
15
  end
@@ -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'
@@ -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://pulp")
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://pulp")
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://pulp")
38
+ # expect(config.base_url).to eq("http://localhost:24817")
39
39
  end
40
40
  end
41
41
  end
@@ -32,37 +32,37 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' do
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 "pulp_created"' do
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 "pulp_href"' do
47
+ describe 'test attribute "repository"' 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 "name"' do
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 "hidden"' do
59
+ describe 'test attribute "pulp_href"' 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 "base_path"' do
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
@@ -74,7 +74,7 @@ describe 'ContainerContainerDistributionResponse' do
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "repository"' do
77
+ describe 'test attribute "name"' 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