pulp_ansible_client 0.10.5 → 0.11.0

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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -4
  3. data/docs/AnsibleCollectionRemote.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleGitRemote.md +59 -0
  7. data/docs/AnsibleGitRemoteResponse.md +55 -0
  8. data/docs/AnsibleRoleRemote.md +1 -1
  9. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionResponse.md +4 -0
  12. data/docs/PaginatedansibleGitRemoteResponseList.md +23 -0
  13. data/docs/PatchedansibleCollectionRemote.md +1 -1
  14. data/docs/PatchedansibleGitRemote.md +59 -0
  15. data/docs/PatchedansibleRoleRemote.md +1 -1
  16. data/docs/RemotesGitApi.md +376 -0
  17. data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
  18. data/git_push.sh +58 -0
  19. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
  20. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
  21. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
  22. data/lib/pulp_ansible_client/api/remotes_git_api.rb +463 -0
  23. data/lib/pulp_ansible_client/api_client.rb +5 -2
  24. data/lib/pulp_ansible_client/configuration.rb +0 -1
  25. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
  26. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
  27. data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
  28. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +192 -1
  29. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +28 -2
  30. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
  31. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -19
  32. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +692 -0
  33. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +493 -0
  34. data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
  35. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +159 -1
  36. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  37. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  38. data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
  39. data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
  40. data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
  41. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +237 -0
  42. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
  43. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
  44. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +184 -1
  45. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +674 -0
  46. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +151 -1
  47. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
  48. data/lib/pulp_ansible_client/version.rb +1 -1
  49. data/lib/pulp_ansible_client.rb +5 -0
  50. data/pulp_ansible_client.gemspec +3 -3
  51. data/spec/api/remotes_git_api_spec.rb +127 -0
  52. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  53. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  54. data/spec/models/ansible_git_remote_response_spec.rb +155 -0
  55. data/spec/models/ansible_git_remote_spec.rb +167 -0
  56. data/spec/models/ansible_role_response_spec.rb +2 -2
  57. data/spec/models/collection_version_response_spec.rb +12 -0
  58. data/spec/models/paginatedansible_git_remote_response_list_spec.rb +59 -0
  59. data/spec/models/patchedansible_git_remote_spec.rb +167 -0
  60. data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
  61. metadata +94 -79
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ class PaginatedansibleGitRemoteResponseList
17
+ attr_accessor :count
18
+
19
+ attr_accessor :_next
20
+
21
+ attr_accessor :previous
22
+
23
+ attr_accessor :results
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'count' => :'count',
29
+ :'_next' => :'next',
30
+ :'previous' => :'previous',
31
+ :'results' => :'results'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'count' => :'Integer',
39
+ :'_next' => :'String',
40
+ :'previous' => :'String',
41
+ :'results' => :'Array<AnsibleGitRemoteResponse>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PaginatedansibleGitRemoteResponseList` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PaginatedansibleGitRemoteResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'count')
69
+ self.count = attributes[:'count']
70
+ end
71
+
72
+ if attributes.key?(:'_next')
73
+ self._next = attributes[:'_next']
74
+ end
75
+
76
+ if attributes.key?(:'previous')
77
+ self.previous = attributes[:'previous']
78
+ end
79
+
80
+ if attributes.key?(:'results')
81
+ if (value = attributes[:'results']).is_a?(Array)
82
+ self.results = value
83
+ end
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ count == o.count &&
106
+ _next == o._next &&
107
+ previous == o.previous &&
108
+ results == o.results
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [count, _next, previous, results].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.openapi_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+ end
237
+ end
@@ -109,15 +109,45 @@ module PulpAnsibleClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if !@base_path.nil? && @base_path.to_s.length < 1
113
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
114
+ end
115
+
116
+ if !@name.nil? && @name.to_s.length < 1
117
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
118
+ end
119
+
112
120
  invalid_properties
113
121
  end
114
122
 
115
123
  # Check to see if the all the properties in the model are valid
116
124
  # @return true if the model is valid
117
125
  def valid?
126
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
127
+ return false if !@name.nil? && @name.to_s.length < 1
118
128
  true
119
129
  end
120
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] base_path Value to be assigned
133
+ def base_path=(base_path)
134
+ if !base_path.nil? && base_path.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @base_path = base_path
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] name Value to be assigned
143
+ def name=(name)
144
+ if !name.nil? && name.to_s.length < 1
145
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
146
+ end
147
+
148
+ @name = name
149
+ end
150
+
121
151
  # Checks equality by comparing each attribute.
122
152
  # @param [Object] Object to be compared
123
153
  def ==(o)
@@ -110,6 +110,14 @@ module PulpAnsibleClient
110
110
  # @return Array for valid properties with the reasons
111
111
  def list_invalid_properties
112
112
  invalid_properties = Array.new
113
+ if !@name.nil? && @name.to_s.length < 1
114
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
+ end
116
+
117
+ if !@description.nil? && @description.to_s.length < 1
118
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
+ end
120
+
113
121
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
122
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
123
  end
@@ -120,10 +128,32 @@ module PulpAnsibleClient
120
128
  # Check to see if the all the properties in the model are valid
121
129
  # @return true if the model is valid
122
130
  def valid?
131
+ return false if !@name.nil? && @name.to_s.length < 1
132
+ return false if !@description.nil? && @description.to_s.length < 1
123
133
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
124
134
  true
125
135
  end
126
136
 
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] name Value to be assigned
139
+ def name=(name)
140
+ if !name.nil? && name.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @name = name
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] description Value to be assigned
149
+ def description=(description)
150
+ if !description.nil? && description.to_s.length < 1
151
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
152
+ end
153
+
154
+ @description = description
155
+ end
156
+
127
157
  # Custom attribute writer method with validation
128
158
  # @param [Object] retain_repo_versions Value to be assigned
129
159
  def retain_repo_versions=(retain_repo_versions)
@@ -74,7 +74,7 @@ module PulpAnsibleClient
74
74
  # Headers for aiohttp.Clientsession
75
75
  attr_accessor :headers
76
76
 
77
- # Limits total download rate in requests per second
77
+ # Limits requests per second for each concurrent downloader
78
78
  attr_accessor :rate_limit
79
79
 
80
80
  # The string version of Collection requirements yaml.
@@ -300,6 +300,46 @@ module PulpAnsibleClient
300
300
  # @return Array for valid properties with the reasons
301
301
  def list_invalid_properties
302
302
  invalid_properties = Array.new
303
+ if !@name.nil? && @name.to_s.length < 1
304
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
305
+ end
306
+
307
+ if !@url.nil? && @url.to_s.length < 1
308
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
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.')
313
+ end
314
+
315
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
316
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
317
+ end
318
+
319
+ if !@client_key.nil? && @client_key.to_s.length < 1
320
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
321
+ end
322
+
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.')
325
+ end
326
+
327
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
328
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
329
+ end
330
+
331
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
332
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
333
+ end
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
+
339
+ if !@password.nil? && @password.to_s.length < 1
340
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
341
+ end
342
+
303
343
  if !@download_concurrency.nil? && @download_concurrency < 1
304
344
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
305
345
  end
@@ -320,30 +360,155 @@ module PulpAnsibleClient
320
360
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
321
361
  end
322
362
 
363
+ if !@requirements_file.nil? && @requirements_file.to_s.length < 1
364
+ invalid_properties.push('invalid value for "requirements_file", the character length must be great than or equal to 1.')
365
+ end
366
+
323
367
  if !@auth_url.nil? && @auth_url.to_s.length > 255
324
368
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
325
369
  end
326
370
 
371
+ if !@auth_url.nil? && @auth_url.to_s.length < 1
372
+ invalid_properties.push('invalid value for "auth_url", the character length must be great than or equal to 1.')
373
+ end
374
+
327
375
  if !@token.nil? && @token.to_s.length > 2000
328
376
  invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
329
377
  end
330
378
 
379
+ if !@token.nil? && @token.to_s.length < 1
380
+ invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
381
+ end
382
+
331
383
  invalid_properties
332
384
  end
333
385
 
334
386
  # Check to see if the all the properties in the model are valid
335
387
  # @return true if the model is valid
336
388
  def valid?
389
+ return false if !@name.nil? && @name.to_s.length < 1
390
+ return false if !@url.nil? && @url.to_s.length < 1
391
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
392
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
393
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
394
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
395
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
396
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
397
+ return false if !@username.nil? && @username.to_s.length < 1
398
+ return false if !@password.nil? && @password.to_s.length < 1
337
399
  return false if !@download_concurrency.nil? && @download_concurrency < 1
338
400
  return false if !@total_timeout.nil? && @total_timeout < 0.0
339
401
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
340
402
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
341
403
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
404
+ return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
342
405
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
406
+ return false if !@auth_url.nil? && @auth_url.to_s.length < 1
343
407
  return false if !@token.nil? && @token.to_s.length > 2000
408
+ return false if !@token.nil? && @token.to_s.length < 1
344
409
  true
345
410
  end
346
411
 
412
+ # Custom attribute writer method with validation
413
+ # @param [Object] name Value to be assigned
414
+ def name=(name)
415
+ if !name.nil? && name.to_s.length < 1
416
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
417
+ end
418
+
419
+ @name = name
420
+ end
421
+
422
+ # Custom attribute writer method with validation
423
+ # @param [Object] url Value to be assigned
424
+ def url=(url)
425
+ if !url.nil? && url.to_s.length < 1
426
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
427
+ end
428
+
429
+ @url = url
430
+ end
431
+
432
+ # Custom attribute writer method with validation
433
+ # @param [Object] ca_cert Value to be assigned
434
+ def ca_cert=(ca_cert)
435
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
436
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
437
+ end
438
+
439
+ @ca_cert = ca_cert
440
+ end
441
+
442
+ # Custom attribute writer method with validation
443
+ # @param [Object] client_cert Value to be assigned
444
+ def client_cert=(client_cert)
445
+ if !client_cert.nil? && client_cert.to_s.length < 1
446
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
447
+ end
448
+
449
+ @client_cert = client_cert
450
+ end
451
+
452
+ # Custom attribute writer method with validation
453
+ # @param [Object] client_key Value to be assigned
454
+ def client_key=(client_key)
455
+ if !client_key.nil? && client_key.to_s.length < 1
456
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
457
+ end
458
+
459
+ @client_key = client_key
460
+ end
461
+
462
+ # Custom attribute writer method with validation
463
+ # @param [Object] proxy_url Value to be assigned
464
+ def proxy_url=(proxy_url)
465
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
466
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
467
+ end
468
+
469
+ @proxy_url = proxy_url
470
+ end
471
+
472
+ # Custom attribute writer method with validation
473
+ # @param [Object] proxy_username Value to be assigned
474
+ def proxy_username=(proxy_username)
475
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
476
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
477
+ end
478
+
479
+ @proxy_username = proxy_username
480
+ end
481
+
482
+ # Custom attribute writer method with validation
483
+ # @param [Object] proxy_password Value to be assigned
484
+ def proxy_password=(proxy_password)
485
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
486
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
487
+ end
488
+
489
+ @proxy_password = proxy_password
490
+ end
491
+
492
+ # Custom attribute writer method with validation
493
+ # @param [Object] username Value to be assigned
494
+ def username=(username)
495
+ if !username.nil? && username.to_s.length < 1
496
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
497
+ end
498
+
499
+ @username = username
500
+ end
501
+
502
+ # Custom attribute writer method with validation
503
+ # @param [Object] password Value to be assigned
504
+ def password=(password)
505
+ if !password.nil? && password.to_s.length < 1
506
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
507
+ end
508
+
509
+ @password = password
510
+ end
511
+
347
512
  # Custom attribute writer method with validation
348
513
  # @param [Object] download_concurrency Value to be assigned
349
514
  def download_concurrency=(download_concurrency)
@@ -394,6 +559,16 @@ module PulpAnsibleClient
394
559
  @sock_read_timeout = sock_read_timeout
395
560
  end
396
561
 
562
+ # Custom attribute writer method with validation
563
+ # @param [Object] requirements_file Value to be assigned
564
+ def requirements_file=(requirements_file)
565
+ if !requirements_file.nil? && requirements_file.to_s.length < 1
566
+ fail ArgumentError, 'invalid value for "requirements_file", the character length must be great than or equal to 1.'
567
+ end
568
+
569
+ @requirements_file = requirements_file
570
+ end
571
+
397
572
  # Custom attribute writer method with validation
398
573
  # @param [Object] auth_url Value to be assigned
399
574
  def auth_url=(auth_url)
@@ -401,6 +576,10 @@ module PulpAnsibleClient
401
576
  fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
402
577
  end
403
578
 
579
+ if !auth_url.nil? && auth_url.to_s.length < 1
580
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be great than or equal to 1.'
581
+ end
582
+
404
583
  @auth_url = auth_url
405
584
  end
406
585
 
@@ -411,6 +590,10 @@ module PulpAnsibleClient
411
590
  fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
412
591
  end
413
592
 
593
+ if !token.nil? && token.to_s.length < 1
594
+ fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
595
+ end
596
+
414
597
  @token = token
415
598
  end
416
599