pulp_ansible_client 0.12.0.dev1641007063 → 0.12.0.dev1641352582

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