pulp_ansible_client 0.11.0.dev1636600545 → 0.11.0.dev1636946173

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