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.
- 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
|
@@ -19,132 +19,6 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create a remote
|
|
23
|
-
# 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.
|
|
24
|
-
# @param remote [Remote]
|
|
25
|
-
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [RemoteResponse]
|
|
27
|
-
def create(remote, opts = {})
|
|
28
|
-
data, _status_code, _headers = create_with_http_info(remote, opts)
|
|
29
|
-
data
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Create a remote
|
|
33
|
-
# 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.
|
|
34
|
-
# @param remote [Remote]
|
|
35
|
-
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(RemoteResponse, Integer, Hash)>] RemoteResponse data, response status code and response headers
|
|
37
|
-
def create_with_http_info(remote, opts = {})
|
|
38
|
-
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.create ...'
|
|
40
|
-
end
|
|
41
|
-
# verify the required parameter 'remote' is set
|
|
42
|
-
if @api_client.config.client_side_validation && remote.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'remote' when calling RemotesApi.create"
|
|
44
|
-
end
|
|
45
|
-
# resource path
|
|
46
|
-
local_var_path = '/pulp/api/v3/remotes/'
|
|
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(remote)
|
|
63
|
-
|
|
64
|
-
# return_type
|
|
65
|
-
return_type = opts[:return_type] || 'RemoteResponse'
|
|
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: RemotesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
-
end
|
|
83
|
-
return data, status_code, headers
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Delete a remote
|
|
87
|
-
# Trigger an asynchronous delete task
|
|
88
|
-
# @param remote_href [String]
|
|
89
|
-
# @param [Hash] opts the optional parameters
|
|
90
|
-
# @return [AsyncOperationResponse]
|
|
91
|
-
def delete(remote_href, opts = {})
|
|
92
|
-
data, _status_code, _headers = delete_with_http_info(remote_href, opts)
|
|
93
|
-
data
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Delete a remote
|
|
97
|
-
# Trigger an asynchronous delete task
|
|
98
|
-
# @param remote_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(remote_href, opts = {})
|
|
102
|
-
if @api_client.config.debugging
|
|
103
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.delete ...'
|
|
104
|
-
end
|
|
105
|
-
# verify the required parameter 'remote_href' is set
|
|
106
|
-
if @api_client.config.client_side_validation && remote_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'remote_href' when calling RemotesApi.delete"
|
|
108
|
-
end
|
|
109
|
-
# resource path
|
|
110
|
-
local_var_path = '{remote_href}'.sub('{' + 'remote_href' + '}', CGI.escape(remote_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: RemotesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
-
end
|
|
145
|
-
return data, status_code, headers
|
|
146
|
-
end
|
|
147
|
-
|
|
148
22
|
# List remotes
|
|
149
23
|
# 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.
|
|
150
24
|
# @param [Hash] opts the optional parameters
|
|
@@ -255,213 +129,5 @@ module PulpcoreClient
|
|
|
255
129
|
end
|
|
256
130
|
return data, status_code, headers
|
|
257
131
|
end
|
|
258
|
-
|
|
259
|
-
# Update a remote
|
|
260
|
-
# Trigger an asynchronous partial update task
|
|
261
|
-
# @param remote_href [String]
|
|
262
|
-
# @param patched_remote [PatchedRemote]
|
|
263
|
-
# @param [Hash] opts the optional parameters
|
|
264
|
-
# @return [AsyncOperationResponse]
|
|
265
|
-
def partial_update(remote_href, patched_remote, opts = {})
|
|
266
|
-
data, _status_code, _headers = partial_update_with_http_info(remote_href, patched_remote, opts)
|
|
267
|
-
data
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
# Update a remote
|
|
271
|
-
# Trigger an asynchronous partial update task
|
|
272
|
-
# @param remote_href [String]
|
|
273
|
-
# @param patched_remote [PatchedRemote]
|
|
274
|
-
# @param [Hash] opts the optional parameters
|
|
275
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
276
|
-
def partial_update_with_http_info(remote_href, patched_remote, opts = {})
|
|
277
|
-
if @api_client.config.debugging
|
|
278
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.partial_update ...'
|
|
279
|
-
end
|
|
280
|
-
# verify the required parameter 'remote_href' is set
|
|
281
|
-
if @api_client.config.client_side_validation && remote_href.nil?
|
|
282
|
-
fail ArgumentError, "Missing the required parameter 'remote_href' when calling RemotesApi.partial_update"
|
|
283
|
-
end
|
|
284
|
-
# verify the required parameter 'patched_remote' is set
|
|
285
|
-
if @api_client.config.client_side_validation && patched_remote.nil?
|
|
286
|
-
fail ArgumentError, "Missing the required parameter 'patched_remote' when calling RemotesApi.partial_update"
|
|
287
|
-
end
|
|
288
|
-
# resource path
|
|
289
|
-
local_var_path = '{remote_href}'.sub('{' + 'remote_href' + '}', CGI.escape(remote_href.to_s).gsub('%2F', '/'))
|
|
290
|
-
|
|
291
|
-
# query parameters
|
|
292
|
-
query_params = opts[:query_params] || {}
|
|
293
|
-
|
|
294
|
-
# header parameters
|
|
295
|
-
header_params = opts[:header_params] || {}
|
|
296
|
-
# HTTP header 'Accept' (if needed)
|
|
297
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
298
|
-
# HTTP header 'Content-Type'
|
|
299
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
300
|
-
|
|
301
|
-
# form parameters
|
|
302
|
-
form_params = opts[:form_params] || {}
|
|
303
|
-
|
|
304
|
-
# http body (model)
|
|
305
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_remote)
|
|
306
|
-
|
|
307
|
-
# return_type
|
|
308
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
309
|
-
|
|
310
|
-
# auth_names
|
|
311
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
312
|
-
|
|
313
|
-
new_options = opts.merge(
|
|
314
|
-
:header_params => header_params,
|
|
315
|
-
:query_params => query_params,
|
|
316
|
-
:form_params => form_params,
|
|
317
|
-
:body => post_body,
|
|
318
|
-
:auth_names => auth_names,
|
|
319
|
-
:return_type => return_type
|
|
320
|
-
)
|
|
321
|
-
|
|
322
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
323
|
-
if @api_client.config.debugging
|
|
324
|
-
@api_client.config.logger.debug "API called: RemotesApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
-
end
|
|
326
|
-
return data, status_code, headers
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# Inspect a remote
|
|
330
|
-
# 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.
|
|
331
|
-
# @param remote_href [String]
|
|
332
|
-
# @param [Hash] opts the optional parameters
|
|
333
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
334
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
335
|
-
# @return [RemoteResponse]
|
|
336
|
-
def read(remote_href, opts = {})
|
|
337
|
-
data, _status_code, _headers = read_with_http_info(remote_href, opts)
|
|
338
|
-
data
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
# Inspect a remote
|
|
342
|
-
# 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.
|
|
343
|
-
# @param remote_href [String]
|
|
344
|
-
# @param [Hash] opts the optional parameters
|
|
345
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
346
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
347
|
-
# @return [Array<(RemoteResponse, Integer, Hash)>] RemoteResponse data, response status code and response headers
|
|
348
|
-
def read_with_http_info(remote_href, opts = {})
|
|
349
|
-
if @api_client.config.debugging
|
|
350
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.read ...'
|
|
351
|
-
end
|
|
352
|
-
# verify the required parameter 'remote_href' is set
|
|
353
|
-
if @api_client.config.client_side_validation && remote_href.nil?
|
|
354
|
-
fail ArgumentError, "Missing the required parameter 'remote_href' when calling RemotesApi.read"
|
|
355
|
-
end
|
|
356
|
-
# resource path
|
|
357
|
-
local_var_path = '{remote_href}'.sub('{' + 'remote_href' + '}', CGI.escape(remote_href.to_s).gsub('%2F', '/'))
|
|
358
|
-
|
|
359
|
-
# query parameters
|
|
360
|
-
query_params = opts[:query_params] || {}
|
|
361
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
362
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
363
|
-
|
|
364
|
-
# header parameters
|
|
365
|
-
header_params = opts[:header_params] || {}
|
|
366
|
-
# HTTP header 'Accept' (if needed)
|
|
367
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
368
|
-
|
|
369
|
-
# form parameters
|
|
370
|
-
form_params = opts[:form_params] || {}
|
|
371
|
-
|
|
372
|
-
# http body (model)
|
|
373
|
-
post_body = opts[:body]
|
|
374
|
-
|
|
375
|
-
# return_type
|
|
376
|
-
return_type = opts[:return_type] || 'RemoteResponse'
|
|
377
|
-
|
|
378
|
-
# auth_names
|
|
379
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
380
|
-
|
|
381
|
-
new_options = opts.merge(
|
|
382
|
-
:header_params => header_params,
|
|
383
|
-
:query_params => query_params,
|
|
384
|
-
:form_params => form_params,
|
|
385
|
-
:body => post_body,
|
|
386
|
-
:auth_names => auth_names,
|
|
387
|
-
:return_type => return_type
|
|
388
|
-
)
|
|
389
|
-
|
|
390
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
391
|
-
if @api_client.config.debugging
|
|
392
|
-
@api_client.config.logger.debug "API called: RemotesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
393
|
-
end
|
|
394
|
-
return data, status_code, headers
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
# Update a remote
|
|
398
|
-
# Trigger an asynchronous update task
|
|
399
|
-
# @param remote_href [String]
|
|
400
|
-
# @param remote [Remote]
|
|
401
|
-
# @param [Hash] opts the optional parameters
|
|
402
|
-
# @return [AsyncOperationResponse]
|
|
403
|
-
def update(remote_href, remote, opts = {})
|
|
404
|
-
data, _status_code, _headers = update_with_http_info(remote_href, remote, opts)
|
|
405
|
-
data
|
|
406
|
-
end
|
|
407
|
-
|
|
408
|
-
# Update a remote
|
|
409
|
-
# Trigger an asynchronous update task
|
|
410
|
-
# @param remote_href [String]
|
|
411
|
-
# @param remote [Remote]
|
|
412
|
-
# @param [Hash] opts the optional parameters
|
|
413
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
414
|
-
def update_with_http_info(remote_href, remote, opts = {})
|
|
415
|
-
if @api_client.config.debugging
|
|
416
|
-
@api_client.config.logger.debug 'Calling API: RemotesApi.update ...'
|
|
417
|
-
end
|
|
418
|
-
# verify the required parameter 'remote_href' is set
|
|
419
|
-
if @api_client.config.client_side_validation && remote_href.nil?
|
|
420
|
-
fail ArgumentError, "Missing the required parameter 'remote_href' when calling RemotesApi.update"
|
|
421
|
-
end
|
|
422
|
-
# verify the required parameter 'remote' is set
|
|
423
|
-
if @api_client.config.client_side_validation && remote.nil?
|
|
424
|
-
fail ArgumentError, "Missing the required parameter 'remote' when calling RemotesApi.update"
|
|
425
|
-
end
|
|
426
|
-
# resource path
|
|
427
|
-
local_var_path = '{remote_href}'.sub('{' + 'remote_href' + '}', CGI.escape(remote_href.to_s).gsub('%2F', '/'))
|
|
428
|
-
|
|
429
|
-
# query parameters
|
|
430
|
-
query_params = opts[:query_params] || {}
|
|
431
|
-
|
|
432
|
-
# header parameters
|
|
433
|
-
header_params = opts[:header_params] || {}
|
|
434
|
-
# HTTP header 'Accept' (if needed)
|
|
435
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
436
|
-
# HTTP header 'Content-Type'
|
|
437
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
438
|
-
|
|
439
|
-
# form parameters
|
|
440
|
-
form_params = opts[:form_params] || {}
|
|
441
|
-
|
|
442
|
-
# http body (model)
|
|
443
|
-
post_body = opts[:body] || @api_client.object_to_http_body(remote)
|
|
444
|
-
|
|
445
|
-
# return_type
|
|
446
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
447
|
-
|
|
448
|
-
# auth_names
|
|
449
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
450
|
-
|
|
451
|
-
new_options = opts.merge(
|
|
452
|
-
:header_params => header_params,
|
|
453
|
-
:query_params => query_params,
|
|
454
|
-
:form_params => form_params,
|
|
455
|
-
:body => post_body,
|
|
456
|
-
:auth_names => auth_names,
|
|
457
|
-
:return_type => return_type
|
|
458
|
-
)
|
|
459
|
-
|
|
460
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
461
|
-
if @api_client.config.debugging
|
|
462
|
-
@api_client.config.logger.debug "API called: RemotesApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
463
|
-
end
|
|
464
|
-
return data, status_code, headers
|
|
465
|
-
end
|
|
466
132
|
end
|
|
467
133
|
end
|