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.
- checksums.yaml +4 -4
- data/README.md +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
@@ -1,514 +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 AcsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create an alternate content source
|
23
|
-
# A class for ACS viewset.
|
24
|
-
# @param alternate_content_source [AlternateContentSource]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [AlternateContentSourceResponse]
|
27
|
-
def create(alternate_content_source, opts = {})
|
28
|
-
data, _status_code, _headers = create_with_http_info(alternate_content_source, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create an alternate content source
|
33
|
-
# A class for ACS viewset.
|
34
|
-
# @param alternate_content_source [AlternateContentSource]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
37
|
-
def create_with_http_info(alternate_content_source, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'alternate_content_source' is set
|
42
|
-
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/acs/'
|
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(alternate_content_source)
|
63
|
-
|
64
|
-
# return_type
|
65
|
-
return_type = opts[:return_type] || 'AlternateContentSourceResponse'
|
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: AcsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
|
86
|
-
# Delete an alternate content source
|
87
|
-
# Trigger an asynchronous delete ACS task
|
88
|
-
# @param alternate_content_source_href [String]
|
89
|
-
# @param [Hash] opts the optional parameters
|
90
|
-
# @return [AsyncOperationResponse]
|
91
|
-
def delete(alternate_content_source_href, opts = {})
|
92
|
-
data, _status_code, _headers = delete_with_http_info(alternate_content_source_href, opts)
|
93
|
-
data
|
94
|
-
end
|
95
|
-
|
96
|
-
# Delete an alternate content source
|
97
|
-
# Trigger an asynchronous delete ACS task
|
98
|
-
# @param alternate_content_source_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(alternate_content_source_href, opts = {})
|
102
|
-
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.delete ...'
|
104
|
-
end
|
105
|
-
# verify the required parameter 'alternate_content_source_href' is set
|
106
|
-
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.delete"
|
108
|
-
end
|
109
|
-
# resource path
|
110
|
-
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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: AcsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
-
end
|
145
|
-
return data, status_code, headers
|
146
|
-
end
|
147
|
-
|
148
|
-
# List acs
|
149
|
-
# A class for ACS viewset.
|
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 [PaginatedAlternateContentSourceResponseList]
|
162
|
-
def list(opts = {})
|
163
|
-
data, _status_code, _headers = list_with_http_info(opts)
|
164
|
-
data
|
165
|
-
end
|
166
|
-
|
167
|
-
# List acs
|
168
|
-
# A class for ACS viewset.
|
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<(PaginatedAlternateContentSourceResponseList, Integer, Hash)>] PaginatedAlternateContentSourceResponseList 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: AcsApi.list ...'
|
184
|
-
end
|
185
|
-
allowable_values = ["-file_filealternatecontentsource", "-group_roles", "-last_refreshed", "-name", "-paths", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-user_roles", "file_filealternatecontentsource", "group_roles", "last_refreshed", "name", "paths", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "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/acs/'
|
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] || 'PaginatedAlternateContentSourceResponseList'
|
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: AcsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
|
-
end
|
235
|
-
return data, status_code, headers
|
236
|
-
end
|
237
|
-
|
238
|
-
# Update an alternate content source
|
239
|
-
# Trigger an asynchronous partial update task
|
240
|
-
# @param alternate_content_source_href [String]
|
241
|
-
# @param patched_alternate_content_source [PatchedAlternateContentSource]
|
242
|
-
# @param [Hash] opts the optional parameters
|
243
|
-
# @return [AsyncOperationResponse]
|
244
|
-
def partial_update(alternate_content_source_href, patched_alternate_content_source, opts = {})
|
245
|
-
data, _status_code, _headers = partial_update_with_http_info(alternate_content_source_href, patched_alternate_content_source, opts)
|
246
|
-
data
|
247
|
-
end
|
248
|
-
|
249
|
-
# Update an alternate content source
|
250
|
-
# Trigger an asynchronous partial update task
|
251
|
-
# @param alternate_content_source_href [String]
|
252
|
-
# @param patched_alternate_content_source [PatchedAlternateContentSource]
|
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(alternate_content_source_href, patched_alternate_content_source, opts = {})
|
256
|
-
if @api_client.config.debugging
|
257
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.partial_update ...'
|
258
|
-
end
|
259
|
-
# verify the required parameter 'alternate_content_source_href' is set
|
260
|
-
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
261
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.partial_update"
|
262
|
-
end
|
263
|
-
# verify the required parameter 'patched_alternate_content_source' is set
|
264
|
-
if @api_client.config.client_side_validation && patched_alternate_content_source.nil?
|
265
|
-
fail ArgumentError, "Missing the required parameter 'patched_alternate_content_source' when calling AcsApi.partial_update"
|
266
|
-
end
|
267
|
-
# resource path
|
268
|
-
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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_alternate_content_source)
|
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: AcsApi#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 alternate content source
|
309
|
-
# A class for ACS viewset.
|
310
|
-
# @param alternate_content_source_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 [AlternateContentSourceResponse]
|
315
|
-
def read(alternate_content_source_href, opts = {})
|
316
|
-
data, _status_code, _headers = read_with_http_info(alternate_content_source_href, opts)
|
317
|
-
data
|
318
|
-
end
|
319
|
-
|
320
|
-
# Inspect an alternate content source
|
321
|
-
# A class for ACS viewset.
|
322
|
-
# @param alternate_content_source_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<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
327
|
-
def read_with_http_info(alternate_content_source_href, opts = {})
|
328
|
-
if @api_client.config.debugging
|
329
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.read ...'
|
330
|
-
end
|
331
|
-
# verify the required parameter 'alternate_content_source_href' is set
|
332
|
-
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
333
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.read"
|
334
|
-
end
|
335
|
-
# resource path
|
336
|
-
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_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] || 'AlternateContentSourceResponse'
|
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: AcsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
372
|
-
end
|
373
|
-
return data, status_code, headers
|
374
|
-
end
|
375
|
-
|
376
|
-
# A class for ACS viewset.
|
377
|
-
# @param alternate_content_source_href [String]
|
378
|
-
# @param alternate_content_source [AlternateContentSource]
|
379
|
-
# @param [Hash] opts the optional parameters
|
380
|
-
# @return [AlternateContentSourceResponse]
|
381
|
-
def refresh(alternate_content_source_href, alternate_content_source, opts = {})
|
382
|
-
data, _status_code, _headers = refresh_with_http_info(alternate_content_source_href, alternate_content_source, opts)
|
383
|
-
data
|
384
|
-
end
|
385
|
-
|
386
|
-
# A class for ACS viewset.
|
387
|
-
# @param alternate_content_source_href [String]
|
388
|
-
# @param alternate_content_source [AlternateContentSource]
|
389
|
-
# @param [Hash] opts the optional parameters
|
390
|
-
# @return [Array<(AlternateContentSourceResponse, Integer, Hash)>] AlternateContentSourceResponse data, response status code and response headers
|
391
|
-
def refresh_with_http_info(alternate_content_source_href, alternate_content_source, opts = {})
|
392
|
-
if @api_client.config.debugging
|
393
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.refresh ...'
|
394
|
-
end
|
395
|
-
# verify the required parameter 'alternate_content_source_href' is set
|
396
|
-
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.refresh"
|
398
|
-
end
|
399
|
-
# verify the required parameter 'alternate_content_source' is set
|
400
|
-
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
401
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.refresh"
|
402
|
-
end
|
403
|
-
# resource path
|
404
|
-
local_var_path = '{alternate_content_source_href}refresh/'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_href.to_s).gsub('%2F', '/'))
|
405
|
-
|
406
|
-
# query parameters
|
407
|
-
query_params = opts[:query_params] || {}
|
408
|
-
|
409
|
-
# header parameters
|
410
|
-
header_params = opts[:header_params] || {}
|
411
|
-
# HTTP header 'Accept' (if needed)
|
412
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
413
|
-
# HTTP header 'Content-Type'
|
414
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
415
|
-
|
416
|
-
# form parameters
|
417
|
-
form_params = opts[:form_params] || {}
|
418
|
-
|
419
|
-
# http body (model)
|
420
|
-
post_body = opts[:body] || @api_client.object_to_http_body(alternate_content_source)
|
421
|
-
|
422
|
-
# return_type
|
423
|
-
return_type = opts[:return_type] || 'AlternateContentSourceResponse'
|
424
|
-
|
425
|
-
# auth_names
|
426
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
427
|
-
|
428
|
-
new_options = opts.merge(
|
429
|
-
:header_params => header_params,
|
430
|
-
:query_params => query_params,
|
431
|
-
:form_params => form_params,
|
432
|
-
:body => post_body,
|
433
|
-
:auth_names => auth_names,
|
434
|
-
:return_type => return_type
|
435
|
-
)
|
436
|
-
|
437
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
438
|
-
if @api_client.config.debugging
|
439
|
-
@api_client.config.logger.debug "API called: AcsApi#refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
440
|
-
end
|
441
|
-
return data, status_code, headers
|
442
|
-
end
|
443
|
-
|
444
|
-
# Update an alternate content source
|
445
|
-
# Trigger an asynchronous update task
|
446
|
-
# @param alternate_content_source_href [String]
|
447
|
-
# @param alternate_content_source [AlternateContentSource]
|
448
|
-
# @param [Hash] opts the optional parameters
|
449
|
-
# @return [AsyncOperationResponse]
|
450
|
-
def update(alternate_content_source_href, alternate_content_source, opts = {})
|
451
|
-
data, _status_code, _headers = update_with_http_info(alternate_content_source_href, alternate_content_source, opts)
|
452
|
-
data
|
453
|
-
end
|
454
|
-
|
455
|
-
# Update an alternate content source
|
456
|
-
# Trigger an asynchronous update task
|
457
|
-
# @param alternate_content_source_href [String]
|
458
|
-
# @param alternate_content_source [AlternateContentSource]
|
459
|
-
# @param [Hash] opts the optional parameters
|
460
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
461
|
-
def update_with_http_info(alternate_content_source_href, alternate_content_source, opts = {})
|
462
|
-
if @api_client.config.debugging
|
463
|
-
@api_client.config.logger.debug 'Calling API: AcsApi.update ...'
|
464
|
-
end
|
465
|
-
# verify the required parameter 'alternate_content_source_href' is set
|
466
|
-
if @api_client.config.client_side_validation && alternate_content_source_href.nil?
|
467
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source_href' when calling AcsApi.update"
|
468
|
-
end
|
469
|
-
# verify the required parameter 'alternate_content_source' is set
|
470
|
-
if @api_client.config.client_side_validation && alternate_content_source.nil?
|
471
|
-
fail ArgumentError, "Missing the required parameter 'alternate_content_source' when calling AcsApi.update"
|
472
|
-
end
|
473
|
-
# resource path
|
474
|
-
local_var_path = '{alternate_content_source_href}'.sub('{' + 'alternate_content_source_href' + '}', CGI.escape(alternate_content_source_href.to_s).gsub('%2F', '/'))
|
475
|
-
|
476
|
-
# query parameters
|
477
|
-
query_params = opts[:query_params] || {}
|
478
|
-
|
479
|
-
# header parameters
|
480
|
-
header_params = opts[:header_params] || {}
|
481
|
-
# HTTP header 'Accept' (if needed)
|
482
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
483
|
-
# HTTP header 'Content-Type'
|
484
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
485
|
-
|
486
|
-
# form parameters
|
487
|
-
form_params = opts[:form_params] || {}
|
488
|
-
|
489
|
-
# http body (model)
|
490
|
-
post_body = opts[:body] || @api_client.object_to_http_body(alternate_content_source)
|
491
|
-
|
492
|
-
# return_type
|
493
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
494
|
-
|
495
|
-
# auth_names
|
496
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
497
|
-
|
498
|
-
new_options = opts.merge(
|
499
|
-
:header_params => header_params,
|
500
|
-
:query_params => query_params,
|
501
|
-
:form_params => form_params,
|
502
|
-
:body => post_body,
|
503
|
-
:auth_names => auth_names,
|
504
|
-
:return_type => return_type
|
505
|
-
)
|
506
|
-
|
507
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
508
|
-
if @api_client.config.debugging
|
509
|
-
@api_client.config.logger.debug "API called: AcsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
510
|
-
end
|
511
|
-
return data, status_code, headers
|
512
|
-
end
|
513
|
-
end
|
514
|
-
end
|