pulp_ansible_client 0.12.0.dev1641352582 → 0.12.0.dev1641439175

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.

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