pulp_ansible_client 0.11.0.dev1637205359 → 0.11.0.dev1638328524

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.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

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