pulp_ansible_client 0.13.4 → 0.13.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,55 +18,55 @@ module PulpAnsibleClient
18
18
  # 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.
19
19
  attr_accessor :sock_read_timeout
20
20
 
21
- # The proxy URL. Format: scheme://host:port
22
- attr_accessor :proxy_url
21
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :connect_timeout
23
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
24
+ # A PEM encoded client certificate used for authentication.
25
+ attr_accessor :client_cert
26
26
 
27
- # A unique name for this remote.
28
- attr_accessor :name
27
+ # Headers for aiohttp.Clientsession
28
+ attr_accessor :headers
29
29
 
30
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
- attr_accessor :ca_cert
30
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
31
+ attr_accessor :total_timeout
32
32
 
33
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
34
- attr_accessor :max_retries
33
+ attr_accessor :pulp_href
35
34
 
36
35
  # 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.
37
36
  attr_accessor :sock_connect_timeout
38
37
 
39
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
- attr_accessor :connect_timeout
41
-
42
38
  # The URL of an external content source.
43
39
  attr_accessor :url
44
40
 
45
- # Total number of simultaneous connections. If not set then the default value will be used.
46
- attr_accessor :download_concurrency
41
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
42
+ attr_accessor :ca_cert
43
+
44
+ # Timestamp of the most recent update of the remote.
45
+ attr_accessor :pulp_last_updated
46
+
47
+ attr_accessor :pulp_labels
48
+
49
+ # The proxy URL. Format: scheme://host:port
50
+ attr_accessor :proxy_url
51
+
52
+ # If True, TLS peer validation must be performed.
53
+ attr_accessor :tls_validation
47
54
 
48
55
  # Timestamp of creation.
49
56
  attr_accessor :pulp_created
50
57
 
51
- attr_accessor :pulp_href
58
+ # A unique name for this remote.
59
+ attr_accessor :name
52
60
 
53
- attr_accessor :pulp_labels
61
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
62
+ attr_accessor :max_retries
54
63
 
55
- # A PEM encoded client certificate used for authentication.
56
- attr_accessor :client_cert
64
+ # Total number of simultaneous connections. If not set then the default value will be used.
65
+ attr_accessor :download_concurrency
57
66
 
58
67
  # Limits requests per second for each concurrent downloader
59
68
  attr_accessor :rate_limit
60
69
 
61
- # Headers for aiohttp.Clientsession
62
- attr_accessor :headers
63
-
64
- # If True, TLS peer validation must be performed.
65
- attr_accessor :tls_validation
66
-
67
- # Timestamp of the most recent update of the remote.
68
- attr_accessor :pulp_last_updated
69
-
70
70
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
71
71
  attr_accessor :metadata_only
72
72
 
@@ -77,23 +77,23 @@ module PulpAnsibleClient
77
77
  def self.attribute_map
78
78
  {
79
79
  :'sock_read_timeout' => :'sock_read_timeout',
80
- :'proxy_url' => :'proxy_url',
80
+ :'connect_timeout' => :'connect_timeout',
81
+ :'client_cert' => :'client_cert',
82
+ :'headers' => :'headers',
81
83
  :'total_timeout' => :'total_timeout',
82
- :'name' => :'name',
83
- :'ca_cert' => :'ca_cert',
84
- :'max_retries' => :'max_retries',
84
+ :'pulp_href' => :'pulp_href',
85
85
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
- :'connect_timeout' => :'connect_timeout',
87
86
  :'url' => :'url',
88
- :'download_concurrency' => :'download_concurrency',
89
- :'pulp_created' => :'pulp_created',
90
- :'pulp_href' => :'pulp_href',
87
+ :'ca_cert' => :'ca_cert',
88
+ :'pulp_last_updated' => :'pulp_last_updated',
91
89
  :'pulp_labels' => :'pulp_labels',
92
- :'client_cert' => :'client_cert',
93
- :'rate_limit' => :'rate_limit',
94
- :'headers' => :'headers',
90
+ :'proxy_url' => :'proxy_url',
95
91
  :'tls_validation' => :'tls_validation',
96
- :'pulp_last_updated' => :'pulp_last_updated',
92
+ :'pulp_created' => :'pulp_created',
93
+ :'name' => :'name',
94
+ :'max_retries' => :'max_retries',
95
+ :'download_concurrency' => :'download_concurrency',
96
+ :'rate_limit' => :'rate_limit',
97
97
  :'metadata_only' => :'metadata_only',
98
98
  :'git_ref' => :'git_ref'
99
99
  }
@@ -103,23 +103,23 @@ module PulpAnsibleClient
103
103
  def self.openapi_types
104
104
  {
105
105
  :'sock_read_timeout' => :'Float',
106
- :'proxy_url' => :'String',
106
+ :'connect_timeout' => :'Float',
107
+ :'client_cert' => :'String',
108
+ :'headers' => :'Array<Object>',
107
109
  :'total_timeout' => :'Float',
108
- :'name' => :'String',
109
- :'ca_cert' => :'String',
110
- :'max_retries' => :'Integer',
110
+ :'pulp_href' => :'String',
111
111
  :'sock_connect_timeout' => :'Float',
112
- :'connect_timeout' => :'Float',
113
112
  :'url' => :'String',
114
- :'download_concurrency' => :'Integer',
115
- :'pulp_created' => :'DateTime',
116
- :'pulp_href' => :'String',
113
+ :'ca_cert' => :'String',
114
+ :'pulp_last_updated' => :'DateTime',
117
115
  :'pulp_labels' => :'Object',
118
- :'client_cert' => :'String',
119
- :'rate_limit' => :'Integer',
120
- :'headers' => :'Array<Object>',
116
+ :'proxy_url' => :'String',
121
117
  :'tls_validation' => :'Boolean',
122
- :'pulp_last_updated' => :'DateTime',
118
+ :'pulp_created' => :'DateTime',
119
+ :'name' => :'String',
120
+ :'max_retries' => :'Integer',
121
+ :'download_concurrency' => :'Integer',
122
+ :'rate_limit' => :'Integer',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
125
125
  }
@@ -129,14 +129,14 @@ module PulpAnsibleClient
129
129
  def self.openapi_nullable
130
130
  Set.new([
131
131
  :'sock_read_timeout',
132
- :'proxy_url',
132
+ :'connect_timeout',
133
+ :'client_cert',
133
134
  :'total_timeout',
135
+ :'sock_connect_timeout',
134
136
  :'ca_cert',
137
+ :'proxy_url',
135
138
  :'max_retries',
136
- :'sock_connect_timeout',
137
- :'connect_timeout',
138
139
  :'download_concurrency',
139
- :'client_cert',
140
140
  :'rate_limit',
141
141
  ])
142
142
  end
@@ -160,74 +160,74 @@ module PulpAnsibleClient
160
160
  self.sock_read_timeout = attributes[:'sock_read_timeout']
161
161
  end
162
162
 
163
- if attributes.key?(:'proxy_url')
164
- self.proxy_url = attributes[:'proxy_url']
163
+ if attributes.key?(:'connect_timeout')
164
+ self.connect_timeout = attributes[:'connect_timeout']
165
165
  end
166
166
 
167
- if attributes.key?(:'total_timeout')
168
- self.total_timeout = attributes[:'total_timeout']
167
+ if attributes.key?(:'client_cert')
168
+ self.client_cert = attributes[:'client_cert']
169
169
  end
170
170
 
171
- if attributes.key?(:'name')
172
- self.name = attributes[:'name']
171
+ if attributes.key?(:'headers')
172
+ if (value = attributes[:'headers']).is_a?(Array)
173
+ self.headers = value
174
+ end
173
175
  end
174
176
 
175
- if attributes.key?(:'ca_cert')
176
- self.ca_cert = attributes[:'ca_cert']
177
+ if attributes.key?(:'total_timeout')
178
+ self.total_timeout = attributes[:'total_timeout']
177
179
  end
178
180
 
179
- if attributes.key?(:'max_retries')
180
- self.max_retries = attributes[:'max_retries']
181
+ if attributes.key?(:'pulp_href')
182
+ self.pulp_href = attributes[:'pulp_href']
181
183
  end
182
184
 
183
185
  if attributes.key?(:'sock_connect_timeout')
184
186
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
185
187
  end
186
188
 
187
- if attributes.key?(:'connect_timeout')
188
- self.connect_timeout = attributes[:'connect_timeout']
189
- end
190
-
191
189
  if attributes.key?(:'url')
192
190
  self.url = attributes[:'url']
193
191
  end
194
192
 
195
- if attributes.key?(:'download_concurrency')
196
- self.download_concurrency = attributes[:'download_concurrency']
197
- end
198
-
199
- if attributes.key?(:'pulp_created')
200
- self.pulp_created = attributes[:'pulp_created']
193
+ if attributes.key?(:'ca_cert')
194
+ self.ca_cert = attributes[:'ca_cert']
201
195
  end
202
196
 
203
- if attributes.key?(:'pulp_href')
204
- self.pulp_href = attributes[:'pulp_href']
197
+ if attributes.key?(:'pulp_last_updated')
198
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
205
199
  end
206
200
 
207
201
  if attributes.key?(:'pulp_labels')
208
202
  self.pulp_labels = attributes[:'pulp_labels']
209
203
  end
210
204
 
211
- if attributes.key?(:'client_cert')
212
- self.client_cert = attributes[:'client_cert']
205
+ if attributes.key?(:'proxy_url')
206
+ self.proxy_url = attributes[:'proxy_url']
213
207
  end
214
208
 
215
- if attributes.key?(:'rate_limit')
216
- self.rate_limit = attributes[:'rate_limit']
209
+ if attributes.key?(:'tls_validation')
210
+ self.tls_validation = attributes[:'tls_validation']
217
211
  end
218
212
 
219
- if attributes.key?(:'headers')
220
- if (value = attributes[:'headers']).is_a?(Array)
221
- self.headers = value
222
- end
213
+ if attributes.key?(:'pulp_created')
214
+ self.pulp_created = attributes[:'pulp_created']
223
215
  end
224
216
 
225
- if attributes.key?(:'tls_validation')
226
- self.tls_validation = attributes[:'tls_validation']
217
+ if attributes.key?(:'name')
218
+ self.name = attributes[:'name']
227
219
  end
228
220
 
229
- if attributes.key?(:'pulp_last_updated')
230
- self.pulp_last_updated = attributes[:'pulp_last_updated']
221
+ if attributes.key?(:'max_retries')
222
+ self.max_retries = attributes[:'max_retries']
223
+ end
224
+
225
+ if attributes.key?(:'download_concurrency')
226
+ self.download_concurrency = attributes[:'download_concurrency']
227
+ end
228
+
229
+ if attributes.key?(:'rate_limit')
230
+ self.rate_limit = attributes[:'rate_limit']
231
231
  end
232
232
 
233
233
  if attributes.key?(:'metadata_only')
@@ -247,26 +247,26 @@ module PulpAnsibleClient
247
247
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
248
248
  end
249
249
 
250
- if !@total_timeout.nil? && @total_timeout < 0.0
251
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
250
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
251
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
252
252
  end
253
253
 
254
- if @name.nil?
255
- invalid_properties.push('invalid value for "name", name cannot be nil.')
254
+ if !@total_timeout.nil? && @total_timeout < 0.0
255
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
256
256
  end
257
257
 
258
258
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
259
259
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
260
260
  end
261
261
 
262
- if !@connect_timeout.nil? && @connect_timeout < 0.0
263
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
264
- end
265
-
266
262
  if @url.nil?
267
263
  invalid_properties.push('invalid value for "url", url cannot be nil.')
268
264
  end
269
265
 
266
+ if @name.nil?
267
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
268
+ end
269
+
270
270
  if !@download_concurrency.nil? && @download_concurrency < 1
271
271
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
272
272
  end
@@ -278,11 +278,11 @@ module PulpAnsibleClient
278
278
  # @return true if the model is valid
279
279
  def valid?
280
280
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
281
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
281
282
  return false if !@total_timeout.nil? && @total_timeout < 0.0
282
- return false if @name.nil?
283
283
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
285
284
  return false if @url.nil?
285
+ return false if @name.nil?
286
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
287
  true
288
288
  end
@@ -297,6 +297,16 @@ module PulpAnsibleClient
297
297
  @sock_read_timeout = sock_read_timeout
298
298
  end
299
299
 
300
+ # Custom attribute writer method with validation
301
+ # @param [Object] connect_timeout Value to be assigned
302
+ def connect_timeout=(connect_timeout)
303
+ if !connect_timeout.nil? && connect_timeout < 0.0
304
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
305
+ end
306
+
307
+ @connect_timeout = connect_timeout
308
+ end
309
+
300
310
  # Custom attribute writer method with validation
301
311
  # @param [Object] total_timeout Value to be assigned
302
312
  def total_timeout=(total_timeout)
@@ -317,16 +327,6 @@ module PulpAnsibleClient
317
327
  @sock_connect_timeout = sock_connect_timeout
318
328
  end
319
329
 
320
- # Custom attribute writer method with validation
321
- # @param [Object] connect_timeout Value to be assigned
322
- def connect_timeout=(connect_timeout)
323
- if !connect_timeout.nil? && connect_timeout < 0.0
324
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
325
- end
326
-
327
- @connect_timeout = connect_timeout
328
- end
329
-
330
330
  # Custom attribute writer method with validation
331
331
  # @param [Object] download_concurrency Value to be assigned
332
332
  def download_concurrency=(download_concurrency)
@@ -343,23 +343,23 @@ module PulpAnsibleClient
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
345
  sock_read_timeout == o.sock_read_timeout &&
346
- proxy_url == o.proxy_url &&
346
+ connect_timeout == o.connect_timeout &&
347
+ client_cert == o.client_cert &&
348
+ headers == o.headers &&
347
349
  total_timeout == o.total_timeout &&
348
- name == o.name &&
349
- ca_cert == o.ca_cert &&
350
- max_retries == o.max_retries &&
350
+ pulp_href == o.pulp_href &&
351
351
  sock_connect_timeout == o.sock_connect_timeout &&
352
- connect_timeout == o.connect_timeout &&
353
352
  url == o.url &&
354
- download_concurrency == o.download_concurrency &&
355
- pulp_created == o.pulp_created &&
356
- pulp_href == o.pulp_href &&
353
+ ca_cert == o.ca_cert &&
354
+ pulp_last_updated == o.pulp_last_updated &&
357
355
  pulp_labels == o.pulp_labels &&
358
- client_cert == o.client_cert &&
359
- rate_limit == o.rate_limit &&
360
- headers == o.headers &&
356
+ proxy_url == o.proxy_url &&
361
357
  tls_validation == o.tls_validation &&
362
- pulp_last_updated == o.pulp_last_updated &&
358
+ pulp_created == o.pulp_created &&
359
+ name == o.name &&
360
+ max_retries == o.max_retries &&
361
+ download_concurrency == o.download_concurrency &&
362
+ rate_limit == o.rate_limit &&
363
363
  metadata_only == o.metadata_only &&
364
364
  git_ref == o.git_ref
365
365
  end
@@ -373,7 +373,7 @@ module PulpAnsibleClient
373
373
  # Calculates hash code according to all attributes.
374
374
  # @return [Integer] Hash code
375
375
  def hash
376
- [sock_read_timeout, proxy_url, total_timeout, name, ca_cert, max_retries, sock_connect_timeout, connect_timeout, url, download_concurrency, pulp_created, pulp_href, pulp_labels, client_cert, rate_limit, headers, tls_validation, pulp_last_updated, metadata_only, git_ref].hash
376
+ [sock_read_timeout, connect_timeout, client_cert, headers, total_timeout, pulp_href, sock_connect_timeout, url, ca_cert, pulp_last_updated, pulp_labels, proxy_url, tls_validation, pulp_created, name, max_retries, download_concurrency, rate_limit, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash