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
@@ -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,33 +13,11 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
+ # A serializer for CollectionVersion Content.
16
17
  class AnsibleCollectionVersion
17
- # Timestamp of creation.
18
- attr_accessor :pulp_created
19
-
20
- attr_accessor :pulp_href
21
-
22
18
  # Artifact file representing the physical content
23
19
  attr_accessor :artifact
24
20
 
25
- # The MD5 checksum if available.
26
- attr_accessor :md5
27
-
28
- # The SHA-1 checksum if available.
29
- attr_accessor :sha1
30
-
31
- # The SHA-224 checksum if available.
32
- attr_accessor :sha224
33
-
34
- # The SHA-256 checksum if available.
35
- attr_accessor :sha256
36
-
37
- # The SHA-384 checksum if available.
38
- attr_accessor :sha384
39
-
40
- # The SHA-512 checksum if available.
41
- attr_accessor :sha512
42
-
43
21
  # A collection identifier.
44
22
  attr_accessor :id
45
23
 
@@ -82,26 +60,13 @@ module PulpAnsibleClient
82
60
  # The URL of the originating SCM repository.
83
61
  attr_accessor :repository
84
62
 
85
- attr_accessor :tags
86
-
87
63
  # The version of the collection.
88
64
  attr_accessor :version
89
65
 
90
- # Whether or not the collection has been deprecated.
91
- attr_accessor :deprecated
92
-
93
66
  # Attribute mapping from ruby-style variable name to JSON key.
94
67
  def self.attribute_map
95
68
  {
96
- :'pulp_created' => :'pulp_created',
97
- :'pulp_href' => :'pulp_href',
98
69
  :'artifact' => :'artifact',
99
- :'md5' => :'md5',
100
- :'sha1' => :'sha1',
101
- :'sha224' => :'sha224',
102
- :'sha256' => :'sha256',
103
- :'sha384' => :'sha384',
104
- :'sha512' => :'sha512',
105
70
  :'id' => :'id',
106
71
  :'authors' => :'authors',
107
72
  :'contents' => :'contents',
@@ -116,30 +81,20 @@ module PulpAnsibleClient
116
81
  :'name' => :'name',
117
82
  :'namespace' => :'namespace',
118
83
  :'repository' => :'repository',
119
- :'tags' => :'tags',
120
- :'version' => :'version',
121
- :'deprecated' => :'deprecated'
84
+ :'version' => :'version'
122
85
  }
123
86
  end
124
87
 
125
88
  # Attribute type mapping.
126
89
  def self.openapi_types
127
90
  {
128
- :'pulp_created' => :'DateTime',
129
- :'pulp_href' => :'String',
130
91
  :'artifact' => :'String',
131
- :'md5' => :'String',
132
- :'sha1' => :'String',
133
- :'sha224' => :'String',
134
- :'sha256' => :'String',
135
- :'sha384' => :'String',
136
- :'sha512' => :'String',
137
92
  :'id' => :'String',
138
93
  :'authors' => :'Array<String>',
139
- :'contents' => :'Array<Hash<String, String>>',
140
- :'dependencies' => :'Hash<String, String>',
94
+ :'contents' => :'Array<Object>',
95
+ :'dependencies' => :'Object',
141
96
  :'description' => :'String',
142
- :'docs_blob' => :'Hash<String, String>',
97
+ :'docs_blob' => :'Object',
143
98
  :'documentation' => :'String',
144
99
  :'homepage' => :'String',
145
100
  :'issues' => :'String',
@@ -148,9 +103,7 @@ module PulpAnsibleClient
148
103
  :'name' => :'String',
149
104
  :'namespace' => :'String',
150
105
  :'repository' => :'String',
151
- :'tags' => :'Array<AnsibleTag>',
152
- :'version' => :'String',
153
- :'deprecated' => :'Boolean'
106
+ :'version' => :'String'
154
107
  }
155
108
  end
156
109
 
@@ -175,42 +128,10 @@ module PulpAnsibleClient
175
128
  h[k.to_sym] = v
176
129
  }
177
130
 
178
- if attributes.key?(:'pulp_created')
179
- self.pulp_created = attributes[:'pulp_created']
180
- end
181
-
182
- if attributes.key?(:'pulp_href')
183
- self.pulp_href = attributes[:'pulp_href']
184
- end
185
-
186
131
  if attributes.key?(:'artifact')
187
132
  self.artifact = attributes[:'artifact']
188
133
  end
189
134
 
190
- if attributes.key?(:'md5')
191
- self.md5 = attributes[:'md5']
192
- end
193
-
194
- if attributes.key?(:'sha1')
195
- self.sha1 = attributes[:'sha1']
196
- end
197
-
198
- if attributes.key?(:'sha224')
199
- self.sha224 = attributes[:'sha224']
200
- end
201
-
202
- if attributes.key?(:'sha256')
203
- self.sha256 = attributes[:'sha256']
204
- end
205
-
206
- if attributes.key?(:'sha384')
207
- self.sha384 = attributes[:'sha384']
208
- end
209
-
210
- if attributes.key?(:'sha512')
211
- self.sha512 = attributes[:'sha512']
212
- end
213
-
214
135
  if attributes.key?(:'id')
215
136
  self.id = attributes[:'id']
216
137
  end
@@ -228,9 +149,7 @@ module PulpAnsibleClient
228
149
  end
229
150
 
230
151
  if attributes.key?(:'dependencies')
231
- if (value = attributes[:'dependencies']).is_a?(Hash)
232
- self.dependencies = value
233
- end
152
+ self.dependencies = attributes[:'dependencies']
234
153
  end
235
154
 
236
155
  if attributes.key?(:'description')
@@ -238,9 +157,7 @@ module PulpAnsibleClient
238
157
  end
239
158
 
240
159
  if attributes.key?(:'docs_blob')
241
- if (value = attributes[:'docs_blob']).is_a?(Hash)
242
- self.docs_blob = value
243
- end
160
+ self.docs_blob = attributes[:'docs_blob']
244
161
  end
245
162
 
246
163
  if attributes.key?(:'documentation')
@@ -277,19 +194,9 @@ module PulpAnsibleClient
277
194
  self.repository = attributes[:'repository']
278
195
  end
279
196
 
280
- if attributes.key?(:'tags')
281
- if (value = attributes[:'tags']).is_a?(Array)
282
- self.tags = value
283
- end
284
- end
285
-
286
197
  if attributes.key?(:'version')
287
198
  self.version = attributes[:'version']
288
199
  end
289
-
290
- if attributes.key?(:'deprecated')
291
- self.deprecated = attributes[:'deprecated']
292
- end
293
200
  end
294
201
 
295
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -300,30 +207,6 @@ module PulpAnsibleClient
300
207
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
301
208
  end
302
209
 
303
- if !@md5.nil? && @md5.to_s.length < 1
304
- invalid_properties.push('invalid value for "md5", the character length must be great than or equal to 1.')
305
- end
306
-
307
- if !@sha1.nil? && @sha1.to_s.length < 1
308
- invalid_properties.push('invalid value for "sha1", the character length must be great than or equal to 1.')
309
- end
310
-
311
- if !@sha224.nil? && @sha224.to_s.length < 1
312
- invalid_properties.push('invalid value for "sha224", the character length must be great than or equal to 1.')
313
- end
314
-
315
- if !@sha256.nil? && @sha256.to_s.length < 1
316
- invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
317
- end
318
-
319
- if !@sha384.nil? && @sha384.to_s.length < 1
320
- invalid_properties.push('invalid value for "sha384", the character length must be great than or equal to 1.')
321
- end
322
-
323
- if !@sha512.nil? && @sha512.to_s.length < 1
324
- invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
325
- end
326
-
327
210
  if @id.nil?
328
211
  invalid_properties.push('invalid value for "id", id cannot be nil.')
329
212
  end
@@ -356,6 +239,11 @@ module PulpAnsibleClient
356
239
  invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
357
240
  end
358
241
 
242
+ 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/)
243
+ if @documentation !~ pattern
244
+ invalid_properties.push("invalid value for \"documentation\", must conform to the pattern #{pattern}.")
245
+ end
246
+
359
247
  if @homepage.nil?
360
248
  invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
361
249
  end
@@ -364,6 +252,11 @@ module PulpAnsibleClient
364
252
  invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
365
253
  end
366
254
 
255
+ 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/)
256
+ if @homepage !~ pattern
257
+ invalid_properties.push("invalid value for \"homepage\", must conform to the pattern #{pattern}.")
258
+ end
259
+
367
260
  if @issues.nil?
368
261
  invalid_properties.push('invalid value for "issues", issues cannot be nil.')
369
262
  end
@@ -372,12 +265,13 @@ module PulpAnsibleClient
372
265
  invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
373
266
  end
374
267
 
375
- if @certification.nil?
376
- invalid_properties.push('invalid value for "certification", certification cannot be nil.')
268
+ 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/)
269
+ if @issues !~ pattern
270
+ invalid_properties.push("invalid value for \"issues\", must conform to the pattern #{pattern}.")
377
271
  end
378
272
 
379
- if @certification.to_s.length < 1
380
- invalid_properties.push('invalid value for "certification", the character length must be great than or equal to 1.')
273
+ if @certification.nil?
274
+ invalid_properties.push('invalid value for "certification", certification cannot be nil.')
381
275
  end
382
276
 
383
277
  if @license.nil?
@@ -392,10 +286,6 @@ module PulpAnsibleClient
392
286
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
393
287
  end
394
288
 
395
- if @name.to_s.length < 1
396
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
397
- end
398
-
399
289
  if @namespace.nil?
400
290
  invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
401
291
  end
@@ -404,10 +294,6 @@ module PulpAnsibleClient
404
294
  invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 32.')
405
295
  end
406
296
 
407
- if @namespace.to_s.length < 1
408
- invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
409
- end
410
-
411
297
  if @repository.nil?
412
298
  invalid_properties.push('invalid value for "repository", repository cannot be nil.')
413
299
  end
@@ -416,6 +302,11 @@ module PulpAnsibleClient
416
302
  invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
417
303
  end
418
304
 
305
+ 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/)
306
+ if @repository !~ pattern
307
+ invalid_properties.push("invalid value for \"repository\", must conform to the pattern #{pattern}.")
308
+ end
309
+
419
310
  if @version.nil?
420
311
  invalid_properties.push('invalid value for "version", version cannot be nil.')
421
312
  end
@@ -424,10 +315,6 @@ module PulpAnsibleClient
424
315
  invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
425
316
  end
426
317
 
427
- if @version.to_s.length < 1
428
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
429
- end
430
-
431
318
  invalid_properties
432
319
  end
433
320
 
@@ -435,12 +322,6 @@ module PulpAnsibleClient
435
322
  # @return true if the model is valid
436
323
  def valid?
437
324
  return false if @artifact.nil?
438
- return false if !@md5.nil? && @md5.to_s.length < 1
439
- return false if !@sha1.nil? && @sha1.to_s.length < 1
440
- return false if !@sha224.nil? && @sha224.to_s.length < 1
441
- return false if !@sha256.nil? && @sha256.to_s.length < 1
442
- return false if !@sha384.nil? && @sha384.to_s.length < 1
443
- return false if !@sha512.nil? && @sha512.to_s.length < 1
444
325
  return false if @id.nil?
445
326
  return false if @authors.nil?
446
327
  return false if @contents.nil?
@@ -449,87 +330,27 @@ module PulpAnsibleClient
449
330
  return false if @docs_blob.nil?
450
331
  return false if @documentation.nil?
451
332
  return false if @documentation.to_s.length > 2000
333
+ return false if @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/)
452
334
  return false if @homepage.nil?
453
335
  return false if @homepage.to_s.length > 2000
336
+ return false if @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/)
454
337
  return false if @issues.nil?
455
338
  return false if @issues.to_s.length > 2000
339
+ return false if @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/)
456
340
  return false if @certification.nil?
457
- return false if @certification.to_s.length < 1
458
341
  return false if @license.nil?
459
342
  return false if @name.nil?
460
343
  return false if @name.to_s.length > 32
461
- return false if @name.to_s.length < 1
462
344
  return false if @namespace.nil?
463
345
  return false if @namespace.to_s.length > 32
464
- return false if @namespace.to_s.length < 1
465
346
  return false if @repository.nil?
466
347
  return false if @repository.to_s.length > 2000
348
+ return false if @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/)
467
349
  return false if @version.nil?
468
350
  return false if @version.to_s.length > 32
469
- return false if @version.to_s.length < 1
470
351
  true
471
352
  end
472
353
 
473
- # Custom attribute writer method with validation
474
- # @param [Object] md5 Value to be assigned
475
- def md5=(md5)
476
- if !md5.nil? && md5.to_s.length < 1
477
- fail ArgumentError, 'invalid value for "md5", the character length must be great than or equal to 1.'
478
- end
479
-
480
- @md5 = md5
481
- end
482
-
483
- # Custom attribute writer method with validation
484
- # @param [Object] sha1 Value to be assigned
485
- def sha1=(sha1)
486
- if !sha1.nil? && sha1.to_s.length < 1
487
- fail ArgumentError, 'invalid value for "sha1", the character length must be great than or equal to 1.'
488
- end
489
-
490
- @sha1 = sha1
491
- end
492
-
493
- # Custom attribute writer method with validation
494
- # @param [Object] sha224 Value to be assigned
495
- def sha224=(sha224)
496
- if !sha224.nil? && sha224.to_s.length < 1
497
- fail ArgumentError, 'invalid value for "sha224", the character length must be great than or equal to 1.'
498
- end
499
-
500
- @sha224 = sha224
501
- end
502
-
503
- # Custom attribute writer method with validation
504
- # @param [Object] sha256 Value to be assigned
505
- def sha256=(sha256)
506
- if !sha256.nil? && sha256.to_s.length < 1
507
- fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
508
- end
509
-
510
- @sha256 = sha256
511
- end
512
-
513
- # Custom attribute writer method with validation
514
- # @param [Object] sha384 Value to be assigned
515
- def sha384=(sha384)
516
- if !sha384.nil? && sha384.to_s.length < 1
517
- fail ArgumentError, 'invalid value for "sha384", the character length must be great than or equal to 1.'
518
- end
519
-
520
- @sha384 = sha384
521
- end
522
-
523
- # Custom attribute writer method with validation
524
- # @param [Object] sha512 Value to be assigned
525
- def sha512=(sha512)
526
- if !sha512.nil? && sha512.to_s.length < 1
527
- fail ArgumentError, 'invalid value for "sha512", the character length must be great than or equal to 1.'
528
- end
529
-
530
- @sha512 = sha512
531
- end
532
-
533
354
  # Custom attribute writer method with validation
534
355
  # @param [Object] documentation Value to be assigned
535
356
  def documentation=(documentation)
@@ -541,6 +362,11 @@ module PulpAnsibleClient
541
362
  fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
542
363
  end
543
364
 
365
+ 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/)
366
+ if documentation !~ pattern
367
+ fail ArgumentError, "invalid value for \"documentation\", must conform to the pattern #{pattern}."
368
+ end
369
+
544
370
  @documentation = documentation
545
371
  end
546
372
 
@@ -555,6 +381,11 @@ module PulpAnsibleClient
555
381
  fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
556
382
  end
557
383
 
384
+ 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/)
385
+ if homepage !~ pattern
386
+ fail ArgumentError, "invalid value for \"homepage\", must conform to the pattern #{pattern}."
387
+ end
388
+
558
389
  @homepage = homepage
559
390
  end
560
391
 
@@ -569,21 +400,12 @@ module PulpAnsibleClient
569
400
  fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
570
401
  end
571
402
 
572
- @issues = issues
573
- end
574
-
575
- # Custom attribute writer method with validation
576
- # @param [Object] certification Value to be assigned
577
- def certification=(certification)
578
- if certification.nil?
579
- fail ArgumentError, 'certification cannot be nil'
580
- end
581
-
582
- if certification.to_s.length < 1
583
- fail ArgumentError, 'invalid value for "certification", the character length must be great than or equal to 1.'
403
+ 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/)
404
+ if issues !~ pattern
405
+ fail ArgumentError, "invalid value for \"issues\", must conform to the pattern #{pattern}."
584
406
  end
585
407
 
586
- @certification = certification
408
+ @issues = issues
587
409
  end
588
410
 
589
411
  # Custom attribute writer method with validation
@@ -597,10 +419,6 @@ module PulpAnsibleClient
597
419
  fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
598
420
  end
599
421
 
600
- if name.to_s.length < 1
601
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
602
- end
603
-
604
422
  @name = name
605
423
  end
606
424
 
@@ -615,10 +433,6 @@ module PulpAnsibleClient
615
433
  fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 32.'
616
434
  end
617
435
 
618
- if namespace.to_s.length < 1
619
- fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
620
- end
621
-
622
436
  @namespace = namespace
623
437
  end
624
438
 
@@ -633,6 +447,11 @@ module PulpAnsibleClient
633
447
  fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
634
448
  end
635
449
 
450
+ 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/)
451
+ if repository !~ pattern
452
+ fail ArgumentError, "invalid value for \"repository\", must conform to the pattern #{pattern}."
453
+ end
454
+
636
455
  @repository = repository
637
456
  end
638
457
 
@@ -647,10 +466,6 @@ module PulpAnsibleClient
647
466
  fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 32.'
648
467
  end
649
468
 
650
- if version.to_s.length < 1
651
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
652
- end
653
-
654
469
  @version = version
655
470
  end
656
471
 
@@ -659,15 +474,7 @@ module PulpAnsibleClient
659
474
  def ==(o)
660
475
  return true if self.equal?(o)
661
476
  self.class == o.class &&
662
- pulp_created == o.pulp_created &&
663
- pulp_href == o.pulp_href &&
664
477
  artifact == o.artifact &&
665
- md5 == o.md5 &&
666
- sha1 == o.sha1 &&
667
- sha224 == o.sha224 &&
668
- sha256 == o.sha256 &&
669
- sha384 == o.sha384 &&
670
- sha512 == o.sha512 &&
671
478
  id == o.id &&
672
479
  authors == o.authors &&
673
480
  contents == o.contents &&
@@ -682,9 +489,7 @@ module PulpAnsibleClient
682
489
  name == o.name &&
683
490
  namespace == o.namespace &&
684
491
  repository == o.repository &&
685
- tags == o.tags &&
686
- version == o.version &&
687
- deprecated == o.deprecated
492
+ version == o.version
688
493
  end
689
494
 
690
495
  # @see the `==` method
@@ -696,7 +501,7 @@ module PulpAnsibleClient
696
501
  # Calculates hash code according to all attributes.
697
502
  # @return [Integer] Hash code
698
503
  def 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
504
+ [artifact, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, version].hash
700
505
  end
701
506
 
702
507
  # Builds the object from hash