pulpcore_client 3.20.0 → 3.21.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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -84
  3. data/docs/ContentApi.md +1 -115
  4. data/docs/ContentguardsApi.md +1 -280
  5. data/docs/DistributionsApi.md +3 -281
  6. data/docs/PublicationsApi.md +0 -113
  7. data/docs/PulpImport.md +3 -1
  8. data/docs/RemotesApi.md +0 -280
  9. data/docs/RepositoriesApi.md +3 -281
  10. data/docs/UploadsApi.md +228 -0
  11. data/lib/pulpcore_client/api/content_api.rb +2 -134
  12. data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
  13. data/lib/pulpcore_client/api/distributions_api.rb +5 -336
  14. data/lib/pulpcore_client/api/publications_api.rb +0 -128
  15. data/lib/pulpcore_client/api/remotes_api.rb +0 -334
  16. data/lib/pulpcore_client/api/repositories_api.rb +5 -336
  17. data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
  18. data/lib/pulpcore_client/api/uploads_api.rb +268 -0
  19. data/lib/pulpcore_client/api_client.rb +1 -1
  20. data/lib/pulpcore_client/models/pulp_import.rb +16 -4
  21. data/lib/pulpcore_client/version.rb +1 -1
  22. data/lib/pulpcore_client.rb +0 -31
  23. data/pulpcore_client.gemspec +3 -3
  24. data/spec/api/content_api_spec.rb +1 -27
  25. data/spec/api/contentguards_api_spec.rb +1 -65
  26. data/spec/api/distributions_api_spec.rb +2 -65
  27. data/spec/api/publications_api_spec.rb +0 -26
  28. data/spec/api/remotes_api_spec.rb +0 -64
  29. data/spec/api/repositories_api_spec.rb +2 -65
  30. data/spec/api/uploads_api_spec.rb +50 -0
  31. data/spec/models/pulp_import_spec.rb +6 -0
  32. metadata +136 -261
  33. data/docs/AcsApi.md +0 -417
  34. data/docs/AlternateContentSource.md +0 -23
  35. data/docs/AlternateContentSourceResponse.md +0 -27
  36. data/docs/ContentGuard.md +0 -19
  37. data/docs/Distribution.md +0 -25
  38. data/docs/Export.md +0 -17
  39. data/docs/ExportResponse.md +0 -25
  40. data/docs/Exporter.md +0 -17
  41. data/docs/ExporterResponse.md +0 -21
  42. data/docs/ExportersApi.md +0 -362
  43. data/docs/ExportersExportsApi.md +0 -241
  44. data/docs/Import.md +0 -19
  45. data/docs/Importer.md +0 -17
  46. data/docs/ImporterResponse.md +0 -21
  47. data/docs/ImportersApi.md +0 -361
  48. data/docs/ImportersImportsApi.md +0 -241
  49. data/docs/MultipleArtifactContent.md +0 -17
  50. data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
  51. data/docs/PaginatedExportResponseList.md +0 -23
  52. data/docs/PaginatedExporterResponseList.md +0 -23
  53. data/docs/PaginatedImporterResponseList.md +0 -23
  54. data/docs/PatchedAlternateContentSource.md +0 -23
  55. data/docs/PatchedContentGuard.md +0 -19
  56. data/docs/PatchedDistribution.md +0 -25
  57. data/docs/PatchedExporter.md +0 -17
  58. data/docs/PatchedImporter.md +0 -17
  59. data/docs/PatchedRemote.md +0 -57
  60. data/docs/PatchedRepository.md +0 -25
  61. data/docs/Remote.md +0 -57
  62. data/docs/RepositoriesVersionsApi.md +0 -271
  63. data/docs/Repository.md +0 -25
  64. data/git_push.sh +0 -58
  65. data/lib/pulpcore_client/api/acs_api.rb +0 -514
  66. data/lib/pulpcore_client/api/exporters_api.rb +0 -446
  67. data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
  68. data/lib/pulpcore_client/api/importers_api.rb +0 -444
  69. data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
  70. data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
  71. data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
  72. data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
  73. data/lib/pulpcore_client/models/content_guard.rb +0 -258
  74. data/lib/pulpcore_client/models/distribution.rb +0 -297
  75. data/lib/pulpcore_client/models/export.rb +0 -209
  76. data/lib/pulpcore_client/models/export_response.rb +0 -250
  77. data/lib/pulpcore_client/models/exporter.rb +0 -232
  78. data/lib/pulpcore_client/models/exporter_response.rb +0 -232
  79. data/lib/pulpcore_client/models/import.rb +0 -228
  80. data/lib/pulpcore_client/models/importer.rb +0 -232
  81. data/lib/pulpcore_client/models/importer_response.rb +0 -232
  82. data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
  83. data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
  84. data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
  85. data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
  86. data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
  87. data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
  88. data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
  89. data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
  90. data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
  91. data/lib/pulpcore_client/models/patched_importer.rb +0 -223
  92. data/lib/pulpcore_client/models/patched_remote.rb +0 -649
  93. data/lib/pulpcore_client/models/patched_repository.rb +0 -295
  94. data/lib/pulpcore_client/models/remote.rb +0 -667
  95. data/lib/pulpcore_client/models/repository.rb +0 -304
  96. data/spec/api/acs_api_spec.rb +0 -132
  97. data/spec/api/exporters_api_spec.rb +0 -120
  98. data/spec/api/exporters_exports_api_spec.rb +0 -90
  99. data/spec/api/importers_api_spec.rb +0 -120
  100. data/spec/api/importers_imports_api_spec.rb +0 -90
  101. data/spec/api/repositories_versions_api_spec.rb +0 -104
  102. data/spec/models/alternate_content_source_response_spec.rb +0 -71
  103. data/spec/models/alternate_content_source_spec.rb +0 -59
  104. data/spec/models/content_guard_spec.rb +0 -47
  105. data/spec/models/distribution_spec.rb +0 -65
  106. data/spec/models/export_response_spec.rb +0 -65
  107. data/spec/models/export_spec.rb +0 -41
  108. data/spec/models/exporter_response_spec.rb +0 -53
  109. data/spec/models/exporter_spec.rb +0 -41
  110. data/spec/models/import_spec.rb +0 -47
  111. data/spec/models/importer_response_spec.rb +0 -53
  112. data/spec/models/importer_spec.rb +0 -41
  113. data/spec/models/multiple_artifact_content_spec.rb +0 -41
  114. data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
  115. data/spec/models/paginated_export_response_list_spec.rb +0 -59
  116. data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
  117. data/spec/models/paginated_importer_response_list_spec.rb +0 -59
  118. data/spec/models/patched_alternate_content_source_spec.rb +0 -59
  119. data/spec/models/patched_content_guard_spec.rb +0 -47
  120. data/spec/models/patched_distribution_spec.rb +0 -65
  121. data/spec/models/patched_exporter_spec.rb +0 -41
  122. data/spec/models/patched_importer_spec.rb +0 -41
  123. data/spec/models/patched_remote_spec.rb +0 -161
  124. data/spec/models/patched_repository_spec.rb +0 -65
  125. data/spec/models/remote_spec.rb +0 -161
  126. data/spec/models/repository_spec.rb +0 -65
@@ -1,294 +0,0 @@
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 PulpcoreClient
16
- class ImportersImportsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create an import
23
- # ViewSet for viewing imports from an Importer.
24
- # @param importer_href [String]
25
- # @param import [Import]
26
- # @param [Hash] opts the optional parameters
27
- # @return [ImportResponse]
28
- def create(importer_href, import, opts = {})
29
- data, _status_code, _headers = create_with_http_info(importer_href, import, opts)
30
- data
31
- end
32
-
33
- # Create an import
34
- # ViewSet for viewing imports from an Importer.
35
- # @param importer_href [String]
36
- # @param import [Import]
37
- # @param [Hash] opts the optional parameters
38
- # @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
39
- def create_with_http_info(importer_href, import, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: ImportersImportsApi.create ...'
42
- end
43
- # verify the required parameter 'importer_href' is set
44
- if @api_client.config.client_side_validation && importer_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'importer_href' when calling ImportersImportsApi.create"
46
- end
47
- # verify the required parameter 'import' is set
48
- if @api_client.config.client_side_validation && import.nil?
49
- fail ArgumentError, "Missing the required parameter 'import' when calling ImportersImportsApi.create"
50
- end
51
- # resource path
52
- local_var_path = '{importer_href}imports/'.sub('{' + 'importer_href' + '}', CGI.escape(importer_href.to_s).gsub('%2F', '/'))
53
-
54
- # query parameters
55
- query_params = opts[:query_params] || {}
56
-
57
- # header parameters
58
- header_params = opts[:header_params] || {}
59
- # HTTP header 'Accept' (if needed)
60
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
- # HTTP header 'Content-Type'
62
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
-
64
- # form parameters
65
- form_params = opts[:form_params] || {}
66
-
67
- # http body (model)
68
- post_body = opts[:body] || @api_client.object_to_http_body(import)
69
-
70
- # return_type
71
- return_type = opts[:return_type] || 'ImportResponse'
72
-
73
- # auth_names
74
- auth_names = opts[:auth_names] || ['basicAuth']
75
-
76
- new_options = opts.merge(
77
- :header_params => header_params,
78
- :query_params => query_params,
79
- :form_params => form_params,
80
- :body => post_body,
81
- :auth_names => auth_names,
82
- :return_type => return_type
83
- )
84
-
85
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
- if @api_client.config.debugging
87
- @api_client.config.logger.debug "API called: ImportersImportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
- end
89
- return data, status_code, headers
90
- end
91
-
92
- # Delete an import
93
- # ViewSet for viewing imports from an Importer.
94
- # @param importers_import_href [String]
95
- # @param [Hash] opts the optional parameters
96
- # @return [nil]
97
- def delete(importers_import_href, opts = {})
98
- delete_with_http_info(importers_import_href, opts)
99
- nil
100
- end
101
-
102
- # Delete an import
103
- # ViewSet for viewing imports from an Importer.
104
- # @param importers_import_href [String]
105
- # @param [Hash] opts the optional parameters
106
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(importers_import_href, opts = {})
108
- if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: ImportersImportsApi.delete ...'
110
- end
111
- # verify the required parameter 'importers_import_href' is set
112
- if @api_client.config.client_side_validation && importers_import_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'importers_import_href' when calling ImportersImportsApi.delete"
114
- end
115
- # resource path
116
- local_var_path = '{importers_import_href}'.sub('{' + 'importers_import_href' + '}', CGI.escape(importers_import_href.to_s).gsub('%2F', '/'))
117
-
118
- # query parameters
119
- query_params = opts[:query_params] || {}
120
-
121
- # header parameters
122
- header_params = opts[:header_params] || {}
123
-
124
- # form parameters
125
- form_params = opts[:form_params] || {}
126
-
127
- # http body (model)
128
- post_body = opts[:body]
129
-
130
- # return_type
131
- return_type = opts[:return_type]
132
-
133
- # auth_names
134
- auth_names = opts[:auth_names] || ['basicAuth']
135
-
136
- new_options = opts.merge(
137
- :header_params => header_params,
138
- :query_params => query_params,
139
- :form_params => form_params,
140
- :body => post_body,
141
- :auth_names => auth_names,
142
- :return_type => return_type
143
- )
144
-
145
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
146
- if @api_client.config.debugging
147
- @api_client.config.logger.debug "API called: ImportersImportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
- end
149
- return data, status_code, headers
150
- end
151
-
152
- # List imports
153
- # ViewSet for viewing imports from an Importer.
154
- # @param importer_href [String]
155
- # @param [Hash] opts the optional parameters
156
- # @option opts [Integer] :limit Number of results to return per page.
157
- # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :fields A list of fields to include in the response.
159
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
160
- # @return [PaginatedImportResponseList]
161
- def list(importer_href, opts = {})
162
- data, _status_code, _headers = list_with_http_info(importer_href, opts)
163
- data
164
- end
165
-
166
- # List imports
167
- # ViewSet for viewing imports from an Importer.
168
- # @param importer_href [String]
169
- # @param [Hash] opts the optional parameters
170
- # @option opts [Integer] :limit Number of results to return per page.
171
- # @option opts [Integer] :offset The initial index from which to return the results.
172
- # @option opts [String] :fields A list of fields to include in the response.
173
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
- # @return [Array<(PaginatedImportResponseList, Integer, Hash)>] PaginatedImportResponseList data, response status code and response headers
175
- def list_with_http_info(importer_href, opts = {})
176
- if @api_client.config.debugging
177
- @api_client.config.logger.debug 'Calling API: ImportersImportsApi.list ...'
178
- end
179
- # verify the required parameter 'importer_href' is set
180
- if @api_client.config.client_side_validation && importer_href.nil?
181
- fail ArgumentError, "Missing the required parameter 'importer_href' when calling ImportersImportsApi.list"
182
- end
183
- # resource path
184
- local_var_path = '{importer_href}imports/'.sub('{' + 'importer_href' + '}', CGI.escape(importer_href.to_s).gsub('%2F', '/'))
185
-
186
- # query parameters
187
- query_params = opts[:query_params] || {}
188
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
189
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
190
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
191
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
192
-
193
- # header parameters
194
- header_params = opts[:header_params] || {}
195
- # HTTP header 'Accept' (if needed)
196
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
-
198
- # form parameters
199
- form_params = opts[:form_params] || {}
200
-
201
- # http body (model)
202
- post_body = opts[:body]
203
-
204
- # return_type
205
- return_type = opts[:return_type] || 'PaginatedImportResponseList'
206
-
207
- # auth_names
208
- auth_names = opts[:auth_names] || ['basicAuth']
209
-
210
- new_options = opts.merge(
211
- :header_params => header_params,
212
- :query_params => query_params,
213
- :form_params => form_params,
214
- :body => post_body,
215
- :auth_names => auth_names,
216
- :return_type => return_type
217
- )
218
-
219
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
220
- if @api_client.config.debugging
221
- @api_client.config.logger.debug "API called: ImportersImportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
- end
223
- return data, status_code, headers
224
- end
225
-
226
- # Inspect an import
227
- # ViewSet for viewing imports from an Importer.
228
- # @param importers_import_href [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 [ImportResponse]
233
- def read(importers_import_href, opts = {})
234
- data, _status_code, _headers = read_with_http_info(importers_import_href, opts)
235
- data
236
- end
237
-
238
- # Inspect an import
239
- # ViewSet for viewing imports from an Importer.
240
- # @param importers_import_href [String]
241
- # @param [Hash] opts the optional parameters
242
- # @option opts [String] :fields A list of fields to include in the response.
243
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
244
- # @return [Array<(ImportResponse, Integer, Hash)>] ImportResponse data, response status code and response headers
245
- def read_with_http_info(importers_import_href, opts = {})
246
- if @api_client.config.debugging
247
- @api_client.config.logger.debug 'Calling API: ImportersImportsApi.read ...'
248
- end
249
- # verify the required parameter 'importers_import_href' is set
250
- if @api_client.config.client_side_validation && importers_import_href.nil?
251
- fail ArgumentError, "Missing the required parameter 'importers_import_href' when calling ImportersImportsApi.read"
252
- end
253
- # resource path
254
- local_var_path = '{importers_import_href}'.sub('{' + 'importers_import_href' + '}', CGI.escape(importers_import_href.to_s).gsub('%2F', '/'))
255
-
256
- # query parameters
257
- query_params = opts[:query_params] || {}
258
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
259
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
260
-
261
- # header parameters
262
- header_params = opts[:header_params] || {}
263
- # HTTP header 'Accept' (if needed)
264
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
265
-
266
- # form parameters
267
- form_params = opts[:form_params] || {}
268
-
269
- # http body (model)
270
- post_body = opts[:body]
271
-
272
- # return_type
273
- return_type = opts[:return_type] || 'ImportResponse'
274
-
275
- # auth_names
276
- auth_names = opts[:auth_names] || ['basicAuth']
277
-
278
- new_options = opts.merge(
279
- :header_params => header_params,
280
- :query_params => query_params,
281
- :form_params => form_params,
282
- :body => post_body,
283
- :auth_names => auth_names,
284
- :return_type => return_type
285
- )
286
-
287
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
288
- if @api_client.config.debugging
289
- @api_client.config.logger.debug "API called: ImportersImportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
- end
291
- return data, status_code, headers
292
- end
293
- end
294
- end
@@ -1,343 +0,0 @@
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 PulpcoreClient
16
- class RepositoriesVersionsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Delete a repository version
23
- # Trigger an asynchronous task to delete a repository version.
24
- # @param repositories_repository_version_href [String]
25
- # @param [Hash] opts the optional parameters
26
- # @return [AsyncOperationResponse]
27
- def delete(repositories_repository_version_href, opts = {})
28
- data, _status_code, _headers = delete_with_http_info(repositories_repository_version_href, opts)
29
- data
30
- end
31
-
32
- # Delete a repository version
33
- # Trigger an asynchronous task to delete a repository version.
34
- # @param repositories_repository_version_href [String]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
- def delete_with_http_info(repositories_repository_version_href, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.delete ...'
40
- end
41
- # verify the required parameter 'repositories_repository_version_href' is set
42
- if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
43
- fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.delete"
44
- end
45
- # resource path
46
- local_var_path = '{repositories_repository_version_href}'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
47
-
48
- # query parameters
49
- query_params = opts[:query_params] || {}
50
-
51
- # header parameters
52
- header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
-
56
- # form parameters
57
- form_params = opts[:form_params] || {}
58
-
59
- # http body (model)
60
- post_body = opts[:body]
61
-
62
- # return_type
63
- return_type = opts[:return_type] || 'AsyncOperationResponse'
64
-
65
- # auth_names
66
- auth_names = opts[:auth_names] || ['basicAuth']
67
-
68
- new_options = opts.merge(
69
- :header_params => header_params,
70
- :query_params => query_params,
71
- :form_params => form_params,
72
- :body => post_body,
73
- :auth_names => auth_names,
74
- :return_type => return_type
75
- )
76
-
77
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
78
- if @api_client.config.debugging
79
- @api_client.config.logger.debug "API called: RepositoriesVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
- end
81
- return data, status_code, headers
82
- end
83
-
84
- # List repository versions
85
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
86
- # @param repository_href [String]
87
- # @param [Hash] opts the optional parameters
88
- # @option opts [String] :content Content Unit referenced by HREF
89
- # @option opts [String] :content__in Content Unit referenced by HREF
90
- # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
92
- # @option opts [Integer] :number__gt Filter results where number is greater than value
93
- # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
- # @option opts [Integer] :number__lt Filter results where number is less than value
95
- # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
- # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
- # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
- # @return [PaginatedRepositoryVersionResponseList]
108
- def list(repository_href, opts = {})
109
- data, _status_code, _headers = list_with_http_info(repository_href, opts)
110
- data
111
- end
112
-
113
- # List repository versions
114
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
115
- # @param repository_href [String]
116
- # @param [Hash] opts the optional parameters
117
- # @option opts [String] :content Content Unit referenced by HREF
118
- # @option opts [String] :content__in Content Unit referenced by HREF
119
- # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
121
- # @option opts [Integer] :number__gt Filter results where number is greater than value
122
- # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
- # @option opts [Integer] :number__lt Filter results where number is less than value
124
- # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
- # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
- # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
- # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
- def list_with_http_info(repository_href, opts = {})
138
- if @api_client.config.debugging
139
- @api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.list ...'
140
- end
141
- # verify the required parameter 'repository_href' is set
142
- if @api_client.config.client_side_validation && repository_href.nil?
143
- fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.list"
144
- end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
- if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
- fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
- end
149
- # resource path
150
- local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s).gsub('%2F', '/'))
151
-
152
- # query parameters
153
- query_params = opts[:query_params] || {}
154
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
155
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
156
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
157
- query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
158
- query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
159
- query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
160
- query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
161
- query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
162
- query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
163
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
164
- query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
165
- query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
166
- query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
167
- query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
168
- query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
- query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
- query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
173
-
174
- # header parameters
175
- header_params = opts[:header_params] || {}
176
- # HTTP header 'Accept' (if needed)
177
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
178
-
179
- # form parameters
180
- form_params = opts[:form_params] || {}
181
-
182
- # http body (model)
183
- post_body = opts[:body]
184
-
185
- # return_type
186
- return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
187
-
188
- # auth_names
189
- auth_names = opts[:auth_names] || ['basicAuth']
190
-
191
- new_options = opts.merge(
192
- :header_params => header_params,
193
- :query_params => query_params,
194
- :form_params => form_params,
195
- :body => post_body,
196
- :auth_names => auth_names,
197
- :return_type => return_type
198
- )
199
-
200
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
201
- if @api_client.config.debugging
202
- @api_client.config.logger.debug "API called: RepositoriesVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
- end
204
- return data, status_code, headers
205
- end
206
-
207
- # Inspect a repository version
208
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
209
- # @param repositories_repository_version_href [String]
210
- # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
213
- # @return [RepositoryVersionResponse]
214
- def read(repositories_repository_version_href, opts = {})
215
- data, _status_code, _headers = read_with_http_info(repositories_repository_version_href, opts)
216
- data
217
- end
218
-
219
- # Inspect a repository version
220
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
221
- # @param repositories_repository_version_href [String]
222
- # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
225
- # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
- def read_with_http_info(repositories_repository_version_href, opts = {})
227
- if @api_client.config.debugging
228
- @api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.read ...'
229
- end
230
- # verify the required parameter 'repositories_repository_version_href' is set
231
- if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
232
- fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.read"
233
- end
234
- # resource path
235
- local_var_path = '{repositories_repository_version_href}'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
236
-
237
- # query parameters
238
- query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
241
-
242
- # header parameters
243
- header_params = opts[:header_params] || {}
244
- # HTTP header 'Accept' (if needed)
245
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
-
247
- # form parameters
248
- form_params = opts[:form_params] || {}
249
-
250
- # http body (model)
251
- post_body = opts[:body]
252
-
253
- # return_type
254
- return_type = opts[:return_type] || 'RepositoryVersionResponse'
255
-
256
- # auth_names
257
- auth_names = opts[:auth_names] || ['basicAuth']
258
-
259
- new_options = opts.merge(
260
- :header_params => header_params,
261
- :query_params => query_params,
262
- :form_params => form_params,
263
- :body => post_body,
264
- :auth_names => auth_names,
265
- :return_type => return_type
266
- )
267
-
268
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
269
- if @api_client.config.debugging
270
- @api_client.config.logger.debug "API called: RepositoriesVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
- end
272
- return data, status_code, headers
273
- end
274
-
275
- # Trigger an asynchronous task to repair a repository version.
276
- # @param repositories_repository_version_href [String]
277
- # @param repair [Repair]
278
- # @param [Hash] opts the optional parameters
279
- # @return [AsyncOperationResponse]
280
- def repair(repositories_repository_version_href, repair, opts = {})
281
- data, _status_code, _headers = repair_with_http_info(repositories_repository_version_href, repair, opts)
282
- data
283
- end
284
-
285
- # Trigger an asynchronous task to repair a repository version.
286
- # @param repositories_repository_version_href [String]
287
- # @param repair [Repair]
288
- # @param [Hash] opts the optional parameters
289
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
290
- def repair_with_http_info(repositories_repository_version_href, repair, opts = {})
291
- if @api_client.config.debugging
292
- @api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.repair ...'
293
- end
294
- # verify the required parameter 'repositories_repository_version_href' is set
295
- if @api_client.config.client_side_validation && repositories_repository_version_href.nil?
296
- fail ArgumentError, "Missing the required parameter 'repositories_repository_version_href' when calling RepositoriesVersionsApi.repair"
297
- end
298
- # verify the required parameter 'repair' is set
299
- if @api_client.config.client_side_validation && repair.nil?
300
- fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesVersionsApi.repair"
301
- end
302
- # resource path
303
- local_var_path = '{repositories_repository_version_href}repair/'.sub('{' + 'repositories_repository_version_href' + '}', CGI.escape(repositories_repository_version_href.to_s).gsub('%2F', '/'))
304
-
305
- # query parameters
306
- query_params = opts[:query_params] || {}
307
-
308
- # header parameters
309
- header_params = opts[:header_params] || {}
310
- # HTTP header 'Accept' (if needed)
311
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
312
- # HTTP header 'Content-Type'
313
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
314
-
315
- # form parameters
316
- form_params = opts[:form_params] || {}
317
-
318
- # http body (model)
319
- post_body = opts[:body] || @api_client.object_to_http_body(repair)
320
-
321
- # return_type
322
- return_type = opts[:return_type] || 'AsyncOperationResponse'
323
-
324
- # auth_names
325
- auth_names = opts[:auth_names] || ['basicAuth']
326
-
327
- new_options = opts.merge(
328
- :header_params => header_params,
329
- :query_params => query_params,
330
- :form_params => form_params,
331
- :body => post_body,
332
- :auth_names => auth_names,
333
- :return_type => return_type
334
- )
335
-
336
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
337
- if @api_client.config.debugging
338
- @api_client.config.logger.debug "API called: RepositoriesVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
339
- end
340
- return data, status_code, headers
341
- end
342
- end
343
- end