pulp_ansible_client 0.11.0.dev1636427751 → 0.11.0.dev1636773338

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