pulp_container_client 2.26.6 → 2.27.1

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPullThroughRemote.md +6 -6
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -8
  9. data/docs/ContainerContainerPushRepository.md +5 -5
  10. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  11. data/docs/ContainerContainerRemote.md +6 -6
  12. data/docs/ContainerContainerRemoteResponse.md +8 -8
  13. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  14. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  15. data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -6
  16. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  17. data/docs/PatchedcontainerContainerRemote.md +6 -6
  18. data/lib/pulp_container_client/models/container_container_distribution.rb +22 -22
  19. data/lib/pulp_container_client/models/container_container_distribution_response.rb +59 -59
  20. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +22 -22
  21. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +59 -59
  22. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -32
  23. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +44 -44
  24. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
  25. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  26. data/lib/pulp_container_client/models/container_container_remote.rb +33 -33
  27. data/lib/pulp_container_client/models/container_container_remote_response.rb +45 -45
  28. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
  29. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +20 -20
  30. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -32
  31. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  32. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +33 -33
  33. data/lib/pulp_container_client/version.rb +1 -1
  34. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  35. data/spec/models/container_container_distribution_spec.rb +4 -4
  36. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  37. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  38. data/spec/models/container_container_pull_through_remote_response_spec.rb +10 -10
  39. data/spec/models/container_container_pull_through_remote_spec.rb +17 -17
  40. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  41. data/spec/models/container_container_push_repository_spec.rb +4 -4
  42. data/spec/models/container_container_remote_response_spec.rb +10 -10
  43. data/spec/models/container_container_remote_spec.rb +17 -17
  44. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  45. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  46. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +17 -17
  47. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  48. data/spec/models/patchedcontainer_container_remote_spec.rb +17 -17
  49. metadata +1 -1
@@ -33,6 +33,14 @@ module PulpContainerClient
33
33
  # The URL of an external content source.
34
34
  attr_accessor :url
35
35
 
36
+ attr_accessor :pulp_labels
37
+
38
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
39
+ attr_accessor :policy
40
+
41
+ # List of hidden (write only) fields
42
+ attr_accessor :hidden_fields
43
+
36
44
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
45
  attr_accessor :ca_cert
38
46
 
@@ -45,17 +53,9 @@ module PulpContainerClient
45
53
  # The proxy URL. Format: scheme://host:port
46
54
  attr_accessor :proxy_url
47
55
 
48
- attr_accessor :pulp_labels
49
-
50
- # Total number of simultaneous connections. If not set then the default value will be used.
51
- attr_accessor :download_concurrency
52
-
53
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
57
  attr_accessor :max_retries
55
58
 
56
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
57
- attr_accessor :policy
58
-
59
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
60
  attr_accessor :total_timeout
61
61
 
@@ -71,12 +71,12 @@ module PulpContainerClient
71
71
  # Headers for aiohttp.Clientsession
72
72
  attr_accessor :headers
73
73
 
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
76
+
74
77
  # Limits requests per second for each concurrent downloader
75
78
  attr_accessor :rate_limit
76
79
 
77
- # List of hidden (write only) fields
78
- attr_accessor :hidden_fields
79
-
80
80
  # Name of the upstream repository
81
81
  attr_accessor :upstream_name
82
82
 
@@ -120,21 +120,21 @@ module PulpContainerClient
120
120
  :'pulp_last_updated' => :'pulp_last_updated',
121
121
  :'name' => :'name',
122
122
  :'url' => :'url',
123
+ :'pulp_labels' => :'pulp_labels',
124
+ :'policy' => :'policy',
125
+ :'hidden_fields' => :'hidden_fields',
123
126
  :'ca_cert' => :'ca_cert',
124
127
  :'client_cert' => :'client_cert',
125
128
  :'tls_validation' => :'tls_validation',
126
129
  :'proxy_url' => :'proxy_url',
127
- :'pulp_labels' => :'pulp_labels',
128
- :'download_concurrency' => :'download_concurrency',
129
130
  :'max_retries' => :'max_retries',
130
- :'policy' => :'policy',
131
131
  :'total_timeout' => :'total_timeout',
132
132
  :'connect_timeout' => :'connect_timeout',
133
133
  :'sock_connect_timeout' => :'sock_connect_timeout',
134
134
  :'sock_read_timeout' => :'sock_read_timeout',
135
135
  :'headers' => :'headers',
136
+ :'download_concurrency' => :'download_concurrency',
136
137
  :'rate_limit' => :'rate_limit',
137
- :'hidden_fields' => :'hidden_fields',
138
138
  :'upstream_name' => :'upstream_name',
139
139
  :'include_tags' => :'include_tags',
140
140
  :'exclude_tags' => :'exclude_tags',
@@ -156,21 +156,21 @@ module PulpContainerClient
156
156
  :'pulp_last_updated' => :'Time',
157
157
  :'name' => :'String',
158
158
  :'url' => :'String',
159
+ :'pulp_labels' => :'Hash<String, String>',
160
+ :'policy' => :'Policy692Enum',
161
+ :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFieldsInner>',
159
162
  :'ca_cert' => :'String',
160
163
  :'client_cert' => :'String',
161
164
  :'tls_validation' => :'Boolean',
162
165
  :'proxy_url' => :'String',
163
- :'pulp_labels' => :'Hash<String, String>',
164
- :'download_concurrency' => :'Integer',
165
166
  :'max_retries' => :'Integer',
166
- :'policy' => :'Policy692Enum',
167
167
  :'total_timeout' => :'Float',
168
168
  :'connect_timeout' => :'Float',
169
169
  :'sock_connect_timeout' => :'Float',
170
170
  :'sock_read_timeout' => :'Float',
171
171
  :'headers' => :'Array<Object>',
172
+ :'download_concurrency' => :'Integer',
172
173
  :'rate_limit' => :'Integer',
173
- :'hidden_fields' => :'Array<ContainerContainerPullThroughRemoteResponseHiddenFieldsInner>',
174
174
  :'upstream_name' => :'String',
175
175
  :'include_tags' => :'Array<String>',
176
176
  :'exclude_tags' => :'Array<String>',
@@ -184,12 +184,12 @@ module PulpContainerClient
184
184
  :'ca_cert',
185
185
  :'client_cert',
186
186
  :'proxy_url',
187
- :'download_concurrency',
188
187
  :'max_retries',
189
188
  :'total_timeout',
190
189
  :'connect_timeout',
191
190
  :'sock_connect_timeout',
192
191
  :'sock_read_timeout',
192
+ :'download_concurrency',
193
193
  :'rate_limit',
194
194
  :'include_tags',
195
195
  :'exclude_tags',
@@ -239,6 +239,22 @@ module PulpContainerClient
239
239
  self.url = nil
240
240
  end
241
241
 
242
+ if attributes.key?(:'pulp_labels')
243
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
244
+ self.pulp_labels = value
245
+ end
246
+ end
247
+
248
+ if attributes.key?(:'policy')
249
+ self.policy = attributes[:'policy']
250
+ end
251
+
252
+ if attributes.key?(:'hidden_fields')
253
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
254
+ self.hidden_fields = value
255
+ end
256
+ end
257
+
242
258
  if attributes.key?(:'ca_cert')
243
259
  self.ca_cert = attributes[:'ca_cert']
244
260
  end
@@ -255,24 +271,10 @@ module PulpContainerClient
255
271
  self.proxy_url = attributes[:'proxy_url']
256
272
  end
257
273
 
258
- if attributes.key?(:'pulp_labels')
259
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
260
- self.pulp_labels = value
261
- end
262
- end
263
-
264
- if attributes.key?(:'download_concurrency')
265
- self.download_concurrency = attributes[:'download_concurrency']
266
- end
267
-
268
274
  if attributes.key?(:'max_retries')
269
275
  self.max_retries = attributes[:'max_retries']
270
276
  end
271
277
 
272
- if attributes.key?(:'policy')
273
- self.policy = attributes[:'policy']
274
- end
275
-
276
278
  if attributes.key?(:'total_timeout')
277
279
  self.total_timeout = attributes[:'total_timeout']
278
280
  end
@@ -295,14 +297,12 @@ module PulpContainerClient
295
297
  end
296
298
  end
297
299
 
298
- if attributes.key?(:'rate_limit')
299
- self.rate_limit = attributes[:'rate_limit']
300
+ if attributes.key?(:'download_concurrency')
301
+ self.download_concurrency = attributes[:'download_concurrency']
300
302
  end
301
303
 
302
- if attributes.key?(:'hidden_fields')
303
- if (value = attributes[:'hidden_fields']).is_a?(Array)
304
- self.hidden_fields = value
305
- end
304
+ if attributes.key?(:'rate_limit')
305
+ self.rate_limit = attributes[:'rate_limit']
306
306
  end
307
307
 
308
308
  if attributes.key?(:'upstream_name')
@@ -429,21 +429,21 @@ module PulpContainerClient
429
429
  pulp_last_updated == o.pulp_last_updated &&
430
430
  name == o.name &&
431
431
  url == o.url &&
432
+ pulp_labels == o.pulp_labels &&
433
+ policy == o.policy &&
434
+ hidden_fields == o.hidden_fields &&
432
435
  ca_cert == o.ca_cert &&
433
436
  client_cert == o.client_cert &&
434
437
  tls_validation == o.tls_validation &&
435
438
  proxy_url == o.proxy_url &&
436
- pulp_labels == o.pulp_labels &&
437
- download_concurrency == o.download_concurrency &&
438
439
  max_retries == o.max_retries &&
439
- policy == o.policy &&
440
440
  total_timeout == o.total_timeout &&
441
441
  connect_timeout == o.connect_timeout &&
442
442
  sock_connect_timeout == o.sock_connect_timeout &&
443
443
  sock_read_timeout == o.sock_read_timeout &&
444
444
  headers == o.headers &&
445
+ download_concurrency == o.download_concurrency &&
445
446
  rate_limit == o.rate_limit &&
446
- hidden_fields == o.hidden_fields &&
447
447
  upstream_name == o.upstream_name &&
448
448
  include_tags == o.include_tags &&
449
449
  exclude_tags == o.exclude_tags &&
@@ -459,7 +459,7 @@ module PulpContainerClient
459
459
  # Calculates hash code according to all attributes.
460
460
  # @return [Integer] Hash code
461
461
  def hash
462
- [pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, upstream_name, include_tags, exclude_tags, sigstore].hash
462
+ [pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
463
463
  end
464
464
 
465
465
  # Builds the object from hash
@@ -22,17 +22,17 @@ module PulpContainerClient
22
22
  # An optional content-guard. If none is specified, a default one will be used.
23
23
  attr_accessor :content_guard
24
24
 
25
- attr_accessor :pulp_labels
26
-
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
25
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
26
  attr_accessor :base_path
32
27
 
33
28
  # The latest RepositoryVersion for this Repository will be served.
34
29
  attr_accessor :repository
35
30
 
31
+ attr_accessor :pulp_labels
32
+
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
+
36
36
  # RepositoryVersion to be served
37
37
  attr_accessor :repository_version
38
38
 
@@ -47,10 +47,10 @@ module PulpContainerClient
47
47
  {
48
48
  :'name' => :'name',
49
49
  :'content_guard' => :'content_guard',
50
- :'pulp_labels' => :'pulp_labels',
51
- :'hidden' => :'hidden',
52
50
  :'base_path' => :'base_path',
53
51
  :'repository' => :'repository',
52
+ :'pulp_labels' => :'pulp_labels',
53
+ :'hidden' => :'hidden',
54
54
  :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
@@ -67,10 +67,10 @@ module PulpContainerClient
67
67
  {
68
68
  :'name' => :'String',
69
69
  :'content_guard' => :'String',
70
- :'pulp_labels' => :'Hash<String, String>',
71
- :'hidden' => :'Boolean',
72
70
  :'base_path' => :'String',
73
71
  :'repository' => :'String',
72
+ :'pulp_labels' => :'Hash<String, String>',
73
+ :'hidden' => :'Boolean',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
@@ -109,6 +109,14 @@ module PulpContainerClient
109
109
  self.content_guard = attributes[:'content_guard']
110
110
  end
111
111
 
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
114
+ end
115
+
116
+ if attributes.key?(:'repository')
117
+ self.repository = attributes[:'repository']
118
+ end
119
+
112
120
  if attributes.key?(:'pulp_labels')
113
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
122
  self.pulp_labels = value
@@ -121,14 +129,6 @@ module PulpContainerClient
121
129
  self.hidden = false
122
130
  end
123
131
 
124
- if attributes.key?(:'base_path')
125
- self.base_path = attributes[:'base_path']
126
- end
127
-
128
- if attributes.key?(:'repository')
129
- self.repository = attributes[:'repository']
130
- end
131
-
132
132
  if attributes.key?(:'repository_version')
133
133
  self.repository_version = attributes[:'repository_version']
134
134
  end
@@ -217,10 +217,10 @@ module PulpContainerClient
217
217
  self.class == o.class &&
218
218
  name == o.name &&
219
219
  content_guard == o.content_guard &&
220
- pulp_labels == o.pulp_labels &&
221
- hidden == o.hidden &&
222
220
  base_path == o.base_path &&
223
221
  repository == o.repository &&
222
+ pulp_labels == o.pulp_labels &&
223
+ hidden == o.hidden &&
224
224
  repository_version == o.repository_version &&
225
225
  private == o.private &&
226
226
  description == o.description
@@ -235,7 +235,7 @@ module PulpContainerClient
235
235
  # Calculates hash code according to all attributes.
236
236
  # @return [Integer] Hash code
237
237
  def hash
238
- [name, content_guard, pulp_labels, hidden, base_path, repository, repository_version, private, description].hash
238
+ [name, content_guard, base_path, repository, pulp_labels, hidden, repository_version, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -22,17 +22,17 @@ module PulpContainerClient
22
22
  # An optional content-guard. If none is specified, a default one will be used.
23
23
  attr_accessor :content_guard
24
24
 
25
- attr_accessor :pulp_labels
26
-
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
25
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
26
  attr_accessor :base_path
32
27
 
33
28
  # The latest RepositoryVersion for this Repository will be served.
34
29
  attr_accessor :repository
35
30
 
31
+ attr_accessor :pulp_labels
32
+
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
+
36
36
  # Remote that can be used to fetch content when using pull-through caching.
37
37
  attr_accessor :remote
38
38
 
@@ -50,10 +50,10 @@ module PulpContainerClient
50
50
  {
51
51
  :'name' => :'name',
52
52
  :'content_guard' => :'content_guard',
53
- :'pulp_labels' => :'pulp_labels',
54
- :'hidden' => :'hidden',
55
53
  :'base_path' => :'base_path',
56
54
  :'repository' => :'repository',
55
+ :'pulp_labels' => :'pulp_labels',
56
+ :'hidden' => :'hidden',
57
57
  :'remote' => :'remote',
58
58
  :'distributions' => :'distributions',
59
59
  :'private' => :'private',
@@ -71,10 +71,10 @@ module PulpContainerClient
71
71
  {
72
72
  :'name' => :'String',
73
73
  :'content_guard' => :'String',
74
- :'pulp_labels' => :'Hash<String, String>',
75
- :'hidden' => :'Boolean',
76
74
  :'base_path' => :'String',
77
75
  :'repository' => :'String',
76
+ :'pulp_labels' => :'Hash<String, String>',
77
+ :'hidden' => :'Boolean',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
80
80
  :'private' => :'Boolean',
@@ -113,6 +113,14 @@ module PulpContainerClient
113
113
  self.content_guard = attributes[:'content_guard']
114
114
  end
115
115
 
116
+ if attributes.key?(:'base_path')
117
+ self.base_path = attributes[:'base_path']
118
+ end
119
+
120
+ if attributes.key?(:'repository')
121
+ self.repository = attributes[:'repository']
122
+ end
123
+
116
124
  if attributes.key?(:'pulp_labels')
117
125
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
126
  self.pulp_labels = value
@@ -125,14 +133,6 @@ module PulpContainerClient
125
133
  self.hidden = false
126
134
  end
127
135
 
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
130
- end
131
-
132
- if attributes.key?(:'repository')
133
- self.repository = attributes[:'repository']
134
- end
135
-
136
136
  if attributes.key?(:'remote')
137
137
  self.remote = attributes[:'remote']
138
138
  end
@@ -227,10 +227,10 @@ module PulpContainerClient
227
227
  self.class == o.class &&
228
228
  name == o.name &&
229
229
  content_guard == o.content_guard &&
230
- pulp_labels == o.pulp_labels &&
231
- hidden == o.hidden &&
232
230
  base_path == o.base_path &&
233
231
  repository == o.repository &&
232
+ pulp_labels == o.pulp_labels &&
233
+ hidden == o.hidden &&
234
234
  remote == o.remote &&
235
235
  distributions == o.distributions &&
236
236
  private == o.private &&
@@ -246,7 +246,7 @@ module PulpContainerClient
246
246
  # Calculates hash code according to all attributes.
247
247
  # @return [Integer] Hash code
248
248
  def hash
249
- [name, content_guard, pulp_labels, hidden, base_path, repository, remote, distributions, private, description].hash
249
+ [name, content_guard, base_path, repository, pulp_labels, hidden, remote, distributions, private, description].hash
250
250
  end
251
251
 
252
252
  # Builds the object from hash
@@ -22,6 +22,10 @@ module PulpContainerClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ attr_accessor :policy
28
+
25
29
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
30
  attr_accessor :ca_cert
27
31
 
@@ -49,16 +53,9 @@ module PulpContainerClient
49
53
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
54
  attr_accessor :password
51
55
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
57
  attr_accessor :max_retries
59
58
 
60
- attr_accessor :policy
61
-
62
59
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
60
  attr_accessor :total_timeout
64
61
 
@@ -74,6 +71,9 @@ module PulpContainerClient
74
71
  # Headers for aiohttp.Clientsession
75
72
  attr_accessor :headers
76
73
 
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
76
+
77
77
  # Limits requests per second for each concurrent downloader
78
78
  attr_accessor :rate_limit
79
79
 
@@ -110,6 +110,8 @@ module PulpContainerClient
110
110
  {
111
111
  :'name' => :'name',
112
112
  :'url' => :'url',
113
+ :'pulp_labels' => :'pulp_labels',
114
+ :'policy' => :'policy',
113
115
  :'ca_cert' => :'ca_cert',
114
116
  :'client_cert' => :'client_cert',
115
117
  :'client_key' => :'client_key',
@@ -119,15 +121,13 @@ module PulpContainerClient
119
121
  :'proxy_password' => :'proxy_password',
120
122
  :'username' => :'username',
121
123
  :'password' => :'password',
122
- :'pulp_labels' => :'pulp_labels',
123
- :'download_concurrency' => :'download_concurrency',
124
124
  :'max_retries' => :'max_retries',
125
- :'policy' => :'policy',
126
125
  :'total_timeout' => :'total_timeout',
127
126
  :'connect_timeout' => :'connect_timeout',
128
127
  :'sock_connect_timeout' => :'sock_connect_timeout',
129
128
  :'sock_read_timeout' => :'sock_read_timeout',
130
129
  :'headers' => :'headers',
130
+ :'download_concurrency' => :'download_concurrency',
131
131
  :'rate_limit' => :'rate_limit',
132
132
  :'includes' => :'includes',
133
133
  :'excludes' => :'excludes'
@@ -144,6 +144,8 @@ module PulpContainerClient
144
144
  {
145
145
  :'name' => :'String',
146
146
  :'url' => :'String',
147
+ :'pulp_labels' => :'Hash<String, String>',
148
+ :'policy' => :'Policy7e0Enum',
147
149
  :'ca_cert' => :'String',
148
150
  :'client_cert' => :'String',
149
151
  :'client_key' => :'String',
@@ -153,15 +155,13 @@ module PulpContainerClient
153
155
  :'proxy_password' => :'String',
154
156
  :'username' => :'String',
155
157
  :'password' => :'String',
156
- :'pulp_labels' => :'Hash<String, String>',
157
- :'download_concurrency' => :'Integer',
158
158
  :'max_retries' => :'Integer',
159
- :'policy' => :'Policy7e0Enum',
160
159
  :'total_timeout' => :'Float',
161
160
  :'connect_timeout' => :'Float',
162
161
  :'sock_connect_timeout' => :'Float',
163
162
  :'sock_read_timeout' => :'Float',
164
163
  :'headers' => :'Array<Object>',
164
+ :'download_concurrency' => :'Integer',
165
165
  :'rate_limit' => :'Integer',
166
166
  :'includes' => :'Array<String>',
167
167
  :'excludes' => :'Array<String>'
@@ -179,12 +179,12 @@ module PulpContainerClient
179
179
  :'proxy_password',
180
180
  :'username',
181
181
  :'password',
182
- :'download_concurrency',
183
182
  :'max_retries',
184
183
  :'total_timeout',
185
184
  :'connect_timeout',
186
185
  :'sock_connect_timeout',
187
186
  :'sock_read_timeout',
187
+ :'download_concurrency',
188
188
  :'rate_limit',
189
189
  :'includes',
190
190
  :'excludes'
@@ -214,6 +214,16 @@ module PulpContainerClient
214
214
  self.url = attributes[:'url']
215
215
  end
216
216
 
217
+ if attributes.key?(:'pulp_labels')
218
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
219
+ self.pulp_labels = value
220
+ end
221
+ end
222
+
223
+ if attributes.key?(:'policy')
224
+ self.policy = attributes[:'policy']
225
+ end
226
+
217
227
  if attributes.key?(:'ca_cert')
218
228
  self.ca_cert = attributes[:'ca_cert']
219
229
  end
@@ -250,24 +260,10 @@ module PulpContainerClient
250
260
  self.password = attributes[:'password']
251
261
  end
252
262
 
253
- if attributes.key?(:'pulp_labels')
254
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
255
- self.pulp_labels = value
256
- end
257
- end
258
-
259
- if attributes.key?(:'download_concurrency')
260
- self.download_concurrency = attributes[:'download_concurrency']
261
- end
262
-
263
263
  if attributes.key?(:'max_retries')
264
264
  self.max_retries = attributes[:'max_retries']
265
265
  end
266
266
 
267
- if attributes.key?(:'policy')
268
- self.policy = attributes[:'policy']
269
- end
270
-
271
267
  if attributes.key?(:'total_timeout')
272
268
  self.total_timeout = attributes[:'total_timeout']
273
269
  end
@@ -290,6 +286,10 @@ module PulpContainerClient
290
286
  end
291
287
  end
292
288
 
289
+ if attributes.key?(:'download_concurrency')
290
+ self.download_concurrency = attributes[:'download_concurrency']
291
+ end
292
+
293
293
  if attributes.key?(:'rate_limit')
294
294
  self.rate_limit = attributes[:'rate_limit']
295
295
  end
@@ -547,6 +547,8 @@ module PulpContainerClient
547
547
  self.class == o.class &&
548
548
  name == o.name &&
549
549
  url == o.url &&
550
+ pulp_labels == o.pulp_labels &&
551
+ policy == o.policy &&
550
552
  ca_cert == o.ca_cert &&
551
553
  client_cert == o.client_cert &&
552
554
  client_key == o.client_key &&
@@ -556,15 +558,13 @@ module PulpContainerClient
556
558
  proxy_password == o.proxy_password &&
557
559
  username == o.username &&
558
560
  password == o.password &&
559
- pulp_labels == o.pulp_labels &&
560
- download_concurrency == o.download_concurrency &&
561
561
  max_retries == o.max_retries &&
562
- policy == o.policy &&
563
562
  total_timeout == o.total_timeout &&
564
563
  connect_timeout == o.connect_timeout &&
565
564
  sock_connect_timeout == o.sock_connect_timeout &&
566
565
  sock_read_timeout == o.sock_read_timeout &&
567
566
  headers == o.headers &&
567
+ download_concurrency == o.download_concurrency &&
568
568
  rate_limit == o.rate_limit &&
569
569
  includes == o.includes &&
570
570
  excludes == o.excludes
@@ -579,7 +579,7 @@ module PulpContainerClient
579
579
  # Calculates hash code according to all attributes.
580
580
  # @return [Integer] Hash code
581
581
  def hash
582
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes].hash
582
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, includes, excludes].hash
583
583
  end
584
584
 
585
585
  # Builds the object from hash