pulp_ansible_client 0.11.0.dev1636254912 → 0.11.0.dev1636600545

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