pulp_npm_client 0.1.0a2 → 0.1.0a3

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentPackagesApi.md +10 -10
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +3 -3
  6. data/docs/DistributionsNpmApi.md +20 -12
  7. data/docs/NpmNpmDistribution.md +2 -0
  8. data/docs/NpmNpmDistributionResponse.md +2 -0
  9. data/docs/NpmNpmRemote.md +20 -2
  10. data/docs/NpmNpmRemoteResponse.md +16 -8
  11. data/docs/NpmNpmRepository.md +3 -1
  12. data/docs/NpmNpmRepositoryResponse.md +2 -0
  13. data/docs/PatchednpmNpmDistribution.md +2 -0
  14. data/docs/PatchednpmNpmRemote.md +20 -2
  15. data/docs/PatchednpmNpmRepository.md +3 -1
  16. data/docs/RemotesNpmApi.md +24 -16
  17. data/docs/RepositoriesNpmApi.md +12 -4
  18. data/docs/RepositoriesNpmVersionsApi.md +30 -30
  19. data/lib/pulp_npm_client/api/content_packages_api.rb +11 -11
  20. data/lib/pulp_npm_client/api/distributions_npm_api.rb +26 -14
  21. data/lib/pulp_npm_client/api/remotes_npm_api.rb +30 -18
  22. data/lib/pulp_npm_client/api/repositories_npm_api.rb +17 -5
  23. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +34 -34
  24. data/lib/pulp_npm_client/models/content_summary.rb +12 -6
  25. data/lib/pulp_npm_client/models/content_summary_response.rb +12 -6
  26. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +10 -1
  27. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +10 -1
  28. data/lib/pulp_npm_client/models/npm_npm_remote.rb +163 -5
  29. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +138 -35
  30. data/lib/pulp_npm_client/models/npm_npm_repository.rb +10 -1
  31. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +10 -1
  32. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +10 -1
  33. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +163 -5
  34. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +10 -1
  35. data/lib/pulp_npm_client/version.rb +1 -1
  36. data/spec/api/content_packages_api_spec.rb +5 -5
  37. data/spec/api/distributions_npm_api_spec.rb +10 -6
  38. data/spec/api/remotes_npm_api_spec.rb +12 -8
  39. data/spec/api/repositories_npm_api_spec.rb +6 -2
  40. data/spec/api/repositories_npm_versions_api_spec.rb +16 -16
  41. data/spec/models/npm_npm_distribution_response_spec.rb +6 -0
  42. data/spec/models/npm_npm_distribution_spec.rb +6 -0
  43. data/spec/models/npm_npm_remote_response_spec.rb +32 -8
  44. data/spec/models/npm_npm_remote_spec.rb +54 -0
  45. data/spec/models/npm_npm_repository_response_spec.rb +6 -0
  46. data/spec/models/npm_npm_repository_spec.rb +6 -0
  47. data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
  48. data/spec/models/patchednpm_npm_remote_spec.rb +54 -0
  49. data/spec/models/patchednpm_npm_repository_spec.rb +6 -0
  50. metadata +23 -23
@@ -33,21 +33,47 @@ module PulpNpmClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
42
48
  # The password to be used for authentication when syncing.
43
49
  attr_accessor :password
44
50
 
51
+ attr_accessor :pulp_labels
52
+
45
53
  # Total number of simultaneous connections.
46
54
  attr_accessor :download_concurrency
47
55
 
48
56
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
49
57
  attr_accessor :policy
50
58
 
59
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
60
+ attr_accessor :total_timeout
61
+
62
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
63
+ attr_accessor :connect_timeout
64
+
65
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
66
+ attr_accessor :sock_connect_timeout
67
+
68
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
+ attr_accessor :sock_read_timeout
70
+
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
74
+ # Limits total download rate in requests per second
75
+ attr_accessor :rate_limit
76
+
51
77
  # Attribute mapping from ruby-style variable name to JSON key.
52
78
  def self.attribute_map
53
79
  {
@@ -58,10 +84,19 @@ module PulpNpmClient
58
84
  :'client_key' => :'client_key',
59
85
  :'tls_validation' => :'tls_validation',
60
86
  :'proxy_url' => :'proxy_url',
87
+ :'proxy_username' => :'proxy_username',
88
+ :'proxy_password' => :'proxy_password',
61
89
  :'username' => :'username',
62
90
  :'password' => :'password',
91
+ :'pulp_labels' => :'pulp_labels',
63
92
  :'download_concurrency' => :'download_concurrency',
64
- :'policy' => :'policy'
93
+ :'policy' => :'policy',
94
+ :'total_timeout' => :'total_timeout',
95
+ :'connect_timeout' => :'connect_timeout',
96
+ :'sock_connect_timeout' => :'sock_connect_timeout',
97
+ :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
99
+ :'rate_limit' => :'rate_limit'
65
100
  }
66
101
  end
67
102
 
@@ -75,10 +110,19 @@ module PulpNpmClient
75
110
  :'client_key' => :'String',
76
111
  :'tls_validation' => :'Boolean',
77
112
  :'proxy_url' => :'String',
113
+ :'proxy_username' => :'String',
114
+ :'proxy_password' => :'String',
78
115
  :'username' => :'String',
79
116
  :'password' => :'String',
117
+ :'pulp_labels' => :'Object',
80
118
  :'download_concurrency' => :'Integer',
81
- :'policy' => :'PolicyEnum'
119
+ :'policy' => :'PolicyEnum',
120
+ :'total_timeout' => :'Float',
121
+ :'connect_timeout' => :'Float',
122
+ :'sock_connect_timeout' => :'Float',
123
+ :'sock_read_timeout' => :'Float',
124
+ :'headers' => :'Array<Object>',
125
+ :'rate_limit' => :'Integer'
82
126
  }
83
127
  end
84
128
 
@@ -89,8 +133,15 @@ module PulpNpmClient
89
133
  :'client_cert',
90
134
  :'client_key',
91
135
  :'proxy_url',
136
+ :'proxy_username',
137
+ :'proxy_password',
92
138
  :'username',
93
139
  :'password',
140
+ :'total_timeout',
141
+ :'connect_timeout',
142
+ :'sock_connect_timeout',
143
+ :'sock_read_timeout',
144
+ :'rate_limit'
94
145
  ])
95
146
  end
96
147
 
@@ -137,6 +188,14 @@ module PulpNpmClient
137
188
  self.proxy_url = attributes[:'proxy_url']
138
189
  end
139
190
 
191
+ if attributes.key?(:'proxy_username')
192
+ self.proxy_username = attributes[:'proxy_username']
193
+ end
194
+
195
+ if attributes.key?(:'proxy_password')
196
+ self.proxy_password = attributes[:'proxy_password']
197
+ end
198
+
140
199
  if attributes.key?(:'username')
141
200
  self.username = attributes[:'username']
142
201
  end
@@ -145,6 +204,10 @@ module PulpNpmClient
145
204
  self.password = attributes[:'password']
146
205
  end
147
206
 
207
+ if attributes.key?(:'pulp_labels')
208
+ self.pulp_labels = attributes[:'pulp_labels']
209
+ end
210
+
148
211
  if attributes.key?(:'download_concurrency')
149
212
  self.download_concurrency = attributes[:'download_concurrency']
150
213
  end
@@ -152,6 +215,32 @@ module PulpNpmClient
152
215
  if attributes.key?(:'policy')
153
216
  self.policy = attributes[:'policy']
154
217
  end
218
+
219
+ if attributes.key?(:'total_timeout')
220
+ self.total_timeout = attributes[:'total_timeout']
221
+ end
222
+
223
+ if attributes.key?(:'connect_timeout')
224
+ self.connect_timeout = attributes[:'connect_timeout']
225
+ end
226
+
227
+ if attributes.key?(:'sock_connect_timeout')
228
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
229
+ end
230
+
231
+ if attributes.key?(:'sock_read_timeout')
232
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
233
+ end
234
+
235
+ if attributes.key?(:'headers')
236
+ if (value = attributes[:'headers']).is_a?(Array)
237
+ self.headers = value
238
+ end
239
+ end
240
+
241
+ if attributes.key?(:'rate_limit')
242
+ self.rate_limit = attributes[:'rate_limit']
243
+ end
155
244
  end
156
245
 
157
246
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,6 +259,22 @@ module PulpNpmClient
170
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
171
260
  end
172
261
 
262
+ if !@total_timeout.nil? && @total_timeout < 0.0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
264
+ end
265
+
266
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
+ end
269
+
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
+ end
273
+
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
276
+ end
277
+
173
278
  invalid_properties
174
279
  end
175
280
 
@@ -179,6 +284,10 @@ module PulpNpmClient
179
284
  return false if @name.nil?
180
285
  return false if @url.nil?
181
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
182
291
  true
183
292
  end
184
293
 
@@ -192,6 +301,46 @@ module PulpNpmClient
192
301
  @download_concurrency = download_concurrency
193
302
  end
194
303
 
304
+ # Custom attribute writer method with validation
305
+ # @param [Object] total_timeout Value to be assigned
306
+ def total_timeout=(total_timeout)
307
+ if !total_timeout.nil? && total_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
309
+ end
310
+
311
+ @total_timeout = total_timeout
312
+ end
313
+
314
+ # Custom attribute writer method with validation
315
+ # @param [Object] connect_timeout Value to be assigned
316
+ def connect_timeout=(connect_timeout)
317
+ if !connect_timeout.nil? && connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
319
+ end
320
+
321
+ @connect_timeout = connect_timeout
322
+ end
323
+
324
+ # Custom attribute writer method with validation
325
+ # @param [Object] sock_connect_timeout Value to be assigned
326
+ def sock_connect_timeout=(sock_connect_timeout)
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
329
+ end
330
+
331
+ @sock_connect_timeout = sock_connect_timeout
332
+ end
333
+
334
+ # Custom attribute writer method with validation
335
+ # @param [Object] sock_read_timeout Value to be assigned
336
+ def sock_read_timeout=(sock_read_timeout)
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
339
+ end
340
+
341
+ @sock_read_timeout = sock_read_timeout
342
+ end
343
+
195
344
  # Checks equality by comparing each attribute.
196
345
  # @param [Object] Object to be compared
197
346
  def ==(o)
@@ -204,10 +353,19 @@ module PulpNpmClient
204
353
  client_key == o.client_key &&
205
354
  tls_validation == o.tls_validation &&
206
355
  proxy_url == o.proxy_url &&
356
+ proxy_username == o.proxy_username &&
357
+ proxy_password == o.proxy_password &&
207
358
  username == o.username &&
208
359
  password == o.password &&
360
+ pulp_labels == o.pulp_labels &&
209
361
  download_concurrency == o.download_concurrency &&
210
- policy == o.policy
362
+ policy == o.policy &&
363
+ total_timeout == o.total_timeout &&
364
+ connect_timeout == o.connect_timeout &&
365
+ sock_connect_timeout == o.sock_connect_timeout &&
366
+ sock_read_timeout == o.sock_read_timeout &&
367
+ headers == o.headers &&
368
+ rate_limit == o.rate_limit
211
369
  end
212
370
 
213
371
  # @see the `==` method
@@ -219,7 +377,7 @@ module PulpNpmClient
219
377
  # Calculates hash code according to all attributes.
220
378
  # @return [Integer] Hash code
221
379
  def hash
222
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].hash
380
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
223
381
  end
224
382
 
225
383
  # Builds the object from hash
@@ -32,20 +32,13 @@ module PulpNpmClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
41
+ attr_accessor :pulp_labels
49
42
 
50
43
  # Timestamp of the most recent update of the remote.
51
44
  attr_accessor :pulp_last_updated
@@ -56,6 +49,24 @@ module PulpNpmClient
56
49
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
57
50
  attr_accessor :policy
58
51
 
52
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
53
+ attr_accessor :total_timeout
54
+
55
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
56
+ attr_accessor :connect_timeout
57
+
58
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
59
+ attr_accessor :sock_connect_timeout
60
+
61
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
62
+ attr_accessor :sock_read_timeout
63
+
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
67
+ # Limits total download rate in requests per second
68
+ attr_accessor :rate_limit
69
+
59
70
  # Attribute mapping from ruby-style variable name to JSON key.
60
71
  def self.attribute_map
61
72
  {
@@ -65,14 +76,18 @@ module PulpNpmClient
65
76
  :'url' => :'url',
66
77
  :'ca_cert' => :'ca_cert',
67
78
  :'client_cert' => :'client_cert',
68
- :'client_key' => :'client_key',
69
79
  :'tls_validation' => :'tls_validation',
70
80
  :'proxy_url' => :'proxy_url',
71
- :'username' => :'username',
72
- :'password' => :'password',
81
+ :'pulp_labels' => :'pulp_labels',
73
82
  :'pulp_last_updated' => :'pulp_last_updated',
74
83
  :'download_concurrency' => :'download_concurrency',
75
- :'policy' => :'policy'
84
+ :'policy' => :'policy',
85
+ :'total_timeout' => :'total_timeout',
86
+ :'connect_timeout' => :'connect_timeout',
87
+ :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'sock_read_timeout' => :'sock_read_timeout',
89
+ :'headers' => :'headers',
90
+ :'rate_limit' => :'rate_limit'
76
91
  }
77
92
  end
78
93
 
@@ -85,14 +100,18 @@ module PulpNpmClient
85
100
  :'url' => :'String',
86
101
  :'ca_cert' => :'String',
87
102
  :'client_cert' => :'String',
88
- :'client_key' => :'String',
89
103
  :'tls_validation' => :'Boolean',
90
104
  :'proxy_url' => :'String',
91
- :'username' => :'String',
92
- :'password' => :'String',
105
+ :'pulp_labels' => :'Object',
93
106
  :'pulp_last_updated' => :'DateTime',
94
107
  :'download_concurrency' => :'Integer',
95
- :'policy' => :'PolicyEnum'
108
+ :'policy' => :'PolicyEnum',
109
+ :'total_timeout' => :'Float',
110
+ :'connect_timeout' => :'Float',
111
+ :'sock_connect_timeout' => :'Float',
112
+ :'sock_read_timeout' => :'Float',
113
+ :'headers' => :'Array<Object>',
114
+ :'rate_limit' => :'Integer'
96
115
  }
97
116
  end
98
117
 
@@ -101,10 +120,12 @@ module PulpNpmClient
101
120
  Set.new([
102
121
  :'ca_cert',
103
122
  :'client_cert',
104
- :'client_key',
105
123
  :'proxy_url',
106
- :'username',
107
- :'password',
124
+ :'total_timeout',
125
+ :'connect_timeout',
126
+ :'sock_connect_timeout',
127
+ :'sock_read_timeout',
128
+ :'rate_limit'
108
129
  ])
109
130
  end
110
131
 
@@ -147,10 +168,6 @@ module PulpNpmClient
147
168
  self.client_cert = attributes[:'client_cert']
148
169
  end
149
170
 
150
- if attributes.key?(:'client_key')
151
- self.client_key = attributes[:'client_key']
152
- end
153
-
154
171
  if attributes.key?(:'tls_validation')
155
172
  self.tls_validation = attributes[:'tls_validation']
156
173
  end
@@ -159,12 +176,8 @@ module PulpNpmClient
159
176
  self.proxy_url = attributes[:'proxy_url']
160
177
  end
161
178
 
162
- if attributes.key?(:'username')
163
- self.username = attributes[:'username']
164
- end
165
-
166
- if attributes.key?(:'password')
167
- self.password = attributes[:'password']
179
+ if attributes.key?(:'pulp_labels')
180
+ self.pulp_labels = attributes[:'pulp_labels']
168
181
  end
169
182
 
170
183
  if attributes.key?(:'pulp_last_updated')
@@ -178,6 +191,32 @@ module PulpNpmClient
178
191
  if attributes.key?(:'policy')
179
192
  self.policy = attributes[:'policy']
180
193
  end
194
+
195
+ if attributes.key?(:'total_timeout')
196
+ self.total_timeout = attributes[:'total_timeout']
197
+ end
198
+
199
+ if attributes.key?(:'connect_timeout')
200
+ self.connect_timeout = attributes[:'connect_timeout']
201
+ end
202
+
203
+ if attributes.key?(:'sock_connect_timeout')
204
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
205
+ end
206
+
207
+ if attributes.key?(:'sock_read_timeout')
208
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
209
+ end
210
+
211
+ if attributes.key?(:'headers')
212
+ if (value = attributes[:'headers']).is_a?(Array)
213
+ self.headers = value
214
+ end
215
+ end
216
+
217
+ if attributes.key?(:'rate_limit')
218
+ self.rate_limit = attributes[:'rate_limit']
219
+ end
181
220
  end
182
221
 
183
222
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,6 +235,22 @@ module PulpNpmClient
196
235
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
197
236
  end
198
237
 
238
+ if !@total_timeout.nil? && @total_timeout < 0.0
239
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
240
+ end
241
+
242
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
243
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
244
+ end
245
+
246
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
247
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
248
+ end
249
+
250
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
251
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
252
+ end
253
+
199
254
  invalid_properties
200
255
  end
201
256
 
@@ -205,6 +260,10 @@ module PulpNpmClient
205
260
  return false if @name.nil?
206
261
  return false if @url.nil?
207
262
  return false if !@download_concurrency.nil? && @download_concurrency < 1
263
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
264
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
265
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
266
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
208
267
  true
209
268
  end
210
269
 
@@ -218,6 +277,46 @@ module PulpNpmClient
218
277
  @download_concurrency = download_concurrency
219
278
  end
220
279
 
280
+ # Custom attribute writer method with validation
281
+ # @param [Object] total_timeout Value to be assigned
282
+ def total_timeout=(total_timeout)
283
+ if !total_timeout.nil? && total_timeout < 0.0
284
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
285
+ end
286
+
287
+ @total_timeout = total_timeout
288
+ end
289
+
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] connect_timeout Value to be assigned
292
+ def connect_timeout=(connect_timeout)
293
+ if !connect_timeout.nil? && connect_timeout < 0.0
294
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
295
+ end
296
+
297
+ @connect_timeout = connect_timeout
298
+ end
299
+
300
+ # Custom attribute writer method with validation
301
+ # @param [Object] sock_connect_timeout Value to be assigned
302
+ def sock_connect_timeout=(sock_connect_timeout)
303
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
304
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
305
+ end
306
+
307
+ @sock_connect_timeout = sock_connect_timeout
308
+ end
309
+
310
+ # Custom attribute writer method with validation
311
+ # @param [Object] sock_read_timeout Value to be assigned
312
+ def sock_read_timeout=(sock_read_timeout)
313
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
314
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
315
+ end
316
+
317
+ @sock_read_timeout = sock_read_timeout
318
+ end
319
+
221
320
  # Checks equality by comparing each attribute.
222
321
  # @param [Object] Object to be compared
223
322
  def ==(o)
@@ -229,14 +328,18 @@ module PulpNpmClient
229
328
  url == o.url &&
230
329
  ca_cert == o.ca_cert &&
231
330
  client_cert == o.client_cert &&
232
- client_key == o.client_key &&
233
331
  tls_validation == o.tls_validation &&
234
332
  proxy_url == o.proxy_url &&
235
- username == o.username &&
236
- password == o.password &&
333
+ pulp_labels == o.pulp_labels &&
237
334
  pulp_last_updated == o.pulp_last_updated &&
238
335
  download_concurrency == o.download_concurrency &&
239
- policy == o.policy
336
+ policy == o.policy &&
337
+ total_timeout == o.total_timeout &&
338
+ connect_timeout == o.connect_timeout &&
339
+ sock_connect_timeout == o.sock_connect_timeout &&
340
+ sock_read_timeout == o.sock_read_timeout &&
341
+ headers == o.headers &&
342
+ rate_limit == o.rate_limit
240
343
  end
241
344
 
242
345
  # @see the `==` method
@@ -248,7 +351,7 @@ module PulpNpmClient
248
351
  # Calculates hash code according to all attributes.
249
352
  # @return [Integer] Hash code
250
353
  def hash
251
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
354
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
252
355
  end
253
356
 
254
357
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module PulpNpmClient
16
16
  # A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
17
17
  class NpmNpmRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
@@ -26,6 +28,7 @@ module PulpNpmClient
26
28
  # Attribute mapping from ruby-style variable name to JSON key.
27
29
  def self.attribute_map
28
30
  {
31
+ :'pulp_labels' => :'pulp_labels',
29
32
  :'name' => :'name',
30
33
  :'description' => :'description',
31
34
  :'remote' => :'remote'
@@ -35,6 +38,7 @@ module PulpNpmClient
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
41
+ :'pulp_labels' => :'Object',
38
42
  :'name' => :'String',
39
43
  :'description' => :'String',
40
44
  :'remote' => :'String'
@@ -64,6 +68,10 @@ module PulpNpmClient
64
68
  h[k.to_sym] = v
65
69
  }
66
70
 
71
+ if attributes.key?(:'pulp_labels')
72
+ self.pulp_labels = attributes[:'pulp_labels']
73
+ end
74
+
67
75
  if attributes.key?(:'name')
68
76
  self.name = attributes[:'name']
69
77
  end
@@ -100,6 +108,7 @@ module PulpNpmClient
100
108
  def ==(o)
101
109
  return true if self.equal?(o)
102
110
  self.class == o.class &&
111
+ pulp_labels == o.pulp_labels &&
103
112
  name == o.name &&
104
113
  description == o.description &&
105
114
  remote == o.remote
@@ -114,7 +123,7 @@ module PulpNpmClient
114
123
  # Calculates hash code according to all attributes.
115
124
  # @return [Integer] Hash code
116
125
  def hash
117
- [name, description, remote].hash
126
+ [pulp_labels, name, description, remote].hash
118
127
  end
119
128
 
120
129
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpNpmClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -38,6 +40,7 @@ module PulpNpmClient
38
40
  :'pulp_href' => :'pulp_href',
39
41
  :'pulp_created' => :'pulp_created',
40
42
  :'versions_href' => :'versions_href',
43
+ :'pulp_labels' => :'pulp_labels',
41
44
  :'latest_version_href' => :'latest_version_href',
42
45
  :'name' => :'name',
43
46
  :'description' => :'description',
@@ -51,6 +54,7 @@ module PulpNpmClient
51
54
  :'pulp_href' => :'String',
52
55
  :'pulp_created' => :'DateTime',
53
56
  :'versions_href' => :'String',
57
+ :'pulp_labels' => :'Object',
54
58
  :'latest_version_href' => :'String',
55
59
  :'name' => :'String',
56
60
  :'description' => :'String',
@@ -93,6 +97,10 @@ module PulpNpmClient
93
97
  self.versions_href = attributes[:'versions_href']
94
98
  end
95
99
 
100
+ if attributes.key?(:'pulp_labels')
101
+ self.pulp_labels = attributes[:'pulp_labels']
102
+ end
103
+
96
104
  if attributes.key?(:'latest_version_href')
97
105
  self.latest_version_href = attributes[:'latest_version_href']
98
106
  end
@@ -136,6 +144,7 @@ module PulpNpmClient
136
144
  pulp_href == o.pulp_href &&
137
145
  pulp_created == o.pulp_created &&
138
146
  versions_href == o.versions_href &&
147
+ pulp_labels == o.pulp_labels &&
139
148
  latest_version_href == o.latest_version_href &&
140
149
  name == o.name &&
141
150
  description == o.description &&
@@ -151,7 +160,7 @@ module PulpNpmClient
151
160
  # Calculates hash code according to all attributes.
152
161
  # @return [Integer] Hash code
153
162
  def hash
154
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
163
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
155
164
  end
156
165
 
157
166
  # Builds the object from hash