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