pulp_ansible_client 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -5
  3. data/docs/AnsibleAnsibleRepository.md +3 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionVersionSignature.md +21 -0
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
  8. data/docs/AnsibleGitRemote.md +27 -27
  9. data/docs/AnsibleGitRemoteResponse.md +23 -23
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionListResponse.md +25 -0
  12. data/docs/ContentCollectionSignaturesApi.md +64 -4
  13. data/docs/KeyringEnum.md +16 -0
  14. data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
  15. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  16. data/docs/PatchedansibleGitRemote.md +27 -27
  17. data/docs/PulpAnsibleApiV3Api.md +8 -2
  18. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
  19. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
  23. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
  26. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
  27. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
  28. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
  29. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
  30. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
  31. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
  32. data/docs/PulpAnsibleDefaultApiApi.md +50 -0
  33. data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
  34. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
  35. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
  36. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
  37. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
  40. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
  41. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
  46. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
  47. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
  51. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
  52. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
  53. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
  54. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
  58. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
  59. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
  62. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
  63. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
  64. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
  65. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
  66. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
  67. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
  77. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
  78. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
  79. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
  80. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  81. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  85. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  86. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
  87. data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
  88. data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
  89. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
  90. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  91. data/lib/pulp_ansible_client/version.rb +1 -1
  92. data/lib/pulp_ansible_client.rb +27 -1
  93. data/spec/api/content_collection_signatures_api_spec.rb +16 -2
  94. data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
  95. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
  96. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
  97. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
  98. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
  99. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
  100. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
  102. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
  103. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
  104. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
  105. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
  106. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
  107. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
  108. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
  109. data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
  110. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
  111. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
  112. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
  113. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
  114. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
  115. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
  116. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
  117. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
  118. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
  119. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
  120. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
  121. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
  122. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
  123. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
  124. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  125. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  126. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  127. data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
  128. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  129. data/spec/models/ansible_git_remote_spec.rb +19 -19
  130. data/spec/models/ansible_role_response_spec.rb +2 -2
  131. data/spec/models/collection_version_list_response_spec.rb +65 -0
  132. data/spec/models/keyring_enum_spec.rb +35 -0
  133. data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
  134. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  135. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  136. metadata +109 -5
@@ -0,0 +1,357 @@
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 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Trigger an asynchronous delete task
23
+ # @param distro_base_path [String]
24
+ # @param name [String]
25
+ # @param namespace [String]
26
+ # @param path [String]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [AsyncOperationResponse]
29
+ def delete(distro_base_path, name, namespace, path, opts = {})
30
+ data, _status_code, _headers = delete_with_http_info(distro_base_path, name, namespace, path, opts)
31
+ data
32
+ end
33
+
34
+ # Trigger an asynchronous delete task
35
+ # @param distro_base_path [String]
36
+ # @param name [String]
37
+ # @param namespace [String]
38
+ # @param path [String]
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
41
+ def delete_with_http_info(distro_base_path, name, namespace, path, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.delete ...'
44
+ end
45
+ # verify the required parameter 'distro_base_path' is set
46
+ if @api_client.config.client_side_validation && distro_base_path.nil?
47
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.delete"
48
+ end
49
+ # verify the required parameter 'name' is set
50
+ if @api_client.config.client_side_validation && name.nil?
51
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.delete"
52
+ end
53
+ # verify the required parameter 'namespace' is set
54
+ if @api_client.config.client_side_validation && namespace.nil?
55
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.delete"
56
+ end
57
+ # verify the required parameter 'path' is set
58
+ if @api_client.config.client_side_validation && path.nil?
59
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.delete"
60
+ end
61
+ # resource path
62
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:body]
77
+
78
+ # return_type
79
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
80
+
81
+ # auth_names
82
+ auth_names = opts[:auth_names] || ['basicAuth']
83
+
84
+ new_options = opts.merge(
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ # ViewSet for Collections.
101
+ # @param distro_base_path [String]
102
+ # @param path [String]
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [Boolean] :deprecated
105
+ # @option opts [Integer] :limit Number of results to return per page.
106
+ # @option opts [String] :name
107
+ # @option opts [String] :namespace
108
+ # @option opts [Integer] :offset The initial index from which to return the results.
109
+ # @option opts [String] :fields A list of fields to include in the response.
110
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
+ # @return [PaginatedCollectionResponseList]
112
+ def list(distro_base_path, path, opts = {})
113
+ data, _status_code, _headers = list_with_http_info(distro_base_path, path, opts)
114
+ data
115
+ end
116
+
117
+ # ViewSet for Collections.
118
+ # @param distro_base_path [String]
119
+ # @param path [String]
120
+ # @param [Hash] opts the optional parameters
121
+ # @option opts [Boolean] :deprecated
122
+ # @option opts [Integer] :limit Number of results to return per page.
123
+ # @option opts [String] :name
124
+ # @option opts [String] :namespace
125
+ # @option opts [Integer] :offset The initial index from which to return the results.
126
+ # @option opts [String] :fields A list of fields to include in the response.
127
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
128
+ # @return [Array<(PaginatedCollectionResponseList, Integer, Hash)>] PaginatedCollectionResponseList data, response status code and response headers
129
+ def list_with_http_info(distro_base_path, path, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.list ...'
132
+ end
133
+ # verify the required parameter 'distro_base_path' is set
134
+ if @api_client.config.client_side_validation && distro_base_path.nil?
135
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.list"
136
+ end
137
+ # verify the required parameter 'path' is set
138
+ if @api_client.config.client_side_validation && path.nil?
139
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.list"
140
+ end
141
+ # resource path
142
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
143
+
144
+ # query parameters
145
+ query_params = opts[:query_params] || {}
146
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
147
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
148
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
149
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
150
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
151
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
152
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
153
+
154
+ # header parameters
155
+ header_params = opts[:header_params] || {}
156
+ # HTTP header 'Accept' (if needed)
157
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
158
+
159
+ # form parameters
160
+ form_params = opts[:form_params] || {}
161
+
162
+ # http body (model)
163
+ post_body = opts[:body]
164
+
165
+ # return_type
166
+ return_type = opts[:return_type] || 'PaginatedCollectionResponseList'
167
+
168
+ # auth_names
169
+ auth_names = opts[:auth_names] || ['basicAuth']
170
+
171
+ new_options = opts.merge(
172
+ :header_params => header_params,
173
+ :query_params => query_params,
174
+ :form_params => form_params,
175
+ :body => post_body,
176
+ :auth_names => auth_names,
177
+ :return_type => return_type
178
+ )
179
+
180
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ end
184
+ return data, status_code, headers
185
+ end
186
+
187
+ # ViewSet for Collections.
188
+ # @param distro_base_path [String]
189
+ # @param name [String]
190
+ # @param namespace [String]
191
+ # @param path [String]
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [String] :fields A list of fields to include in the response.
194
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
195
+ # @return [CollectionResponse]
196
+ def read(distro_base_path, name, namespace, path, opts = {})
197
+ data, _status_code, _headers = read_with_http_info(distro_base_path, name, namespace, path, opts)
198
+ data
199
+ end
200
+
201
+ # ViewSet for Collections.
202
+ # @param distro_base_path [String]
203
+ # @param name [String]
204
+ # @param namespace [String]
205
+ # @param path [String]
206
+ # @param [Hash] opts the optional parameters
207
+ # @option opts [String] :fields A list of fields to include in the response.
208
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
209
+ # @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
210
+ def read_with_http_info(distro_base_path, name, namespace, path, opts = {})
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.read ...'
213
+ end
214
+ # verify the required parameter 'distro_base_path' is set
215
+ if @api_client.config.client_side_validation && distro_base_path.nil?
216
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.read"
217
+ end
218
+ # verify the required parameter 'name' is set
219
+ if @api_client.config.client_side_validation && name.nil?
220
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.read"
221
+ end
222
+ # verify the required parameter 'namespace' is set
223
+ if @api_client.config.client_side_validation && namespace.nil?
224
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.read"
225
+ end
226
+ # verify the required parameter 'path' is set
227
+ if @api_client.config.client_side_validation && path.nil?
228
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.read"
229
+ end
230
+ # resource path
231
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
232
+
233
+ # query parameters
234
+ query_params = opts[:query_params] || {}
235
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
236
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
237
+
238
+ # header parameters
239
+ header_params = opts[:header_params] || {}
240
+ # HTTP header 'Accept' (if needed)
241
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
242
+
243
+ # form parameters
244
+ form_params = opts[:form_params] || {}
245
+
246
+ # http body (model)
247
+ post_body = opts[:body]
248
+
249
+ # return_type
250
+ return_type = opts[:return_type] || 'CollectionResponse'
251
+
252
+ # auth_names
253
+ auth_names = opts[:auth_names] || ['basicAuth']
254
+
255
+ new_options = opts.merge(
256
+ :header_params => header_params,
257
+ :query_params => query_params,
258
+ :form_params => form_params,
259
+ :body => post_body,
260
+ :auth_names => auth_names,
261
+ :return_type => return_type
262
+ )
263
+
264
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
265
+ if @api_client.config.debugging
266
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
267
+ end
268
+ return data, status_code, headers
269
+ end
270
+
271
+ # Trigger an asynchronous update task
272
+ # @param distro_base_path [String]
273
+ # @param name [String]
274
+ # @param namespace [String]
275
+ # @param path [String]
276
+ # @param body [Object]
277
+ # @param [Hash] opts the optional parameters
278
+ # @return [AsyncOperationResponse]
279
+ def update(distro_base_path, name, namespace, path, body, opts = {})
280
+ data, _status_code, _headers = update_with_http_info(distro_base_path, name, namespace, path, body, opts)
281
+ data
282
+ end
283
+
284
+ # Trigger an asynchronous update task
285
+ # @param distro_base_path [String]
286
+ # @param name [String]
287
+ # @param namespace [String]
288
+ # @param path [String]
289
+ # @param body [Object]
290
+ # @param [Hash] opts the optional parameters
291
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
292
+ def update_with_http_info(distro_base_path, name, namespace, path, body, opts = {})
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update ...'
295
+ end
296
+ # verify the required parameter 'distro_base_path' is set
297
+ if @api_client.config.client_side_validation && distro_base_path.nil?
298
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update"
299
+ end
300
+ # verify the required parameter 'name' is set
301
+ if @api_client.config.client_side_validation && name.nil?
302
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update"
303
+ end
304
+ # verify the required parameter 'namespace' is set
305
+ if @api_client.config.client_side_validation && namespace.nil?
306
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update"
307
+ end
308
+ # verify the required parameter 'path' is set
309
+ if @api_client.config.client_side_validation && path.nil?
310
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update"
311
+ end
312
+ # verify the required parameter 'body' is set
313
+ if @api_client.config.client_side_validation && body.nil?
314
+ fail ArgumentError, "Missing the required parameter 'body' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.update"
315
+ end
316
+ # resource path
317
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
318
+
319
+ # query parameters
320
+ query_params = opts[:query_params] || {}
321
+
322
+ # header parameters
323
+ header_params = opts[:header_params] || {}
324
+ # HTTP header 'Accept' (if needed)
325
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
326
+ # HTTP header 'Content-Type'
327
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
328
+
329
+ # form parameters
330
+ form_params = opts[:form_params] || {}
331
+
332
+ # http body (model)
333
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
334
+
335
+ # return_type
336
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
337
+
338
+ # auth_names
339
+ auth_names = opts[:auth_names] || ['basicAuth']
340
+
341
+ new_options = opts.merge(
342
+ :header_params => header_params,
343
+ :query_params => query_params,
344
+ :form_params => form_params,
345
+ :body => post_body,
346
+ :auth_names => auth_names,
347
+ :return_type => return_type
348
+ )
349
+
350
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
351
+ if @api_client.config.debugging
352
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
+ end
354
+ return data, status_code, headers
355
+ end
356
+ end
357
+ end
@@ -0,0 +1,313 @@
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 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Trigger an asynchronous delete task
23
+ # @param distro_base_path [String]
24
+ # @param name [String]
25
+ # @param namespace [String]
26
+ # @param path [String]
27
+ # @param version [String]
28
+ # @param [Hash] opts the optional parameters
29
+ # @return [AsyncOperationResponse]
30
+ def delete(distro_base_path, name, namespace, path, version, opts = {})
31
+ data, _status_code, _headers = delete_with_http_info(distro_base_path, name, namespace, path, version, opts)
32
+ data
33
+ end
34
+
35
+ # Trigger an asynchronous delete task
36
+ # @param distro_base_path [String]
37
+ # @param name [String]
38
+ # @param namespace [String]
39
+ # @param path [String]
40
+ # @param version [String]
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
43
+ def delete_with_http_info(distro_base_path, name, namespace, path, version, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete ...'
46
+ end
47
+ # verify the required parameter 'distro_base_path' is set
48
+ if @api_client.config.client_side_validation && distro_base_path.nil?
49
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
50
+ end
51
+ # verify the required parameter 'name' is set
52
+ if @api_client.config.client_side_validation && name.nil?
53
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
54
+ end
55
+ # verify the required parameter 'namespace' is set
56
+ if @api_client.config.client_side_validation && namespace.nil?
57
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
58
+ end
59
+ # verify the required parameter 'path' is set
60
+ if @api_client.config.client_side_validation && path.nil?
61
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
62
+ end
63
+ # verify the required parameter 'version' is set
64
+ if @api_client.config.client_side_validation && version.nil?
65
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.delete"
66
+ end
67
+ # resource path
68
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
69
+
70
+ # query parameters
71
+ query_params = opts[:query_params] || {}
72
+
73
+ # header parameters
74
+ header_params = opts[:header_params] || {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
77
+
78
+ # form parameters
79
+ form_params = opts[:form_params] || {}
80
+
81
+ # http body (model)
82
+ post_body = opts[:body]
83
+
84
+ # return_type
85
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
86
+
87
+ # auth_names
88
+ auth_names = opts[:auth_names] || ['basicAuth']
89
+
90
+ new_options = opts.merge(
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => return_type
97
+ )
98
+
99
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ end
103
+ return data, status_code, headers
104
+ end
105
+
106
+ # Returns paginated CollectionVersions list.
107
+ # @param distro_base_path [String]
108
+ # @param name [String]
109
+ # @param namespace [String]
110
+ # @param path [String]
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [Boolean] :is_highest
113
+ # @option opts [Integer] :limit Number of results to return per page.
114
+ # @option opts [String] :name2
115
+ # @option opts [String] :namespace2
116
+ # @option opts [Integer] :offset The initial index from which to return the results.
117
+ # @option opts [String] :q
118
+ # @option opts [String] :repository_version Repository Version referenced by HREF
119
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
120
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
121
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
122
+ # @option opts [String] :version Filter results where version matches value
123
+ # @option opts [String] :fields A list of fields to include in the response.
124
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
125
+ # @return [PaginatedCollectionVersionListResponseList]
126
+ def list(distro_base_path, name, namespace, path, opts = {})
127
+ data, _status_code, _headers = list_with_http_info(distro_base_path, name, namespace, path, opts)
128
+ data
129
+ end
130
+
131
+ # Returns paginated CollectionVersions list.
132
+ # @param distro_base_path [String]
133
+ # @param name [String]
134
+ # @param namespace [String]
135
+ # @param path [String]
136
+ # @param [Hash] opts the optional parameters
137
+ # @option opts [Boolean] :is_highest
138
+ # @option opts [Integer] :limit Number of results to return per page.
139
+ # @option opts [String] :name2
140
+ # @option opts [String] :namespace2
141
+ # @option opts [Integer] :offset The initial index from which to return the results.
142
+ # @option opts [String] :q
143
+ # @option opts [String] :repository_version Repository Version referenced by HREF
144
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
145
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
146
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
147
+ # @option opts [String] :version Filter results where version matches value
148
+ # @option opts [String] :fields A list of fields to include in the response.
149
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
150
+ # @return [Array<(PaginatedCollectionVersionListResponseList, Integer, Hash)>] PaginatedCollectionVersionListResponseList data, response status code and response headers
151
+ def list_with_http_info(distro_base_path, name, namespace, path, opts = {})
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list ...'
154
+ end
155
+ # verify the required parameter 'distro_base_path' is set
156
+ if @api_client.config.client_side_validation && distro_base_path.nil?
157
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
158
+ end
159
+ # verify the required parameter 'name' is set
160
+ if @api_client.config.client_side_validation && name.nil?
161
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
162
+ end
163
+ # verify the required parameter 'namespace' is set
164
+ if @api_client.config.client_side_validation && namespace.nil?
165
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
166
+ end
167
+ # verify the required parameter 'path' is set
168
+ if @api_client.config.client_side_validation && path.nil?
169
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
170
+ end
171
+ # resource path
172
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+ query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
177
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
178
+ query_params[:'name'] = opts[:'name2'] if !opts[:'name2'].nil?
179
+ query_params[:'namespace'] = opts[:'namespace2'] if !opts[:'namespace2'].nil?
180
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
181
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
182
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
183
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
184
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
185
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
186
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
187
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
188
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:body]
200
+
201
+ # return_type
202
+ return_type = opts[:return_type] || 'PaginatedCollectionVersionListResponseList'
203
+
204
+ # auth_names
205
+ auth_names = opts[:auth_names] || ['basicAuth']
206
+
207
+ new_options = opts.merge(
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => return_type
214
+ )
215
+
216
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+
223
+ # Returns a CollectionVersion object.
224
+ # @param distro_base_path [String]
225
+ # @param name [String]
226
+ # @param namespace [String]
227
+ # @param path [String]
228
+ # @param version [String]
229
+ # @param [Hash] opts the optional parameters
230
+ # @option opts [String] :fields A list of fields to include in the response.
231
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
232
+ # @return [CollectionVersionResponse]
233
+ def read(distro_base_path, name, namespace, path, version, opts = {})
234
+ data, _status_code, _headers = read_with_http_info(distro_base_path, name, namespace, path, version, opts)
235
+ data
236
+ end
237
+
238
+ # Returns a CollectionVersion object.
239
+ # @param distro_base_path [String]
240
+ # @param name [String]
241
+ # @param namespace [String]
242
+ # @param path [String]
243
+ # @param version [String]
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [String] :fields A list of fields to include in the response.
246
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
+ # @return [Array<(CollectionVersionResponse, Integer, Hash)>] CollectionVersionResponse data, response status code and response headers
248
+ def read_with_http_info(distro_base_path, name, namespace, path, version, opts = {})
249
+ if @api_client.config.debugging
250
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read ...'
251
+ end
252
+ # verify the required parameter 'distro_base_path' is set
253
+ if @api_client.config.client_side_validation && distro_base_path.nil?
254
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
255
+ end
256
+ # verify the required parameter 'name' is set
257
+ if @api_client.config.client_side_validation && name.nil?
258
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
259
+ end
260
+ # verify the required parameter 'namespace' is set
261
+ if @api_client.config.client_side_validation && namespace.nil?
262
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
263
+ end
264
+ # verify the required parameter 'path' is set
265
+ if @api_client.config.client_side_validation && path.nil?
266
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
267
+ end
268
+ # verify the required parameter 'version' is set
269
+ if @api_client.config.client_side_validation && version.nil?
270
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.read"
271
+ end
272
+ # resource path
273
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
274
+
275
+ # query parameters
276
+ query_params = opts[:query_params] || {}
277
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
278
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
279
+
280
+ # header parameters
281
+ header_params = opts[:header_params] || {}
282
+ # HTTP header 'Accept' (if needed)
283
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
284
+
285
+ # form parameters
286
+ form_params = opts[:form_params] || {}
287
+
288
+ # http body (model)
289
+ post_body = opts[:body]
290
+
291
+ # return_type
292
+ return_type = opts[:return_type] || 'CollectionVersionResponse'
293
+
294
+ # auth_names
295
+ auth_names = opts[:auth_names] || ['basicAuth']
296
+
297
+ new_options = opts.merge(
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => return_type
304
+ )
305
+
306
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
+ end
310
+ return data, status_code, headers
311
+ end
312
+ end
313
+ end