pulp_ansible_client 0.16.6 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +89 -21
  3. data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
  4. data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
  5. data/docs/AnsibleAnsibleRepository.md +4 -2
  6. data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
  7. data/docs/AnsibleCollectionRemoteResponse.md +3 -1
  8. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -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 +229 -1
  14. data/docs/AnsibleCopyApi.md +1 -1
  15. data/docs/AnsibleGitRemote.md +25 -25
  16. data/docs/AnsibleGitRemoteResponse.md +23 -23
  17. data/docs/AnsibleRepositoryMark.md +19 -0
  18. data/docs/AnsibleRoleResponse.md +3 -3
  19. data/docs/ApiCollectionsApi.md +1 -1
  20. data/docs/ApiRolesApi.md +1 -1
  21. data/docs/CollectionImportApi.md +1 -1
  22. data/docs/CollectionNamespaceResponse.md +3 -1
  23. data/docs/CollectionSummaryResponse.md +35 -0
  24. data/docs/CollectionVersionCopyMove.md +21 -0
  25. data/docs/CollectionVersionListResponse.md +3 -1
  26. data/docs/CollectionVersionResponse.md +2 -0
  27. data/docs/CollectionVersionSearchList.md +27 -0
  28. data/docs/CollectionVersionSearchListResponse.md +29 -0
  29. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  30. data/docs/ContentCollectionMarksApi.md +198 -0
  31. data/docs/ContentCollectionSignaturesApi.md +1 -1
  32. data/docs/ContentCollectionVersionsApi.md +5 -5
  33. data/docs/ContentNamespacesApi.md +220 -0
  34. data/docs/ContentRolesApi.md +1 -1
  35. data/docs/DistributionsAnsibleApi.md +233 -1
  36. data/docs/GalaxyDetailApi.md +1 -1
  37. data/docs/MyPermissionsResponse.md +17 -0
  38. data/docs/NamespaceLink.md +19 -0
  39. data/docs/NamespaceLinkResponse.md +19 -0
  40. data/docs/NestedRole.md +21 -0
  41. data/docs/NestedRoleResponse.md +21 -0
  42. data/docs/ObjectRolesResponse.md +17 -0
  43. data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
  44. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
  45. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
  46. data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
  47. data/docs/PatchedansibleAnsibleRepository.md +4 -2
  48. data/docs/PatchedansibleGitRemote.md +25 -25
  49. data/docs/ProgressReportResponse.md +27 -0
  50. data/docs/PulpAnsibleApiApi.md +1 -1
  51. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  52. data/docs/PulpAnsibleApiV3Api.md +1 -1
  53. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  54. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  56. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  57. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  58. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  59. data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
  60. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
  61. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  62. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  63. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  64. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  65. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  66. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  68. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
  69. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
  70. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  71. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  72. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  73. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  74. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  75. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  76. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  77. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  78. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  79. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
  80. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
  81. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  82. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  83. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  84. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  85. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  86. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  87. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  88. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
  89. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
  90. data/docs/PulpAnsibleTagsApi.md +1 -1
  91. data/docs/RemotesCollectionApi.md +237 -1
  92. data/docs/RemotesGitApi.md +229 -1
  93. data/docs/RemotesRoleApi.md +229 -1
  94. data/docs/RepositoriesAnsibleApi.md +465 -1
  95. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  96. data/docs/Repository.md +25 -0
  97. data/docs/RepositoryAddRemoveContent.md +2 -2
  98. data/docs/RepositoryResponse.md +33 -0
  99. data/docs/Task.md +19 -0
  100. data/docs/TaskResponse.md +45 -0
  101. data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
  102. data/docs/VersionsApi.md +11 -11
  103. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
  104. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
  105. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  106. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
  107. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
  108. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
  109. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
  110. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
  111. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
  112. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
  113. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
  114. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
  115. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
  116. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
  117. data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
  118. data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
  119. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
  120. data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
  121. data/lib/pulp_ansible_client/configuration.rb +3 -3
  122. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
  123. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
  124. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
  125. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
  126. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +13 -4
  127. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  128. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  129. data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
  130. data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
  131. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  132. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +205 -205
  133. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
  134. data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
  135. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  136. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
  137. data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
  138. data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
  139. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
  140. data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
  141. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
  142. data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
  143. data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
  144. data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
  145. data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
  146. data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
  147. data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
  148. data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
  149. data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
  150. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
  151. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
  152. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
  153. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
  154. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +204 -204
  155. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  156. data/lib/pulp_ansible_client/models/repository.rb +306 -0
  157. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  158. data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
  159. data/lib/pulp_ansible_client/models/task.rb +266 -0
  160. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  161. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
  162. data/lib/pulp_ansible_client/version.rb +1 -1
  163. data/lib/pulp_ansible_client.rb +32 -0
  164. data/spec/api/ansible_collections_api_spec.rb +50 -0
  165. data/spec/api/content_collection_marks_api_spec.rb +83 -0
  166. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  167. data/spec/api/content_namespaces_api_spec.rb +93 -0
  168. data/spec/api/distributions_ansible_api_spec.rb +52 -0
  169. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
  170. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  171. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
  172. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
  173. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
  174. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
  175. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
  176. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
  177. data/spec/api/remotes_collection_api_spec.rb +54 -0
  178. data/spec/api/remotes_git_api_spec.rb +50 -0
  179. data/spec/api/remotes_role_api_spec.rb +50 -0
  180. data/spec/api/repositories_ansible_api_spec.rb +106 -0
  181. data/spec/api/versions_api_spec.rb +4 -4
  182. data/spec/configuration_spec.rb +3 -3
  183. data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
  184. data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
  185. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  186. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  187. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  188. data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
  189. data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
  190. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  191. data/spec/models/ansible_collection_version_spec.rb +4 -4
  192. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  193. data/spec/models/ansible_git_remote_spec.rb +20 -20
  194. data/spec/models/ansible_repository_mark_spec.rb +47 -0
  195. data/spec/models/ansible_role_response_spec.rb +2 -2
  196. data/spec/models/collection_namespace_response_spec.rb +6 -0
  197. data/spec/models/collection_summary_response_spec.rb +95 -0
  198. data/spec/models/collection_version_copy_move_spec.rb +53 -0
  199. data/spec/models/collection_version_list_response_spec.rb +6 -0
  200. data/spec/models/collection_version_response_spec.rb +6 -0
  201. data/spec/models/collection_version_search_list_response_spec.rb +77 -0
  202. data/spec/models/collection_version_search_list_spec.rb +71 -0
  203. data/spec/models/my_permissions_response_spec.rb +41 -0
  204. data/spec/models/namespace_link_response_spec.rb +47 -0
  205. data/spec/models/namespace_link_spec.rb +47 -0
  206. data/spec/models/nested_role_response_spec.rb +53 -0
  207. data/spec/models/nested_role_spec.rb +53 -0
  208. data/spec/models/object_roles_response_spec.rb +41 -0
  209. data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
  210. data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
  211. data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
  212. data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
  213. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  214. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  215. data/spec/models/progress_report_response_spec.rb +71 -0
  216. data/spec/models/repository_response_spec.rb +89 -0
  217. data/spec/models/repository_spec.rb +65 -0
  218. data/spec/models/task_response_spec.rb +125 -0
  219. data/spec/models/task_spec.rb +47 -0
  220. data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
  221. metadata +244 -116
@@ -27,8 +27,8 @@ module PulpAnsibleClient
27
27
  # @option opts [Array<String>] :fields A list of fields to include in the response.
28
28
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
29
29
  # @return [PaginatedGalaxyRoleVersionResponseList]
30
- def get(ansible_role_href, opts = {})
31
- data, _status_code, _headers = get_with_http_info(ansible_role_href, opts)
30
+ def api_v1_roles_versions_list(ansible_role_href, opts = {})
31
+ data, _status_code, _headers = api_v1_roles_versions_list_with_http_info(ansible_role_href, opts)
32
32
  data
33
33
  end
34
34
 
@@ -40,13 +40,13 @@ module PulpAnsibleClient
40
40
  # @option opts [Array<String>] :fields A list of fields to include in the response.
41
41
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
42
42
  # @return [Array<(PaginatedGalaxyRoleVersionResponseList, Integer, Hash)>] PaginatedGalaxyRoleVersionResponseList data, response status code and response headers
43
- def get_with_http_info(ansible_role_href, opts = {})
43
+ def api_v1_roles_versions_list_with_http_info(ansible_role_href, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: VersionsApi.get ...'
45
+ @api_client.config.logger.debug 'Calling API: VersionsApi.api_v1_roles_versions_list ...'
46
46
  end
47
47
  # verify the required parameter 'ansible_role_href' is set
48
48
  if @api_client.config.client_side_validation && ansible_role_href.nil?
49
- fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling VersionsApi.get"
49
+ fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling VersionsApi.api_v1_roles_versions_list"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '{ansible_role_href}versions/'.sub('{' + 'ansible_role_href' + '}', CGI.escape(ansible_role_href.to_s).gsub('%2F', '/'))
@@ -86,7 +86,7 @@ module PulpAnsibleClient
86
86
 
87
87
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: VersionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ @api_client.config.logger.debug "API called: VersionsApi#api_v1_roles_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
@@ -98,8 +98,8 @@ module PulpAnsibleClient
98
98
  # @option opts [Array<String>] :fields A list of fields to include in the response.
99
99
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
100
100
  # @return [PaginatedGalaxyCollectionVersionResponseList]
101
- def get_0(ansible_collection_version_href, opts = {})
102
- data, _status_code, _headers = get_0_with_http_info(ansible_collection_version_href, opts)
101
+ def api_v2_collection_versions_list(ansible_collection_version_href, opts = {})
102
+ data, _status_code, _headers = api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts)
103
103
  data
104
104
  end
105
105
 
@@ -110,13 +110,13 @@ module PulpAnsibleClient
110
110
  # @option opts [Array<String>] :fields A list of fields to include in the response.
111
111
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
112
112
  # @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
113
- def get_0_with_http_info(ansible_collection_version_href, opts = {})
113
+ def api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts = {})
114
114
  if @api_client.config.debugging
115
- @api_client.config.logger.debug 'Calling API: VersionsApi.get_0 ...'
115
+ @api_client.config.logger.debug 'Calling API: VersionsApi.api_v2_collection_versions_list ...'
116
116
  end
117
117
  # verify the required parameter 'ansible_collection_version_href' is set
118
118
  if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
119
- fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.get_0"
119
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.api_v2_collection_versions_list"
120
120
  end
121
121
  # resource path
122
122
  local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
@@ -155,7 +155,7 @@ module PulpAnsibleClient
155
155
 
156
156
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
157
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: VersionsApi#get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ @api_client.config.logger.debug "API called: VersionsApi#api_v2_collection_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
159
  end
160
160
  return data, status_code, headers
161
161
  end
@@ -127,8 +127,8 @@ module PulpAnsibleClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
131
- @host = 'localhost'
130
+ @scheme = 'https'
131
+ @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpAnsibleClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://localhost:24817/",
213
+ url: "https://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -0,0 +1,359 @@
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 AnsibleAnsibleNamespaceMetadata
18
+ # Required named, only accepts lowercase, numbers and underscores.
19
+ attr_accessor :name
20
+
21
+ # Optional namespace company owner.
22
+ attr_accessor :company
23
+
24
+ # Optional namespace contact email.
25
+ attr_accessor :email
26
+
27
+ # Optional short description.
28
+ attr_accessor :description
29
+
30
+ # Optional resource page in markdown format.
31
+ attr_accessor :resources
32
+
33
+ # Labeled related links.
34
+ attr_accessor :links
35
+
36
+ # Optional avatar image for Namespace
37
+ attr_accessor :avatar
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'name' => :'name',
43
+ :'company' => :'company',
44
+ :'email' => :'email',
45
+ :'description' => :'description',
46
+ :'resources' => :'resources',
47
+ :'links' => :'links',
48
+ :'avatar' => :'avatar'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'name' => :'String',
56
+ :'company' => :'String',
57
+ :'email' => :'String',
58
+ :'description' => :'String',
59
+ :'resources' => :'String',
60
+ :'links' => :'Array<NamespaceLink>',
61
+ :'avatar' => :'File'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadata` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes.key?(:'company')
91
+ self.company = attributes[:'company']
92
+ end
93
+
94
+ if attributes.key?(:'email')
95
+ self.email = attributes[:'email']
96
+ end
97
+
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
100
+ end
101
+
102
+ if attributes.key?(:'resources')
103
+ self.resources = attributes[:'resources']
104
+ end
105
+
106
+ if attributes.key?(:'links')
107
+ if (value = attributes[:'links']).is_a?(Array)
108
+ self.links = value
109
+ end
110
+ end
111
+
112
+ if attributes.key?(:'avatar')
113
+ self.avatar = attributes[:'avatar']
114
+ end
115
+ end
116
+
117
+ # Show invalid properties with the reasons. Usually used together with valid?
118
+ # @return Array for valid properties with the reasons
119
+ def list_invalid_properties
120
+ invalid_properties = Array.new
121
+ if @name.nil?
122
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
123
+ end
124
+
125
+ if @name.to_s.length > 64
126
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
127
+ end
128
+
129
+ if @name.to_s.length < 3
130
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
131
+ end
132
+
133
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
134
+ if @name !~ pattern
135
+ invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
136
+ end
137
+
138
+ if !@company.nil? && @company.to_s.length > 64
139
+ invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 64.')
140
+ end
141
+
142
+ if !@email.nil? && @email.to_s.length > 256
143
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
144
+ end
145
+
146
+ if !@description.nil? && @description.to_s.length > 256
147
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
148
+ end
149
+
150
+ invalid_properties
151
+ end
152
+
153
+ # Check to see if the all the properties in the model are valid
154
+ # @return true if the model is valid
155
+ def valid?
156
+ return false if @name.nil?
157
+ return false if @name.to_s.length > 64
158
+ return false if @name.to_s.length < 3
159
+ return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
160
+ return false if !@company.nil? && @company.to_s.length > 64
161
+ return false if !@email.nil? && @email.to_s.length > 256
162
+ return false if !@description.nil? && @description.to_s.length > 256
163
+ true
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param [Object] name Value to be assigned
168
+ def name=(name)
169
+ if name.nil?
170
+ fail ArgumentError, 'name cannot be nil'
171
+ end
172
+
173
+ if name.to_s.length > 64
174
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
175
+ end
176
+
177
+ if name.to_s.length < 3
178
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
179
+ end
180
+
181
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
182
+ if name !~ pattern
183
+ fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
184
+ end
185
+
186
+ @name = name
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] company Value to be assigned
191
+ def company=(company)
192
+ if !company.nil? && company.to_s.length > 64
193
+ fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
194
+ end
195
+
196
+ @company = company
197
+ end
198
+
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] email Value to be assigned
201
+ def email=(email)
202
+ if !email.nil? && email.to_s.length > 256
203
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
204
+ end
205
+
206
+ @email = email
207
+ end
208
+
209
+ # Custom attribute writer method with validation
210
+ # @param [Object] description Value to be assigned
211
+ def description=(description)
212
+ if !description.nil? && description.to_s.length > 256
213
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
214
+ end
215
+
216
+ @description = description
217
+ end
218
+
219
+ # Checks equality by comparing each attribute.
220
+ # @param [Object] Object to be compared
221
+ def ==(o)
222
+ return true if self.equal?(o)
223
+ self.class == o.class &&
224
+ name == o.name &&
225
+ company == o.company &&
226
+ email == o.email &&
227
+ description == o.description &&
228
+ resources == o.resources &&
229
+ links == o.links &&
230
+ avatar == o.avatar
231
+ end
232
+
233
+ # @see the `==` method
234
+ # @param [Object] Object to be compared
235
+ def eql?(o)
236
+ self == o
237
+ end
238
+
239
+ # Calculates hash code according to all attributes.
240
+ # @return [Integer] Hash code
241
+ def hash
242
+ [name, company, email, description, resources, links, avatar].hash
243
+ end
244
+
245
+ # Builds the object from hash
246
+ # @param [Hash] attributes Model attributes in the form of hash
247
+ # @return [Object] Returns the model itself
248
+ def self.build_from_hash(attributes)
249
+ new.build_from_hash(attributes)
250
+ end
251
+
252
+ # Builds the object from hash
253
+ # @param [Hash] attributes Model attributes in the form of hash
254
+ # @return [Object] Returns the model itself
255
+ def build_from_hash(attributes)
256
+ return nil unless attributes.is_a?(Hash)
257
+ self.class.openapi_types.each_pair do |key, type|
258
+ if type =~ /\AArray<(.*)>/i
259
+ # check to ensure the input is an array given that the attribute
260
+ # is documented as an array but the input is not
261
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
262
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
263
+ end
264
+ elsif !attributes[self.class.attribute_map[key]].nil?
265
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
266
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
267
+ end
268
+
269
+ self
270
+ end
271
+
272
+ # Deserializes the data based on type
273
+ # @param string type Data type
274
+ # @param string value Value to be deserialized
275
+ # @return [Object] Deserialized data
276
+ def _deserialize(type, value)
277
+ case type.to_sym
278
+ when :DateTime
279
+ DateTime.parse(value)
280
+ when :Date
281
+ Date.parse(value)
282
+ when :String
283
+ value.to_s
284
+ when :Integer
285
+ value.to_i
286
+ when :Float
287
+ value.to_f
288
+ when :Boolean
289
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
290
+ true
291
+ else
292
+ false
293
+ end
294
+ when :Object
295
+ # generic object (usually a Hash), return directly
296
+ value
297
+ when /\AArray<(?<inner_type>.+)>\z/
298
+ inner_type = Regexp.last_match[:inner_type]
299
+ value.map { |v| _deserialize(inner_type, v) }
300
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
301
+ k_type = Regexp.last_match[:k_type]
302
+ v_type = Regexp.last_match[:v_type]
303
+ {}.tap do |hash|
304
+ value.each do |k, v|
305
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
306
+ end
307
+ end
308
+ else # model
309
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
310
+ end
311
+ end
312
+
313
+ # Returns the string representation of the object
314
+ # @return [String] String presentation of the object
315
+ def to_s
316
+ to_hash.to_s
317
+ end
318
+
319
+ # to_body is an alias to to_hash (backward compatibility)
320
+ # @return [Hash] Returns the object in the form of hash
321
+ def to_body
322
+ to_hash
323
+ end
324
+
325
+ # Returns the object in the form of hash
326
+ # @return [Hash] Returns the object in the form of hash
327
+ def to_hash
328
+ hash = {}
329
+ self.class.attribute_map.each_pair do |attr, param|
330
+ value = self.send(attr)
331
+ if value.nil?
332
+ is_nullable = self.class.openapi_nullable.include?(attr)
333
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
334
+ end
335
+
336
+ hash[param] = _to_hash(value)
337
+ end
338
+ hash
339
+ end
340
+
341
+ # Outputs non-array value in the form of hash
342
+ # For object, use to_hash. Otherwise, just return the value
343
+ # @param [Object] value Any valid value
344
+ # @return [Hash] Returns the value in the form of hash
345
+ def _to_hash(value)
346
+ if value.is_a?(Array)
347
+ value.compact.map { |v| _to_hash(v) }
348
+ elsif value.is_a?(Hash)
349
+ {}.tap do |hash|
350
+ value.each { |k, v| hash[k] = _to_hash(v) }
351
+ end
352
+ elsif value.respond_to? :to_hash
353
+ value.to_hash
354
+ else
355
+ value
356
+ end
357
+ end
358
+ end
359
+ end