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.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +59 -0
- data/docs/AnsibleGitRemoteResponse.md +55 -0
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionResponse.md +4 -0
- data/docs/PaginatedansibleGitRemoteResponseList.md +23 -0
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +59 -0
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/RemotesGitApi.md +376 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
- data/git_push.sh +58 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +463 -0
- data/lib/pulp_ansible_client/api_client.rb +5 -2
- data/lib/pulp_ansible_client/configuration.rb +0 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +192 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +28 -2
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -19
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +692 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +493 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +159 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +184 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +674 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +151 -1
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +5 -0
- data/pulp_ansible_client.gemspec +3 -3
- data/spec/api/remotes_git_api_spec.rb +127 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +155 -0
- data/spec/models/ansible_git_remote_spec.rb +167 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +12 -0
- data/spec/models/paginatedansible_git_remote_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_git_remote_spec.rb +167 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
- metadata +94 -79
@@ -74,7 +74,7 @@ module PulpAnsibleClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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)
|
@@ -67,7 +67,7 @@ module PulpAnsibleClient
|
|
67
67
|
# Headers for aiohttp.Clientsession
|
68
68
|
attr_accessor :headers
|
69
69
|
|
70
|
-
# Limits
|
70
|
+
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
-
|
19
|
-
attr_accessor :pulp_created
|
18
|
+
attr_accessor :pulp_href
|
20
19
|
|
21
20
|
# Artifact file representing the physical content
|
22
21
|
attr_accessor :artifact
|
23
22
|
|
24
|
-
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
25
25
|
|
26
26
|
attr_accessor :version
|
27
27
|
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_created' => :'pulp_created',
|
36
|
-
:'artifact' => :'artifact',
|
37
35
|
:'pulp_href' => :'pulp_href',
|
36
|
+
:'artifact' => :'artifact',
|
37
|
+
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'pulp_created' => :'DateTime',
|
48
|
-
:'artifact' => :'String',
|
49
47
|
:'pulp_href' => :'String',
|
48
|
+
:'artifact' => :'String',
|
49
|
+
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,16 +74,16 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
-
if attributes.key?(:'
|
78
|
-
self.
|
77
|
+
if attributes.key?(:'pulp_href')
|
78
|
+
self.pulp_href = attributes[:'pulp_href']
|
79
79
|
end
|
80
80
|
|
81
81
|
if attributes.key?(:'artifact')
|
82
82
|
self.artifact = attributes[:'artifact']
|
83
83
|
end
|
84
84
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
85
|
+
if attributes.key?(:'pulp_created')
|
86
|
+
self.pulp_created = attributes[:'pulp_created']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes.key?(:'version')
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
-
pulp_created == o.pulp_created &&
|
141
|
-
artifact == o.artifact &&
|
142
140
|
pulp_href == o.pulp_href &&
|
141
|
+
artifact == o.artifact &&
|
142
|
+
pulp_created == o.pulp_created &&
|
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
|
-
[
|
157
|
+
[pulp_href, artifact, pulp_created, 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)
|