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,277 @@
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 PulpAnsibleDefaultApiV3CollectionsVersionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Legacy v3 endpoint.
23
+ # @param name [String]
24
+ # @param namespace [String]
25
+ # @param version [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [AsyncOperationResponse]
28
+ def delete(name, namespace, version, opts = {})
29
+ data, _status_code, _headers = delete_with_http_info(name, namespace, version, opts)
30
+ data
31
+ end
32
+
33
+ # Legacy v3 endpoint.
34
+ # @param name [String]
35
+ # @param namespace [String]
36
+ # @param version [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
+ def delete_with_http_info(name, namespace, version, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3CollectionsVersionsApi.delete ...'
42
+ end
43
+ # verify the required parameter 'name' is set
44
+ if @api_client.config.client_side_validation && name.nil?
45
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.delete"
46
+ end
47
+ # verify the required parameter 'namespace' is set
48
+ if @api_client.config.client_side_validation && namespace.nil?
49
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.delete"
50
+ end
51
+ # verify the required parameter 'version' is set
52
+ if @api_client.config.client_side_validation && version.nil?
53
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.delete"
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/{version}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:body]
71
+
72
+ # return_type
73
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
74
+
75
+ # auth_names
76
+ auth_names = opts[:auth_names] || ['basicAuth']
77
+
78
+ new_options = opts.merge(
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => return_type
85
+ )
86
+
87
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3CollectionsVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+
94
+ # Legacy v3 endpoint.
95
+ # @param name [String]
96
+ # @param namespace [String]
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [Boolean] :is_highest
99
+ # @option opts [Integer] :limit Number of results to return per page.
100
+ # @option opts [String] :name2
101
+ # @option opts [String] :namespace2
102
+ # @option opts [Integer] :offset The initial index from which to return the results.
103
+ # @option opts [String] :q
104
+ # @option opts [String] :repository_version Repository Version referenced by HREF
105
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
106
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
107
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
108
+ # @option opts [String] :version Filter results where version matches value
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 [PaginatedCollectionVersionListResponseList]
112
+ def list(name, namespace, opts = {})
113
+ data, _status_code, _headers = list_with_http_info(name, namespace, opts)
114
+ data
115
+ end
116
+
117
+ # Legacy v3 endpoint.
118
+ # @param name [String]
119
+ # @param namespace [String]
120
+ # @param [Hash] opts the optional parameters
121
+ # @option opts [Boolean] :is_highest
122
+ # @option opts [Integer] :limit Number of results to return per page.
123
+ # @option opts [String] :name2
124
+ # @option opts [String] :namespace2
125
+ # @option opts [Integer] :offset The initial index from which to return the results.
126
+ # @option opts [String] :q
127
+ # @option opts [String] :repository_version Repository Version referenced by HREF
128
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
129
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
130
+ # @option opts [String] :tags Filter by comma separate list of tags that must all be matched
131
+ # @option opts [String] :version Filter results where version matches value
132
+ # @option opts [String] :fields A list of fields to include in the response.
133
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @return [Array<(PaginatedCollectionVersionListResponseList, Integer, Hash)>] PaginatedCollectionVersionListResponseList data, response status code and response headers
135
+ def list_with_http_info(name, namespace, opts = {})
136
+ if @api_client.config.debugging
137
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3CollectionsVersionsApi.list ...'
138
+ end
139
+ # verify the required parameter 'name' is set
140
+ if @api_client.config.client_side_validation && name.nil?
141
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.list"
142
+ end
143
+ # verify the required parameter 'namespace' is set
144
+ if @api_client.config.client_side_validation && namespace.nil?
145
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.list"
146
+ end
147
+ # resource path
148
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/'))
149
+
150
+ # query parameters
151
+ query_params = opts[:query_params] || {}
152
+ query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
153
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
154
+ query_params[:'name'] = opts[:'name2'] if !opts[:'name2'].nil?
155
+ query_params[:'namespace'] = opts[:'namespace2'] if !opts[:'namespace2'].nil?
156
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
157
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
158
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
159
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
160
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
161
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
162
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
163
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
164
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
165
+
166
+ # header parameters
167
+ header_params = opts[:header_params] || {}
168
+ # HTTP header 'Accept' (if needed)
169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:body]
176
+
177
+ # return_type
178
+ return_type = opts[:return_type] || 'PaginatedCollectionVersionListResponseList'
179
+
180
+ # auth_names
181
+ auth_names = opts[:auth_names] || ['basicAuth']
182
+
183
+ new_options = opts.merge(
184
+ :header_params => header_params,
185
+ :query_params => query_params,
186
+ :form_params => form_params,
187
+ :body => post_body,
188
+ :auth_names => auth_names,
189
+ :return_type => return_type
190
+ )
191
+
192
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
193
+ if @api_client.config.debugging
194
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3CollectionsVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
195
+ end
196
+ return data, status_code, headers
197
+ end
198
+
199
+ # Legacy v3 endpoint.
200
+ # @param name [String]
201
+ # @param namespace [String]
202
+ # @param version [String]
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [String] :fields A list of fields to include in the response.
205
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
206
+ # @return [CollectionVersionResponse]
207
+ def read(name, namespace, version, opts = {})
208
+ data, _status_code, _headers = read_with_http_info(name, namespace, version, opts)
209
+ data
210
+ end
211
+
212
+ # Legacy v3 endpoint.
213
+ # @param name [String]
214
+ # @param namespace [String]
215
+ # @param version [String]
216
+ # @param [Hash] opts the optional parameters
217
+ # @option opts [String] :fields A list of fields to include in the response.
218
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
219
+ # @return [Array<(CollectionVersionResponse, Integer, Hash)>] CollectionVersionResponse data, response status code and response headers
220
+ def read_with_http_info(name, namespace, version, opts = {})
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3CollectionsVersionsApi.read ...'
223
+ end
224
+ # verify the required parameter 'name' is set
225
+ if @api_client.config.client_side_validation && name.nil?
226
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.read"
227
+ end
228
+ # verify the required parameter 'namespace' is set
229
+ if @api_client.config.client_side_validation && namespace.nil?
230
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.read"
231
+ end
232
+ # verify the required parameter 'version' is set
233
+ if @api_client.config.client_side_validation && version.nil?
234
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.read"
235
+ end
236
+ # resource path
237
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/{version}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
238
+
239
+ # query parameters
240
+ query_params = opts[:query_params] || {}
241
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
242
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
243
+
244
+ # header parameters
245
+ header_params = opts[:header_params] || {}
246
+ # HTTP header 'Accept' (if needed)
247
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
248
+
249
+ # form parameters
250
+ form_params = opts[:form_params] || {}
251
+
252
+ # http body (model)
253
+ post_body = opts[:body]
254
+
255
+ # return_type
256
+ return_type = opts[:return_type] || 'CollectionVersionResponse'
257
+
258
+ # auth_names
259
+ auth_names = opts[:auth_names] || ['basicAuth']
260
+
261
+ new_options = opts.merge(
262
+ :header_params => header_params,
263
+ :query_params => query_params,
264
+ :form_params => form_params,
265
+ :body => post_body,
266
+ :auth_names => auth_names,
267
+ :return_type => return_type
268
+ )
269
+
270
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3CollectionsVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
+ end
274
+ return data, status_code, headers
275
+ end
276
+ end
277
+ end
@@ -0,0 +1,100 @@
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 PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Legacy v3 endpoint.
23
+ # @param name [String]
24
+ # @param namespace [String]
25
+ # @param version [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
+ # @return [CollectionVersionDocsResponse]
30
+ def read(name, namespace, version, opts = {})
31
+ data, _status_code, _headers = read_with_http_info(name, namespace, version, opts)
32
+ data
33
+ end
34
+
35
+ # Legacy v3 endpoint.
36
+ # @param name [String]
37
+ # @param namespace [String]
38
+ # @param version [String]
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
+ # @return [Array<(CollectionVersionDocsResponse, Integer, Hash)>] CollectionVersionDocsResponse data, response status code and response headers
43
+ def read_with_http_info(name, namespace, version, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.read ...'
46
+ end
47
+ # verify the required parameter 'name' is set
48
+ if @api_client.config.client_side_validation && name.nil?
49
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.read"
50
+ end
51
+ # verify the required parameter 'namespace' is set
52
+ if @api_client.config.client_side_validation && namespace.nil?
53
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.read"
54
+ end
55
+ # verify the required parameter 'version' is set
56
+ if @api_client.config.client_side_validation && version.nil?
57
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.read"
58
+ end
59
+ # resource path
60
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
65
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
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] || 'CollectionVersionDocsResponse'
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(:GET, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,97 @@
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 PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Unpaginated ViewSet for Collections.
23
+ # @param distro_base_path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Boolean] :deprecated
26
+ # @option opts [String] :name
27
+ # @option opts [String] :namespace
28
+ # @option opts [String] :fields A list of fields to include in the response.
29
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
30
+ # @return [Array<CollectionResponse>]
31
+ def list(distro_base_path, opts = {})
32
+ data, _status_code, _headers = list_with_http_info(distro_base_path, opts)
33
+ data
34
+ end
35
+
36
+ # Unpaginated ViewSet for Collections.
37
+ # @param distro_base_path [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Boolean] :deprecated
40
+ # @option opts [String] :name
41
+ # @option opts [String] :namespace
42
+ # @option opts [String] :fields A list of fields to include in the response.
43
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
+ # @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
45
+ def list_with_http_info(distro_base_path, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list ...'
48
+ end
49
+ # verify the required parameter 'distro_base_path' is set
50
+ if @api_client.config.client_side_validation && distro_base_path.nil?
51
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list"
52
+ end
53
+ # resource path
54
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/'))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
59
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
60
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
61
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
62
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
63
+
64
+ # header parameters
65
+ header_params = opts[:header_params] || {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:body]
74
+
75
+ # return_type
76
+ return_type = opts[:return_type] || 'Array<CollectionResponse>'
77
+
78
+ # auth_names
79
+ auth_names = opts[:auth_names] || ['basicAuth']
80
+
81
+ new_options = opts.merge(
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => return_type
88
+ )
89
+
90
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
+ end
94
+ return data, status_code, headers
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,88 @@
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 PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns paginated CollectionVersions list.
23
+ # @param distro_base_path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [Array<UnpaginatedCollectionVersionResponse>]
28
+ def list(distro_base_path, opts = {})
29
+ data, _status_code, _headers = list_with_http_info(distro_base_path, opts)
30
+ data
31
+ end
32
+
33
+ # Returns paginated CollectionVersions list.
34
+ # @param distro_base_path [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
39
+ def list_with_http_info(distro_base_path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.list ...'
42
+ end
43
+ # verify the required parameter 'distro_base_path' is set
44
+ if @api_client.config.client_side_validation && distro_base_path.nil?
45
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.list"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-versions/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:body]
65
+
66
+ # return_type
67
+ return_type = opts[:return_type] || 'Array<UnpaginatedCollectionVersionResponse>'
68
+
69
+ # auth_names
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
+
72
+ new_options = opts.merge(
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,88 @@
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 PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # ViewSet for Repository Metadata.
23
+ # @param distro_base_path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [RepoMetadataResponse]
28
+ def read(distro_base_path, opts = {})
29
+ data, _status_code, _headers = read_with_http_info(distro_base_path, opts)
30
+ data
31
+ end
32
+
33
+ # ViewSet for Repository Metadata.
34
+ # @param distro_base_path [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
39
+ def read_with_http_info(distro_base_path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.read ...'
42
+ end
43
+ # verify the required parameter 'distro_base_path' is set
44
+ if @api_client.config.client_side_validation && distro_base_path.nil?
45
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.read"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:body]
65
+
66
+ # return_type
67
+ return_type = opts[:return_type] || 'RepoMetadataResponse'
68
+
69
+ # auth_names
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
+
72
+ new_options = opts.merge(
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end