pulp_ansible_client 0.17.5 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,45 +18,40 @@ module PulpAnsibleClient
18
18
  # 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.
19
19
  attr_accessor :sock_read_timeout
20
20
 
21
+ attr_accessor :pulp_labels
22
+
21
23
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
22
24
  attr_accessor :max_retries
23
25
 
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
26
-
27
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
28
- attr_accessor :connect_timeout
29
-
30
- # A PEM encoded client certificate used for authentication.
31
- attr_accessor :client_cert
26
+ # Limits requests per second for each concurrent downloader
27
+ attr_accessor :rate_limit
32
28
 
33
29
  # Timestamp of the most recent update of the remote.
34
30
  attr_accessor :pulp_last_updated
35
31
 
36
- # A unique name for this remote.
37
- attr_accessor :name
38
-
39
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
- attr_accessor :total_timeout
41
-
42
32
  # Headers for aiohttp.Clientsession
43
33
  attr_accessor :headers
44
34
 
45
35
  # If True, TLS peer validation must be performed.
46
36
  attr_accessor :tls_validation
47
37
 
48
- attr_accessor :pulp_labels
38
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
+ attr_accessor :total_timeout
49
40
 
50
- attr_accessor :pulp_href
41
+ # The proxy URL. Format: scheme://host:port
42
+ attr_accessor :proxy_url
51
43
 
52
- # Limits requests per second for each concurrent downloader
53
- attr_accessor :rate_limit
44
+ # Timestamp of creation.
45
+ attr_accessor :pulp_created
54
46
 
55
- # The URL of an external content source.
56
- attr_accessor :url
47
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
+ attr_accessor :connect_timeout
57
49
 
58
- # 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.
59
- attr_accessor :sock_connect_timeout
50
+ # A unique name for this remote.
51
+ attr_accessor :name
52
+
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
+ attr_accessor :download_concurrency
60
55
 
61
56
  # List of hidden (write only) fields
62
57
  attr_accessor :hidden_fields
@@ -64,11 +59,16 @@ module PulpAnsibleClient
64
59
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
65
60
  attr_accessor :ca_cert
66
61
 
67
- # The proxy URL. Format: scheme://host:port
68
- attr_accessor :proxy_url
62
+ attr_accessor :pulp_href
69
63
 
70
- # Timestamp of creation.
71
- attr_accessor :pulp_created
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
66
+
67
+ # A PEM encoded client certificate used for authentication.
68
+ attr_accessor :client_cert
69
+
70
+ # The URL of an external content source.
71
+ attr_accessor :url
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -80,24 +80,24 @@ module PulpAnsibleClient
80
80
  def self.attribute_map
81
81
  {
82
82
  :'sock_read_timeout' => :'sock_read_timeout',
83
+ :'pulp_labels' => :'pulp_labels',
83
84
  :'max_retries' => :'max_retries',
84
- :'download_concurrency' => :'download_concurrency',
85
- :'connect_timeout' => :'connect_timeout',
86
- :'client_cert' => :'client_cert',
85
+ :'rate_limit' => :'rate_limit',
87
86
  :'pulp_last_updated' => :'pulp_last_updated',
88
- :'name' => :'name',
89
- :'total_timeout' => :'total_timeout',
90
87
  :'headers' => :'headers',
91
88
  :'tls_validation' => :'tls_validation',
92
- :'pulp_labels' => :'pulp_labels',
93
- :'pulp_href' => :'pulp_href',
94
- :'rate_limit' => :'rate_limit',
95
- :'url' => :'url',
96
- :'sock_connect_timeout' => :'sock_connect_timeout',
97
- :'hidden_fields' => :'hidden_fields',
98
- :'ca_cert' => :'ca_cert',
89
+ :'total_timeout' => :'total_timeout',
99
90
  :'proxy_url' => :'proxy_url',
100
91
  :'pulp_created' => :'pulp_created',
92
+ :'connect_timeout' => :'connect_timeout',
93
+ :'name' => :'name',
94
+ :'download_concurrency' => :'download_concurrency',
95
+ :'hidden_fields' => :'hidden_fields',
96
+ :'ca_cert' => :'ca_cert',
97
+ :'pulp_href' => :'pulp_href',
98
+ :'sock_connect_timeout' => :'sock_connect_timeout',
99
+ :'client_cert' => :'client_cert',
100
+ :'url' => :'url',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -107,24 +107,24 @@ module PulpAnsibleClient
107
107
  def self.openapi_types
108
108
  {
109
109
  :'sock_read_timeout' => :'Float',
110
+ :'pulp_labels' => :'Hash<String, String>',
110
111
  :'max_retries' => :'Integer',
111
- :'download_concurrency' => :'Integer',
112
- :'connect_timeout' => :'Float',
113
- :'client_cert' => :'String',
112
+ :'rate_limit' => :'Integer',
114
113
  :'pulp_last_updated' => :'DateTime',
115
- :'name' => :'String',
116
- :'total_timeout' => :'Float',
117
114
  :'headers' => :'Array<Object>',
118
115
  :'tls_validation' => :'Boolean',
119
- :'pulp_labels' => :'Hash<String, String>',
120
- :'pulp_href' => :'String',
121
- :'rate_limit' => :'Integer',
122
- :'url' => :'String',
123
- :'sock_connect_timeout' => :'Float',
124
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
125
- :'ca_cert' => :'String',
116
+ :'total_timeout' => :'Float',
126
117
  :'proxy_url' => :'String',
127
118
  :'pulp_created' => :'DateTime',
119
+ :'connect_timeout' => :'Float',
120
+ :'name' => :'String',
121
+ :'download_concurrency' => :'Integer',
122
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
+ :'ca_cert' => :'String',
124
+ :'pulp_href' => :'String',
125
+ :'sock_connect_timeout' => :'Float',
126
+ :'client_cert' => :'String',
127
+ :'url' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -135,14 +135,14 @@ module PulpAnsibleClient
135
135
  Set.new([
136
136
  :'sock_read_timeout',
137
137
  :'max_retries',
138
- :'download_concurrency',
139
- :'connect_timeout',
140
- :'client_cert',
141
- :'total_timeout',
142
138
  :'rate_limit',
143
- :'sock_connect_timeout',
144
- :'ca_cert',
139
+ :'total_timeout',
145
140
  :'proxy_url',
141
+ :'connect_timeout',
142
+ :'download_concurrency',
143
+ :'ca_cert',
144
+ :'sock_connect_timeout',
145
+ :'client_cert',
146
146
  ])
147
147
  end
148
148
 
@@ -165,34 +165,24 @@ module PulpAnsibleClient
165
165
  self.sock_read_timeout = attributes[:'sock_read_timeout']
166
166
  end
167
167
 
168
- if attributes.key?(:'max_retries')
169
- self.max_retries = attributes[:'max_retries']
170
- end
171
-
172
- if attributes.key?(:'download_concurrency')
173
- self.download_concurrency = attributes[:'download_concurrency']
168
+ if attributes.key?(:'pulp_labels')
169
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
170
+ self.pulp_labels = value
171
+ end
174
172
  end
175
173
 
176
- if attributes.key?(:'connect_timeout')
177
- self.connect_timeout = attributes[:'connect_timeout']
174
+ if attributes.key?(:'max_retries')
175
+ self.max_retries = attributes[:'max_retries']
178
176
  end
179
177
 
180
- if attributes.key?(:'client_cert')
181
- self.client_cert = attributes[:'client_cert']
178
+ if attributes.key?(:'rate_limit')
179
+ self.rate_limit = attributes[:'rate_limit']
182
180
  end
183
181
 
184
182
  if attributes.key?(:'pulp_last_updated')
185
183
  self.pulp_last_updated = attributes[:'pulp_last_updated']
186
184
  end
187
185
 
188
- if attributes.key?(:'name')
189
- self.name = attributes[:'name']
190
- end
191
-
192
- if attributes.key?(:'total_timeout')
193
- self.total_timeout = attributes[:'total_timeout']
194
- end
195
-
196
186
  if attributes.key?(:'headers')
197
187
  if (value = attributes[:'headers']).is_a?(Array)
198
188
  self.headers = value
@@ -203,26 +193,28 @@ module PulpAnsibleClient
203
193
  self.tls_validation = attributes[:'tls_validation']
204
194
  end
205
195
 
206
- if attributes.key?(:'pulp_labels')
207
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
208
- self.pulp_labels = value
209
- end
196
+ if attributes.key?(:'total_timeout')
197
+ self.total_timeout = attributes[:'total_timeout']
210
198
  end
211
199
 
212
- if attributes.key?(:'pulp_href')
213
- self.pulp_href = attributes[:'pulp_href']
200
+ if attributes.key?(:'proxy_url')
201
+ self.proxy_url = attributes[:'proxy_url']
214
202
  end
215
203
 
216
- if attributes.key?(:'rate_limit')
217
- self.rate_limit = attributes[:'rate_limit']
204
+ if attributes.key?(:'pulp_created')
205
+ self.pulp_created = attributes[:'pulp_created']
218
206
  end
219
207
 
220
- if attributes.key?(:'url')
221
- self.url = attributes[:'url']
208
+ if attributes.key?(:'connect_timeout')
209
+ self.connect_timeout = attributes[:'connect_timeout']
222
210
  end
223
211
 
224
- if attributes.key?(:'sock_connect_timeout')
225
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
212
+ if attributes.key?(:'name')
213
+ self.name = attributes[:'name']
214
+ end
215
+
216
+ if attributes.key?(:'download_concurrency')
217
+ self.download_concurrency = attributes[:'download_concurrency']
226
218
  end
227
219
 
228
220
  if attributes.key?(:'hidden_fields')
@@ -235,12 +227,20 @@ module PulpAnsibleClient
235
227
  self.ca_cert = attributes[:'ca_cert']
236
228
  end
237
229
 
238
- if attributes.key?(:'proxy_url')
239
- self.proxy_url = attributes[:'proxy_url']
230
+ if attributes.key?(:'pulp_href')
231
+ self.pulp_href = attributes[:'pulp_href']
240
232
  end
241
233
 
242
- if attributes.key?(:'pulp_created')
243
- self.pulp_created = attributes[:'pulp_created']
234
+ if attributes.key?(:'sock_connect_timeout')
235
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
236
+ end
237
+
238
+ if attributes.key?(:'client_cert')
239
+ self.client_cert = attributes[:'client_cert']
240
+ end
241
+
242
+ if attributes.key?(:'url')
243
+ self.url = attributes[:'url']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -260,8 +260,8 @@ module PulpAnsibleClient
260
260
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
- if !@download_concurrency.nil? && @download_concurrency < 1
264
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
263
+ if !@total_timeout.nil? && @total_timeout < 0.0
264
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
265
265
  end
266
266
 
267
267
  if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -272,18 +272,18 @@ module PulpAnsibleClient
272
272
  invalid_properties.push('invalid value for "name", name cannot be nil.')
273
273
  end
274
274
 
275
- if !@total_timeout.nil? && @total_timeout < 0.0
276
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
277
- end
278
-
279
- if @url.nil?
280
- invalid_properties.push('invalid value for "url", url cannot be nil.')
275
+ if !@download_concurrency.nil? && @download_concurrency < 1
276
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
277
  end
282
278
 
283
279
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
280
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
285
281
  end
286
282
 
283
+ if @url.nil?
284
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
285
+ end
286
+
287
287
  invalid_properties
288
288
  end
289
289
 
@@ -291,12 +291,12 @@ module PulpAnsibleClient
291
291
  # @return true if the model is valid
292
292
  def valid?
293
293
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
294
- return false if !@download_concurrency.nil? && @download_concurrency < 1
294
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
295
295
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
296
  return false if @name.nil?
297
- return false if !@total_timeout.nil? && @total_timeout < 0.0
298
- return false if @url.nil?
297
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
299
298
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
+ return false if @url.nil?
300
300
  true
301
301
  end
302
302
 
@@ -311,13 +311,13 @@ module PulpAnsibleClient
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] download_concurrency Value to be assigned
315
- def download_concurrency=(download_concurrency)
316
- if !download_concurrency.nil? && download_concurrency < 1
317
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
314
+ # @param [Object] total_timeout Value to be assigned
315
+ def total_timeout=(total_timeout)
316
+ if !total_timeout.nil? && total_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @download_concurrency = download_concurrency
320
+ @total_timeout = total_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -331,13 +331,13 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] total_timeout Value to be assigned
335
- def total_timeout=(total_timeout)
336
- if !total_timeout.nil? && total_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
334
+ # @param [Object] download_concurrency Value to be assigned
335
+ def download_concurrency=(download_concurrency)
336
+ if !download_concurrency.nil? && download_concurrency < 1
337
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
338
338
  end
339
339
 
340
- @total_timeout = total_timeout
340
+ @download_concurrency = download_concurrency
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
@@ -356,24 +356,24 @@ module PulpAnsibleClient
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
358
  sock_read_timeout == o.sock_read_timeout &&
359
+ pulp_labels == o.pulp_labels &&
359
360
  max_retries == o.max_retries &&
360
- download_concurrency == o.download_concurrency &&
361
- connect_timeout == o.connect_timeout &&
362
- client_cert == o.client_cert &&
361
+ rate_limit == o.rate_limit &&
363
362
  pulp_last_updated == o.pulp_last_updated &&
364
- name == o.name &&
365
- total_timeout == o.total_timeout &&
366
363
  headers == o.headers &&
367
364
  tls_validation == o.tls_validation &&
368
- pulp_labels == o.pulp_labels &&
369
- pulp_href == o.pulp_href &&
370
- rate_limit == o.rate_limit &&
371
- url == o.url &&
372
- sock_connect_timeout == o.sock_connect_timeout &&
373
- hidden_fields == o.hidden_fields &&
374
- ca_cert == o.ca_cert &&
365
+ total_timeout == o.total_timeout &&
375
366
  proxy_url == o.proxy_url &&
376
367
  pulp_created == o.pulp_created &&
368
+ connect_timeout == o.connect_timeout &&
369
+ name == o.name &&
370
+ download_concurrency == o.download_concurrency &&
371
+ hidden_fields == o.hidden_fields &&
372
+ ca_cert == o.ca_cert &&
373
+ pulp_href == o.pulp_href &&
374
+ sock_connect_timeout == o.sock_connect_timeout &&
375
+ client_cert == o.client_cert &&
376
+ url == o.url &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [sock_read_timeout, max_retries, download_concurrency, connect_timeout, client_cert, pulp_last_updated, name, total_timeout, headers, tls_validation, pulp_labels, pulp_href, rate_limit, url, sock_connect_timeout, hidden_fields, ca_cert, proxy_url, pulp_created, metadata_only, git_ref].hash
390
+ [sock_read_timeout, pulp_labels, max_retries, rate_limit, pulp_last_updated, headers, tls_validation, total_timeout, proxy_url, pulp_created, connect_timeout, name, download_concurrency, hidden_fields, ca_cert, pulp_href, sock_connect_timeout, client_cert, url, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -17,12 +17,12 @@ module PulpAnsibleClient
17
17
  class AnsibleRoleResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # Artifact file representing the physical content
21
- attr_accessor :artifact
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
23
+ # Artifact file representing the physical content
24
+ attr_accessor :artifact
25
+
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'pulp_href' => :'pulp_href',
36
- :'artifact' => :'artifact',
37
36
  :'pulp_created' => :'pulp_created',
37
+ :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -45,8 +45,8 @@ module PulpAnsibleClient
45
45
  def self.openapi_types
46
46
  {
47
47
  :'pulp_href' => :'String',
48
- :'artifact' => :'String',
49
48
  :'pulp_created' => :'DateTime',
49
+ :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  self.pulp_href = attributes[:'pulp_href']
79
79
  end
80
80
 
81
- if attributes.key?(:'artifact')
82
- self.artifact = attributes[:'artifact']
83
- end
84
-
85
81
  if attributes.key?(:'pulp_created')
86
82
  self.pulp_created = attributes[:'pulp_created']
87
83
  end
88
84
 
85
+ if attributes.key?(:'artifact')
86
+ self.artifact = attributes[:'artifact']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -138,8 +138,8 @@ module PulpAnsibleClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  pulp_href == o.pulp_href &&
141
- artifact == o.artifact &&
142
141
  pulp_created == o.pulp_created &&
142
+ artifact == o.artifact &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -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_href, artifact, pulp_created, 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