pulp_ansible_client 0.21.3 → 0.21.5

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