pulp_ansible_client 0.2.0b12 → 0.2.0b13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -11
- data/docs/AnsibleAnsibleDistributionRead.md +31 -0
- data/docs/AnsibleAnsibleRemote.md +7 -3
- data/docs/AnsibleAnsibleRemoteRead.md +43 -0
- data/docs/AnsibleAnsibleRepositoryRead.md +27 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionRead.md} +2 -2
- data/docs/AnsibleCollectionRemote.md +7 -3
- data/docs/AnsibleCollectionRemoteRead.md +45 -0
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionRead.md +67 -0
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleRead.md +27 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailRead.md} +2 -2
- data/docs/CollectionRead.md +31 -0
- data/docs/CollectionVersionRead.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentRolesApi.md +5 -5
- data/docs/DistributionsAnsibleApi.md +3 -3
- data/docs/GalaxyCollectionRead.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionRead.md} +2 -2
- data/docs/{GalaxyRole.md → GalaxyRoleRead.md} +2 -2
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionRead.md} +2 -2
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +3 -3
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesAnsibleApi.md +5 -5
- data/docs/RemotesCollectionApi.md +5 -5
- data/docs/RepositoriesAnsibleApi.md +10 -10
- data/docs/RepositoriesAnsibleVersionsApi.md +3 -3
- data/docs/RepositoryVersionRead.md +25 -0
- data/docs/{Tag.md → TagRead.md} +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -6
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -3
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +6 -6
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_read.rb +327 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_remote.rb +56 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_remote_read.rb +531 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_read.rb +294 -0
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +56 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_read.rb +557 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +35 -35
- data/lib/pulp_ansible_client/models/ansible_collection_version_read.rb +816 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_role_read.rb +330 -0
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/collection_read.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_version_read.rb +370 -0
- data/lib/pulp_ansible_client/models/galaxy_collection_read.rb +281 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_read.rb +244 -0
- data/lib/pulp_ansible_client/models/{tag.rb → tag_read.rb} +3 -3
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +16 -6
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_roles_api_spec.rb +2 -2
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/remotes_ansible_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +2 -2
- data/spec/api/repositories_ansible_api_spec.rb +6 -6
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_distribution_read_spec.rb +83 -0
- data/spec/models/ansible_ansible_remote_read_spec.rb +123 -0
- data/spec/models/ansible_ansible_remote_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_read_spec.rb +71 -0
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_read_spec.rb} +6 -6
- data/spec/models/ansible_collection_remote_read_spec.rb +129 -0
- data/spec/models/ansible_collection_remote_spec.rb +12 -0
- data/spec/models/ansible_collection_version_read_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_role_read_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_read_spec.rb} +6 -6
- data/spec/models/collection_read_spec.rb +83 -0
- data/spec/models/collection_version_read_spec.rb +105 -0
- data/spec/models/galaxy_collection_read_spec.rb +59 -0
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_read_spec.rb} +6 -6
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_read_spec.rb} +6 -6
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_read_spec.rb} +6 -6
- data/spec/models/repository_version_read_spec.rb +65 -0
- data/spec/models/{tag_spec.rb → tag_read_spec.rb} +6 -6
- metadata +66 -26
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
class AnsibleCollectionVersion
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# Timestamp of creation.
|
18
|
+
attr_accessor :pulp_created
|
19
19
|
|
20
20
|
attr_accessor :pulp_href
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
22
|
+
# Artifact file representing the physical content
|
23
|
+
attr_accessor :artifact
|
24
24
|
|
25
25
|
# The MD5 checksum if available.
|
26
26
|
attr_accessor :md5
|
@@ -93,9 +93,9 @@ module PulpAnsibleClient
|
|
93
93
|
# Attribute mapping from ruby-style variable name to JSON key.
|
94
94
|
def self.attribute_map
|
95
95
|
{
|
96
|
-
:'artifact' => :'artifact',
|
97
|
-
:'pulp_href' => :'pulp_href',
|
98
96
|
:'pulp_created' => :'pulp_created',
|
97
|
+
:'pulp_href' => :'pulp_href',
|
98
|
+
:'artifact' => :'artifact',
|
99
99
|
:'md5' => :'md5',
|
100
100
|
:'sha1' => :'sha1',
|
101
101
|
:'sha224' => :'sha224',
|
@@ -125,9 +125,9 @@ module PulpAnsibleClient
|
|
125
125
|
# Attribute type mapping.
|
126
126
|
def self.openapi_types
|
127
127
|
{
|
128
|
-
:'artifact' => :'String',
|
129
|
-
:'pulp_href' => :'String',
|
130
128
|
:'pulp_created' => :'DateTime',
|
129
|
+
:'pulp_href' => :'String',
|
130
|
+
:'artifact' => :'String',
|
131
131
|
:'md5' => :'String',
|
132
132
|
:'sha1' => :'String',
|
133
133
|
:'sha224' => :'String',
|
@@ -175,16 +175,16 @@ module PulpAnsibleClient
|
|
175
175
|
h[k.to_sym] = v
|
176
176
|
}
|
177
177
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
178
|
+
if attributes.key?(:'pulp_created')
|
179
|
+
self.pulp_created = attributes[:'pulp_created']
|
180
180
|
end
|
181
181
|
|
182
182
|
if attributes.key?(:'pulp_href')
|
183
183
|
self.pulp_href = attributes[:'pulp_href']
|
184
184
|
end
|
185
185
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
186
|
+
if attributes.key?(:'artifact')
|
187
|
+
self.artifact = attributes[:'artifact']
|
188
188
|
end
|
189
189
|
|
190
190
|
if attributes.key?(:'md5')
|
@@ -352,24 +352,24 @@ module PulpAnsibleClient
|
|
352
352
|
invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
|
353
353
|
end
|
354
354
|
|
355
|
-
if @documentation.to_s.length >
|
356
|
-
invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to
|
355
|
+
if @documentation.to_s.length > 2000
|
356
|
+
invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
|
357
357
|
end
|
358
358
|
|
359
359
|
if @homepage.nil?
|
360
360
|
invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
|
361
361
|
end
|
362
362
|
|
363
|
-
if @homepage.to_s.length >
|
364
|
-
invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to
|
363
|
+
if @homepage.to_s.length > 2000
|
364
|
+
invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
|
365
365
|
end
|
366
366
|
|
367
367
|
if @issues.nil?
|
368
368
|
invalid_properties.push('invalid value for "issues", issues cannot be nil.')
|
369
369
|
end
|
370
370
|
|
371
|
-
if @issues.to_s.length >
|
372
|
-
invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to
|
371
|
+
if @issues.to_s.length > 2000
|
372
|
+
invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
|
373
373
|
end
|
374
374
|
|
375
375
|
if @certification.nil?
|
@@ -412,8 +412,8 @@ module PulpAnsibleClient
|
|
412
412
|
invalid_properties.push('invalid value for "repository", repository cannot be nil.')
|
413
413
|
end
|
414
414
|
|
415
|
-
if @repository.to_s.length >
|
416
|
-
invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to
|
415
|
+
if @repository.to_s.length > 2000
|
416
|
+
invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
|
417
417
|
end
|
418
418
|
|
419
419
|
if @version.nil?
|
@@ -448,11 +448,11 @@ module PulpAnsibleClient
|
|
448
448
|
return false if @description.nil?
|
449
449
|
return false if @docs_blob.nil?
|
450
450
|
return false if @documentation.nil?
|
451
|
-
return false if @documentation.to_s.length >
|
451
|
+
return false if @documentation.to_s.length > 2000
|
452
452
|
return false if @homepage.nil?
|
453
|
-
return false if @homepage.to_s.length >
|
453
|
+
return false if @homepage.to_s.length > 2000
|
454
454
|
return false if @issues.nil?
|
455
|
-
return false if @issues.to_s.length >
|
455
|
+
return false if @issues.to_s.length > 2000
|
456
456
|
return false if @certification.nil?
|
457
457
|
return false if @certification.to_s.length < 1
|
458
458
|
return false if @license.nil?
|
@@ -463,7 +463,7 @@ module PulpAnsibleClient
|
|
463
463
|
return false if @namespace.to_s.length > 32
|
464
464
|
return false if @namespace.to_s.length < 1
|
465
465
|
return false if @repository.nil?
|
466
|
-
return false if @repository.to_s.length >
|
466
|
+
return false if @repository.to_s.length > 2000
|
467
467
|
return false if @version.nil?
|
468
468
|
return false if @version.to_s.length > 32
|
469
469
|
return false if @version.to_s.length < 1
|
@@ -537,8 +537,8 @@ module PulpAnsibleClient
|
|
537
537
|
fail ArgumentError, 'documentation cannot be nil'
|
538
538
|
end
|
539
539
|
|
540
|
-
if documentation.to_s.length >
|
541
|
-
fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to
|
540
|
+
if documentation.to_s.length > 2000
|
541
|
+
fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
|
542
542
|
end
|
543
543
|
|
544
544
|
@documentation = documentation
|
@@ -551,8 +551,8 @@ module PulpAnsibleClient
|
|
551
551
|
fail ArgumentError, 'homepage cannot be nil'
|
552
552
|
end
|
553
553
|
|
554
|
-
if homepage.to_s.length >
|
555
|
-
fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to
|
554
|
+
if homepage.to_s.length > 2000
|
555
|
+
fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
|
556
556
|
end
|
557
557
|
|
558
558
|
@homepage = homepage
|
@@ -565,8 +565,8 @@ module PulpAnsibleClient
|
|
565
565
|
fail ArgumentError, 'issues cannot be nil'
|
566
566
|
end
|
567
567
|
|
568
|
-
if issues.to_s.length >
|
569
|
-
fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to
|
568
|
+
if issues.to_s.length > 2000
|
569
|
+
fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
|
570
570
|
end
|
571
571
|
|
572
572
|
@issues = issues
|
@@ -629,8 +629,8 @@ module PulpAnsibleClient
|
|
629
629
|
fail ArgumentError, 'repository cannot be nil'
|
630
630
|
end
|
631
631
|
|
632
|
-
if repository.to_s.length >
|
633
|
-
fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to
|
632
|
+
if repository.to_s.length > 2000
|
633
|
+
fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
|
634
634
|
end
|
635
635
|
|
636
636
|
@repository = repository
|
@@ -659,9 +659,9 @@ module PulpAnsibleClient
|
|
659
659
|
def ==(o)
|
660
660
|
return true if self.equal?(o)
|
661
661
|
self.class == o.class &&
|
662
|
-
artifact == o.artifact &&
|
663
|
-
pulp_href == o.pulp_href &&
|
664
662
|
pulp_created == o.pulp_created &&
|
663
|
+
pulp_href == o.pulp_href &&
|
664
|
+
artifact == o.artifact &&
|
665
665
|
md5 == o.md5 &&
|
666
666
|
sha1 == o.sha1 &&
|
667
667
|
sha224 == o.sha224 &&
|
@@ -696,7 +696,7 @@ module PulpAnsibleClient
|
|
696
696
|
# Calculates hash code according to all attributes.
|
697
697
|
# @return [Integer] Hash code
|
698
698
|
def hash
|
699
|
-
[
|
699
|
+
[pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
|
700
700
|
end
|
701
701
|
|
702
702
|
# Builds the object from hash
|