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.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -11
  3. data/docs/AnsibleAnsibleDistributionRead.md +31 -0
  4. data/docs/AnsibleAnsibleRemote.md +7 -3
  5. data/docs/AnsibleAnsibleRemoteRead.md +43 -0
  6. data/docs/AnsibleAnsibleRepositoryRead.md +27 -0
  7. data/docs/{AnsibleCollection.md → AnsibleCollectionRead.md} +2 -2
  8. data/docs/AnsibleCollectionRemote.md +7 -3
  9. data/docs/AnsibleCollectionRemoteRead.md +45 -0
  10. data/docs/AnsibleCollectionVersion.md +4 -4
  11. data/docs/AnsibleCollectionVersionRead.md +67 -0
  12. data/docs/AnsibleCollectionsApi.md +1 -1
  13. data/docs/AnsibleRole.md +4 -4
  14. data/docs/AnsibleRoleRead.md +27 -0
  15. data/docs/{CollectionImportDetail.md → CollectionImportDetailRead.md} +2 -2
  16. data/docs/CollectionRead.md +31 -0
  17. data/docs/CollectionVersionRead.md +37 -0
  18. data/docs/ContentCollectionVersionsApi.md +5 -5
  19. data/docs/ContentRolesApi.md +5 -5
  20. data/docs/DistributionsAnsibleApi.md +3 -3
  21. data/docs/GalaxyCollectionRead.md +23 -0
  22. data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionRead.md} +2 -2
  23. data/docs/{GalaxyRole.md → GalaxyRoleRead.md} +2 -2
  24. data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionRead.md} +2 -2
  25. data/docs/InlineResponse200.md +1 -1
  26. data/docs/InlineResponse2001.md +1 -1
  27. data/docs/InlineResponse20010.md +1 -1
  28. data/docs/InlineResponse20011.md +1 -1
  29. data/docs/InlineResponse20012.md +1 -1
  30. data/docs/InlineResponse20013.md +1 -1
  31. data/docs/InlineResponse2002.md +1 -1
  32. data/docs/InlineResponse2003.md +1 -1
  33. data/docs/InlineResponse2004.md +1 -1
  34. data/docs/InlineResponse2005.md +1 -1
  35. data/docs/InlineResponse2006.md +1 -1
  36. data/docs/InlineResponse2007.md +1 -1
  37. data/docs/InlineResponse2008.md +1 -1
  38. data/docs/InlineResponse2009.md +1 -1
  39. data/docs/PulpAnsibleApiApi.md +1 -1
  40. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
  41. data/docs/PulpAnsibleGalaxyApiRolesApi.md +1 -1
  42. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +1 -1
  43. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +1 -1
  44. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +3 -3
  45. data/docs/PulpAnsibleTagsApi.md +1 -1
  46. data/docs/RemotesAnsibleApi.md +5 -5
  47. data/docs/RemotesCollectionApi.md +5 -5
  48. data/docs/RepositoriesAnsibleApi.md +10 -10
  49. data/docs/RepositoriesAnsibleVersionsApi.md +3 -3
  50. data/docs/RepositoryVersionRead.md +25 -0
  51. data/docs/{Tag.md → TagRead.md} +2 -2
  52. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  53. data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -6
  54. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
  56. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -3
  57. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +6 -6
  58. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +6 -6
  59. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
  60. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
  61. data/lib/pulp_ansible_client/configuration.rb +2 -2
  62. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_read.rb +327 -0
  63. data/lib/pulp_ansible_client/models/ansible_ansible_remote.rb +56 -4
  64. data/lib/pulp_ansible_client/models/ansible_ansible_remote_read.rb +531 -0
  65. data/lib/pulp_ansible_client/models/ansible_ansible_repository_read.rb +294 -0
  66. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_read.rb} +3 -3
  67. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +56 -4
  68. data/lib/pulp_ansible_client/models/ansible_collection_remote_read.rb +557 -0
  69. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +35 -35
  70. data/lib/pulp_ansible_client/models/ansible_collection_version_read.rb +816 -0
  71. data/lib/pulp_ansible_client/models/ansible_role.rb +15 -15
  72. data/lib/pulp_ansible_client/models/ansible_role_read.rb +330 -0
  73. data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_read.rb} +3 -3
  74. data/lib/pulp_ansible_client/models/collection_read.rb +314 -0
  75. data/lib/pulp_ansible_client/models/collection_version_read.rb +370 -0
  76. data/lib/pulp_ansible_client/models/galaxy_collection_read.rb +281 -0
  77. data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_read.rb} +3 -3
  78. data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_read.rb} +3 -3
  79. data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_read.rb} +3 -3
  80. data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
  81. data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
  82. data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
  83. data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
  84. data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
  85. data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
  86. data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
  87. data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
  88. data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
  89. data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
  90. data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
  91. data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
  92. data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
  93. data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
  94. data/lib/pulp_ansible_client/models/repository_version_read.rb +244 -0
  95. data/lib/pulp_ansible_client/models/{tag.rb → tag_read.rb} +3 -3
  96. data/lib/pulp_ansible_client/version.rb +1 -1
  97. data/lib/pulp_ansible_client.rb +16 -6
  98. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  99. data/spec/api/content_roles_api_spec.rb +2 -2
  100. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
  102. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
  103. data/spec/api/remotes_ansible_api_spec.rb +2 -2
  104. data/spec/api/remotes_collection_api_spec.rb +2 -2
  105. data/spec/api/repositories_ansible_api_spec.rb +6 -6
  106. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  107. data/spec/configuration_spec.rb +3 -3
  108. data/spec/models/ansible_ansible_distribution_read_spec.rb +83 -0
  109. data/spec/models/ansible_ansible_remote_read_spec.rb +123 -0
  110. data/spec/models/ansible_ansible_remote_spec.rb +12 -0
  111. data/spec/models/ansible_ansible_repository_read_spec.rb +71 -0
  112. data/spec/models/{ansible_collection_spec.rb → ansible_collection_read_spec.rb} +6 -6
  113. data/spec/models/ansible_collection_remote_read_spec.rb +129 -0
  114. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  115. data/spec/models/ansible_collection_version_read_spec.rb +191 -0
  116. data/spec/models/ansible_collection_version_spec.rb +2 -2
  117. data/spec/models/ansible_role_read_spec.rb +71 -0
  118. data/spec/models/ansible_role_spec.rb +2 -2
  119. data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_read_spec.rb} +6 -6
  120. data/spec/models/collection_read_spec.rb +83 -0
  121. data/spec/models/collection_version_read_spec.rb +105 -0
  122. data/spec/models/galaxy_collection_read_spec.rb +59 -0
  123. data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_read_spec.rb} +6 -6
  124. data/spec/models/{galaxy_role_spec.rb → galaxy_role_read_spec.rb} +6 -6
  125. data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_read_spec.rb} +6 -6
  126. data/spec/models/repository_version_read_spec.rb +65 -0
  127. data/spec/models/{tag_spec.rb → tag_read_spec.rb} +6 -6
  128. metadata +66 -26
@@ -14,13 +14,13 @@ require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class AnsibleCollectionVersion
17
- # Artifact file representing the physical content
18
- attr_accessor :artifact
17
+ # Timestamp of creation.
18
+ attr_accessor :pulp_created
19
19
 
20
20
  attr_accessor :pulp_href
21
21
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
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?(:'artifact')
179
- self.artifact = attributes[:'artifact']
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?(:'pulp_created')
187
- self.pulp_created = attributes[:'pulp_created']
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 > 128
356
- invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 128.')
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 > 128
364
- invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 128.')
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 > 128
372
- invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 128.')
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 > 128
416
- invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 128.')
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 > 128
451
+ return false if @documentation.to_s.length > 2000
452
452
  return false if @homepage.nil?
453
- return false if @homepage.to_s.length > 128
453
+ return false if @homepage.to_s.length > 2000
454
454
  return false if @issues.nil?
455
- return false if @issues.to_s.length > 128
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 > 128
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 > 128
541
- fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 128.'
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 > 128
555
- fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 128.'
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 > 128
569
- fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 128.'
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 > 128
633
- fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 128.'
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
- [artifact, pulp_href, pulp_created, 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
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