pulp_ansible_client 0.11.0.dev1636686953 → 0.11.0.dev1636773338

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

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