pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1637032524

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

@@ -18,61 +18,61 @@ module PulpAnsibleClient
18
18
  # Headers for aiohttp.Clientsession
19
19
  attr_accessor :headers
20
20
 
21
- # The proxy URL. Format: scheme://host:port
22
- attr_accessor :proxy_url
23
-
24
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
- attr_accessor :total_timeout
26
-
27
- # The URL of an external content source.
28
- attr_accessor :url
29
-
30
- # The username to be used for authentication when syncing.
31
- attr_accessor :username
21
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
22
+ attr_accessor :ca_cert
32
23
 
33
- # The password to be used for authentication when syncing.
34
- attr_accessor :password
24
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
+ attr_accessor :connect_timeout
35
26
 
36
27
  # The username to authenticte to the proxy.
37
28
  attr_accessor :proxy_username
38
29
 
39
- # A PEM encoded client certificate used for authentication.
40
- attr_accessor :client_cert
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
41
32
 
42
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
43
- attr_accessor :sock_connect_timeout
33
+ # The username to be used for authentication when syncing.
34
+ attr_accessor :username
44
35
 
45
- # If True, TLS peer validation must be performed.
46
- attr_accessor :tls_validation
36
+ # A PEM encoded private key used for authentication.
37
+ attr_accessor :client_key
47
38
 
48
39
  # Limits total download rate in requests per second
49
40
  attr_accessor :rate_limit
50
41
 
51
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
52
- attr_accessor :max_retries
42
+ # Total number of simultaneous connections. If not set then the default value will be used.
43
+ attr_accessor :download_concurrency
53
44
 
54
- # A PEM encoded private key used for authentication.
55
- attr_accessor :client_key
45
+ attr_accessor :pulp_labels
46
+
47
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
+ attr_accessor :total_timeout
56
49
 
57
50
  # The password to authenticte to the proxy.
58
51
  attr_accessor :proxy_password
59
52
 
53
+ # The proxy URL. Format: scheme://host:port
54
+ attr_accessor :proxy_url
55
+
56
+ # The URL of an external content source.
57
+ attr_accessor :url
58
+
60
59
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
61
60
  attr_accessor :sock_read_timeout
62
61
 
63
62
  # A unique name for this remote.
64
63
  attr_accessor :name
65
64
 
66
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
67
- attr_accessor :ca_cert
65
+ # A PEM encoded client certificate used for authentication.
66
+ attr_accessor :client_cert
68
67
 
69
- attr_accessor :pulp_labels
68
+ # If True, TLS peer validation must be performed.
69
+ attr_accessor :tls_validation
70
70
 
71
- # Total number of simultaneous connections. If not set then the default value will be used.
72
- attr_accessor :download_concurrency
71
+ # The password to be used for authentication when syncing.
72
+ attr_accessor :password
73
73
 
74
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
- attr_accessor :connect_timeout
74
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
+ attr_accessor :sock_connect_timeout
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -81,25 +81,25 @@ module PulpAnsibleClient
81
81
  def self.attribute_map
82
82
  {
83
83
  :'headers' => :'headers',
84
- :'proxy_url' => :'proxy_url',
85
- :'total_timeout' => :'total_timeout',
86
- :'url' => :'url',
87
- :'username' => :'username',
88
- :'password' => :'password',
84
+ :'ca_cert' => :'ca_cert',
85
+ :'connect_timeout' => :'connect_timeout',
89
86
  :'proxy_username' => :'proxy_username',
90
- :'client_cert' => :'client_cert',
91
- :'sock_connect_timeout' => :'sock_connect_timeout',
92
- :'tls_validation' => :'tls_validation',
93
- :'rate_limit' => :'rate_limit',
94
87
  :'max_retries' => :'max_retries',
88
+ :'username' => :'username',
95
89
  :'client_key' => :'client_key',
90
+ :'rate_limit' => :'rate_limit',
91
+ :'download_concurrency' => :'download_concurrency',
92
+ :'pulp_labels' => :'pulp_labels',
93
+ :'total_timeout' => :'total_timeout',
96
94
  :'proxy_password' => :'proxy_password',
95
+ :'proxy_url' => :'proxy_url',
96
+ :'url' => :'url',
97
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
98
  :'name' => :'name',
99
- :'ca_cert' => :'ca_cert',
100
- :'pulp_labels' => :'pulp_labels',
101
- :'download_concurrency' => :'download_concurrency',
102
- :'connect_timeout' => :'connect_timeout',
99
+ :'client_cert' => :'client_cert',
100
+ :'tls_validation' => :'tls_validation',
101
+ :'password' => :'password',
102
+ :'sock_connect_timeout' => :'sock_connect_timeout',
103
103
  :'metadata_only' => :'metadata_only'
104
104
  }
105
105
  end
@@ -108,25 +108,25 @@ module PulpAnsibleClient
108
108
  def self.openapi_types
109
109
  {
110
110
  :'headers' => :'Array<Object>',
111
- :'proxy_url' => :'String',
112
- :'total_timeout' => :'Float',
113
- :'url' => :'String',
114
- :'username' => :'String',
115
- :'password' => :'String',
111
+ :'ca_cert' => :'String',
112
+ :'connect_timeout' => :'Float',
116
113
  :'proxy_username' => :'String',
117
- :'client_cert' => :'String',
118
- :'sock_connect_timeout' => :'Float',
119
- :'tls_validation' => :'Boolean',
120
- :'rate_limit' => :'Integer',
121
114
  :'max_retries' => :'Integer',
115
+ :'username' => :'String',
122
116
  :'client_key' => :'String',
117
+ :'rate_limit' => :'Integer',
118
+ :'download_concurrency' => :'Integer',
119
+ :'pulp_labels' => :'Object',
120
+ :'total_timeout' => :'Float',
123
121
  :'proxy_password' => :'String',
122
+ :'proxy_url' => :'String',
123
+ :'url' => :'String',
124
124
  :'sock_read_timeout' => :'Float',
125
125
  :'name' => :'String',
126
- :'ca_cert' => :'String',
127
- :'pulp_labels' => :'Object',
128
- :'download_concurrency' => :'Integer',
129
- :'connect_timeout' => :'Float',
126
+ :'client_cert' => :'String',
127
+ :'tls_validation' => :'Boolean',
128
+ :'password' => :'String',
129
+ :'sock_connect_timeout' => :'Float',
130
130
  :'metadata_only' => :'Boolean'
131
131
  }
132
132
  end
@@ -134,21 +134,21 @@ module PulpAnsibleClient
134
134
  # List of attributes with nullable: true
135
135
  def self.openapi_nullable
136
136
  Set.new([
137
- :'proxy_url',
138
- :'total_timeout',
139
- :'username',
140
- :'password',
137
+ :'ca_cert',
138
+ :'connect_timeout',
141
139
  :'proxy_username',
142
- :'client_cert',
143
- :'sock_connect_timeout',
144
- :'rate_limit',
145
140
  :'max_retries',
141
+ :'username',
146
142
  :'client_key',
143
+ :'rate_limit',
144
+ :'download_concurrency',
145
+ :'total_timeout',
147
146
  :'proxy_password',
147
+ :'proxy_url',
148
148
  :'sock_read_timeout',
149
- :'ca_cert',
150
- :'download_concurrency',
151
- :'connect_timeout',
149
+ :'client_cert',
150
+ :'password',
151
+ :'sock_connect_timeout',
152
152
  ])
153
153
  end
154
154
 
@@ -173,58 +173,58 @@ module PulpAnsibleClient
173
173
  end
174
174
  end
175
175
 
176
- if attributes.key?(:'proxy_url')
177
- self.proxy_url = attributes[:'proxy_url']
178
- end
179
-
180
- if attributes.key?(:'total_timeout')
181
- self.total_timeout = attributes[:'total_timeout']
182
- end
183
-
184
- if attributes.key?(:'url')
185
- self.url = attributes[:'url']
186
- end
187
-
188
- if attributes.key?(:'username')
189
- self.username = attributes[:'username']
176
+ if attributes.key?(:'ca_cert')
177
+ self.ca_cert = attributes[:'ca_cert']
190
178
  end
191
179
 
192
- if attributes.key?(:'password')
193
- self.password = attributes[:'password']
180
+ if attributes.key?(:'connect_timeout')
181
+ self.connect_timeout = attributes[:'connect_timeout']
194
182
  end
195
183
 
196
184
  if attributes.key?(:'proxy_username')
197
185
  self.proxy_username = attributes[:'proxy_username']
198
186
  end
199
187
 
200
- if attributes.key?(:'client_cert')
201
- self.client_cert = attributes[:'client_cert']
188
+ if attributes.key?(:'max_retries')
189
+ self.max_retries = attributes[:'max_retries']
202
190
  end
203
191
 
204
- if attributes.key?(:'sock_connect_timeout')
205
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
192
+ if attributes.key?(:'username')
193
+ self.username = attributes[:'username']
206
194
  end
207
195
 
208
- if attributes.key?(:'tls_validation')
209
- self.tls_validation = attributes[:'tls_validation']
196
+ if attributes.key?(:'client_key')
197
+ self.client_key = attributes[:'client_key']
210
198
  end
211
199
 
212
200
  if attributes.key?(:'rate_limit')
213
201
  self.rate_limit = attributes[:'rate_limit']
214
202
  end
215
203
 
216
- if attributes.key?(:'max_retries')
217
- self.max_retries = attributes[:'max_retries']
204
+ if attributes.key?(:'download_concurrency')
205
+ self.download_concurrency = attributes[:'download_concurrency']
218
206
  end
219
207
 
220
- if attributes.key?(:'client_key')
221
- self.client_key = attributes[:'client_key']
208
+ if attributes.key?(:'pulp_labels')
209
+ self.pulp_labels = attributes[:'pulp_labels']
210
+ end
211
+
212
+ if attributes.key?(:'total_timeout')
213
+ self.total_timeout = attributes[:'total_timeout']
222
214
  end
223
215
 
224
216
  if attributes.key?(:'proxy_password')
225
217
  self.proxy_password = attributes[:'proxy_password']
226
218
  end
227
219
 
220
+ if attributes.key?(:'proxy_url')
221
+ self.proxy_url = attributes[:'proxy_url']
222
+ end
223
+
224
+ if attributes.key?(:'url')
225
+ self.url = attributes[:'url']
226
+ end
227
+
228
228
  if attributes.key?(:'sock_read_timeout')
229
229
  self.sock_read_timeout = attributes[:'sock_read_timeout']
230
230
  end
@@ -233,20 +233,20 @@ module PulpAnsibleClient
233
233
  self.name = attributes[:'name']
234
234
  end
235
235
 
236
- if attributes.key?(:'ca_cert')
237
- self.ca_cert = attributes[:'ca_cert']
236
+ if attributes.key?(:'client_cert')
237
+ self.client_cert = attributes[:'client_cert']
238
238
  end
239
239
 
240
- if attributes.key?(:'pulp_labels')
241
- self.pulp_labels = attributes[:'pulp_labels']
240
+ if attributes.key?(:'tls_validation')
241
+ self.tls_validation = attributes[:'tls_validation']
242
242
  end
243
243
 
244
- if attributes.key?(:'download_concurrency')
245
- self.download_concurrency = attributes[:'download_concurrency']
244
+ if attributes.key?(:'password')
245
+ self.password = attributes[:'password']
246
246
  end
247
247
 
248
- if attributes.key?(:'connect_timeout')
249
- self.connect_timeout = attributes[:'connect_timeout']
248
+ if attributes.key?(:'sock_connect_timeout')
249
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
250
250
  end
251
251
 
252
252
  if attributes.key?(:'metadata_only')
@@ -258,6 +258,14 @@ module PulpAnsibleClient
258
258
  # @return Array for valid properties with the reasons
259
259
  def list_invalid_properties
260
260
  invalid_properties = Array.new
261
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
262
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
263
+ end
264
+
265
+ if !@download_concurrency.nil? && @download_concurrency < 1
266
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
267
+ end
268
+
261
269
  if !@total_timeout.nil? && @total_timeout < 0.0
262
270
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
263
271
  end
@@ -266,10 +274,6 @@ module PulpAnsibleClient
266
274
  invalid_properties.push('invalid value for "url", url cannot be nil.')
267
275
  end
268
276
 
269
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
270
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
271
- end
272
-
273
277
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
274
278
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
275
279
  end
@@ -278,12 +282,8 @@ module PulpAnsibleClient
278
282
  invalid_properties.push('invalid value for "name", name cannot be nil.')
279
283
  end
280
284
 
281
- if !@download_concurrency.nil? && @download_concurrency < 1
282
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
283
- end
284
-
285
- if !@connect_timeout.nil? && @connect_timeout < 0.0
286
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
285
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
286
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
287
287
  end
288
288
 
289
289
  invalid_properties
@@ -292,64 +292,64 @@ module PulpAnsibleClient
292
292
  # Check to see if the all the properties in the model are valid
293
293
  # @return true if the model is valid
294
294
  def valid?
295
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
295
297
  return false if !@total_timeout.nil? && @total_timeout < 0.0
296
298
  return false if @url.nil?
297
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
298
299
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
300
  return false if @name.nil?
300
- return false if !@download_concurrency.nil? && @download_concurrency < 1
301
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
301
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
302
302
  true
303
303
  end
304
304
 
305
305
  # Custom attribute writer method with validation
306
- # @param [Object] total_timeout Value to be assigned
307
- def total_timeout=(total_timeout)
308
- if !total_timeout.nil? && total_timeout < 0.0
309
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
306
+ # @param [Object] connect_timeout Value to be assigned
307
+ def connect_timeout=(connect_timeout)
308
+ if !connect_timeout.nil? && connect_timeout < 0.0
309
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
310
310
  end
311
311
 
312
- @total_timeout = total_timeout
312
+ @connect_timeout = connect_timeout
313
313
  end
314
314
 
315
315
  # Custom attribute writer method with validation
316
- # @param [Object] sock_connect_timeout Value to be assigned
317
- def sock_connect_timeout=(sock_connect_timeout)
318
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
319
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
316
+ # @param [Object] download_concurrency Value to be assigned
317
+ def download_concurrency=(download_concurrency)
318
+ if !download_concurrency.nil? && download_concurrency < 1
319
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
320
320
  end
321
321
 
322
- @sock_connect_timeout = sock_connect_timeout
322
+ @download_concurrency = download_concurrency
323
323
  end
324
324
 
325
325
  # Custom attribute writer method with validation
326
- # @param [Object] sock_read_timeout Value to be assigned
327
- def sock_read_timeout=(sock_read_timeout)
328
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
329
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
326
+ # @param [Object] total_timeout Value to be assigned
327
+ def total_timeout=(total_timeout)
328
+ if !total_timeout.nil? && total_timeout < 0.0
329
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
330
330
  end
331
331
 
332
- @sock_read_timeout = sock_read_timeout
332
+ @total_timeout = total_timeout
333
333
  end
334
334
 
335
335
  # Custom attribute writer method with validation
336
- # @param [Object] download_concurrency Value to be assigned
337
- def download_concurrency=(download_concurrency)
338
- if !download_concurrency.nil? && download_concurrency < 1
339
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
336
+ # @param [Object] sock_read_timeout Value to be assigned
337
+ def sock_read_timeout=(sock_read_timeout)
338
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
339
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
340
340
  end
341
341
 
342
- @download_concurrency = download_concurrency
342
+ @sock_read_timeout = sock_read_timeout
343
343
  end
344
344
 
345
345
  # Custom attribute writer method with validation
346
- # @param [Object] connect_timeout Value to be assigned
347
- def connect_timeout=(connect_timeout)
348
- if !connect_timeout.nil? && connect_timeout < 0.0
349
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
346
+ # @param [Object] sock_connect_timeout Value to be assigned
347
+ def sock_connect_timeout=(sock_connect_timeout)
348
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
349
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
350
350
  end
351
351
 
352
- @connect_timeout = connect_timeout
352
+ @sock_connect_timeout = sock_connect_timeout
353
353
  end
354
354
 
355
355
  # Checks equality by comparing each attribute.
@@ -358,25 +358,25 @@ module PulpAnsibleClient
358
358
  return true if self.equal?(o)
359
359
  self.class == o.class &&
360
360
  headers == o.headers &&
361
- proxy_url == o.proxy_url &&
362
- total_timeout == o.total_timeout &&
363
- url == o.url &&
364
- username == o.username &&
365
- password == o.password &&
361
+ ca_cert == o.ca_cert &&
362
+ connect_timeout == o.connect_timeout &&
366
363
  proxy_username == o.proxy_username &&
367
- client_cert == o.client_cert &&
368
- sock_connect_timeout == o.sock_connect_timeout &&
369
- tls_validation == o.tls_validation &&
370
- rate_limit == o.rate_limit &&
371
364
  max_retries == o.max_retries &&
365
+ username == o.username &&
372
366
  client_key == o.client_key &&
367
+ rate_limit == o.rate_limit &&
368
+ download_concurrency == o.download_concurrency &&
369
+ pulp_labels == o.pulp_labels &&
370
+ total_timeout == o.total_timeout &&
373
371
  proxy_password == o.proxy_password &&
372
+ proxy_url == o.proxy_url &&
373
+ url == o.url &&
374
374
  sock_read_timeout == o.sock_read_timeout &&
375
375
  name == o.name &&
376
- ca_cert == o.ca_cert &&
377
- pulp_labels == o.pulp_labels &&
378
- download_concurrency == o.download_concurrency &&
379
- connect_timeout == o.connect_timeout &&
376
+ client_cert == o.client_cert &&
377
+ tls_validation == o.tls_validation &&
378
+ password == o.password &&
379
+ sock_connect_timeout == o.sock_connect_timeout &&
380
380
  metadata_only == o.metadata_only
381
381
  end
382
382
 
@@ -389,7 +389,7 @@ module PulpAnsibleClient
389
389
  # Calculates hash code according to all attributes.
390
390
  # @return [Integer] Hash code
391
391
  def hash
392
- [headers, proxy_url, total_timeout, url, username, password, proxy_username, client_cert, sock_connect_timeout, tls_validation, rate_limit, max_retries, client_key, proxy_password, sock_read_timeout, name, ca_cert, pulp_labels, download_concurrency, connect_timeout, metadata_only].hash
392
+ [headers, ca_cert, connect_timeout, proxy_username, max_retries, username, client_key, rate_limit, download_concurrency, pulp_labels, total_timeout, proxy_password, proxy_url, url, sock_read_timeout, name, client_cert, tls_validation, password, sock_connect_timeout, metadata_only].hash
393
393
  end
394
394
 
395
395
  # Builds the object from hash