pulp_ansible_client 0.25.5 → 0.25.6

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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +5 -3
  4. data/docs/AnsibleAnsibleDistributionResponse.md +12 -4
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleGitRemote.md +28 -28
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRoleResponse.md +4 -4
  9. data/docs/ContentCollectionVersionsApi.md +6 -6
  10. data/docs/PatchedansibleAnsibleDistribution.md +5 -3
  11. data/docs/PatchedansibleGitRemote.md +28 -28
  12. data/docs/RemotesGitApi.md +2 -2
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  14. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +28 -16
  15. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +17 -17
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +235 -235
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  20. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +230 -230
  22. data/lib/pulp_ansible_client/version.rb +1 -1
  23. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  24. data/spec/models/ansible_ansible_distribution_response_spec.rb +28 -4
  25. data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
  26. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  27. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  28. data/spec/models/ansible_git_remote_spec.rb +19 -19
  29. data/spec/models/ansible_role_response_spec.rb +5 -5
  30. data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
  31. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  32. metadata +124 -124
@@ -16,64 +16,64 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class AnsibleGitRemote
19
- # Total number of simultaneous connections. If not set then the default value will be used.
20
- attr_accessor :download_concurrency
19
+ # 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.
20
+ attr_accessor :sock_connect_timeout
21
21
 
22
- # If True, TLS peer validation must be performed.
23
- attr_accessor :tls_validation
22
+ # A PEM encoded client certificate used for authentication.
23
+ attr_accessor :client_cert
24
+
25
+ # A PEM encoded private key used for authentication.
26
+ attr_accessor :client_key
24
27
 
25
28
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
26
29
  attr_accessor :max_retries
27
30
 
28
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
29
- attr_accessor :proxy_password
31
+ # If True, TLS peer validation must be performed.
32
+ attr_accessor :tls_validation
30
33
 
31
- # The URL of an external content source.
32
- attr_accessor :url
34
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
35
+ attr_accessor :connect_timeout
33
36
 
34
- # The username to be used for authentication when syncing.
35
- attr_accessor :username
37
+ # The username to authenticte to the proxy.
38
+ attr_accessor :proxy_username
36
39
 
37
- # 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.
38
- attr_accessor :sock_connect_timeout
40
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
41
+ attr_accessor :proxy_password
39
42
 
40
- # A PEM encoded private key used for authentication.
41
- attr_accessor :client_key
43
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
44
+ attr_accessor :total_timeout
42
45
 
43
46
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
44
47
  attr_accessor :ca_cert
45
48
 
46
- # The proxy URL. Format: scheme://host:port
47
- attr_accessor :proxy_url
49
+ # Limits requests per second for each concurrent downloader
50
+ attr_accessor :rate_limit
48
51
 
49
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
50
- attr_accessor :connect_timeout
52
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
53
+ attr_accessor :password
51
54
 
52
55
  # 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.
53
56
  attr_accessor :sock_read_timeout
54
57
 
55
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
56
- attr_accessor :total_timeout
57
-
58
58
  # A unique name for this remote.
59
59
  attr_accessor :name
60
60
 
61
- # Headers for aiohttp.Clientsession
62
- attr_accessor :headers
63
-
64
- # The username to authenticte to the proxy.
65
- attr_accessor :proxy_username
61
+ # Total number of simultaneous connections. If not set then the default value will be used.
62
+ attr_accessor :download_concurrency
66
63
 
67
- # A PEM encoded client certificate used for authentication.
68
- attr_accessor :client_cert
64
+ # The username to be used for authentication when syncing.
65
+ attr_accessor :username
69
66
 
70
- # Limits requests per second for each concurrent downloader
71
- attr_accessor :rate_limit
67
+ # The URL of an external content source.
68
+ attr_accessor :url
72
69
 
73
70
  attr_accessor :pulp_labels
74
71
 
75
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
76
- attr_accessor :password
72
+ # Headers for aiohttp.Clientsession
73
+ attr_accessor :headers
74
+
75
+ # The proxy URL. Format: scheme://host:port
76
+ attr_accessor :proxy_url
77
77
 
78
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
79
79
  attr_accessor :metadata_only
@@ -84,26 +84,26 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
- :'download_concurrency' => :'download_concurrency',
88
- :'tls_validation' => :'tls_validation',
89
- :'max_retries' => :'max_retries',
90
- :'proxy_password' => :'proxy_password',
91
- :'url' => :'url',
92
- :'username' => :'username',
93
87
  :'sock_connect_timeout' => :'sock_connect_timeout',
88
+ :'client_cert' => :'client_cert',
94
89
  :'client_key' => :'client_key',
95
- :'ca_cert' => :'ca_cert',
96
- :'proxy_url' => :'proxy_url',
90
+ :'max_retries' => :'max_retries',
91
+ :'tls_validation' => :'tls_validation',
97
92
  :'connect_timeout' => :'connect_timeout',
98
- :'sock_read_timeout' => :'sock_read_timeout',
99
- :'total_timeout' => :'total_timeout',
100
- :'name' => :'name',
101
- :'headers' => :'headers',
102
93
  :'proxy_username' => :'proxy_username',
103
- :'client_cert' => :'client_cert',
94
+ :'proxy_password' => :'proxy_password',
95
+ :'total_timeout' => :'total_timeout',
96
+ :'ca_cert' => :'ca_cert',
104
97
  :'rate_limit' => :'rate_limit',
105
- :'pulp_labels' => :'pulp_labels',
106
98
  :'password' => :'password',
99
+ :'sock_read_timeout' => :'sock_read_timeout',
100
+ :'name' => :'name',
101
+ :'download_concurrency' => :'download_concurrency',
102
+ :'username' => :'username',
103
+ :'url' => :'url',
104
+ :'pulp_labels' => :'pulp_labels',
105
+ :'headers' => :'headers',
106
+ :'proxy_url' => :'proxy_url',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
109
109
  }
@@ -117,26 +117,26 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
- :'download_concurrency' => :'Integer',
121
- :'tls_validation' => :'Boolean',
122
- :'max_retries' => :'Integer',
123
- :'proxy_password' => :'String',
124
- :'url' => :'String',
125
- :'username' => :'String',
126
120
  :'sock_connect_timeout' => :'Float',
121
+ :'client_cert' => :'String',
127
122
  :'client_key' => :'String',
128
- :'ca_cert' => :'String',
129
- :'proxy_url' => :'String',
123
+ :'max_retries' => :'Integer',
124
+ :'tls_validation' => :'Boolean',
130
125
  :'connect_timeout' => :'Float',
131
- :'sock_read_timeout' => :'Float',
132
- :'total_timeout' => :'Float',
133
- :'name' => :'String',
134
- :'headers' => :'Array<Object>',
135
126
  :'proxy_username' => :'String',
136
- :'client_cert' => :'String',
127
+ :'proxy_password' => :'String',
128
+ :'total_timeout' => :'Float',
129
+ :'ca_cert' => :'String',
137
130
  :'rate_limit' => :'Integer',
138
- :'pulp_labels' => :'Hash<String, String>',
139
131
  :'password' => :'String',
132
+ :'sock_read_timeout' => :'Float',
133
+ :'name' => :'String',
134
+ :'download_concurrency' => :'Integer',
135
+ :'username' => :'String',
136
+ :'url' => :'String',
137
+ :'pulp_labels' => :'Hash<String, String>',
138
+ :'headers' => :'Array<Object>',
139
+ :'proxy_url' => :'String',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
142
142
  }
@@ -145,21 +145,21 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
- :'download_concurrency',
149
- :'max_retries',
150
- :'proxy_password',
151
- :'username',
152
148
  :'sock_connect_timeout',
149
+ :'client_cert',
153
150
  :'client_key',
154
- :'ca_cert',
155
- :'proxy_url',
151
+ :'max_retries',
156
152
  :'connect_timeout',
157
- :'sock_read_timeout',
158
- :'total_timeout',
159
153
  :'proxy_username',
160
- :'client_cert',
154
+ :'proxy_password',
155
+ :'total_timeout',
156
+ :'ca_cert',
161
157
  :'rate_limit',
162
158
  :'password',
159
+ :'sock_read_timeout',
160
+ :'download_concurrency',
161
+ :'username',
162
+ :'proxy_url',
163
163
  ])
164
164
  end
165
165
 
@@ -178,82 +178,76 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'download_concurrency')
182
- self.download_concurrency = attributes[:'download_concurrency']
181
+ if attributes.key?(:'sock_connect_timeout')
182
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
183
183
  end
184
184
 
185
- if attributes.key?(:'tls_validation')
186
- self.tls_validation = attributes[:'tls_validation']
185
+ if attributes.key?(:'client_cert')
186
+ self.client_cert = attributes[:'client_cert']
187
+ end
188
+
189
+ if attributes.key?(:'client_key')
190
+ self.client_key = attributes[:'client_key']
187
191
  end
188
192
 
189
193
  if attributes.key?(:'max_retries')
190
194
  self.max_retries = attributes[:'max_retries']
191
195
  end
192
196
 
193
- if attributes.key?(:'proxy_password')
194
- self.proxy_password = attributes[:'proxy_password']
197
+ if attributes.key?(:'tls_validation')
198
+ self.tls_validation = attributes[:'tls_validation']
195
199
  end
196
200
 
197
- if attributes.key?(:'url')
198
- self.url = attributes[:'url']
199
- else
200
- self.url = nil
201
+ if attributes.key?(:'connect_timeout')
202
+ self.connect_timeout = attributes[:'connect_timeout']
201
203
  end
202
204
 
203
- if attributes.key?(:'username')
204
- self.username = attributes[:'username']
205
+ if attributes.key?(:'proxy_username')
206
+ self.proxy_username = attributes[:'proxy_username']
205
207
  end
206
208
 
207
- if attributes.key?(:'sock_connect_timeout')
208
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
209
+ if attributes.key?(:'proxy_password')
210
+ self.proxy_password = attributes[:'proxy_password']
209
211
  end
210
212
 
211
- if attributes.key?(:'client_key')
212
- self.client_key = attributes[:'client_key']
213
+ if attributes.key?(:'total_timeout')
214
+ self.total_timeout = attributes[:'total_timeout']
213
215
  end
214
216
 
215
217
  if attributes.key?(:'ca_cert')
216
218
  self.ca_cert = attributes[:'ca_cert']
217
219
  end
218
220
 
219
- if attributes.key?(:'proxy_url')
220
- self.proxy_url = attributes[:'proxy_url']
221
+ if attributes.key?(:'rate_limit')
222
+ self.rate_limit = attributes[:'rate_limit']
221
223
  end
222
224
 
223
- if attributes.key?(:'connect_timeout')
224
- self.connect_timeout = attributes[:'connect_timeout']
225
+ if attributes.key?(:'password')
226
+ self.password = attributes[:'password']
225
227
  end
226
228
 
227
229
  if attributes.key?(:'sock_read_timeout')
228
230
  self.sock_read_timeout = attributes[:'sock_read_timeout']
229
231
  end
230
232
 
231
- if attributes.key?(:'total_timeout')
232
- self.total_timeout = attributes[:'total_timeout']
233
- end
234
-
235
233
  if attributes.key?(:'name')
236
234
  self.name = attributes[:'name']
237
235
  else
238
236
  self.name = nil
239
237
  end
240
238
 
241
- if attributes.key?(:'headers')
242
- if (value = attributes[:'headers']).is_a?(Array)
243
- self.headers = value
244
- end
245
- end
246
-
247
- if attributes.key?(:'proxy_username')
248
- self.proxy_username = attributes[:'proxy_username']
239
+ if attributes.key?(:'download_concurrency')
240
+ self.download_concurrency = attributes[:'download_concurrency']
249
241
  end
250
242
 
251
- if attributes.key?(:'client_cert')
252
- self.client_cert = attributes[:'client_cert']
243
+ if attributes.key?(:'username')
244
+ self.username = attributes[:'username']
253
245
  end
254
246
 
255
- if attributes.key?(:'rate_limit')
256
- self.rate_limit = attributes[:'rate_limit']
247
+ if attributes.key?(:'url')
248
+ self.url = attributes[:'url']
249
+ else
250
+ self.url = nil
257
251
  end
258
252
 
259
253
  if attributes.key?(:'pulp_labels')
@@ -262,8 +256,14 @@ module PulpAnsibleClient
262
256
  end
263
257
  end
264
258
 
265
- if attributes.key?(:'password')
266
- self.password = attributes[:'password']
259
+ if attributes.key?(:'headers')
260
+ if (value = attributes[:'headers']).is_a?(Array)
261
+ self.headers = value
262
+ end
263
+ end
264
+
265
+ if attributes.key?(:'proxy_url')
266
+ self.proxy_url = attributes[:'proxy_url']
267
267
  end
268
268
 
269
269
  if attributes.key?(:'metadata_only')
@@ -280,54 +280,46 @@ module PulpAnsibleClient
280
280
  def list_invalid_properties
281
281
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
282
282
  invalid_properties = Array.new
283
- if !@download_concurrency.nil? && @download_concurrency < 1
284
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
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.')
285
285
  end
286
286
 
287
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
288
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
287
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
288
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
289
289
  end
290
290
 
291
- if @url.nil?
292
- invalid_properties.push('invalid value for "url", url cannot be nil.')
291
+ if !@client_key.nil? && @client_key.to_s.length < 1
292
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
293
293
  end
294
294
 
295
- if @url.to_s.length < 1
296
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
295
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
297
297
  end
298
298
 
299
- if !@username.nil? && @username.to_s.length < 1
300
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
299
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
300
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
301
301
  end
302
302
 
303
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
304
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
303
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
304
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
305
305
  end
306
306
 
307
- if !@client_key.nil? && @client_key.to_s.length < 1
308
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
307
+ if !@total_timeout.nil? && @total_timeout < 0.0
308
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
309
309
  end
310
310
 
311
311
  if !@ca_cert.nil? && @ca_cert.to_s.length < 1
312
312
  invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
313
313
  end
314
314
 
315
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
316
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
317
- end
318
-
319
- if !@connect_timeout.nil? && @connect_timeout < 0.0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
315
+ if !@password.nil? && @password.to_s.length < 1
316
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
321
317
  end
322
318
 
323
319
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
324
320
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
325
321
  end
326
322
 
327
- if !@total_timeout.nil? && @total_timeout < 0.0
328
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
329
- end
330
-
331
323
  if @name.nil?
332
324
  invalid_properties.push('invalid value for "name", name cannot be nil.')
333
325
  end
@@ -336,16 +328,24 @@ module PulpAnsibleClient
336
328
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
337
329
  end
338
330
 
339
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
340
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
331
+ if !@download_concurrency.nil? && @download_concurrency < 1
332
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
341
333
  end
342
334
 
343
- if !@client_cert.nil? && @client_cert.to_s.length < 1
344
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
335
+ if !@username.nil? && @username.to_s.length < 1
336
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
345
337
  end
346
338
 
347
- if !@password.nil? && @password.to_s.length < 1
348
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
339
+ if @url.nil?
340
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
341
+ end
342
+
343
+ if @url.to_s.length < 1
344
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
345
+ end
346
+
347
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
348
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
349
349
  end
350
350
 
351
351
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -359,89 +359,95 @@ module PulpAnsibleClient
359
359
  # @return true if the model is valid
360
360
  def valid?
361
361
  warn '[DEPRECATED] the `valid?` method is obsolete'
362
- return false if !@download_concurrency.nil? && @download_concurrency < 1
363
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
364
- return false if @url.nil?
365
- return false if @url.to_s.length < 1
366
- return false if !@username.nil? && @username.to_s.length < 1
367
362
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
363
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
368
364
  return false if !@client_key.nil? && @client_key.to_s.length < 1
369
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
370
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
371
365
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
372
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
366
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
367
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
373
368
  return false if !@total_timeout.nil? && @total_timeout < 0.0
369
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
370
+ return false if !@password.nil? && @password.to_s.length < 1
371
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
374
372
  return false if @name.nil?
375
373
  return false if @name.to_s.length < 1
376
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
377
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
378
- return false if !@password.nil? && @password.to_s.length < 1
374
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
375
+ return false if !@username.nil? && @username.to_s.length < 1
376
+ return false if @url.nil?
377
+ return false if @url.to_s.length < 1
378
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
379
379
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
380
380
  true
381
381
  end
382
382
 
383
383
  # Custom attribute writer method with validation
384
- # @param [Object] download_concurrency Value to be assigned
385
- def download_concurrency=(download_concurrency)
386
- if !download_concurrency.nil? && download_concurrency < 1
387
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
384
+ # @param [Object] sock_connect_timeout Value to be assigned
385
+ def sock_connect_timeout=(sock_connect_timeout)
386
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
387
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
388
388
  end
389
389
 
390
- @download_concurrency = download_concurrency
390
+ @sock_connect_timeout = sock_connect_timeout
391
391
  end
392
392
 
393
393
  # Custom attribute writer method with validation
394
- # @param [Object] proxy_password Value to be assigned
395
- def proxy_password=(proxy_password)
396
- if !proxy_password.nil? && proxy_password.to_s.length < 1
397
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
394
+ # @param [Object] client_cert Value to be assigned
395
+ def client_cert=(client_cert)
396
+ if !client_cert.nil? && client_cert.to_s.length < 1
397
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
398
398
  end
399
399
 
400
- @proxy_password = proxy_password
400
+ @client_cert = client_cert
401
401
  end
402
402
 
403
403
  # Custom attribute writer method with validation
404
- # @param [Object] url Value to be assigned
405
- def url=(url)
406
- if url.nil?
407
- fail ArgumentError, 'url cannot be nil'
404
+ # @param [Object] client_key Value to be assigned
405
+ def client_key=(client_key)
406
+ if !client_key.nil? && client_key.to_s.length < 1
407
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
408
408
  end
409
409
 
410
- if url.to_s.length < 1
411
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
410
+ @client_key = client_key
411
+ end
412
+
413
+ # Custom attribute writer method with validation
414
+ # @param [Object] connect_timeout Value to be assigned
415
+ def connect_timeout=(connect_timeout)
416
+ if !connect_timeout.nil? && connect_timeout < 0.0
417
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
412
418
  end
413
419
 
414
- @url = url
420
+ @connect_timeout = connect_timeout
415
421
  end
416
422
 
417
423
  # Custom attribute writer method with validation
418
- # @param [Object] username Value to be assigned
419
- def username=(username)
420
- if !username.nil? && username.to_s.length < 1
421
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
424
+ # @param [Object] proxy_username Value to be assigned
425
+ def proxy_username=(proxy_username)
426
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
427
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
422
428
  end
423
429
 
424
- @username = username
430
+ @proxy_username = proxy_username
425
431
  end
426
432
 
427
433
  # Custom attribute writer method with validation
428
- # @param [Object] sock_connect_timeout Value to be assigned
429
- def sock_connect_timeout=(sock_connect_timeout)
430
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
431
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
434
+ # @param [Object] proxy_password Value to be assigned
435
+ def proxy_password=(proxy_password)
436
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
437
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
432
438
  end
433
439
 
434
- @sock_connect_timeout = sock_connect_timeout
440
+ @proxy_password = proxy_password
435
441
  end
436
442
 
437
443
  # Custom attribute writer method with validation
438
- # @param [Object] client_key Value to be assigned
439
- def client_key=(client_key)
440
- if !client_key.nil? && client_key.to_s.length < 1
441
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
444
+ # @param [Object] total_timeout Value to be assigned
445
+ def total_timeout=(total_timeout)
446
+ if !total_timeout.nil? && total_timeout < 0.0
447
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
442
448
  end
443
449
 
444
- @client_key = client_key
450
+ @total_timeout = total_timeout
445
451
  end
446
452
 
447
453
  # Custom attribute writer method with validation
@@ -455,23 +461,13 @@ module PulpAnsibleClient
455
461
  end
456
462
 
457
463
  # Custom attribute writer method with validation
458
- # @param [Object] proxy_url Value to be assigned
459
- def proxy_url=(proxy_url)
460
- if !proxy_url.nil? && proxy_url.to_s.length < 1
461
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
462
- end
463
-
464
- @proxy_url = proxy_url
465
- end
466
-
467
- # Custom attribute writer method with validation
468
- # @param [Object] connect_timeout Value to be assigned
469
- def connect_timeout=(connect_timeout)
470
- if !connect_timeout.nil? && connect_timeout < 0.0
471
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
464
+ # @param [Object] password Value to be assigned
465
+ def password=(password)
466
+ if !password.nil? && password.to_s.length < 1
467
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
472
468
  end
473
469
 
474
- @connect_timeout = connect_timeout
470
+ @password = password
475
471
  end
476
472
 
477
473
  # Custom attribute writer method with validation
@@ -484,16 +480,6 @@ module PulpAnsibleClient
484
480
  @sock_read_timeout = sock_read_timeout
485
481
  end
486
482
 
487
- # Custom attribute writer method with validation
488
- # @param [Object] total_timeout Value to be assigned
489
- def total_timeout=(total_timeout)
490
- if !total_timeout.nil? && total_timeout < 0.0
491
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
492
- end
493
-
494
- @total_timeout = total_timeout
495
- end
496
-
497
483
  # Custom attribute writer method with validation
498
484
  # @param [Object] name Value to be assigned
499
485
  def name=(name)
@@ -509,33 +495,47 @@ module PulpAnsibleClient
509
495
  end
510
496
 
511
497
  # Custom attribute writer method with validation
512
- # @param [Object] proxy_username Value to be assigned
513
- def proxy_username=(proxy_username)
514
- if !proxy_username.nil? && proxy_username.to_s.length < 1
515
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
498
+ # @param [Object] download_concurrency Value to be assigned
499
+ def download_concurrency=(download_concurrency)
500
+ if !download_concurrency.nil? && download_concurrency < 1
501
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
516
502
  end
517
503
 
518
- @proxy_username = proxy_username
504
+ @download_concurrency = download_concurrency
519
505
  end
520
506
 
521
507
  # Custom attribute writer method with validation
522
- # @param [Object] client_cert Value to be assigned
523
- def client_cert=(client_cert)
524
- if !client_cert.nil? && client_cert.to_s.length < 1
525
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
508
+ # @param [Object] username Value to be assigned
509
+ def username=(username)
510
+ if !username.nil? && username.to_s.length < 1
511
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
526
512
  end
527
513
 
528
- @client_cert = client_cert
514
+ @username = username
529
515
  end
530
516
 
531
517
  # Custom attribute writer method with validation
532
- # @param [Object] password Value to be assigned
533
- def password=(password)
534
- if !password.nil? && password.to_s.length < 1
535
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
518
+ # @param [Object] url Value to be assigned
519
+ def url=(url)
520
+ if url.nil?
521
+ fail ArgumentError, 'url cannot be nil'
536
522
  end
537
523
 
538
- @password = password
524
+ if url.to_s.length < 1
525
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
526
+ end
527
+
528
+ @url = url
529
+ end
530
+
531
+ # Custom attribute writer method with validation
532
+ # @param [Object] proxy_url Value to be assigned
533
+ def proxy_url=(proxy_url)
534
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
535
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
536
+ end
537
+
538
+ @proxy_url = proxy_url
539
539
  end
540
540
 
541
541
  # Custom attribute writer method with validation
@@ -557,26 +557,26 @@ module PulpAnsibleClient
557
557
  def ==(o)
558
558
  return true if self.equal?(o)
559
559
  self.class == o.class &&
560
- download_concurrency == o.download_concurrency &&
561
- tls_validation == o.tls_validation &&
562
- max_retries == o.max_retries &&
563
- proxy_password == o.proxy_password &&
564
- url == o.url &&
565
- username == o.username &&
566
560
  sock_connect_timeout == o.sock_connect_timeout &&
561
+ client_cert == o.client_cert &&
567
562
  client_key == o.client_key &&
568
- ca_cert == o.ca_cert &&
569
- proxy_url == o.proxy_url &&
563
+ max_retries == o.max_retries &&
564
+ tls_validation == o.tls_validation &&
570
565
  connect_timeout == o.connect_timeout &&
571
- sock_read_timeout == o.sock_read_timeout &&
572
- total_timeout == o.total_timeout &&
573
- name == o.name &&
574
- headers == o.headers &&
575
566
  proxy_username == o.proxy_username &&
576
- client_cert == o.client_cert &&
567
+ proxy_password == o.proxy_password &&
568
+ total_timeout == o.total_timeout &&
569
+ ca_cert == o.ca_cert &&
577
570
  rate_limit == o.rate_limit &&
578
- pulp_labels == o.pulp_labels &&
579
571
  password == o.password &&
572
+ sock_read_timeout == o.sock_read_timeout &&
573
+ name == o.name &&
574
+ download_concurrency == o.download_concurrency &&
575
+ username == o.username &&
576
+ url == o.url &&
577
+ pulp_labels == o.pulp_labels &&
578
+ headers == o.headers &&
579
+ proxy_url == o.proxy_url &&
580
580
  metadata_only == o.metadata_only &&
581
581
  git_ref == o.git_ref
582
582
  end
@@ -590,7 +590,7 @@ module PulpAnsibleClient
590
590
  # Calculates hash code according to all attributes.
591
591
  # @return [Integer] Hash code
592
592
  def hash
593
- [download_concurrency, tls_validation, max_retries, proxy_password, url, username, sock_connect_timeout, client_key, ca_cert, proxy_url, connect_timeout, sock_read_timeout, total_timeout, name, headers, proxy_username, client_cert, rate_limit, pulp_labels, password, metadata_only, git_ref].hash
593
+ [sock_connect_timeout, client_cert, client_key, max_retries, tls_validation, connect_timeout, proxy_username, proxy_password, total_timeout, ca_cert, rate_limit, password, sock_read_timeout, name, download_concurrency, username, url, pulp_labels, headers, proxy_url, metadata_only, git_ref].hash
594
594
  end
595
595
 
596
596
  # Builds the object from hash