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,446 +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 ExportersApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create an exporter
23
- # ViewSet for viewing exporters.
24
- # @param exporter [Exporter]
25
- # @param [Hash] opts the optional parameters
26
- # @return [ExporterResponse]
27
- def create(exporter, opts = {})
28
- data, _status_code, _headers = create_with_http_info(exporter, opts)
29
- data
30
- end
31
-
32
- # Create an exporter
33
- # ViewSet for viewing exporters.
34
- # @param exporter [Exporter]
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(ExporterResponse, Integer, Hash)>] ExporterResponse data, response status code and response headers
37
- def create_with_http_info(exporter, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: ExportersApi.create ...'
40
- end
41
- # verify the required parameter 'exporter' is set
42
- if @api_client.config.client_side_validation && exporter.nil?
43
- fail ArgumentError, "Missing the required parameter 'exporter' when calling ExportersApi.create"
44
- end
45
- # resource path
46
- local_var_path = '/pulp/api/v3/exporters/'
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
- # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
-
58
- # form parameters
59
- form_params = opts[:form_params] || {}
60
-
61
- # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(exporter)
63
-
64
- # return_type
65
- return_type = opts[:return_type] || 'ExporterResponse'
66
-
67
- # auth_names
68
- auth_names = opts[:auth_names] || ['basicAuth']
69
-
70
- new_options = opts.merge(
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
77
- )
78
-
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
- if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: ExportersApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
83
- return data, status_code, headers
84
- end
85
-
86
- # Delete an exporter
87
- # Trigger an asynchronous delete task
88
- # @param exporter_href [String]
89
- # @param [Hash] opts the optional parameters
90
- # @return [AsyncOperationResponse]
91
- def delete(exporter_href, opts = {})
92
- data, _status_code, _headers = delete_with_http_info(exporter_href, opts)
93
- data
94
- end
95
-
96
- # Delete an exporter
97
- # Trigger an asynchronous delete task
98
- # @param exporter_href [String]
99
- # @param [Hash] opts the optional parameters
100
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
- def delete_with_http_info(exporter_href, opts = {})
102
- if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: ExportersApi.delete ...'
104
- end
105
- # verify the required parameter 'exporter_href' is set
106
- if @api_client.config.client_side_validation && exporter_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.delete"
108
- end
109
- # resource path
110
- local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
111
-
112
- # query parameters
113
- query_params = opts[:query_params] || {}
114
-
115
- # header parameters
116
- header_params = opts[:header_params] || {}
117
- # HTTP header 'Accept' (if needed)
118
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
-
120
- # form parameters
121
- form_params = opts[:form_params] || {}
122
-
123
- # http body (model)
124
- post_body = opts[:body]
125
-
126
- # return_type
127
- return_type = opts[:return_type] || 'AsyncOperationResponse'
128
-
129
- # auth_names
130
- auth_names = opts[:auth_names] || ['basicAuth']
131
-
132
- new_options = opts.merge(
133
- :header_params => header_params,
134
- :query_params => query_params,
135
- :form_params => form_params,
136
- :body => post_body,
137
- :auth_names => auth_names,
138
- :return_type => return_type
139
- )
140
-
141
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
- if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: ExportersApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
- end
145
- return data, status_code, headers
146
- end
147
-
148
- # List exporters
149
- # ViewSet for viewing exporters.
150
- # @param [Hash] opts the optional parameters
151
- # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
153
- # @option opts [String] :name__contains Filter results where name contains value
154
- # @option opts [String] :name__icontains Filter results where name contains value
155
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
- # @option opts [String] :name__startswith Filter results where name starts with value
157
- # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [Array<String>] :ordering Ordering
159
- # @option opts [String] :fields A list of fields to include in the response.
160
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
- # @return [PaginatedExporterResponseList]
162
- def list(opts = {})
163
- data, _status_code, _headers = list_with_http_info(opts)
164
- data
165
- end
166
-
167
- # List exporters
168
- # ViewSet for viewing exporters.
169
- # @param [Hash] opts the optional parameters
170
- # @option opts [Integer] :limit Number of results to return per page.
171
- # @option opts [String] :name
172
- # @option opts [String] :name__contains Filter results where name contains value
173
- # @option opts [String] :name__icontains Filter results where name contains value
174
- # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
175
- # @option opts [String] :name__startswith Filter results where name starts with value
176
- # @option opts [Integer] :offset The initial index from which to return the results.
177
- # @option opts [Array<String>] :ordering Ordering
178
- # @option opts [String] :fields A list of fields to include in the response.
179
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
180
- # @return [Array<(PaginatedExporterResponseList, Integer, Hash)>] PaginatedExporterResponseList data, response status code and response headers
181
- def list_with_http_info(opts = {})
182
- if @api_client.config.debugging
183
- @api_client.config.logger.debug 'Calling API: ExportersApi.list ...'
184
- end
185
- allowable_values = ["-core_fs_exporter", "-core_pulp_exporter", "-export", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_fs_exporter", "core_pulp_exporter", "export", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
186
- if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
187
- fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
188
- end
189
- # resource path
190
- local_var_path = '/pulp/api/v3/exporters/'
191
-
192
- # query parameters
193
- query_params = opts[:query_params] || {}
194
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
195
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
196
- query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
197
- query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
- query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
199
- query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
200
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
201
- query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
202
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
203
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
204
-
205
- # header parameters
206
- header_params = opts[:header_params] || {}
207
- # HTTP header 'Accept' (if needed)
208
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
209
-
210
- # form parameters
211
- form_params = opts[:form_params] || {}
212
-
213
- # http body (model)
214
- post_body = opts[:body]
215
-
216
- # return_type
217
- return_type = opts[:return_type] || 'PaginatedExporterResponseList'
218
-
219
- # auth_names
220
- auth_names = opts[:auth_names] || ['basicAuth']
221
-
222
- new_options = opts.merge(
223
- :header_params => header_params,
224
- :query_params => query_params,
225
- :form_params => form_params,
226
- :body => post_body,
227
- :auth_names => auth_names,
228
- :return_type => return_type
229
- )
230
-
231
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
232
- if @api_client.config.debugging
233
- @api_client.config.logger.debug "API called: ExportersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
234
- end
235
- return data, status_code, headers
236
- end
237
-
238
- # Update an exporter
239
- # Trigger an asynchronous partial update task
240
- # @param exporter_href [String]
241
- # @param patched_exporter [PatchedExporter]
242
- # @param [Hash] opts the optional parameters
243
- # @return [AsyncOperationResponse]
244
- def partial_update(exporter_href, patched_exporter, opts = {})
245
- data, _status_code, _headers = partial_update_with_http_info(exporter_href, patched_exporter, opts)
246
- data
247
- end
248
-
249
- # Update an exporter
250
- # Trigger an asynchronous partial update task
251
- # @param exporter_href [String]
252
- # @param patched_exporter [PatchedExporter]
253
- # @param [Hash] opts the optional parameters
254
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
255
- def partial_update_with_http_info(exporter_href, patched_exporter, opts = {})
256
- if @api_client.config.debugging
257
- @api_client.config.logger.debug 'Calling API: ExportersApi.partial_update ...'
258
- end
259
- # verify the required parameter 'exporter_href' is set
260
- if @api_client.config.client_side_validation && exporter_href.nil?
261
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.partial_update"
262
- end
263
- # verify the required parameter 'patched_exporter' is set
264
- if @api_client.config.client_side_validation && patched_exporter.nil?
265
- fail ArgumentError, "Missing the required parameter 'patched_exporter' when calling ExportersApi.partial_update"
266
- end
267
- # resource path
268
- local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
269
-
270
- # query parameters
271
- query_params = opts[:query_params] || {}
272
-
273
- # header parameters
274
- header_params = opts[:header_params] || {}
275
- # HTTP header 'Accept' (if needed)
276
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
277
- # HTTP header 'Content-Type'
278
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
279
-
280
- # form parameters
281
- form_params = opts[:form_params] || {}
282
-
283
- # http body (model)
284
- post_body = opts[:body] || @api_client.object_to_http_body(patched_exporter)
285
-
286
- # return_type
287
- return_type = opts[:return_type] || 'AsyncOperationResponse'
288
-
289
- # auth_names
290
- auth_names = opts[:auth_names] || ['basicAuth']
291
-
292
- new_options = opts.merge(
293
- :header_params => header_params,
294
- :query_params => query_params,
295
- :form_params => form_params,
296
- :body => post_body,
297
- :auth_names => auth_names,
298
- :return_type => return_type
299
- )
300
-
301
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
302
- if @api_client.config.debugging
303
- @api_client.config.logger.debug "API called: ExportersApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
304
- end
305
- return data, status_code, headers
306
- end
307
-
308
- # Inspect an exporter
309
- # ViewSet for viewing exporters.
310
- # @param exporter_href [String]
311
- # @param [Hash] opts the optional parameters
312
- # @option opts [String] :fields A list of fields to include in the response.
313
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
314
- # @return [ExporterResponse]
315
- def read(exporter_href, opts = {})
316
- data, _status_code, _headers = read_with_http_info(exporter_href, opts)
317
- data
318
- end
319
-
320
- # Inspect an exporter
321
- # ViewSet for viewing exporters.
322
- # @param exporter_href [String]
323
- # @param [Hash] opts the optional parameters
324
- # @option opts [String] :fields A list of fields to include in the response.
325
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
326
- # @return [Array<(ExporterResponse, Integer, Hash)>] ExporterResponse data, response status code and response headers
327
- def read_with_http_info(exporter_href, opts = {})
328
- if @api_client.config.debugging
329
- @api_client.config.logger.debug 'Calling API: ExportersApi.read ...'
330
- end
331
- # verify the required parameter 'exporter_href' is set
332
- if @api_client.config.client_side_validation && exporter_href.nil?
333
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.read"
334
- end
335
- # resource path
336
- local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
337
-
338
- # query parameters
339
- query_params = opts[:query_params] || {}
340
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
341
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
342
-
343
- # header parameters
344
- header_params = opts[:header_params] || {}
345
- # HTTP header 'Accept' (if needed)
346
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
347
-
348
- # form parameters
349
- form_params = opts[:form_params] || {}
350
-
351
- # http body (model)
352
- post_body = opts[:body]
353
-
354
- # return_type
355
- return_type = opts[:return_type] || 'ExporterResponse'
356
-
357
- # auth_names
358
- auth_names = opts[:auth_names] || ['basicAuth']
359
-
360
- new_options = opts.merge(
361
- :header_params => header_params,
362
- :query_params => query_params,
363
- :form_params => form_params,
364
- :body => post_body,
365
- :auth_names => auth_names,
366
- :return_type => return_type
367
- )
368
-
369
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
370
- if @api_client.config.debugging
371
- @api_client.config.logger.debug "API called: ExportersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
372
- end
373
- return data, status_code, headers
374
- end
375
-
376
- # Update an exporter
377
- # Trigger an asynchronous update task
378
- # @param exporter_href [String]
379
- # @param exporter [Exporter]
380
- # @param [Hash] opts the optional parameters
381
- # @return [AsyncOperationResponse]
382
- def update(exporter_href, exporter, opts = {})
383
- data, _status_code, _headers = update_with_http_info(exporter_href, exporter, opts)
384
- data
385
- end
386
-
387
- # Update an exporter
388
- # Trigger an asynchronous update task
389
- # @param exporter_href [String]
390
- # @param exporter [Exporter]
391
- # @param [Hash] opts the optional parameters
392
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
393
- def update_with_http_info(exporter_href, exporter, opts = {})
394
- if @api_client.config.debugging
395
- @api_client.config.logger.debug 'Calling API: ExportersApi.update ...'
396
- end
397
- # verify the required parameter 'exporter_href' is set
398
- if @api_client.config.client_side_validation && exporter_href.nil?
399
- fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersApi.update"
400
- end
401
- # verify the required parameter 'exporter' is set
402
- if @api_client.config.client_side_validation && exporter.nil?
403
- fail ArgumentError, "Missing the required parameter 'exporter' when calling ExportersApi.update"
404
- end
405
- # resource path
406
- local_var_path = '{exporter_href}'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
407
-
408
- # query parameters
409
- query_params = opts[:query_params] || {}
410
-
411
- # header parameters
412
- header_params = opts[:header_params] || {}
413
- # HTTP header 'Accept' (if needed)
414
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
415
- # HTTP header 'Content-Type'
416
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
417
-
418
- # form parameters
419
- form_params = opts[:form_params] || {}
420
-
421
- # http body (model)
422
- post_body = opts[:body] || @api_client.object_to_http_body(exporter)
423
-
424
- # return_type
425
- return_type = opts[:return_type] || 'AsyncOperationResponse'
426
-
427
- # auth_names
428
- auth_names = opts[:auth_names] || ['basicAuth']
429
-
430
- new_options = opts.merge(
431
- :header_params => header_params,
432
- :query_params => query_params,
433
- :form_params => form_params,
434
- :body => post_body,
435
- :auth_names => auth_names,
436
- :return_type => return_type
437
- )
438
-
439
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
440
- if @api_client.config.debugging
441
- @api_client.config.logger.debug "API called: ExportersApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
- end
443
- return data, status_code, headers
444
- end
445
- end
446
- end