pulp_ansible_client 0.29.2 → 0.29.3

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/AnsibleCollectionRemote.md +6 -6
  4. data/docs/AnsibleCollectionRemoteResponse.md +8 -8
  5. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  6. data/docs/AnsibleGitRemote.md +28 -28
  7. data/docs/AnsibleGitRemoteResponse.md +28 -28
  8. data/docs/AnsibleRoleRemote.md +6 -6
  9. data/docs/AnsibleRoleRemoteResponse.md +9 -9
  10. data/docs/AnsibleRoleResponse.md +6 -6
  11. data/docs/ContentCollectionSignaturesApi.md +3 -1
  12. data/docs/ContentCollectionVersionsApi.md +4 -2
  13. data/docs/PatchedansibleCollectionRemote.md +6 -6
  14. data/docs/PatchedansibleGitRemote.md +28 -28
  15. data/docs/PatchedansibleRoleRemote.md +6 -6
  16. data/docs/RemoteNetworkConfig.md +50 -0
  17. data/docs/RemoteNetworkConfigResponse.md +40 -0
  18. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  19. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -3
  20. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +33 -33
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +45 -45
  22. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +32 -32
  23. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +253 -253
  24. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +152 -152
  25. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +33 -33
  26. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +49 -49
  27. data/lib/pulp_ansible_client/models/ansible_role_response.rb +32 -32
  28. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +33 -33
  29. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +244 -244
  30. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +33 -33
  31. data/lib/pulp_ansible_client/models/remote_network_config.rb +573 -0
  32. data/lib/pulp_ansible_client/models/remote_network_config_response.rb +398 -0
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/lib/pulp_ansible_client.rb +2 -0
  35. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  36. data/spec/api/content_collection_versions_api_spec.rb +2 -1
  37. data/spec/models/ansible_collection_remote_response_spec.rb +10 -10
  38. data/spec/models/ansible_collection_remote_spec.rb +17 -17
  39. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  40. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  41. data/spec/models/ansible_git_remote_spec.rb +19 -19
  42. data/spec/models/ansible_role_remote_response_spec.rb +10 -10
  43. data/spec/models/ansible_role_remote_spec.rb +17 -17
  44. data/spec/models/ansible_role_response_spec.rb +6 -6
  45. data/spec/models/patchedansible_collection_remote_spec.rb +17 -17
  46. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  47. data/spec/models/patchedansible_role_remote_spec.rb +17 -17
  48. data/spec/models/remote_network_config_response_spec.rb +102 -0
  49. data/spec/models/remote_network_config_spec.rb +132 -0
  50. metadata +10 -2
@@ -16,63 +16,63 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemoteResponse
19
- # List of hidden (write only) fields
20
- attr_accessor :hidden_fields
19
+ # The URL of an external content source.
20
+ attr_accessor :url
21
21
 
22
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
23
- attr_accessor :total_timeout
22
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
23
+ attr_accessor :max_retries
24
24
 
25
- # 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.
26
- attr_accessor :sock_read_timeout
25
+ # The proxy URL. Format: scheme://host:port
26
+ attr_accessor :proxy_url
27
+
28
+ # Headers for aiohttp.Clientsession
29
+ attr_accessor :headers
30
+
31
+ # A unique name for this remote.
32
+ attr_accessor :name
27
33
 
28
34
  # Total number of simultaneous connections. If not set then the default value will be used.
29
35
  attr_accessor :download_concurrency
30
36
 
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
37
  # A PEM encoded client certificate used for authentication.
35
38
  attr_accessor :client_cert
36
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
+
37
43
  # If True, TLS peer validation must be performed.
38
44
  attr_accessor :tls_validation
39
45
 
40
- attr_accessor :pulp_labels
41
-
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
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
46
- attr_accessor :ca_cert
47
-
48
- # The proxy URL. Format: scheme://host:port
49
- attr_accessor :proxy_url
46
+ attr_accessor :pulp_href
50
47
 
51
- # The Pulp Resource Name (PRN).
52
- attr_accessor :prn
48
+ # 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.
49
+ attr_accessor :sock_read_timeout
53
50
 
54
51
  # Limits requests per second for each concurrent downloader
55
52
  attr_accessor :rate_limit
56
53
 
57
- # Headers for aiohttp.Clientsession
58
- attr_accessor :headers
54
+ # Timestamp of the most recent update of the remote.
55
+ attr_accessor :pulp_last_updated
56
+
57
+ # 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.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # List of hidden (write only) fields
61
+ attr_accessor :hidden_fields
59
62
 
60
63
  # Timestamp of creation.
61
64
  attr_accessor :pulp_created
62
65
 
63
- # Timestamp of the most recent update of the remote.
64
- attr_accessor :pulp_last_updated
65
-
66
- # The URL of an external content source.
67
- attr_accessor :url
66
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
67
+ attr_accessor :ca_cert
68
68
 
69
- attr_accessor :pulp_href
69
+ # The Pulp Resource Name (PRN).
70
+ attr_accessor :prn
70
71
 
71
- # 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.
72
- attr_accessor :sock_connect_timeout
72
+ attr_accessor :pulp_labels
73
73
 
74
- # A unique name for this remote.
75
- attr_accessor :name
74
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
+ attr_accessor :connect_timeout
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'hidden_fields' => :'hidden_fields',
87
- :'total_timeout' => :'total_timeout',
88
- :'sock_read_timeout' => :'sock_read_timeout',
89
- :'download_concurrency' => :'download_concurrency',
86
+ :'url' => :'url',
90
87
  :'max_retries' => :'max_retries',
88
+ :'proxy_url' => :'proxy_url',
89
+ :'headers' => :'headers',
90
+ :'name' => :'name',
91
+ :'download_concurrency' => :'download_concurrency',
91
92
  :'client_cert' => :'client_cert',
93
+ :'total_timeout' => :'total_timeout',
92
94
  :'tls_validation' => :'tls_validation',
93
- :'pulp_labels' => :'pulp_labels',
94
- :'connect_timeout' => :'connect_timeout',
95
- :'ca_cert' => :'ca_cert',
96
- :'proxy_url' => :'proxy_url',
97
- :'prn' => :'prn',
95
+ :'pulp_href' => :'pulp_href',
96
+ :'sock_read_timeout' => :'sock_read_timeout',
98
97
  :'rate_limit' => :'rate_limit',
99
- :'headers' => :'headers',
100
- :'pulp_created' => :'pulp_created',
101
98
  :'pulp_last_updated' => :'pulp_last_updated',
102
- :'url' => :'url',
103
- :'pulp_href' => :'pulp_href',
104
99
  :'sock_connect_timeout' => :'sock_connect_timeout',
105
- :'name' => :'name',
100
+ :'hidden_fields' => :'hidden_fields',
101
+ :'pulp_created' => :'pulp_created',
102
+ :'ca_cert' => :'ca_cert',
103
+ :'prn' => :'prn',
104
+ :'pulp_labels' => :'pulp_labels',
105
+ :'connect_timeout' => :'connect_timeout',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -116,26 +116,26 @@ module PulpAnsibleClient
116
116
  # Attribute type mapping.
117
117
  def self.openapi_types
118
118
  {
119
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
120
- :'total_timeout' => :'Float',
121
- :'sock_read_timeout' => :'Float',
122
- :'download_concurrency' => :'Integer',
119
+ :'url' => :'String',
123
120
  :'max_retries' => :'Integer',
121
+ :'proxy_url' => :'String',
122
+ :'headers' => :'Array<Object>',
123
+ :'name' => :'String',
124
+ :'download_concurrency' => :'Integer',
124
125
  :'client_cert' => :'String',
126
+ :'total_timeout' => :'Float',
125
127
  :'tls_validation' => :'Boolean',
126
- :'pulp_labels' => :'Hash<String, String>',
127
- :'connect_timeout' => :'Float',
128
- :'ca_cert' => :'String',
129
- :'proxy_url' => :'String',
130
- :'prn' => :'String',
128
+ :'pulp_href' => :'String',
129
+ :'sock_read_timeout' => :'Float',
131
130
  :'rate_limit' => :'Integer',
132
- :'headers' => :'Array<Object>',
133
- :'pulp_created' => :'Time',
134
131
  :'pulp_last_updated' => :'Time',
135
- :'url' => :'String',
136
- :'pulp_href' => :'String',
137
132
  :'sock_connect_timeout' => :'Float',
138
- :'name' => :'String',
133
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
134
+ :'pulp_created' => :'Time',
135
+ :'ca_cert' => :'String',
136
+ :'prn' => :'String',
137
+ :'pulp_labels' => :'Hash<String, String>',
138
+ :'connect_timeout' => :'Float',
139
139
  :'metadata_only' => :'Boolean',
140
140
  :'git_ref' => :'String'
141
141
  }
@@ -144,16 +144,16 @@ module PulpAnsibleClient
144
144
  # List of attributes with nullable: true
145
145
  def self.openapi_nullable
146
146
  Set.new([
147
- :'total_timeout',
148
- :'sock_read_timeout',
149
- :'download_concurrency',
150
147
  :'max_retries',
151
- :'client_cert',
152
- :'connect_timeout',
153
- :'ca_cert',
154
148
  :'proxy_url',
149
+ :'download_concurrency',
150
+ :'client_cert',
151
+ :'total_timeout',
152
+ :'sock_read_timeout',
155
153
  :'rate_limit',
156
154
  :'sock_connect_timeout',
155
+ :'ca_cert',
156
+ :'connect_timeout',
157
157
  ])
158
158
  end
159
159
 
@@ -172,65 +172,71 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'hidden_fields')
176
- if (value = attributes[:'hidden_fields']).is_a?(Array)
177
- self.hidden_fields = value
178
- end
175
+ if attributes.key?(:'url')
176
+ self.url = attributes[:'url']
177
+ else
178
+ self.url = nil
179
179
  end
180
180
 
181
- if attributes.key?(:'total_timeout')
182
- self.total_timeout = attributes[:'total_timeout']
181
+ if attributes.key?(:'max_retries')
182
+ self.max_retries = attributes[:'max_retries']
183
183
  end
184
184
 
185
- if attributes.key?(:'sock_read_timeout')
186
- self.sock_read_timeout = attributes[:'sock_read_timeout']
185
+ if attributes.key?(:'proxy_url')
186
+ self.proxy_url = attributes[:'proxy_url']
187
187
  end
188
188
 
189
- if attributes.key?(:'download_concurrency')
190
- self.download_concurrency = attributes[:'download_concurrency']
189
+ if attributes.key?(:'headers')
190
+ if (value = attributes[:'headers']).is_a?(Array)
191
+ self.headers = value
192
+ end
191
193
  end
192
194
 
193
- if attributes.key?(:'max_retries')
194
- self.max_retries = attributes[:'max_retries']
195
+ if attributes.key?(:'name')
196
+ self.name = attributes[:'name']
197
+ else
198
+ self.name = nil
199
+ end
200
+
201
+ if attributes.key?(:'download_concurrency')
202
+ self.download_concurrency = attributes[:'download_concurrency']
195
203
  end
196
204
 
197
205
  if attributes.key?(:'client_cert')
198
206
  self.client_cert = attributes[:'client_cert']
199
207
  end
200
208
 
201
- if attributes.key?(:'tls_validation')
202
- self.tls_validation = attributes[:'tls_validation']
209
+ if attributes.key?(:'total_timeout')
210
+ self.total_timeout = attributes[:'total_timeout']
203
211
  end
204
212
 
205
- if attributes.key?(:'pulp_labels')
206
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
207
- self.pulp_labels = value
208
- end
213
+ if attributes.key?(:'tls_validation')
214
+ self.tls_validation = attributes[:'tls_validation']
209
215
  end
210
216
 
211
- if attributes.key?(:'connect_timeout')
212
- self.connect_timeout = attributes[:'connect_timeout']
217
+ if attributes.key?(:'pulp_href')
218
+ self.pulp_href = attributes[:'pulp_href']
213
219
  end
214
220
 
215
- if attributes.key?(:'ca_cert')
216
- self.ca_cert = attributes[:'ca_cert']
221
+ if attributes.key?(:'sock_read_timeout')
222
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
217
223
  end
218
224
 
219
- if attributes.key?(:'proxy_url')
220
- self.proxy_url = attributes[:'proxy_url']
225
+ if attributes.key?(:'rate_limit')
226
+ self.rate_limit = attributes[:'rate_limit']
221
227
  end
222
228
 
223
- if attributes.key?(:'prn')
224
- self.prn = attributes[:'prn']
229
+ if attributes.key?(:'pulp_last_updated')
230
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
225
231
  end
226
232
 
227
- if attributes.key?(:'rate_limit')
228
- self.rate_limit = attributes[:'rate_limit']
233
+ if attributes.key?(:'sock_connect_timeout')
234
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
229
235
  end
230
236
 
231
- if attributes.key?(:'headers')
232
- if (value = attributes[:'headers']).is_a?(Array)
233
- self.headers = value
237
+ if attributes.key?(:'hidden_fields')
238
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
239
+ self.hidden_fields = value
234
240
  end
235
241
  end
236
242
 
@@ -238,28 +244,22 @@ module PulpAnsibleClient
238
244
  self.pulp_created = attributes[:'pulp_created']
239
245
  end
240
246
 
241
- if attributes.key?(:'pulp_last_updated')
242
- self.pulp_last_updated = attributes[:'pulp_last_updated']
243
- end
244
-
245
- if attributes.key?(:'url')
246
- self.url = attributes[:'url']
247
- else
248
- self.url = nil
247
+ if attributes.key?(:'ca_cert')
248
+ self.ca_cert = attributes[:'ca_cert']
249
249
  end
250
250
 
251
- if attributes.key?(:'pulp_href')
252
- self.pulp_href = attributes[:'pulp_href']
251
+ if attributes.key?(:'prn')
252
+ self.prn = attributes[:'prn']
253
253
  end
254
254
 
255
- if attributes.key?(:'sock_connect_timeout')
256
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
255
+ if attributes.key?(:'pulp_labels')
256
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
257
+ self.pulp_labels = value
258
+ end
257
259
  end
258
260
 
259
- if attributes.key?(:'name')
260
- self.name = attributes[:'name']
261
- else
262
- self.name = nil
261
+ if attributes.key?(:'connect_timeout')
262
+ self.connect_timeout = attributes[:'connect_timeout']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,28 +276,28 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
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.')
279
+ if @url.nil?
280
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
281
281
  end
282
282
 
283
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
283
+ if @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
285
285
  end
286
286
 
287
- if !@connect_timeout.nil? && @connect_timeout < 0.0
288
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
287
+ if !@total_timeout.nil? && @total_timeout < 0.0
288
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
289
289
  end
290
290
 
291
- if @url.nil?
292
- invalid_properties.push('invalid value for "url", url cannot be nil.')
291
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
292
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
293
293
  end
294
294
 
295
295
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
296
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
297
297
  end
298
298
 
299
- if @name.nil?
300
- invalid_properties.push('invalid value for "name", name cannot be nil.')
299
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
300
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
301
301
  end
302
302
 
303
303
  invalid_properties
@@ -307,12 +307,12 @@ module PulpAnsibleClient
307
307
  # @return true if the model is valid
308
308
  def valid?
309
309
  warn '[DEPRECATED] the `valid?` method is obsolete'
310
+ return false if @url.nil?
311
+ return false if @name.nil?
310
312
  return false if !@total_timeout.nil? && @total_timeout < 0.0
311
313
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
312
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
313
- return false if @url.nil?
314
314
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
315
- return false if @name.nil?
315
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
316
316
  true
317
317
  end
318
318
 
@@ -336,16 +336,6 @@ module PulpAnsibleClient
336
336
  @sock_read_timeout = sock_read_timeout
337
337
  end
338
338
 
339
- # Custom attribute writer method with validation
340
- # @param [Object] connect_timeout Value to be assigned
341
- def connect_timeout=(connect_timeout)
342
- if !connect_timeout.nil? && connect_timeout < 0.0
343
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
344
- end
345
-
346
- @connect_timeout = connect_timeout
347
- end
348
-
349
339
  # Custom attribute writer method with validation
350
340
  # @param [Object] sock_connect_timeout Value to be assigned
351
341
  def sock_connect_timeout=(sock_connect_timeout)
@@ -356,31 +346,41 @@ module PulpAnsibleClient
356
346
  @sock_connect_timeout = sock_connect_timeout
357
347
  end
358
348
 
349
+ # Custom attribute writer method with validation
350
+ # @param [Object] connect_timeout Value to be assigned
351
+ def connect_timeout=(connect_timeout)
352
+ if !connect_timeout.nil? && connect_timeout < 0.0
353
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
354
+ end
355
+
356
+ @connect_timeout = connect_timeout
357
+ end
358
+
359
359
  # Checks equality by comparing each attribute.
360
360
  # @param [Object] Object to be compared
361
361
  def ==(o)
362
362
  return true if self.equal?(o)
363
363
  self.class == o.class &&
364
- hidden_fields == o.hidden_fields &&
365
- total_timeout == o.total_timeout &&
366
- sock_read_timeout == o.sock_read_timeout &&
367
- download_concurrency == o.download_concurrency &&
364
+ url == o.url &&
368
365
  max_retries == o.max_retries &&
366
+ proxy_url == o.proxy_url &&
367
+ headers == o.headers &&
368
+ name == o.name &&
369
+ download_concurrency == o.download_concurrency &&
369
370
  client_cert == o.client_cert &&
371
+ total_timeout == o.total_timeout &&
370
372
  tls_validation == o.tls_validation &&
371
- pulp_labels == o.pulp_labels &&
372
- connect_timeout == o.connect_timeout &&
373
- ca_cert == o.ca_cert &&
374
- proxy_url == o.proxy_url &&
375
- prn == o.prn &&
373
+ pulp_href == o.pulp_href &&
374
+ sock_read_timeout == o.sock_read_timeout &&
376
375
  rate_limit == o.rate_limit &&
377
- headers == o.headers &&
378
- pulp_created == o.pulp_created &&
379
376
  pulp_last_updated == o.pulp_last_updated &&
380
- url == o.url &&
381
- pulp_href == o.pulp_href &&
382
377
  sock_connect_timeout == o.sock_connect_timeout &&
383
- name == o.name &&
378
+ hidden_fields == o.hidden_fields &&
379
+ pulp_created == o.pulp_created &&
380
+ ca_cert == o.ca_cert &&
381
+ prn == o.prn &&
382
+ pulp_labels == o.pulp_labels &&
383
+ connect_timeout == o.connect_timeout &&
384
384
  metadata_only == o.metadata_only &&
385
385
  git_ref == o.git_ref
386
386
  end
@@ -394,7 +394,7 @@ module PulpAnsibleClient
394
394
  # Calculates hash code according to all attributes.
395
395
  # @return [Integer] Hash code
396
396
  def hash
397
- [hidden_fields, total_timeout, sock_read_timeout, download_concurrency, max_retries, client_cert, tls_validation, pulp_labels, connect_timeout, ca_cert, proxy_url, prn, rate_limit, headers, pulp_created, pulp_last_updated, url, pulp_href, sock_connect_timeout, name, metadata_only, git_ref].hash
397
+ [url, max_retries, proxy_url, headers, name, download_concurrency, client_cert, total_timeout, tls_validation, pulp_href, sock_read_timeout, rate_limit, pulp_last_updated, sock_connect_timeout, hidden_fields, pulp_created, ca_cert, prn, pulp_labels, connect_timeout, metadata_only, git_ref].hash
398
398
  end
399
399
 
400
400
  # Builds the object from hash
@@ -22,6 +22,11 @@ module PulpAnsibleClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpAnsibleClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpAnsibleClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -105,6 +105,8 @@ module PulpAnsibleClient
105
105
  {
106
106
  :'name' => :'name',
107
107
  :'url' => :'url',
108
+ :'pulp_labels' => :'pulp_labels',
109
+ :'policy' => :'policy',
108
110
  :'ca_cert' => :'ca_cert',
109
111
  :'client_cert' => :'client_cert',
110
112
  :'client_key' => :'client_key',
@@ -114,15 +116,13 @@ module PulpAnsibleClient
114
116
  :'proxy_password' => :'proxy_password',
115
117
  :'username' => :'username',
116
118
  :'password' => :'password',
117
- :'pulp_labels' => :'pulp_labels',
118
- :'download_concurrency' => :'download_concurrency',
119
119
  :'max_retries' => :'max_retries',
120
- :'policy' => :'policy',
121
120
  :'total_timeout' => :'total_timeout',
122
121
  :'connect_timeout' => :'connect_timeout',
123
122
  :'sock_connect_timeout' => :'sock_connect_timeout',
124
123
  :'sock_read_timeout' => :'sock_read_timeout',
125
124
  :'headers' => :'headers',
125
+ :'download_concurrency' => :'download_concurrency',
126
126
  :'rate_limit' => :'rate_limit'
127
127
  }
128
128
  end
@@ -137,6 +137,8 @@ module PulpAnsibleClient
137
137
  {
138
138
  :'name' => :'String',
139
139
  :'url' => :'String',
140
+ :'pulp_labels' => :'Hash<String, String>',
141
+ :'policy' => :'PolicyEnum',
140
142
  :'ca_cert' => :'String',
141
143
  :'client_cert' => :'String',
142
144
  :'client_key' => :'String',
@@ -146,15 +148,13 @@ module PulpAnsibleClient
146
148
  :'proxy_password' => :'String',
147
149
  :'username' => :'String',
148
150
  :'password' => :'String',
149
- :'pulp_labels' => :'Hash<String, String>',
150
- :'download_concurrency' => :'Integer',
151
151
  :'max_retries' => :'Integer',
152
- :'policy' => :'PolicyEnum',
153
152
  :'total_timeout' => :'Float',
154
153
  :'connect_timeout' => :'Float',
155
154
  :'sock_connect_timeout' => :'Float',
156
155
  :'sock_read_timeout' => :'Float',
157
156
  :'headers' => :'Array<Object>',
157
+ :'download_concurrency' => :'Integer',
158
158
  :'rate_limit' => :'Integer'
159
159
  }
160
160
  end
@@ -170,12 +170,12 @@ module PulpAnsibleClient
170
170
  :'proxy_password',
171
171
  :'username',
172
172
  :'password',
173
- :'download_concurrency',
174
173
  :'max_retries',
175
174
  :'total_timeout',
176
175
  :'connect_timeout',
177
176
  :'sock_connect_timeout',
178
177
  :'sock_read_timeout',
178
+ :'download_concurrency',
179
179
  :'rate_limit'
180
180
  ])
181
181
  end
@@ -207,6 +207,16 @@ module PulpAnsibleClient
207
207
  self.url = nil
208
208
  end
209
209
 
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
214
+ end
215
+
216
+ if attributes.key?(:'policy')
217
+ self.policy = attributes[:'policy']
218
+ end
219
+
210
220
  if attributes.key?(:'ca_cert')
211
221
  self.ca_cert = attributes[:'ca_cert']
212
222
  end
@@ -243,24 +253,10 @@ module PulpAnsibleClient
243
253
  self.password = attributes[:'password']
244
254
  end
245
255
 
246
- if attributes.key?(:'pulp_labels')
247
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
248
- self.pulp_labels = value
249
- end
250
- end
251
-
252
- if attributes.key?(:'download_concurrency')
253
- self.download_concurrency = attributes[:'download_concurrency']
254
- end
255
-
256
256
  if attributes.key?(:'max_retries')
257
257
  self.max_retries = attributes[:'max_retries']
258
258
  end
259
259
 
260
- if attributes.key?(:'policy')
261
- self.policy = attributes[:'policy']
262
- end
263
-
264
260
  if attributes.key?(:'total_timeout')
265
261
  self.total_timeout = attributes[:'total_timeout']
266
262
  end
@@ -283,6 +279,10 @@ module PulpAnsibleClient
283
279
  end
284
280
  end
285
281
 
282
+ if attributes.key?(:'download_concurrency')
283
+ self.download_concurrency = attributes[:'download_concurrency']
284
+ end
285
+
286
286
  if attributes.key?(:'rate_limit')
287
287
  self.rate_limit = attributes[:'rate_limit']
288
288
  end
@@ -538,6 +538,8 @@ module PulpAnsibleClient
538
538
  self.class == o.class &&
539
539
  name == o.name &&
540
540
  url == o.url &&
541
+ pulp_labels == o.pulp_labels &&
542
+ policy == o.policy &&
541
543
  ca_cert == o.ca_cert &&
542
544
  client_cert == o.client_cert &&
543
545
  client_key == o.client_key &&
@@ -547,15 +549,13 @@ module PulpAnsibleClient
547
549
  proxy_password == o.proxy_password &&
548
550
  username == o.username &&
549
551
  password == o.password &&
550
- pulp_labels == o.pulp_labels &&
551
- download_concurrency == o.download_concurrency &&
552
552
  max_retries == o.max_retries &&
553
- policy == o.policy &&
554
553
  total_timeout == o.total_timeout &&
555
554
  connect_timeout == o.connect_timeout &&
556
555
  sock_connect_timeout == o.sock_connect_timeout &&
557
556
  sock_read_timeout == o.sock_read_timeout &&
558
557
  headers == o.headers &&
558
+ download_concurrency == o.download_concurrency &&
559
559
  rate_limit == o.rate_limit
560
560
  end
561
561
 
@@ -568,7 +568,7 @@ module PulpAnsibleClient
568
568
  # Calculates hash code according to all attributes.
569
569
  # @return [Integer] Hash code
570
570
  def hash
571
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
571
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
572
572
  end
573
573
 
574
574
  # Builds the object from hash