pulp_ansible_client 0.12.0.dev1641179827 → 0.12.0.dev1641525578

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.

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