pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1638328524

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (41) 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 +30 -28
  5. data/docs/AnsibleGitRemoteResponse.md +28 -26
  6. data/docs/AnsibleRoleResponse.md +2 -2
  7. data/docs/CollectionVersionResponse.md +4 -0
  8. data/docs/PatchedansibleGitRemote.md +30 -28
  9. data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
  10. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
  12. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
  13. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
  14. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
  15. data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
  16. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +191 -0
  17. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
  18. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -16
  19. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +336 -153
  20. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -143
  21. data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
  22. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +158 -0
  23. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  24. data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
  25. data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
  26. data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
  27. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
  28. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
  29. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +183 -0
  30. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +323 -148
  31. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +150 -0
  32. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  35. data/spec/models/ansible_git_remote_response_spec.rb +22 -16
  36. data/spec/models/ansible_git_remote_spec.rb +24 -18
  37. data/spec/models/ansible_role_response_spec.rb +2 -2
  38. data/spec/models/collection_version_response_spec.rb +12 -0
  39. data/spec/models/patchedansible_git_remote_spec.rb +24 -18
  40. data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
  41. metadata +70 -70
@@ -262,10 +262,50 @@ module PulpAnsibleClient
262
262
  invalid_properties.push('invalid value for "name", name cannot be nil.')
263
263
  end
264
264
 
265
+ if @name.to_s.length < 1
266
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
267
+ end
268
+
265
269
  if @url.nil?
266
270
  invalid_properties.push('invalid value for "url", url cannot be nil.')
267
271
  end
268
272
 
273
+ if @url.to_s.length < 1
274
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
275
+ end
276
+
277
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
278
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
279
+ end
280
+
281
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
282
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
283
+ end
284
+
285
+ if !@client_key.nil? && @client_key.to_s.length < 1
286
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
287
+ end
288
+
289
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
290
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
291
+ end
292
+
293
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
294
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
295
+ end
296
+
297
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
298
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
299
+ end
300
+
301
+ if !@username.nil? && @username.to_s.length < 1
302
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
303
+ end
304
+
305
+ if !@password.nil? && @password.to_s.length < 1
306
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
307
+ end
308
+
269
309
  if !@download_concurrency.nil? && @download_concurrency < 1
270
310
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
271
311
  end
@@ -293,7 +333,17 @@ module PulpAnsibleClient
293
333
  # @return true if the model is valid
294
334
  def valid?
295
335
  return false if @name.nil?
336
+ return false if @name.to_s.length < 1
296
337
  return false if @url.nil?
338
+ return false if @url.to_s.length < 1
339
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
340
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
341
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
342
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
343
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
344
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
+ return false if !@username.nil? && @username.to_s.length < 1
346
+ return false if !@password.nil? && @password.to_s.length < 1
297
347
  return false if !@download_concurrency.nil? && @download_concurrency < 1
298
348
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
349
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -302,6 +352,114 @@ module PulpAnsibleClient
302
352
  true
303
353
  end
304
354
 
355
+ # Custom attribute writer method with validation
356
+ # @param [Object] name Value to be assigned
357
+ def name=(name)
358
+ if name.nil?
359
+ fail ArgumentError, 'name cannot be nil'
360
+ end
361
+
362
+ if name.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
364
+ end
365
+
366
+ @name = name
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] url Value to be assigned
371
+ def url=(url)
372
+ if url.nil?
373
+ fail ArgumentError, 'url cannot be nil'
374
+ end
375
+
376
+ if url.to_s.length < 1
377
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
378
+ end
379
+
380
+ @url = url
381
+ end
382
+
383
+ # Custom attribute writer method with validation
384
+ # @param [Object] ca_cert Value to be assigned
385
+ def ca_cert=(ca_cert)
386
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
387
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
388
+ end
389
+
390
+ @ca_cert = ca_cert
391
+ end
392
+
393
+ # Custom attribute writer method with validation
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
+ end
399
+
400
+ @client_cert = client_cert
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
411
+ end
412
+
413
+ # Custom attribute writer method with validation
414
+ # @param [Object] proxy_url Value to be assigned
415
+ def proxy_url=(proxy_url)
416
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
417
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
418
+ end
419
+
420
+ @proxy_url = proxy_url
421
+ end
422
+
423
+ # Custom attribute writer method with validation
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.'
428
+ end
429
+
430
+ @proxy_username = proxy_username
431
+ end
432
+
433
+ # Custom attribute writer method with validation
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.'
438
+ end
439
+
440
+ @proxy_password = proxy_password
441
+ end
442
+
443
+ # Custom attribute writer method with validation
444
+ # @param [Object] username Value to be assigned
445
+ def username=(username)
446
+ if !username.nil? && username.to_s.length < 1
447
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
448
+ end
449
+
450
+ @username = username
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
+
305
463
  # Custom attribute writer method with validation
306
464
  # @param [Object] download_concurrency Value to be assigned
307
465
  def download_concurrency=(download_concurrency)
@@ -17,12 +17,12 @@ module PulpAnsibleClient
17
17
  class AnsibleRoleResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # Artifact file representing the physical content
21
- attr_accessor :artifact
22
-
23
20
  # Timestamp of creation.
24
21
  attr_accessor :pulp_created
25
22
 
23
+ # Artifact file representing the physical content
24
+ attr_accessor :artifact
25
+
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'pulp_href' => :'pulp_href',
36
- :'artifact' => :'artifact',
37
36
  :'pulp_created' => :'pulp_created',
37
+ :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -45,8 +45,8 @@ module PulpAnsibleClient
45
45
  def self.openapi_types
46
46
  {
47
47
  :'pulp_href' => :'String',
48
- :'artifact' => :'String',
49
48
  :'pulp_created' => :'DateTime',
49
+ :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  self.pulp_href = attributes[:'pulp_href']
79
79
  end
80
80
 
81
- if attributes.key?(:'artifact')
82
- self.artifact = attributes[:'artifact']
83
- end
84
-
85
81
  if attributes.key?(:'pulp_created')
86
82
  self.pulp_created = attributes[:'pulp_created']
87
83
  end
88
84
 
85
+ if attributes.key?(:'artifact')
86
+ self.artifact = attributes[:'artifact']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -138,8 +138,8 @@ module PulpAnsibleClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  pulp_href == o.pulp_href &&
141
- artifact == o.artifact &&
142
141
  pulp_created == o.pulp_created &&
142
+ artifact == o.artifact &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, artifact, pulp_created, version, name, namespace].hash
157
+ [pulp_href, pulp_created, artifact, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -102,6 +102,22 @@ module PulpAnsibleClient
102
102
  invalid_properties.push('invalid value for "file", file cannot be nil.')
103
103
  end
104
104
 
105
+ if !@sha256.nil? && @sha256.to_s.length < 1
106
+ invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
107
+ end
108
+
109
+ if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
110
+ invalid_properties.push('invalid value for "expected_namespace", the character length must be great than or equal to 1.')
111
+ end
112
+
113
+ if !@expected_name.nil? && @expected_name.to_s.length < 1
114
+ invalid_properties.push('invalid value for "expected_name", the character length must be great than or equal to 1.')
115
+ end
116
+
117
+ if !@expected_version.nil? && @expected_version.to_s.length < 1
118
+ invalid_properties.push('invalid value for "expected_version", the character length must be great than or equal to 1.')
119
+ end
120
+
105
121
  invalid_properties
106
122
  end
107
123
 
@@ -109,9 +125,53 @@ module PulpAnsibleClient
109
125
  # @return true if the model is valid
110
126
  def valid?
111
127
  return false if @file.nil?
128
+ return false if !@sha256.nil? && @sha256.to_s.length < 1
129
+ return false if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
130
+ return false if !@expected_name.nil? && @expected_name.to_s.length < 1
131
+ return false if !@expected_version.nil? && @expected_version.to_s.length < 1
112
132
  true
113
133
  end
114
134
 
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] sha256 Value to be assigned
137
+ def sha256=(sha256)
138
+ if !sha256.nil? && sha256.to_s.length < 1
139
+ fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
140
+ end
141
+
142
+ @sha256 = sha256
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] expected_namespace Value to be assigned
147
+ def expected_namespace=(expected_namespace)
148
+ if !expected_namespace.nil? && expected_namespace.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "expected_namespace", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @expected_namespace = expected_namespace
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] expected_name Value to be assigned
157
+ def expected_name=(expected_name)
158
+ if !expected_name.nil? && expected_name.to_s.length < 1
159
+ fail ArgumentError, 'invalid value for "expected_name", the character length must be great than or equal to 1.'
160
+ end
161
+
162
+ @expected_name = expected_name
163
+ end
164
+
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] expected_version Value to be assigned
167
+ def expected_version=(expected_version)
168
+ if !expected_version.nil? && expected_version.to_s.length < 1
169
+ fail ArgumentError, 'invalid value for "expected_version", the character length must be great than or equal to 1.'
170
+ end
171
+
172
+ @expected_version = expected_version
173
+ end
174
+
115
175
  # Checks equality by comparing each attribute.
116
176
  # @param [Object] Object to be compared
117
177
  def ==(o)
@@ -37,6 +37,10 @@ module PulpAnsibleClient
37
37
 
38
38
  attr_accessor :metadata
39
39
 
40
+ attr_accessor :git_url
41
+
42
+ attr_accessor :git_commit_sha
43
+
40
44
  # A JSON field holding MANIFEST.json data.
41
45
  attr_accessor :manifest
42
46
 
@@ -57,6 +61,8 @@ module PulpAnsibleClient
57
61
  :'name' => :'name',
58
62
  :'namespace' => :'namespace',
59
63
  :'metadata' => :'metadata',
64
+ :'git_url' => :'git_url',
65
+ :'git_commit_sha' => :'git_commit_sha',
60
66
  :'manifest' => :'manifest',
61
67
  :'files' => :'files'
62
68
  }
@@ -76,6 +82,8 @@ module PulpAnsibleClient
76
82
  :'name' => :'String',
77
83
  :'namespace' => :'CollectionNamespaceResponse',
78
84
  :'metadata' => :'CollectionMetadataResponse',
85
+ :'git_url' => :'String',
86
+ :'git_commit_sha' => :'String',
79
87
  :'manifest' => :'Object',
80
88
  :'files' => :'Object'
81
89
  }
@@ -147,6 +155,14 @@ module PulpAnsibleClient
147
155
  self.metadata = attributes[:'metadata']
148
156
  end
149
157
 
158
+ if attributes.key?(:'git_url')
159
+ self.git_url = attributes[:'git_url']
160
+ end
161
+
162
+ if attributes.key?(:'git_commit_sha')
163
+ self.git_commit_sha = attributes[:'git_commit_sha']
164
+ end
165
+
150
166
  if attributes.key?(:'manifest')
151
167
  self.manifest = attributes[:'manifest']
152
168
  end
@@ -210,6 +226,8 @@ module PulpAnsibleClient
210
226
  name == o.name &&
211
227
  namespace == o.namespace &&
212
228
  metadata == o.metadata &&
229
+ git_url == o.git_url &&
230
+ git_commit_sha == o.git_commit_sha &&
213
231
  manifest == o.manifest &&
214
232
  files == o.files
215
233
  end
@@ -223,7 +241,7 @@ module PulpAnsibleClient
223
241
  # Calculates hash code according to all attributes.
224
242
  # @return [Integer] Hash code
225
243
  def hash
226
- [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, manifest, files].hash
244
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, git_url, git_commit_sha, manifest, files].hash
227
245
  end
228
246
 
229
247
  # Builds the object from hash
@@ -89,10 +89,18 @@ module PulpAnsibleClient
89
89
  invalid_properties.push('invalid value for "id", id cannot be nil.')
90
90
  end
91
91
 
92
+ if @id.to_s.length < 1
93
+ invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
94
+ end
95
+
92
96
  if @name.nil?
93
97
  invalid_properties.push('invalid value for "name", name cannot be nil.')
94
98
  end
95
99
 
100
+ if @name.to_s.length < 1
101
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
102
+ end
103
+
96
104
  if @created.nil?
97
105
  invalid_properties.push('invalid value for "created", created cannot be nil.')
98
106
  end
@@ -108,12 +116,42 @@ module PulpAnsibleClient
108
116
  # @return true if the model is valid
109
117
  def valid?
110
118
  return false if @id.nil?
119
+ return false if @id.to_s.length < 1
111
120
  return false if @name.nil?
121
+ return false if @name.to_s.length < 1
112
122
  return false if @created.nil?
113
123
  return false if @modified.nil?
114
124
  true
115
125
  end
116
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] id Value to be assigned
129
+ def id=(id)
130
+ if id.nil?
131
+ fail ArgumentError, 'id cannot be nil'
132
+ end
133
+
134
+ if id.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @id = id
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?
145
+ fail ArgumentError, 'name cannot be nil'
146
+ end
147
+
148
+ if name.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @name = name
153
+ end
154
+
117
155
  # Checks equality by comparing each attribute.
118
156
  # @param [Object] Object to be compared
119
157
  def ==(o)
@@ -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)