pulp_ansible_client 0.16.2 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -22
  3. data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
  4. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
  5. data/docs/AnsibleAnsibleRepository.md +3 -1
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  7. data/docs/AnsibleCollectionRemote.md +1 -1
  8. data/docs/AnsibleCollectionRemoteResponse.md +4 -2
  9. data/docs/AnsibleCollectionVersion.md +5 -5
  10. data/docs/AnsibleCollectionVersionMark.md +19 -0
  11. data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
  12. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  13. data/docs/AnsibleCollectionsApi.md +230 -6
  14. data/docs/AnsibleGitRemote.md +26 -26
  15. data/docs/AnsibleGitRemoteResponse.md +26 -26
  16. data/docs/AnsibleRepositoryMark.md +19 -0
  17. data/docs/AnsibleRoleRemote.md +1 -1
  18. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  19. data/docs/AnsibleRoleResponse.md +3 -3
  20. data/docs/CollectionNamespaceResponse.md +3 -1
  21. data/docs/CollectionRefResponse.md +1 -1
  22. data/docs/CollectionResponse.md +6 -6
  23. data/docs/CollectionSummaryResponse.md +35 -0
  24. data/docs/CollectionVersionCopyMove.md +21 -0
  25. data/docs/CollectionVersionListResponse.md +4 -2
  26. data/docs/CollectionVersionResponse.md +6 -4
  27. data/docs/CollectionVersionSearchList.md +27 -0
  28. data/docs/CollectionVersionSearchListResponse.md +29 -0
  29. data/docs/ContentCollectionDeprecationsApi.md +2 -6
  30. data/docs/ContentCollectionMarksApi.md +198 -0
  31. data/docs/ContentCollectionSignaturesApi.md +2 -6
  32. data/docs/ContentCollectionVersionsApi.md +6 -10
  33. data/docs/ContentNamespacesApi.md +220 -0
  34. data/docs/ContentRolesApi.md +2 -6
  35. data/docs/DistributionsAnsibleApi.md +230 -6
  36. data/docs/GalaxyCollectionResponse.md +4 -4
  37. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  38. data/docs/GalaxyRoleResponse.md +1 -1
  39. data/docs/GalaxyRoleVersionResponse.md +1 -1
  40. data/docs/MyPermissionsResponse.md +17 -0
  41. data/docs/NamespaceLink.md +19 -0
  42. data/docs/NamespaceLinkResponse.md +19 -0
  43. data/docs/NestedRole.md +21 -0
  44. data/docs/NestedRoleResponse.md +21 -0
  45. data/docs/ObjectRolesResponse.md +17 -0
  46. data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
  47. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
  48. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
  49. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
  50. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  51. data/docs/PatchedansibleCollectionRemote.md +1 -1
  52. data/docs/PatchedansibleGitRemote.md +26 -26
  53. data/docs/PatchedansibleRoleRemote.md +1 -1
  54. data/docs/ProgressReportResponse.md +27 -0
  55. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
  56. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
  57. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
  58. data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
  59. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  60. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
  64. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
  65. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
  66. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
  67. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
  68. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
  69. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
  70. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  71. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  72. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  73. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
  74. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
  75. data/docs/RemotesCollectionApi.md +238 -6
  76. data/docs/RemotesGitApi.md +230 -6
  77. data/docs/RemotesRoleApi.md +230 -6
  78. data/docs/RepositoriesAnsibleApi.md +450 -6
  79. data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
  80. data/docs/Repository.md +25 -0
  81. data/docs/RepositoryResponse.md +33 -0
  82. data/docs/Task.md +19 -0
  83. data/docs/TaskResponse.md +45 -0
  84. data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
  85. data/docs/VersionsApi.md +10 -10
  86. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
  87. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
  88. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
  89. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
  90. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
  91. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
  92. data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
  93. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
  94. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
  95. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
  96. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
  97. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
  98. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
  99. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  100. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  101. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  102. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
  103. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
  104. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
  105. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
  106. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
  107. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
  108. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
  109. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  110. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  111. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
  114. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +283 -9
  115. data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
  116. data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
  117. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
  118. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
  119. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  120. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
  121. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
  122. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +14 -5
  123. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
  124. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
  125. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
  126. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  127. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
  128. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
  129. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  130. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -249
  131. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  132. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
  133. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
  134. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  136. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
  137. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  138. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  139. data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
  140. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
  141. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -6
  142. data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
  143. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
  144. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
  145. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  146. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  147. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  148. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  149. data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
  150. data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
  151. data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
  152. data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
  153. data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
  154. data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
  155. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
  156. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
  157. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
  158. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
  159. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +14 -5
  160. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
  161. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +244 -244
  162. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
  163. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  164. data/lib/pulp_ansible_client/models/repository.rb +306 -0
  165. data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
  166. data/lib/pulp_ansible_client/models/task.rb +266 -0
  167. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  168. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -5
  169. data/lib/pulp_ansible_client/version.rb +1 -1
  170. data/lib/pulp_ansible_client.rb +32 -0
  171. data/spec/api/ansible_collections_api_spec.rb +51 -3
  172. data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
  173. data/spec/api/content_collection_marks_api_spec.rb +83 -0
  174. data/spec/api/content_collection_signatures_api_spec.rb +1 -3
  175. data/spec/api/content_collection_versions_api_spec.rb +3 -5
  176. data/spec/api/content_namespaces_api_spec.rb +93 -0
  177. data/spec/api/content_roles_api_spec.rb +1 -3
  178. data/spec/api/distributions_ansible_api_spec.rb +51 -3
  179. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
  180. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
  181. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
  182. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
  183. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  184. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  185. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  186. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  187. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
  188. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
  189. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
  190. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
  191. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
  192. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
  193. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  194. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  195. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  196. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  197. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
  198. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
  199. data/spec/api/remotes_collection_api_spec.rb +55 -3
  200. data/spec/api/remotes_git_api_spec.rb +51 -3
  201. data/spec/api/remotes_role_api_spec.rb +51 -3
  202. data/spec/api/repositories_ansible_api_spec.rb +99 -3
  203. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
  204. data/spec/api/versions_api_spec.rb +4 -4
  205. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
  206. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
  207. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  208. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  209. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  210. data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
  211. data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
  212. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  213. data/spec/models/ansible_collection_version_spec.rb +3 -3
  214. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  215. data/spec/models/ansible_git_remote_spec.rb +20 -20
  216. data/spec/models/ansible_repository_mark_spec.rb +47 -0
  217. data/spec/models/ansible_role_response_spec.rb +3 -3
  218. data/spec/models/collection_namespace_response_spec.rb +6 -0
  219. data/spec/models/collection_summary_response_spec.rb +95 -0
  220. data/spec/models/collection_version_copy_move_spec.rb +53 -0
  221. data/spec/models/collection_version_list_response_spec.rb +6 -0
  222. data/spec/models/collection_version_response_spec.rb +6 -0
  223. data/spec/models/collection_version_search_list_response_spec.rb +77 -0
  224. data/spec/models/collection_version_search_list_spec.rb +71 -0
  225. data/spec/models/my_permissions_response_spec.rb +41 -0
  226. data/spec/models/namespace_link_response_spec.rb +47 -0
  227. data/spec/models/namespace_link_spec.rb +47 -0
  228. data/spec/models/nested_role_response_spec.rb +53 -0
  229. data/spec/models/nested_role_spec.rb +53 -0
  230. data/spec/models/object_roles_response_spec.rb +41 -0
  231. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
  232. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
  233. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
  234. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
  235. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  236. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  237. data/spec/models/progress_report_response_spec.rb +71 -0
  238. data/spec/models/repository_response_spec.rb +89 -0
  239. data/spec/models/repository_spec.rb +65 -0
  240. data/spec/models/task_response_spec.rb +125 -0
  241. data/spec/models/task_spec.rb +47 -0
  242. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  243. metadata +231 -103
@@ -0,0 +1,402 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ # A serializer for Namespaces.
17
+ class AnsibleAnsibleNamespaceMetadataResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Required named, only accepts lowercase, numbers and underscores.
21
+ attr_accessor :name
22
+
23
+ # Optional namespace company owner.
24
+ attr_accessor :company
25
+
26
+ # Optional namespace contact email.
27
+ attr_accessor :email
28
+
29
+ # Optional short description.
30
+ attr_accessor :description
31
+
32
+ # Optional resource page in markdown format.
33
+ attr_accessor :resources
34
+
35
+ # Labeled related links.
36
+ attr_accessor :links
37
+
38
+ # SHA256 digest of avatar image if present.
39
+ attr_accessor :avatar_sha256
40
+
41
+ # Download link for avatar image if present.
42
+ attr_accessor :avatar_url
43
+
44
+ attr_accessor :metadata_sha256
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'pulp_href' => :'pulp_href',
50
+ :'name' => :'name',
51
+ :'company' => :'company',
52
+ :'email' => :'email',
53
+ :'description' => :'description',
54
+ :'resources' => :'resources',
55
+ :'links' => :'links',
56
+ :'avatar_sha256' => :'avatar_sha256',
57
+ :'avatar_url' => :'avatar_url',
58
+ :'metadata_sha256' => :'metadata_sha256'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'pulp_href' => :'String',
66
+ :'name' => :'String',
67
+ :'company' => :'String',
68
+ :'email' => :'String',
69
+ :'description' => :'String',
70
+ :'resources' => :'String',
71
+ :'links' => :'Array<NamespaceLinkResponse>',
72
+ :'avatar_sha256' => :'String',
73
+ :'avatar_url' => :'String',
74
+ :'metadata_sha256' => :'String'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadataResponse` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!self.class.attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadataResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'pulp_href')
100
+ self.pulp_href = attributes[:'pulp_href']
101
+ end
102
+
103
+ if attributes.key?(:'name')
104
+ self.name = attributes[:'name']
105
+ end
106
+
107
+ if attributes.key?(:'company')
108
+ self.company = attributes[:'company']
109
+ end
110
+
111
+ if attributes.key?(:'email')
112
+ self.email = attributes[:'email']
113
+ end
114
+
115
+ if attributes.key?(:'description')
116
+ self.description = attributes[:'description']
117
+ end
118
+
119
+ if attributes.key?(:'resources')
120
+ self.resources = attributes[:'resources']
121
+ end
122
+
123
+ if attributes.key?(:'links')
124
+ if (value = attributes[:'links']).is_a?(Array)
125
+ self.links = value
126
+ end
127
+ end
128
+
129
+ if attributes.key?(:'avatar_sha256')
130
+ self.avatar_sha256 = attributes[:'avatar_sha256']
131
+ end
132
+
133
+ if attributes.key?(:'avatar_url')
134
+ self.avatar_url = attributes[:'avatar_url']
135
+ end
136
+
137
+ if attributes.key?(:'metadata_sha256')
138
+ self.metadata_sha256 = attributes[:'metadata_sha256']
139
+ end
140
+ end
141
+
142
+ # Show invalid properties with the reasons. Usually used together with valid?
143
+ # @return Array for valid properties with the reasons
144
+ def list_invalid_properties
145
+ invalid_properties = Array.new
146
+ if @name.nil?
147
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
148
+ end
149
+
150
+ if @name.to_s.length > 64
151
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
152
+ end
153
+
154
+ if @name.to_s.length < 3
155
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
156
+ end
157
+
158
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
159
+ if @name !~ pattern
160
+ invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
161
+ end
162
+
163
+ if !@company.nil? && @company.to_s.length > 64
164
+ invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 64.')
165
+ end
166
+
167
+ if !@email.nil? && @email.to_s.length > 256
168
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
169
+ end
170
+
171
+ if !@description.nil? && @description.to_s.length > 256
172
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
173
+ end
174
+
175
+ if !@avatar_sha256.nil? && @avatar_sha256.to_s.length > 64
176
+ invalid_properties.push('invalid value for "avatar_sha256", the character length must be smaller than or equal to 64.')
177
+ end
178
+
179
+ invalid_properties
180
+ end
181
+
182
+ # Check to see if the all the properties in the model are valid
183
+ # @return true if the model is valid
184
+ def valid?
185
+ return false if @name.nil?
186
+ return false if @name.to_s.length > 64
187
+ return false if @name.to_s.length < 3
188
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
189
+ return false if !@company.nil? && @company.to_s.length > 64
190
+ return false if !@email.nil? && @email.to_s.length > 256
191
+ return false if !@description.nil? && @description.to_s.length > 256
192
+ return false if !@avatar_sha256.nil? && @avatar_sha256.to_s.length > 64
193
+ true
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] name Value to be assigned
198
+ def name=(name)
199
+ if name.nil?
200
+ fail ArgumentError, 'name cannot be nil'
201
+ end
202
+
203
+ if name.to_s.length > 64
204
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
205
+ end
206
+
207
+ if name.to_s.length < 3
208
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
209
+ end
210
+
211
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
212
+ if name !~ pattern
213
+ fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
214
+ end
215
+
216
+ @name = name
217
+ end
218
+
219
+ # Custom attribute writer method with validation
220
+ # @param [Object] company Value to be assigned
221
+ def company=(company)
222
+ if !company.nil? && company.to_s.length > 64
223
+ fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
224
+ end
225
+
226
+ @company = company
227
+ end
228
+
229
+ # Custom attribute writer method with validation
230
+ # @param [Object] email Value to be assigned
231
+ def email=(email)
232
+ if !email.nil? && email.to_s.length > 256
233
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
234
+ end
235
+
236
+ @email = email
237
+ end
238
+
239
+ # Custom attribute writer method with validation
240
+ # @param [Object] description Value to be assigned
241
+ def description=(description)
242
+ if !description.nil? && description.to_s.length > 256
243
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
244
+ end
245
+
246
+ @description = description
247
+ end
248
+
249
+ # Custom attribute writer method with validation
250
+ # @param [Object] avatar_sha256 Value to be assigned
251
+ def avatar_sha256=(avatar_sha256)
252
+ if !avatar_sha256.nil? && avatar_sha256.to_s.length > 64
253
+ fail ArgumentError, 'invalid value for "avatar_sha256", the character length must be smaller than or equal to 64.'
254
+ end
255
+
256
+ @avatar_sha256 = avatar_sha256
257
+ end
258
+
259
+ # Checks equality by comparing each attribute.
260
+ # @param [Object] Object to be compared
261
+ def ==(o)
262
+ return true if self.equal?(o)
263
+ self.class == o.class &&
264
+ pulp_href == o.pulp_href &&
265
+ name == o.name &&
266
+ company == o.company &&
267
+ email == o.email &&
268
+ description == o.description &&
269
+ resources == o.resources &&
270
+ links == o.links &&
271
+ avatar_sha256 == o.avatar_sha256 &&
272
+ avatar_url == o.avatar_url &&
273
+ metadata_sha256 == o.metadata_sha256
274
+ end
275
+
276
+ # @see the `==` method
277
+ # @param [Object] Object to be compared
278
+ def eql?(o)
279
+ self == o
280
+ end
281
+
282
+ # Calculates hash code according to all attributes.
283
+ # @return [Integer] Hash code
284
+ def hash
285
+ [pulp_href, name, company, email, description, resources, links, avatar_sha256, avatar_url, metadata_sha256].hash
286
+ end
287
+
288
+ # Builds the object from hash
289
+ # @param [Hash] attributes Model attributes in the form of hash
290
+ # @return [Object] Returns the model itself
291
+ def self.build_from_hash(attributes)
292
+ new.build_from_hash(attributes)
293
+ end
294
+
295
+ # Builds the object from hash
296
+ # @param [Hash] attributes Model attributes in the form of hash
297
+ # @return [Object] Returns the model itself
298
+ def build_from_hash(attributes)
299
+ return nil unless attributes.is_a?(Hash)
300
+ self.class.openapi_types.each_pair do |key, type|
301
+ if type =~ /\AArray<(.*)>/i
302
+ # check to ensure the input is an array given that the attribute
303
+ # is documented as an array but the input is not
304
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
305
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
306
+ end
307
+ elsif !attributes[self.class.attribute_map[key]].nil?
308
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
309
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
310
+ end
311
+
312
+ self
313
+ end
314
+
315
+ # Deserializes the data based on type
316
+ # @param string type Data type
317
+ # @param string value Value to be deserialized
318
+ # @return [Object] Deserialized data
319
+ def _deserialize(type, value)
320
+ case type.to_sym
321
+ when :DateTime
322
+ DateTime.parse(value)
323
+ when :Date
324
+ Date.parse(value)
325
+ when :String
326
+ value.to_s
327
+ when :Integer
328
+ value.to_i
329
+ when :Float
330
+ value.to_f
331
+ when :Boolean
332
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
333
+ true
334
+ else
335
+ false
336
+ end
337
+ when :Object
338
+ # generic object (usually a Hash), return directly
339
+ value
340
+ when /\AArray<(?<inner_type>.+)>\z/
341
+ inner_type = Regexp.last_match[:inner_type]
342
+ value.map { |v| _deserialize(inner_type, v) }
343
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
344
+ k_type = Regexp.last_match[:k_type]
345
+ v_type = Regexp.last_match[:v_type]
346
+ {}.tap do |hash|
347
+ value.each do |k, v|
348
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
349
+ end
350
+ end
351
+ else # model
352
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
353
+ end
354
+ end
355
+
356
+ # Returns the string representation of the object
357
+ # @return [String] String presentation of the object
358
+ def to_s
359
+ to_hash.to_s
360
+ end
361
+
362
+ # to_body is an alias to to_hash (backward compatibility)
363
+ # @return [Hash] Returns the object in the form of hash
364
+ def to_body
365
+ to_hash
366
+ end
367
+
368
+ # Returns the object in the form of hash
369
+ # @return [Hash] Returns the object in the form of hash
370
+ def to_hash
371
+ hash = {}
372
+ self.class.attribute_map.each_pair do |attr, param|
373
+ value = self.send(attr)
374
+ if value.nil?
375
+ is_nullable = self.class.openapi_nullable.include?(attr)
376
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
377
+ end
378
+
379
+ hash[param] = _to_hash(value)
380
+ end
381
+ hash
382
+ end
383
+
384
+ # Outputs non-array value in the form of hash
385
+ # For object, use to_hash. Otherwise, just return the value
386
+ # @param [Object] value Any valid value
387
+ # @return [Hash] Returns the value in the form of hash
388
+ def _to_hash(value)
389
+ if value.is_a?(Array)
390
+ value.compact.map { |v| _to_hash(v) }
391
+ elsif value.is_a?(Hash)
392
+ {}.tap do |hash|
393
+ value.each { |k, v| hash[k] = _to_hash(v) }
394
+ end
395
+ elsif value.respond_to? :to_hash
396
+ value.to_hash
397
+ else
398
+ value
399
+ end
400
+ end
401
+ end
402
+ end
@@ -35,6 +35,8 @@ module PulpAnsibleClient
35
35
  # Gpg public key to verify collection signatures against
36
36
  attr_accessor :gpgkey
37
37
 
38
+ attr_accessor :private
39
+
38
40
  # Attribute mapping from ruby-style variable name to JSON key.
39
41
  def self.attribute_map
40
42
  {
@@ -44,7 +46,8 @@ module PulpAnsibleClient
44
46
  :'retain_repo_versions' => :'retain_repo_versions',
45
47
  :'remote' => :'remote',
46
48
  :'last_synced_metadata_time' => :'last_synced_metadata_time',
47
- :'gpgkey' => :'gpgkey'
49
+ :'gpgkey' => :'gpgkey',
50
+ :'private' => :'private'
48
51
  }
49
52
  end
50
53
 
@@ -57,7 +60,8 @@ module PulpAnsibleClient
57
60
  :'retain_repo_versions' => :'Integer',
58
61
  :'remote' => :'String',
59
62
  :'last_synced_metadata_time' => :'DateTime',
60
- :'gpgkey' => :'String'
63
+ :'gpgkey' => :'String',
64
+ :'private' => :'Boolean'
61
65
  }
62
66
  end
63
67
 
@@ -68,7 +72,7 @@ module PulpAnsibleClient
68
72
  :'retain_repo_versions',
69
73
  :'remote',
70
74
  :'last_synced_metadata_time',
71
- :'gpgkey'
75
+ :'gpgkey',
72
76
  ])
73
77
  end
74
78
 
@@ -116,6 +120,10 @@ module PulpAnsibleClient
116
120
  if attributes.key?(:'gpgkey')
117
121
  self.gpgkey = attributes[:'gpgkey']
118
122
  end
123
+
124
+ if attributes.key?(:'private')
125
+ self.private = attributes[:'private']
126
+ end
119
127
  end
120
128
 
121
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -211,7 +219,8 @@ module PulpAnsibleClient
211
219
  retain_repo_versions == o.retain_repo_versions &&
212
220
  remote == o.remote &&
213
221
  last_synced_metadata_time == o.last_synced_metadata_time &&
214
- gpgkey == o.gpgkey
222
+ gpgkey == o.gpgkey &&
223
+ private == o.private
215
224
  end
216
225
 
217
226
  # @see the `==` method
@@ -223,7 +232,7 @@ module PulpAnsibleClient
223
232
  # Calculates hash code according to all attributes.
224
233
  # @return [Integer] Hash code
225
234
  def hash
226
- [pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
235
+ [pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, private].hash
227
236
  end
228
237
 
229
238
  # Builds the object from hash
@@ -44,6 +44,10 @@ module PulpAnsibleClient
44
44
  # Gpg public key to verify collection signatures against
45
45
  attr_accessor :gpgkey
46
46
 
47
+ attr_accessor :last_sync_task
48
+
49
+ attr_accessor :private
50
+
47
51
  # Attribute mapping from ruby-style variable name to JSON key.
48
52
  def self.attribute_map
49
53
  {
@@ -57,7 +61,9 @@ module PulpAnsibleClient
57
61
  :'retain_repo_versions' => :'retain_repo_versions',
58
62
  :'remote' => :'remote',
59
63
  :'last_synced_metadata_time' => :'last_synced_metadata_time',
60
- :'gpgkey' => :'gpgkey'
64
+ :'gpgkey' => :'gpgkey',
65
+ :'last_sync_task' => :'last_sync_task',
66
+ :'private' => :'private'
61
67
  }
62
68
  end
63
69
 
@@ -74,7 +80,9 @@ module PulpAnsibleClient
74
80
  :'retain_repo_versions' => :'Integer',
75
81
  :'remote' => :'String',
76
82
  :'last_synced_metadata_time' => :'DateTime',
77
- :'gpgkey' => :'String'
83
+ :'gpgkey' => :'String',
84
+ :'last_sync_task' => :'TaskResponse',
85
+ :'private' => :'Boolean'
78
86
  }
79
87
  end
80
88
 
@@ -85,7 +93,7 @@ module PulpAnsibleClient
85
93
  :'retain_repo_versions',
86
94
  :'remote',
87
95
  :'last_synced_metadata_time',
88
- :'gpgkey'
96
+ :'gpgkey',
89
97
  ])
90
98
  end
91
99
 
@@ -149,6 +157,14 @@ module PulpAnsibleClient
149
157
  if attributes.key?(:'gpgkey')
150
158
  self.gpgkey = attributes[:'gpgkey']
151
159
  end
160
+
161
+ if attributes.key?(:'last_sync_task')
162
+ self.last_sync_task = attributes[:'last_sync_task']
163
+ end
164
+
165
+ if attributes.key?(:'private')
166
+ self.private = attributes[:'private']
167
+ end
152
168
  end
153
169
 
154
170
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -199,7 +215,9 @@ module PulpAnsibleClient
199
215
  retain_repo_versions == o.retain_repo_versions &&
200
216
  remote == o.remote &&
201
217
  last_synced_metadata_time == o.last_synced_metadata_time &&
202
- gpgkey == o.gpgkey
218
+ gpgkey == o.gpgkey &&
219
+ last_sync_task == o.last_sync_task &&
220
+ private == o.private
203
221
  end
204
222
 
205
223
  # @see the `==` method
@@ -211,7 +229,7 @@ module PulpAnsibleClient
211
229
  # Calculates hash code according to all attributes.
212
230
  # @return [Integer] Hash code
213
231
  def hash
214
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey].hash
232
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
215
233
  end
216
234
 
217
235
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpAnsibleClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
59
+ # The policy to use when downloading content.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -49,7 +49,7 @@ module PulpAnsibleClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
52
+ # The policy to use when downloading content.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -85,6 +85,8 @@ module PulpAnsibleClient
85
85
  # Sync only collections that have a signature
86
86
  attr_accessor :signed_only
87
87
 
88
+ attr_accessor :last_sync_task
89
+
88
90
  # Attribute mapping from ruby-style variable name to JSON key.
89
91
  def self.attribute_map
90
92
  {
@@ -111,7 +113,8 @@ module PulpAnsibleClient
111
113
  :'requirements_file' => :'requirements_file',
112
114
  :'auth_url' => :'auth_url',
113
115
  :'sync_dependencies' => :'sync_dependencies',
114
- :'signed_only' => :'signed_only'
116
+ :'signed_only' => :'signed_only',
117
+ :'last_sync_task' => :'last_sync_task'
115
118
  }
116
119
  end
117
120
 
@@ -141,7 +144,8 @@ module PulpAnsibleClient
141
144
  :'requirements_file' => :'String',
142
145
  :'auth_url' => :'String',
143
146
  :'sync_dependencies' => :'Boolean',
144
- :'signed_only' => :'Boolean'
147
+ :'signed_only' => :'Boolean',
148
+ :'last_sync_task' => :'TaskResponse'
145
149
  }
146
150
  end
147
151
 
@@ -283,6 +287,10 @@ module PulpAnsibleClient
283
287
  else
284
288
  self.signed_only = false
285
289
  end
290
+
291
+ if attributes.key?(:'last_sync_task')
292
+ self.last_sync_task = attributes[:'last_sync_task']
293
+ end
286
294
  end
287
295
 
288
296
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -426,7 +434,8 @@ module PulpAnsibleClient
426
434
  requirements_file == o.requirements_file &&
427
435
  auth_url == o.auth_url &&
428
436
  sync_dependencies == o.sync_dependencies &&
429
- signed_only == o.signed_only
437
+ signed_only == o.signed_only &&
438
+ last_sync_task == o.last_sync_task
430
439
  end
431
440
 
432
441
  # @see the `==` method
@@ -438,7 +447,7 @@ module PulpAnsibleClient
438
447
  # Calculates hash code according to all attributes.
439
448
  # @return [Integer] Hash code
440
449
  def hash
441
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only].hash
450
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
442
451
  end
443
452
 
444
453
  # Builds the object from hash