pulp_ansible_client 0.2.0b15 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -61
  3. data/docs/AnsibleAnsibleDistribution.md +2 -8
  4. data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
  5. data/docs/AnsibleAnsibleRepository.md +4 -10
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
  7. data/docs/AnsibleCollectionRemote.md +4 -10
  8. data/docs/AnsibleCollectionRemoteResponse.md +49 -0
  9. data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
  10. data/docs/AnsibleCollectionVersion.md +5 -25
  11. data/docs/AnsibleCollectionVersionResponse.md +67 -0
  12. data/docs/AnsibleCollectionsApi.md +47 -47
  13. data/docs/AnsibleRole.md +1 -5
  14. data/docs/AnsibleRoleRemote.md +37 -0
  15. data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
  16. data/docs/AnsibleRoleResponse.md +27 -0
  17. data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
  18. data/docs/CertificationEnum.md +16 -0
  19. data/docs/Collection.md +2 -12
  20. data/docs/CollectionImportApi.md +70 -0
  21. data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
  22. data/docs/CollectionMetadata.md +1 -19
  23. data/docs/CollectionMetadataResponse.md +35 -0
  24. data/docs/CollectionNamespaceResponse.md +17 -0
  25. data/docs/CollectionOneShot.md +25 -0
  26. data/docs/CollectionRef.md +1 -3
  27. data/docs/CollectionRefResponse.md +21 -0
  28. data/docs/CollectionResponse.md +31 -0
  29. data/docs/CollectionVersion.md +3 -19
  30. data/docs/CollectionVersionResponse.md +37 -0
  31. data/docs/ContentCollectionVersionsApi.md +42 -42
  32. data/docs/ContentRolesApi.md +32 -32
  33. data/docs/ContentSummary.md +3 -3
  34. data/docs/ContentSummaryResponse.md +21 -0
  35. data/docs/DistributionsAnsibleApi.md +108 -60
  36. data/docs/GalaxyCollection.md +1 -5
  37. data/docs/GalaxyCollectionListApi.md +65 -0
  38. data/docs/GalaxyCollectionResponse.md +23 -0
  39. data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
  40. data/docs/GalaxyDetailApi.md +61 -0
  41. data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
  42. data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
  43. data/docs/InlineResponse200.md +3 -3
  44. data/docs/InlineResponse2001.md +3 -3
  45. data/docs/InlineResponse20010.md +3 -3
  46. data/docs/InlineResponse20011.md +3 -3
  47. data/docs/InlineResponse20012.md +3 -3
  48. data/docs/InlineResponse20013.md +3 -3
  49. data/docs/InlineResponse20014.md +23 -0
  50. data/docs/InlineResponse2002.md +3 -3
  51. data/docs/InlineResponse2003.md +3 -3
  52. data/docs/InlineResponse2004.md +3 -3
  53. data/docs/InlineResponse2005.md +3 -3
  54. data/docs/InlineResponse2006.md +3 -3
  55. data/docs/InlineResponse2007.md +3 -3
  56. data/docs/InlineResponse2008.md +3 -3
  57. data/docs/InlineResponse2009.md +3 -3
  58. data/docs/PatchedansibleAnsibleDistribution.md +25 -0
  59. data/docs/PatchedansibleAnsibleRepository.md +21 -0
  60. data/docs/PatchedansibleCollectionRemote.md +43 -0
  61. data/docs/PatchedansibleRoleRemote.md +37 -0
  62. data/docs/PolicyEnum.md +16 -0
  63. data/docs/PulpAnsibleApiApi.md +6 -12
  64. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
  65. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
  66. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
  67. data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
  68. data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
  69. data/docs/PulpAnsibleTagsApi.md +4 -4
  70. data/docs/RemotesCollectionApi.md +127 -67
  71. data/docs/RemotesRoleApi.md +428 -0
  72. data/docs/RepositoriesAnsibleApi.md +100 -76
  73. data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
  74. data/docs/RepositoryAddRemoveContent.md +2 -2
  75. data/docs/RepositorySyncURL.md +1 -1
  76. data/docs/RepositoryVersion.md +1 -9
  77. data/docs/RepositoryVersionResponse.md +25 -0
  78. data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
  79. data/docs/{Tag.md → TagResponse.md} +2 -2
  80. data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
  81. data/docs/V2CollectionsApi.md +112 -0
  82. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
  83. data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
  84. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
  87. data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
  88. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
  90. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
  91. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
  92. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
  93. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
  96. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
  97. data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
  98. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
  99. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
  100. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
  101. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
  102. data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
  103. data/lib/pulp_ansible_client/api_client.rb +2 -2
  104. data/lib/pulp_ansible_client/api_error.rb +2 -2
  105. data/lib/pulp_ansible_client/configuration.rb +3 -3
  106. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
  107. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
  108. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
  109. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
  110. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
  111. data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
  112. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
  113. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
  114. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
  115. data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
  116. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
  117. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
  118. data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
  119. data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
  120. data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
  121. data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
  122. data/lib/pulp_ansible_client/models/collection.rb +7 -81
  123. data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
  124. data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
  125. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
  126. data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
  127. data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
  128. data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
  129. data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
  130. data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
  131. data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
  132. data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
  133. data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
  134. data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
  135. data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
  136. data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
  137. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
  138. data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
  139. data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
  140. data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
  141. data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
  142. data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
  143. data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
  144. data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
  145. data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
  146. data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
  147. data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
  148. data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
  149. data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
  150. data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
  151. data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
  152. data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
  153. data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
  154. data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
  155. data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
  156. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
  157. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
  158. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
  159. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
  160. data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
  161. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
  162. data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
  163. data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
  164. data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
  165. data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
  166. data/lib/pulp_ansible_client/version.rb +3 -3
  167. data/lib/pulp_ansible_client.rb +41 -13
  168. data/pulp_ansible_client.gemspec +4 -4
  169. data/spec/api/ansible_collections_api_spec.rb +21 -21
  170. data/spec/api/collection_import_api_spec.rb +50 -0
  171. data/spec/api/content_collection_versions_api_spec.rb +18 -18
  172. data/spec/api/content_roles_api_spec.rb +13 -13
  173. data/spec/api/distributions_ansible_api_spec.rb +39 -18
  174. data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
  175. data/spec/api/galaxy_detail_api_spec.rb +48 -0
  176. data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
  177. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
  178. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
  179. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
  180. data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
  181. data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
  182. data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
  183. data/spec/api/remotes_collection_api_spec.rb +49 -22
  184. data/spec/api/remotes_role_api_spec.rb +150 -0
  185. data/spec/api/repositories_ansible_api_spec.rb +31 -22
  186. data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
  187. data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
  188. data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
  189. data/spec/api/v2_collections_api_spec.rb +61 -0
  190. data/spec/api_client_spec.rb +2 -2
  191. data/spec/configuration_spec.rb +2 -2
  192. data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
  193. data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
  194. data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
  195. data/spec/models/ansible_ansible_repository_spec.rb +5 -23
  196. data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
  197. data/spec/models/ansible_collection_remote_spec.rb +2 -24
  198. data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
  199. data/spec/models/ansible_collection_version_response_spec.rb +191 -0
  200. data/spec/models/ansible_collection_version_spec.rb +2 -62
  201. data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
  202. data/spec/models/ansible_role_remote_spec.rb +101 -0
  203. data/spec/models/ansible_role_response_spec.rb +71 -0
  204. data/spec/models/ansible_role_spec.rb +2 -14
  205. data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
  206. data/spec/models/async_operation_response_spec.rb +2 -2
  207. data/spec/models/certification_enum_spec.rb +35 -0
  208. data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
  209. data/spec/models/collection_metadata_response_spec.rb +95 -0
  210. data/spec/models/collection_metadata_spec.rb +2 -56
  211. data/spec/models/collection_namespace_response_spec.rb +41 -0
  212. data/spec/models/collection_namespace_spec.rb +2 -2
  213. data/spec/models/collection_one_shot_spec.rb +65 -0
  214. data/spec/models/collection_ref_response_spec.rb +53 -0
  215. data/spec/models/collection_ref_spec.rb +2 -8
  216. data/spec/models/collection_response_spec.rb +83 -0
  217. data/spec/models/collection_spec.rb +2 -32
  218. data/spec/models/collection_version_response_spec.rb +101 -0
  219. data/spec/models/collection_version_spec.rb +2 -54
  220. data/spec/models/content_summary_response_spec.rb +53 -0
  221. data/spec/models/content_summary_spec.rb +2 -2
  222. data/spec/models/galaxy_collection_response_spec.rb +59 -0
  223. data/spec/models/galaxy_collection_spec.rb +2 -14
  224. data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
  225. data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
  226. data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
  227. data/spec/models/inline_response20010_spec.rb +2 -2
  228. data/spec/models/inline_response20011_spec.rb +2 -2
  229. data/spec/models/inline_response20012_spec.rb +2 -2
  230. data/spec/models/inline_response20013_spec.rb +2 -2
  231. data/spec/models/inline_response20014_spec.rb +59 -0
  232. data/spec/models/inline_response2001_spec.rb +2 -2
  233. data/spec/models/inline_response2002_spec.rb +2 -2
  234. data/spec/models/inline_response2003_spec.rb +2 -2
  235. data/spec/models/inline_response2004_spec.rb +2 -2
  236. data/spec/models/inline_response2005_spec.rb +2 -2
  237. data/spec/models/inline_response2006_spec.rb +2 -2
  238. data/spec/models/inline_response2007_spec.rb +2 -2
  239. data/spec/models/inline_response2008_spec.rb +2 -2
  240. data/spec/models/inline_response2009_spec.rb +2 -2
  241. data/spec/models/inline_response200_spec.rb +2 -2
  242. data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
  243. data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
  244. data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
  245. data/spec/models/patchedansible_role_remote_spec.rb +101 -0
  246. data/spec/models/policy_enum_spec.rb +35 -0
  247. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  248. data/spec/models/repository_sync_url_spec.rb +2 -2
  249. data/spec/models/repository_version_response_spec.rb +65 -0
  250. data/spec/models/repository_version_spec.rb +2 -26
  251. data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
  252. data/spec/spec_helper.rb +2 -2
  253. metadata +192 -80
  254. data/docs/RemotesAnsibleApi.md +0 -368
  255. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
  256. data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -0,0 +1,367 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ # A serializer for a CollectionVersion metadata.
17
+ class CollectionMetadataResponse
18
+ attr_accessor :authors
19
+
20
+ attr_accessor :contents
21
+
22
+ attr_accessor :dependencies
23
+
24
+ attr_accessor :description
25
+
26
+ attr_accessor :documentation
27
+
28
+ attr_accessor :homepage
29
+
30
+ attr_accessor :issues
31
+
32
+ attr_accessor :license
33
+
34
+ attr_accessor :repository
35
+
36
+ attr_accessor :tags
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'authors' => :'authors',
42
+ :'contents' => :'contents',
43
+ :'dependencies' => :'dependencies',
44
+ :'description' => :'description',
45
+ :'documentation' => :'documentation',
46
+ :'homepage' => :'homepage',
47
+ :'issues' => :'issues',
48
+ :'license' => :'license',
49
+ :'repository' => :'repository',
50
+ :'tags' => :'tags'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'authors' => :'Array<String>',
58
+ :'contents' => :'Object',
59
+ :'dependencies' => :'Object',
60
+ :'description' => :'String',
61
+ :'documentation' => :'String',
62
+ :'homepage' => :'String',
63
+ :'issues' => :'String',
64
+ :'license' => :'Array<String>',
65
+ :'repository' => :'String',
66
+ :'tags' => :'Array<String>'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionMetadataResponse` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!self.class.attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionMetadataResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
90
+
91
+ if attributes.key?(:'authors')
92
+ if (value = attributes[:'authors']).is_a?(Array)
93
+ self.authors = value
94
+ end
95
+ end
96
+
97
+ if attributes.key?(:'contents')
98
+ self.contents = attributes[:'contents']
99
+ end
100
+
101
+ if attributes.key?(:'dependencies')
102
+ self.dependencies = attributes[:'dependencies']
103
+ end
104
+
105
+ if attributes.key?(:'description')
106
+ self.description = attributes[:'description']
107
+ end
108
+
109
+ if attributes.key?(:'documentation')
110
+ self.documentation = attributes[:'documentation']
111
+ end
112
+
113
+ if attributes.key?(:'homepage')
114
+ self.homepage = attributes[:'homepage']
115
+ end
116
+
117
+ if attributes.key?(:'issues')
118
+ self.issues = attributes[:'issues']
119
+ end
120
+
121
+ if attributes.key?(:'license')
122
+ if (value = attributes[:'license']).is_a?(Array)
123
+ self.license = value
124
+ end
125
+ end
126
+
127
+ if attributes.key?(:'repository')
128
+ self.repository = attributes[:'repository']
129
+ end
130
+
131
+ if attributes.key?(:'tags')
132
+ if (value = attributes[:'tags']).is_a?(Array)
133
+ self.tags = value
134
+ end
135
+ end
136
+ end
137
+
138
+ # Show invalid properties with the reasons. Usually used together with valid?
139
+ # @return Array for valid properties with the reasons
140
+ def list_invalid_properties
141
+ invalid_properties = Array.new
142
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
143
+ if !@documentation.nil? && @documentation !~ pattern
144
+ invalid_properties.push("invalid value for \"documentation\", must conform to the pattern #{pattern}.")
145
+ end
146
+
147
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
148
+ if !@homepage.nil? && @homepage !~ pattern
149
+ invalid_properties.push("invalid value for \"homepage\", must conform to the pattern #{pattern}.")
150
+ end
151
+
152
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
153
+ if !@issues.nil? && @issues !~ pattern
154
+ invalid_properties.push("invalid value for \"issues\", must conform to the pattern #{pattern}.")
155
+ end
156
+
157
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
158
+ if !@repository.nil? && @repository !~ pattern
159
+ invalid_properties.push("invalid value for \"repository\", must conform to the pattern #{pattern}.")
160
+ end
161
+
162
+ if @tags.nil?
163
+ invalid_properties.push('invalid value for "tags", tags cannot be nil.')
164
+ end
165
+
166
+ invalid_properties
167
+ end
168
+
169
+ # Check to see if the all the properties in the model are valid
170
+ # @return true if the model is valid
171
+ def valid?
172
+ return false if !@documentation.nil? && @documentation !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
173
+ return false if !@homepage.nil? && @homepage !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
174
+ return false if !@issues.nil? && @issues !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
175
+ return false if !@repository.nil? && @repository !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
176
+ return false if @tags.nil?
177
+ true
178
+ end
179
+
180
+ # Custom attribute writer method with validation
181
+ # @param [Object] documentation Value to be assigned
182
+ def documentation=(documentation)
183
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
184
+ if !documentation.nil? && documentation !~ pattern
185
+ fail ArgumentError, "invalid value for \"documentation\", must conform to the pattern #{pattern}."
186
+ end
187
+
188
+ @documentation = documentation
189
+ end
190
+
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] homepage Value to be assigned
193
+ def homepage=(homepage)
194
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
195
+ if !homepage.nil? && homepage !~ pattern
196
+ fail ArgumentError, "invalid value for \"homepage\", must conform to the pattern #{pattern}."
197
+ end
198
+
199
+ @homepage = homepage
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] issues Value to be assigned
204
+ def issues=(issues)
205
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
206
+ if !issues.nil? && issues !~ pattern
207
+ fail ArgumentError, "invalid value for \"issues\", must conform to the pattern #{pattern}."
208
+ end
209
+
210
+ @issues = issues
211
+ end
212
+
213
+ # Custom attribute writer method with validation
214
+ # @param [Object] repository Value to be assigned
215
+ def repository=(repository)
216
+ pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
217
+ if !repository.nil? && repository !~ pattern
218
+ fail ArgumentError, "invalid value for \"repository\", must conform to the pattern #{pattern}."
219
+ end
220
+
221
+ @repository = repository
222
+ end
223
+
224
+ # Checks equality by comparing each attribute.
225
+ # @param [Object] Object to be compared
226
+ def ==(o)
227
+ return true if self.equal?(o)
228
+ self.class == o.class &&
229
+ authors == o.authors &&
230
+ contents == o.contents &&
231
+ dependencies == o.dependencies &&
232
+ description == o.description &&
233
+ documentation == o.documentation &&
234
+ homepage == o.homepage &&
235
+ issues == o.issues &&
236
+ license == o.license &&
237
+ repository == o.repository &&
238
+ tags == o.tags
239
+ end
240
+
241
+ # @see the `==` method
242
+ # @param [Object] Object to be compared
243
+ def eql?(o)
244
+ self == o
245
+ end
246
+
247
+ # Calculates hash code according to all attributes.
248
+ # @return [Integer] Hash code
249
+ def hash
250
+ [authors, contents, dependencies, description, documentation, homepage, issues, license, repository, tags].hash
251
+ end
252
+
253
+ # Builds the object from hash
254
+ # @param [Hash] attributes Model attributes in the form of hash
255
+ # @return [Object] Returns the model itself
256
+ def self.build_from_hash(attributes)
257
+ new.build_from_hash(attributes)
258
+ end
259
+
260
+ # Builds the object from hash
261
+ # @param [Hash] attributes Model attributes in the form of hash
262
+ # @return [Object] Returns the model itself
263
+ def build_from_hash(attributes)
264
+ return nil unless attributes.is_a?(Hash)
265
+ self.class.openapi_types.each_pair do |key, type|
266
+ if type =~ /\AArray<(.*)>/i
267
+ # check to ensure the input is an array given that the attribute
268
+ # is documented as an array but the input is not
269
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
270
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
271
+ end
272
+ elsif !attributes[self.class.attribute_map[key]].nil?
273
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
274
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
275
+ end
276
+
277
+ self
278
+ end
279
+
280
+ # Deserializes the data based on type
281
+ # @param string type Data type
282
+ # @param string value Value to be deserialized
283
+ # @return [Object] Deserialized data
284
+ def _deserialize(type, value)
285
+ case type.to_sym
286
+ when :DateTime
287
+ DateTime.parse(value)
288
+ when :Date
289
+ Date.parse(value)
290
+ when :String
291
+ value.to_s
292
+ when :Integer
293
+ value.to_i
294
+ when :Float
295
+ value.to_f
296
+ when :Boolean
297
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
298
+ true
299
+ else
300
+ false
301
+ end
302
+ when :Object
303
+ # generic object (usually a Hash), return directly
304
+ value
305
+ when /\AArray<(?<inner_type>.+)>\z/
306
+ inner_type = Regexp.last_match[:inner_type]
307
+ value.map { |v| _deserialize(inner_type, v) }
308
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
309
+ k_type = Regexp.last_match[:k_type]
310
+ v_type = Regexp.last_match[:v_type]
311
+ {}.tap do |hash|
312
+ value.each do |k, v|
313
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
314
+ end
315
+ end
316
+ else # model
317
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
318
+ end
319
+ end
320
+
321
+ # Returns the string representation of the object
322
+ # @return [String] String presentation of the object
323
+ def to_s
324
+ to_hash.to_s
325
+ end
326
+
327
+ # to_body is an alias to to_hash (backward compatibility)
328
+ # @return [Hash] Returns the object in the form of hash
329
+ def to_body
330
+ to_hash
331
+ end
332
+
333
+ # Returns the object in the form of hash
334
+ # @return [Hash] Returns the object in the form of hash
335
+ def to_hash
336
+ hash = {}
337
+ self.class.attribute_map.each_pair do |attr, param|
338
+ value = self.send(attr)
339
+ if value.nil?
340
+ is_nullable = self.class.openapi_nullable.include?(attr)
341
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
342
+ end
343
+
344
+ hash[param] = _to_hash(value)
345
+ end
346
+ hash
347
+ end
348
+
349
+ # Outputs non-array value in the form of hash
350
+ # For object, use to_hash. Otherwise, just return the value
351
+ # @param [Object] value Any valid value
352
+ # @return [Hash] Returns the value in the form of hash
353
+ def _to_hash(value)
354
+ if value.is_a?(Array)
355
+ value.compact.map { |v| _to_hash(v) }
356
+ elsif value.is_a?(Hash)
357
+ {}.tap do |hash|
358
+ value.each { |k, v| hash[k] = _to_hash(v) }
359
+ end
360
+ elsif value.respond_to? :to_hash
361
+ value.to_hash
362
+ else
363
+ value
364
+ end
365
+ end
366
+ end
367
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
+ # A serializer for a Collection Version namespace field.
16
17
  class CollectionNamespace
17
18
  attr_accessor :name
18
19
 
@@ -64,10 +65,6 @@ module PulpAnsibleClient
64
65
  invalid_properties.push('invalid value for "name", name cannot be nil.')
65
66
  end
66
67
 
67
- if @name.to_s.length < 1
68
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
69
- end
70
-
71
68
  invalid_properties
72
69
  end
73
70
 
@@ -75,24 +72,9 @@ module PulpAnsibleClient
75
72
  # @return true if the model is valid
76
73
  def valid?
77
74
  return false if @name.nil?
78
- return false if @name.to_s.length < 1
79
75
  true
80
76
  end
81
77
 
82
- # Custom attribute writer method with validation
83
- # @param [Object] name Value to be assigned
84
- def name=(name)
85
- if name.nil?
86
- fail ArgumentError, 'name cannot be nil'
87
- end
88
-
89
- if name.to_s.length < 1
90
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
91
- end
92
-
93
- @name = name
94
- end
95
-
96
78
  # Checks equality by comparing each attribute.
97
79
  # @param [Object] Object to be compared
98
80
  def ==(o)
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class Tag
16
+ # A serializer for a Collection Version namespace field.
17
+ class CollectionNamespaceResponse
17
18
  attr_accessor :name
18
19
 
19
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -40,13 +41,13 @@ module PulpAnsibleClient
40
41
  # @param [Hash] attributes Model attributes in the form of hash
41
42
  def initialize(attributes = {})
42
43
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::Tag` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionNamespaceResponse` initialize method"
44
45
  end
45
46
 
46
47
  # check to see if the attribute exists and convert string to symbol for hash key
47
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
49
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::Tag`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionNamespaceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
51
  end
51
52
  h[k.to_sym] = v
52
53
  }
@@ -60,8 +61,8 @@ module PulpAnsibleClient
60
61
  # @return Array for valid properties with the reasons
61
62
  def list_invalid_properties
62
63
  invalid_properties = Array.new
63
- if !@name.nil? && @name.to_s.length < 1
64
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
64
+ if @name.nil?
65
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
65
66
  end
66
67
 
67
68
  invalid_properties
@@ -70,20 +71,10 @@ module PulpAnsibleClient
70
71
  # Check to see if the all the properties in the model are valid
71
72
  # @return true if the model is valid
72
73
  def valid?
73
- return false if !@name.nil? && @name.to_s.length < 1
74
+ return false if @name.nil?
74
75
  true
75
76
  end
76
77
 
77
- # Custom attribute writer method with validation
78
- # @param [Object] name Value to be assigned
79
- def name=(name)
80
- if !name.nil? && name.to_s.length < 1
81
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
82
- end
83
-
84
- @name = name
85
- end
86
-
87
78
  # Checks equality by comparing each attribute.
88
79
  # @param [Object] Object to be compared
89
80
  def ==(o)