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