pulpcore_client 3.20.0 → 3.21.0

Sign up to get free protection for your applications and to get access to all the features.
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 ExportersExportsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create an export
23
- # ViewSet for viewing exports from an Exporter.
24
- # @param exporter_href [String]
25
- # @param export [Export]
26
- # @param [Hash] opts the optional parameters
27
- # @return [ExportResponse]
28
- def create(exporter_href, export, opts = {})
29
- data, _status_code, _headers = create_with_http_info(exporter_href, export, opts)
30
- data
31
- end
32
-
33
- # Create an export
34
- # ViewSet for viewing exports from an Exporter.
35
- # @param exporter_href [String]
36
- # @param export [Export]
37
- # @param [Hash] opts the optional parameters
38
- # @return [Array<(ExportResponse, Integer, Hash)>] ExportResponse data, response status code and response headers
39
- def create_with_http_info(exporter_href, export, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: ExportersExportsApi.create ...'
42
- end
43
- # verify the required parameter 'exporter_href' is set
44
- if @api_client.config.client_side_validation && exporter_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersExportsApi.create"
46
- end
47
- # verify the required parameter 'export' is set
48
- if @api_client.config.client_side_validation && export.nil?
49
- fail ArgumentError, "Missing the required parameter 'export' when calling ExportersExportsApi.create"
50
- end
51
- # resource path
52
- local_var_path = '{exporter_href}exports/'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_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(export)
69
-
70
- # return_type
71
- return_type = opts[:return_type] || 'ExportResponse'
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: ExportersExportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
- end
89
- return data, status_code, headers
90
- end
91
-
92
- # Delete an export
93
- # ViewSet for viewing exports from an Exporter.
94
- # @param exporters_export_href [String]
95
- # @param [Hash] opts the optional parameters
96
- # @return [nil]
97
- def delete(exporters_export_href, opts = {})
98
- delete_with_http_info(exporters_export_href, opts)
99
- nil
100
- end
101
-
102
- # Delete an export
103
- # ViewSet for viewing exports from an Exporter.
104
- # @param exporters_export_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(exporters_export_href, opts = {})
108
- if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: ExportersExportsApi.delete ...'
110
- end
111
- # verify the required parameter 'exporters_export_href' is set
112
- if @api_client.config.client_side_validation && exporters_export_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'exporters_export_href' when calling ExportersExportsApi.delete"
114
- end
115
- # resource path
116
- local_var_path = '{exporters_export_href}'.sub('{' + 'exporters_export_href' + '}', CGI.escape(exporters_export_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: ExportersExportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
- end
149
- return data, status_code, headers
150
- end
151
-
152
- # List exports
153
- # ViewSet for viewing exports from an Exporter.
154
- # @param exporter_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 [PaginatedExportResponseList]
161
- def list(exporter_href, opts = {})
162
- data, _status_code, _headers = list_with_http_info(exporter_href, opts)
163
- data
164
- end
165
-
166
- # List exports
167
- # ViewSet for viewing exports from an Exporter.
168
- # @param exporter_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<(PaginatedExportResponseList, Integer, Hash)>] PaginatedExportResponseList data, response status code and response headers
175
- def list_with_http_info(exporter_href, opts = {})
176
- if @api_client.config.debugging
177
- @api_client.config.logger.debug 'Calling API: ExportersExportsApi.list ...'
178
- end
179
- # verify the required parameter 'exporter_href' is set
180
- if @api_client.config.client_side_validation && exporter_href.nil?
181
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersExportsApi.list"
182
- end
183
- # resource path
184
- local_var_path = '{exporter_href}exports/'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_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] || 'PaginatedExportResponseList'
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: ExportersExportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
- end
223
- return data, status_code, headers
224
- end
225
-
226
- # Inspect an export
227
- # ViewSet for viewing exports from an Exporter.
228
- # @param exporters_export_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 [ExportResponse]
233
- def read(exporters_export_href, opts = {})
234
- data, _status_code, _headers = read_with_http_info(exporters_export_href, opts)
235
- data
236
- end
237
-
238
- # Inspect an export
239
- # ViewSet for viewing exports from an Exporter.
240
- # @param exporters_export_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<(ExportResponse, Integer, Hash)>] ExportResponse data, response status code and response headers
245
- def read_with_http_info(exporters_export_href, opts = {})
246
- if @api_client.config.debugging
247
- @api_client.config.logger.debug 'Calling API: ExportersExportsApi.read ...'
248
- end
249
- # verify the required parameter 'exporters_export_href' is set
250
- if @api_client.config.client_side_validation && exporters_export_href.nil?
251
- fail ArgumentError, "Missing the required parameter 'exporters_export_href' when calling ExportersExportsApi.read"
252
- end
253
- # resource path
254
- local_var_path = '{exporters_export_href}'.sub('{' + 'exporters_export_href' + '}', CGI.escape(exporters_export_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] || 'ExportResponse'
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: ExportersExportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
- end
291
- return data, status_code, headers
292
- end
293
- end
294
- end