pulp_ansible_client 0.11.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/docs/AnsibleCollectionRemote.md +3 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionVersionSignatureResponse.md +25 -0
  7. data/docs/AnsibleGitRemote.md +27 -27
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRepositorySignature.md +19 -0
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionResponse.md +2 -0
  12. data/docs/ContentCollectionSignaturesApi.md +146 -0
  13. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +23 -0
  14. data/docs/PatchedansibleCollectionRemote.md +3 -1
  15. data/docs/PatchedansibleGitRemote.md +27 -27
  16. data/docs/RepositoriesAnsibleApi.md +55 -0
  17. data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
  18. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +182 -0
  19. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +68 -0
  20. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +18 -5
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +18 -5
  22. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  23. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +258 -0
  24. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
  25. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
  26. data/lib/pulp_ansible_client/models/ansible_repository_signature.rb +230 -0
  27. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  28. data/lib/pulp_ansible_client/models/collection_version_response.rb +10 -1
  29. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +237 -0
  30. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +18 -5
  31. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +224 -224
  32. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +10 -1
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/lib/pulp_ansible_client.rb +4 -0
  35. data/pulp_ansible_client.gemspec +1 -1
  36. data/spec/api/content_collection_signatures_api_spec.rb +72 -0
  37. data/spec/api/repositories_ansible_api_spec.rb +12 -0
  38. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  39. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  40. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  41. data/spec/models/ansible_collection_version_signature_response_spec.rb +65 -0
  42. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  43. data/spec/models/ansible_git_remote_spec.rb +19 -19
  44. data/spec/models/ansible_repository_signature_spec.rb +47 -0
  45. data/spec/models/ansible_role_response_spec.rb +2 -2
  46. data/spec/models/collection_version_response_spec.rb +6 -0
  47. data/spec/models/paginatedansible_collection_version_signature_response_list_spec.rb +59 -0
  48. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  49. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  50. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  51. metadata +100 -78
@@ -15,64 +15,64 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # The username to authenticte to the proxy.
19
- attr_accessor :proxy_username
18
+ # The URL of an external content source.
19
+ attr_accessor :url
20
20
 
21
- # The proxy URL. Format: scheme://host:port
22
- attr_accessor :proxy_url
21
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :total_timeout
23
23
 
24
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
25
- attr_accessor :max_retries
24
+ # A PEM encoded client certificate used for authentication.
25
+ attr_accessor :client_cert
26
+
27
+ # The username to authenticte to the proxy.
28
+ attr_accessor :proxy_username
26
29
 
27
30
  # 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
31
  attr_accessor :connect_timeout
29
32
 
33
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
34
+ attr_accessor :ca_cert
35
+
36
+ # The proxy URL. Format: scheme://host:port
37
+ attr_accessor :proxy_url
38
+
30
39
  # If True, TLS peer validation must be performed.
31
40
  attr_accessor :tls_validation
32
41
 
33
- # The username to be used for authentication when syncing.
34
- attr_accessor :username
35
-
36
- # Limits requests per second for each concurrent downloader
37
- attr_accessor :rate_limit
42
+ # 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.
43
+ attr_accessor :sock_read_timeout
38
44
 
39
45
  # A PEM encoded private key used for authentication.
40
46
  attr_accessor :client_key
41
47
 
42
- # A PEM encoded client certificate used for authentication.
43
- attr_accessor :client_cert
48
+ # The password to be used for authentication when syncing.
49
+ attr_accessor :password
50
+
51
+ attr_accessor :pulp_labels
44
52
 
45
53
  # 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.
46
54
  attr_accessor :sock_connect_timeout
47
55
 
48
- # Total number of simultaneous connections. If not set then the default value will be used.
49
- attr_accessor :download_concurrency
50
-
51
- attr_accessor :pulp_labels
52
-
53
- # The password to authenticte to the proxy.
54
- attr_accessor :proxy_password
56
+ # Limits requests per second for each concurrent downloader
57
+ attr_accessor :rate_limit
55
58
 
56
59
  # Headers for aiohttp.Clientsession
57
60
  attr_accessor :headers
58
61
 
59
- # 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.
60
- attr_accessor :sock_read_timeout
62
+ # The password to authenticte to the proxy.
63
+ attr_accessor :proxy_password
61
64
 
62
65
  # A unique name for this remote.
63
66
  attr_accessor :name
64
67
 
65
- # The URL of an external content source.
66
- attr_accessor :url
67
-
68
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
- attr_accessor :total_timeout
68
+ # The username to be used for authentication when syncing.
69
+ attr_accessor :username
70
70
 
71
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
72
- attr_accessor :ca_cert
71
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
72
+ attr_accessor :max_retries
73
73
 
74
- # The password to be used for authentication when syncing.
75
- attr_accessor :password
74
+ # Total number of simultaneous connections. If not set then the default value will be used.
75
+ attr_accessor :download_concurrency
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
+ :'url' => :'url',
87
+ :'total_timeout' => :'total_timeout',
88
+ :'client_cert' => :'client_cert',
86
89
  :'proxy_username' => :'proxy_username',
87
- :'proxy_url' => :'proxy_url',
88
- :'max_retries' => :'max_retries',
89
90
  :'connect_timeout' => :'connect_timeout',
91
+ :'ca_cert' => :'ca_cert',
92
+ :'proxy_url' => :'proxy_url',
90
93
  :'tls_validation' => :'tls_validation',
91
- :'username' => :'username',
92
- :'rate_limit' => :'rate_limit',
94
+ :'sock_read_timeout' => :'sock_read_timeout',
93
95
  :'client_key' => :'client_key',
94
- :'client_cert' => :'client_cert',
95
- :'sock_connect_timeout' => :'sock_connect_timeout',
96
- :'download_concurrency' => :'download_concurrency',
96
+ :'password' => :'password',
97
97
  :'pulp_labels' => :'pulp_labels',
98
- :'proxy_password' => :'proxy_password',
98
+ :'sock_connect_timeout' => :'sock_connect_timeout',
99
+ :'rate_limit' => :'rate_limit',
99
100
  :'headers' => :'headers',
100
- :'sock_read_timeout' => :'sock_read_timeout',
101
+ :'proxy_password' => :'proxy_password',
101
102
  :'name' => :'name',
102
- :'url' => :'url',
103
- :'total_timeout' => :'total_timeout',
104
- :'ca_cert' => :'ca_cert',
105
- :'password' => :'password',
103
+ :'username' => :'username',
104
+ :'max_retries' => :'max_retries',
105
+ :'download_concurrency' => :'download_concurrency',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -111,26 +111,26 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
+ :'url' => :'String',
115
+ :'total_timeout' => :'Float',
116
+ :'client_cert' => :'String',
114
117
  :'proxy_username' => :'String',
115
- :'proxy_url' => :'String',
116
- :'max_retries' => :'Integer',
117
118
  :'connect_timeout' => :'Float',
119
+ :'ca_cert' => :'String',
120
+ :'proxy_url' => :'String',
118
121
  :'tls_validation' => :'Boolean',
119
- :'username' => :'String',
120
- :'rate_limit' => :'Integer',
122
+ :'sock_read_timeout' => :'Float',
121
123
  :'client_key' => :'String',
122
- :'client_cert' => :'String',
123
- :'sock_connect_timeout' => :'Float',
124
- :'download_concurrency' => :'Integer',
124
+ :'password' => :'String',
125
125
  :'pulp_labels' => :'Object',
126
- :'proxy_password' => :'String',
126
+ :'sock_connect_timeout' => :'Float',
127
+ :'rate_limit' => :'Integer',
127
128
  :'headers' => :'Array<Object>',
128
- :'sock_read_timeout' => :'Float',
129
+ :'proxy_password' => :'String',
129
130
  :'name' => :'String',
130
- :'url' => :'String',
131
- :'total_timeout' => :'Float',
132
- :'ca_cert' => :'String',
133
- :'password' => :'String',
131
+ :'username' => :'String',
132
+ :'max_retries' => :'Integer',
133
+ :'download_concurrency' => :'Integer',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -139,21 +139,21 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
+ :'total_timeout',
143
+ :'client_cert',
142
144
  :'proxy_username',
143
- :'proxy_url',
144
- :'max_retries',
145
145
  :'connect_timeout',
146
- :'username',
147
- :'rate_limit',
146
+ :'ca_cert',
147
+ :'proxy_url',
148
+ :'sock_read_timeout',
148
149
  :'client_key',
149
- :'client_cert',
150
+ :'password',
150
151
  :'sock_connect_timeout',
151
- :'download_concurrency',
152
+ :'rate_limit',
152
153
  :'proxy_password',
153
- :'sock_read_timeout',
154
- :'total_timeout',
155
- :'ca_cert',
156
- :'password',
154
+ :'username',
155
+ :'max_retries',
156
+ :'download_concurrency',
157
157
  ])
158
158
  end
159
159
 
@@ -172,56 +172,60 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'proxy_username')
176
- self.proxy_username = attributes[:'proxy_username']
175
+ if attributes.key?(:'url')
176
+ self.url = attributes[:'url']
177
177
  end
178
178
 
179
- if attributes.key?(:'proxy_url')
180
- self.proxy_url = attributes[:'proxy_url']
179
+ if attributes.key?(:'total_timeout')
180
+ self.total_timeout = attributes[:'total_timeout']
181
181
  end
182
182
 
183
- if attributes.key?(:'max_retries')
184
- self.max_retries = attributes[:'max_retries']
183
+ if attributes.key?(:'client_cert')
184
+ self.client_cert = attributes[:'client_cert']
185
185
  end
186
186
 
187
- if attributes.key?(:'connect_timeout')
188
- self.connect_timeout = attributes[:'connect_timeout']
187
+ if attributes.key?(:'proxy_username')
188
+ self.proxy_username = attributes[:'proxy_username']
189
189
  end
190
190
 
191
- if attributes.key?(:'tls_validation')
192
- self.tls_validation = attributes[:'tls_validation']
191
+ if attributes.key?(:'connect_timeout')
192
+ self.connect_timeout = attributes[:'connect_timeout']
193
193
  end
194
194
 
195
- if attributes.key?(:'username')
196
- self.username = attributes[:'username']
195
+ if attributes.key?(:'ca_cert')
196
+ self.ca_cert = attributes[:'ca_cert']
197
197
  end
198
198
 
199
- if attributes.key?(:'rate_limit')
200
- self.rate_limit = attributes[:'rate_limit']
199
+ if attributes.key?(:'proxy_url')
200
+ self.proxy_url = attributes[:'proxy_url']
201
201
  end
202
202
 
203
- if attributes.key?(:'client_key')
204
- self.client_key = attributes[:'client_key']
203
+ if attributes.key?(:'tls_validation')
204
+ self.tls_validation = attributes[:'tls_validation']
205
205
  end
206
206
 
207
- if attributes.key?(:'client_cert')
208
- self.client_cert = attributes[:'client_cert']
207
+ if attributes.key?(:'sock_read_timeout')
208
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
209
209
  end
210
210
 
211
- if attributes.key?(:'sock_connect_timeout')
212
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
211
+ if attributes.key?(:'client_key')
212
+ self.client_key = attributes[:'client_key']
213
213
  end
214
214
 
215
- if attributes.key?(:'download_concurrency')
216
- self.download_concurrency = attributes[:'download_concurrency']
215
+ if attributes.key?(:'password')
216
+ self.password = attributes[:'password']
217
217
  end
218
218
 
219
219
  if attributes.key?(:'pulp_labels')
220
220
  self.pulp_labels = attributes[:'pulp_labels']
221
221
  end
222
222
 
223
- if attributes.key?(:'proxy_password')
224
- self.proxy_password = attributes[:'proxy_password']
223
+ if attributes.key?(:'sock_connect_timeout')
224
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
225
+ end
226
+
227
+ if attributes.key?(:'rate_limit')
228
+ self.rate_limit = attributes[:'rate_limit']
225
229
  end
226
230
 
227
231
  if attributes.key?(:'headers')
@@ -230,28 +234,24 @@ module PulpAnsibleClient
230
234
  end
231
235
  end
232
236
 
233
- if attributes.key?(:'sock_read_timeout')
234
- self.sock_read_timeout = attributes[:'sock_read_timeout']
237
+ if attributes.key?(:'proxy_password')
238
+ self.proxy_password = attributes[:'proxy_password']
235
239
  end
236
240
 
237
241
  if attributes.key?(:'name')
238
242
  self.name = attributes[:'name']
239
243
  end
240
244
 
241
- if attributes.key?(:'url')
242
- self.url = attributes[:'url']
243
- end
244
-
245
- if attributes.key?(:'total_timeout')
246
- self.total_timeout = attributes[:'total_timeout']
245
+ if attributes.key?(:'username')
246
+ self.username = attributes[:'username']
247
247
  end
248
248
 
249
- if attributes.key?(:'ca_cert')
250
- self.ca_cert = attributes[:'ca_cert']
249
+ if attributes.key?(:'max_retries')
250
+ self.max_retries = attributes[:'max_retries']
251
251
  end
252
252
 
253
- if attributes.key?(:'password')
254
- self.password = attributes[:'password']
253
+ if attributes.key?(:'download_concurrency')
254
+ self.download_concurrency = attributes[:'download_concurrency']
255
255
  end
256
256
 
257
257
  if attributes.key?(:'metadata_only')
@@ -267,64 +267,64 @@ module PulpAnsibleClient
267
267
  # @return Array for valid properties with the reasons
268
268
  def list_invalid_properties
269
269
  invalid_properties = Array.new
270
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
271
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
270
+ if !@url.nil? && @url.to_s.length < 1
271
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
272
272
  end
273
273
 
274
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
275
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
274
+ if !@total_timeout.nil? && @total_timeout < 0.0
275
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
276
+ end
277
+
278
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
279
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
280
+ end
281
+
282
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
283
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
276
284
  end
277
285
 
278
286
  if !@connect_timeout.nil? && @connect_timeout < 0.0
279
287
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
280
288
  end
281
289
 
282
- if !@username.nil? && @username.to_s.length < 1
283
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
290
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
291
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
292
+ end
293
+
294
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
295
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
296
+ end
297
+
298
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
284
300
  end
285
301
 
286
302
  if !@client_key.nil? && @client_key.to_s.length < 1
287
303
  invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
288
304
  end
289
305
 
290
- if !@client_cert.nil? && @client_cert.to_s.length < 1
291
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
306
+ if !@password.nil? && @password.to_s.length < 1
307
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
292
308
  end
293
309
 
294
310
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
295
311
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
296
312
  end
297
313
 
298
- if !@download_concurrency.nil? && @download_concurrency < 1
299
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
300
- end
301
-
302
314
  if !@proxy_password.nil? && @proxy_password.to_s.length < 1
303
315
  invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
304
316
  end
305
317
 
306
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
307
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
308
- end
309
-
310
318
  if !@name.nil? && @name.to_s.length < 1
311
319
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
312
320
  end
313
321
 
314
- if !@url.nil? && @url.to_s.length < 1
315
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
316
- end
317
-
318
- if !@total_timeout.nil? && @total_timeout < 0.0
319
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
320
- end
321
-
322
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
323
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
322
+ if !@username.nil? && @username.to_s.length < 1
323
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
324
324
  end
325
325
 
326
- if !@password.nil? && @password.to_s.length < 1
327
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
326
+ if !@download_concurrency.nil? && @download_concurrency < 1
327
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
328
328
  end
329
329
 
330
330
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -337,43 +337,63 @@ module PulpAnsibleClient
337
337
  # Check to see if the all the properties in the model are valid
338
338
  # @return true if the model is valid
339
339
  def valid?
340
+ return false if !@url.nil? && @url.to_s.length < 1
341
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
342
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
340
343
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
341
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
342
344
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
343
- return false if !@username.nil? && @username.to_s.length < 1
345
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
346
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
347
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
344
348
  return false if !@client_key.nil? && @client_key.to_s.length < 1
345
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
349
+ return false if !@password.nil? && @password.to_s.length < 1
346
350
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
347
- return false if !@download_concurrency.nil? && @download_concurrency < 1
348
351
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
349
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
352
  return false if !@name.nil? && @name.to_s.length < 1
351
- return false if !@url.nil? && @url.to_s.length < 1
352
- return false if !@total_timeout.nil? && @total_timeout < 0.0
353
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
354
- return false if !@password.nil? && @password.to_s.length < 1
353
+ return false if !@username.nil? && @username.to_s.length < 1
354
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
355
355
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
356
356
  true
357
357
  end
358
358
 
359
359
  # Custom attribute writer method with validation
360
- # @param [Object] proxy_username Value to be assigned
361
- def proxy_username=(proxy_username)
362
- if !proxy_username.nil? && proxy_username.to_s.length < 1
363
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
360
+ # @param [Object] url Value to be assigned
361
+ def url=(url)
362
+ if !url.nil? && url.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
364
364
  end
365
365
 
366
- @proxy_username = proxy_username
366
+ @url = url
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] proxy_url Value to be assigned
371
- def proxy_url=(proxy_url)
372
- if !proxy_url.nil? && proxy_url.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
370
+ # @param [Object] total_timeout Value to be assigned
371
+ def total_timeout=(total_timeout)
372
+ if !total_timeout.nil? && total_timeout < 0.0
373
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
374
374
  end
375
375
 
376
- @proxy_url = proxy_url
376
+ @total_timeout = total_timeout
377
+ end
378
+
379
+ # Custom attribute writer method with validation
380
+ # @param [Object] client_cert Value to be assigned
381
+ def client_cert=(client_cert)
382
+ if !client_cert.nil? && client_cert.to_s.length < 1
383
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
384
+ end
385
+
386
+ @client_cert = client_cert
387
+ end
388
+
389
+ # Custom attribute writer method with validation
390
+ # @param [Object] proxy_username Value to be assigned
391
+ def proxy_username=(proxy_username)
392
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
393
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
394
+ end
395
+
396
+ @proxy_username = proxy_username
377
397
  end
378
398
 
379
399
  # Custom attribute writer method with validation
@@ -387,13 +407,33 @@ module PulpAnsibleClient
387
407
  end
388
408
 
389
409
  # Custom attribute writer method with validation
390
- # @param [Object] username Value to be assigned
391
- def username=(username)
392
- if !username.nil? && username.to_s.length < 1
393
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
410
+ # @param [Object] ca_cert Value to be assigned
411
+ def ca_cert=(ca_cert)
412
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
413
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
394
414
  end
395
415
 
396
- @username = username
416
+ @ca_cert = ca_cert
417
+ end
418
+
419
+ # Custom attribute writer method with validation
420
+ # @param [Object] proxy_url Value to be assigned
421
+ def proxy_url=(proxy_url)
422
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
423
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
424
+ end
425
+
426
+ @proxy_url = proxy_url
427
+ end
428
+
429
+ # Custom attribute writer method with validation
430
+ # @param [Object] sock_read_timeout Value to be assigned
431
+ def sock_read_timeout=(sock_read_timeout)
432
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
433
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
434
+ end
435
+
436
+ @sock_read_timeout = sock_read_timeout
397
437
  end
398
438
 
399
439
  # Custom attribute writer method with validation
@@ -407,13 +447,13 @@ module PulpAnsibleClient
407
447
  end
408
448
 
409
449
  # Custom attribute writer method with validation
410
- # @param [Object] client_cert Value to be assigned
411
- def client_cert=(client_cert)
412
- if !client_cert.nil? && client_cert.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
450
+ # @param [Object] password Value to be assigned
451
+ def password=(password)
452
+ if !password.nil? && password.to_s.length < 1
453
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
414
454
  end
415
455
 
416
- @client_cert = client_cert
456
+ @password = password
417
457
  end
418
458
 
419
459
  # Custom attribute writer method with validation
@@ -426,16 +466,6 @@ module PulpAnsibleClient
426
466
  @sock_connect_timeout = sock_connect_timeout
427
467
  end
428
468
 
429
- # Custom attribute writer method with validation
430
- # @param [Object] download_concurrency Value to be assigned
431
- def download_concurrency=(download_concurrency)
432
- if !download_concurrency.nil? && download_concurrency < 1
433
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
434
- end
435
-
436
- @download_concurrency = download_concurrency
437
- end
438
-
439
469
  # Custom attribute writer method with validation
440
470
  # @param [Object] proxy_password Value to be assigned
441
471
  def proxy_password=(proxy_password)
@@ -446,16 +476,6 @@ module PulpAnsibleClient
446
476
  @proxy_password = proxy_password
447
477
  end
448
478
 
449
- # Custom attribute writer method with validation
450
- # @param [Object] sock_read_timeout Value to be assigned
451
- def sock_read_timeout=(sock_read_timeout)
452
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
453
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
454
- end
455
-
456
- @sock_read_timeout = sock_read_timeout
457
- end
458
-
459
479
  # Custom attribute writer method with validation
460
480
  # @param [Object] name Value to be assigned
461
481
  def name=(name)
@@ -467,43 +487,23 @@ module PulpAnsibleClient
467
487
  end
468
488
 
469
489
  # Custom attribute writer method with validation
470
- # @param [Object] url Value to be assigned
471
- def url=(url)
472
- if !url.nil? && url.to_s.length < 1
473
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
474
- end
475
-
476
- @url = url
477
- end
478
-
479
- # Custom attribute writer method with validation
480
- # @param [Object] total_timeout Value to be assigned
481
- def total_timeout=(total_timeout)
482
- if !total_timeout.nil? && total_timeout < 0.0
483
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
484
- end
485
-
486
- @total_timeout = total_timeout
487
- end
488
-
489
- # Custom attribute writer method with validation
490
- # @param [Object] ca_cert Value to be assigned
491
- def ca_cert=(ca_cert)
492
- if !ca_cert.nil? && ca_cert.to_s.length < 1
493
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
490
+ # @param [Object] username Value to be assigned
491
+ def username=(username)
492
+ if !username.nil? && username.to_s.length < 1
493
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
494
494
  end
495
495
 
496
- @ca_cert = ca_cert
496
+ @username = username
497
497
  end
498
498
 
499
499
  # Custom attribute writer method with validation
500
- # @param [Object] password Value to be assigned
501
- def password=(password)
502
- if !password.nil? && password.to_s.length < 1
503
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
500
+ # @param [Object] download_concurrency Value to be assigned
501
+ def download_concurrency=(download_concurrency)
502
+ if !download_concurrency.nil? && download_concurrency < 1
503
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
504
504
  end
505
505
 
506
- @password = password
506
+ @download_concurrency = download_concurrency
507
507
  end
508
508
 
509
509
  # Custom attribute writer method with validation
@@ -521,26 +521,26 @@ module PulpAnsibleClient
521
521
  def ==(o)
522
522
  return true if self.equal?(o)
523
523
  self.class == o.class &&
524
+ url == o.url &&
525
+ total_timeout == o.total_timeout &&
526
+ client_cert == o.client_cert &&
524
527
  proxy_username == o.proxy_username &&
525
- proxy_url == o.proxy_url &&
526
- max_retries == o.max_retries &&
527
528
  connect_timeout == o.connect_timeout &&
529
+ ca_cert == o.ca_cert &&
530
+ proxy_url == o.proxy_url &&
528
531
  tls_validation == o.tls_validation &&
529
- username == o.username &&
530
- rate_limit == o.rate_limit &&
532
+ sock_read_timeout == o.sock_read_timeout &&
531
533
  client_key == o.client_key &&
532
- client_cert == o.client_cert &&
533
- sock_connect_timeout == o.sock_connect_timeout &&
534
- download_concurrency == o.download_concurrency &&
534
+ password == o.password &&
535
535
  pulp_labels == o.pulp_labels &&
536
- proxy_password == o.proxy_password &&
536
+ sock_connect_timeout == o.sock_connect_timeout &&
537
+ rate_limit == o.rate_limit &&
537
538
  headers == o.headers &&
538
- sock_read_timeout == o.sock_read_timeout &&
539
+ proxy_password == o.proxy_password &&
539
540
  name == o.name &&
540
- url == o.url &&
541
- total_timeout == o.total_timeout &&
542
- ca_cert == o.ca_cert &&
543
- password == o.password &&
541
+ username == o.username &&
542
+ max_retries == o.max_retries &&
543
+ download_concurrency == o.download_concurrency &&
544
544
  metadata_only == o.metadata_only &&
545
545
  git_ref == o.git_ref
546
546
  end
@@ -554,7 +554,7 @@ module PulpAnsibleClient
554
554
  # Calculates hash code according to all attributes.
555
555
  # @return [Integer] Hash code
556
556
  def hash
557
- [proxy_username, proxy_url, max_retries, connect_timeout, tls_validation, username, rate_limit, client_key, client_cert, sock_connect_timeout, download_concurrency, pulp_labels, proxy_password, headers, sock_read_timeout, name, url, total_timeout, ca_cert, password, metadata_only, git_ref].hash
557
+ [url, total_timeout, client_cert, proxy_username, connect_timeout, ca_cert, proxy_url, tls_validation, sock_read_timeout, client_key, password, pulp_labels, sock_connect_timeout, rate_limit, headers, proxy_password, name, username, max_retries, download_concurrency, metadata_only, git_ref].hash
558
558
  end
559
559
 
560
560
  # Builds the object from hash