pulpcore_client 3.0.0rc2 → 3.0.0rc3
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/Gemfile.lock +1 -1
- data/README.md +43 -37
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentAppStatus.md +19 -0
- data/docs/DatabaseConnection.md +17 -0
- data/docs/OrphansApi.md +5 -5
- data/docs/ProgressReport.md +1 -3
- data/docs/RedisConnection.md +17 -0
- data/docs/RepositoriesApi.md +30 -278
- data/docs/RepositoriesVersionsApi.md +256 -0
- data/docs/RepositoryVersionCreate.md +2 -2
- data/docs/Status.md +27 -0
- data/docs/StatusApi.md +8 -7
- data/docs/TaskCancel.md +17 -0
- data/docs/TasksApi.md +71 -71
- data/docs/Upload.md +6 -8
- data/docs/UploadCommit.md +17 -0
- data/docs/UploadsApi.md +66 -106
- data/docs/Version.md +19 -0
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -23
- data/lib/pulpcore_client/api/orphans_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +38 -338
- data/lib/pulpcore_client/api/repositories_versions_api.rb +322 -0
- data/lib/pulpcore_client/api/status_api.rb +12 -10
- data/lib/pulpcore_client/api/tasks_api.rb +88 -88
- data/lib/pulpcore_client/api/uploads_api.rb +105 -154
- data/lib/pulpcore_client/api/workers_api.rb +12 -12
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +91 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +223 -0
- data/lib/pulpcore_client/models/database_connection.rb +203 -0
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +20 -15
- data/lib/pulpcore_client/models/redis_connection.rb +203 -0
- data/lib/pulpcore_client/models/repository.rb +16 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +3 -13
- data/lib/pulpcore_client/models/status.rb +283 -0
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +221 -0
- data/lib/pulpcore_client/models/upload.rb +26 -52
- data/lib/pulpcore_client/models/upload_commit.rb +221 -0
- data/lib/pulpcore_client/models/version.rb +256 -0
- data/lib/pulpcore_client/models/worker.rb +2 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +9 -1
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +9 -9
- data/spec/api/orphans_api_spec.rb +3 -3
- data/spec/api/repositories_api_spec.rb +13 -76
- data/spec/api/repositories_versions_api_spec.rb +98 -0
- data/spec/api/status_api_spec.rb +4 -4
- data/spec/api/tasks_api_spec.rb +20 -20
- data/spec/api/uploads_api_spec.rb +32 -37
- data/spec/api/workers_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +47 -0
- data/spec/models/database_connection_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -7
- data/spec/models/redis_connection_spec.rb +41 -0
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +71 -0
- data/spec/models/task_cancel_spec.rb +41 -0
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +41 -0
- data/spec/models/upload_spec.rb +4 -10
- data/spec/models/version_spec.rb +47 -0
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +34 -2
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class RepositoriesVersionsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a repository version
|
|
23
|
+
# Trigger an asynchronous task to create a new repository version.
|
|
24
|
+
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
|
25
|
+
# @param data [RepositoryVersionCreate]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [AsyncOperationResponse]
|
|
28
|
+
def create(repository_href, data, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(repository_href, data, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create a repository version
|
|
34
|
+
# Trigger an asynchronous task to create a new repository version.
|
|
35
|
+
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
|
36
|
+
# @param data [RepositoryVersionCreate]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
39
|
+
def create_with_http_info(repository_href, data, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.create ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'repository_href' is set
|
|
44
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.create"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'data' is set
|
|
48
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesVersionsApi.create"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
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'])
|
|
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(data)
|
|
69
|
+
|
|
70
|
+
# return_type
|
|
71
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
72
|
+
|
|
73
|
+
# auth_names
|
|
74
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
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: RepositoriesVersionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
+
end
|
|
89
|
+
return data, status_code, headers
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Delete a repository version
|
|
93
|
+
# Trigger an asynchronous task to delete a repositroy version.
|
|
94
|
+
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [AsyncOperationResponse]
|
|
97
|
+
def delete(repository_version_href, opts = {})
|
|
98
|
+
data, _status_code, _headers = delete_with_http_info(repository_version_href, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Delete a repository version
|
|
103
|
+
# Trigger an asynchronous task to delete a repositroy version.
|
|
104
|
+
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
107
|
+
def delete_with_http_info(repository_version_href, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.delete ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'repository_version_href' is set
|
|
112
|
+
if @api_client.config.client_side_validation && repository_version_href.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.delete"
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
|
|
121
|
+
# header parameters
|
|
122
|
+
header_params = opts[:header_params] || {}
|
|
123
|
+
# HTTP header 'Accept' (if needed)
|
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
125
|
+
|
|
126
|
+
# form parameters
|
|
127
|
+
form_params = opts[:form_params] || {}
|
|
128
|
+
|
|
129
|
+
# http body (model)
|
|
130
|
+
post_body = opts[:body]
|
|
131
|
+
|
|
132
|
+
# return_type
|
|
133
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
134
|
+
|
|
135
|
+
# auth_names
|
|
136
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
137
|
+
|
|
138
|
+
new_options = opts.merge(
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => return_type
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
|
+
end
|
|
151
|
+
return data, status_code, headers
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# List repository versions
|
|
155
|
+
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
158
|
+
# @option opts [Float] :number
|
|
159
|
+
# @option opts [Float] :number__lt Filter results where number is less than value
|
|
160
|
+
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
|
161
|
+
# @option opts [Float] :number__gt Filter results where number is greater than value
|
|
162
|
+
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
|
163
|
+
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
|
164
|
+
# @option opts [String] :_created__lt Filter results where _created is less than value
|
|
165
|
+
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
|
166
|
+
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
|
167
|
+
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
|
168
|
+
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
|
169
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
|
170
|
+
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
|
171
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
172
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
173
|
+
# @return [InlineResponse2002]
|
|
174
|
+
def list(repository_href, opts = {})
|
|
175
|
+
data, _status_code, _headers = list_with_http_info(repository_href, opts)
|
|
176
|
+
data
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# List repository versions
|
|
180
|
+
# @param repository_href [String] URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
183
|
+
# @option opts [Float] :number
|
|
184
|
+
# @option opts [Float] :number__lt Filter results where number is less than value
|
|
185
|
+
# @option opts [Float] :number__lte Filter results where number is less than or equal to value
|
|
186
|
+
# @option opts [Float] :number__gt Filter results where number is greater than value
|
|
187
|
+
# @option opts [Float] :number__gte Filter results where number is greater than or equal to value
|
|
188
|
+
# @option opts [Float] :number__range Filter results where number is between two comma separated values
|
|
189
|
+
# @option opts [String] :_created__lt Filter results where _created is less than value
|
|
190
|
+
# @option opts [String] :_created__lte Filter results where _created is less than or equal to value
|
|
191
|
+
# @option opts [String] :_created__gt Filter results where _created is greater than value
|
|
192
|
+
# @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
|
|
193
|
+
# @option opts [String] :_created__range Filter results where _created is between two comma separated values
|
|
194
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
|
195
|
+
# @option opts [String] :_created ISO 8601 formatted dates are supported
|
|
196
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
197
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
198
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
199
|
+
def list_with_http_info(repository_href, opts = {})
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.list ...'
|
|
202
|
+
end
|
|
203
|
+
# verify the required parameter 'repository_href' is set
|
|
204
|
+
if @api_client.config.client_side_validation && repository_href.nil?
|
|
205
|
+
fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.list"
|
|
206
|
+
end
|
|
207
|
+
# resource path
|
|
208
|
+
local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
|
|
209
|
+
|
|
210
|
+
# query parameters
|
|
211
|
+
query_params = opts[:query_params] || {}
|
|
212
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
213
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
214
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
|
215
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
|
216
|
+
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
|
217
|
+
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
|
218
|
+
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
|
219
|
+
query_params[:'_created__lt'] = opts[:'_created__lt'] if !opts[:'_created__lt'].nil?
|
|
220
|
+
query_params[:'_created__lte'] = opts[:'_created__lte'] if !opts[:'_created__lte'].nil?
|
|
221
|
+
query_params[:'_created__gt'] = opts[:'_created__gt'] if !opts[:'_created__gt'].nil?
|
|
222
|
+
query_params[:'_created__gte'] = opts[:'_created__gte'] if !opts[:'_created__gte'].nil?
|
|
223
|
+
query_params[:'_created__range'] = opts[:'_created__range'] if !opts[:'_created__range'].nil?
|
|
224
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
|
225
|
+
query_params[:'_created'] = opts[:'_created'] if !opts[:'_created'].nil?
|
|
226
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
227
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
228
|
+
|
|
229
|
+
# header parameters
|
|
230
|
+
header_params = opts[:header_params] || {}
|
|
231
|
+
# HTTP header 'Accept' (if needed)
|
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
233
|
+
|
|
234
|
+
# form parameters
|
|
235
|
+
form_params = opts[:form_params] || {}
|
|
236
|
+
|
|
237
|
+
# http body (model)
|
|
238
|
+
post_body = opts[:body]
|
|
239
|
+
|
|
240
|
+
# return_type
|
|
241
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
|
242
|
+
|
|
243
|
+
# auth_names
|
|
244
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
245
|
+
|
|
246
|
+
new_options = opts.merge(
|
|
247
|
+
:header_params => header_params,
|
|
248
|
+
:query_params => query_params,
|
|
249
|
+
:form_params => form_params,
|
|
250
|
+
:body => post_body,
|
|
251
|
+
:auth_names => auth_names,
|
|
252
|
+
:return_type => return_type
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
258
|
+
end
|
|
259
|
+
return data, status_code, headers
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Inspect a repository version
|
|
263
|
+
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [RepositoryVersion]
|
|
266
|
+
def read(repository_version_href, opts = {})
|
|
267
|
+
data, _status_code, _headers = read_with_http_info(repository_version_href, opts)
|
|
268
|
+
data
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Inspect a repository version
|
|
272
|
+
# @param repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
|
273
|
+
# @param [Hash] opts the optional parameters
|
|
274
|
+
# @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
|
|
275
|
+
def read_with_http_info(repository_version_href, opts = {})
|
|
276
|
+
if @api_client.config.debugging
|
|
277
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesVersionsApi.read ...'
|
|
278
|
+
end
|
|
279
|
+
# verify the required parameter 'repository_version_href' is set
|
|
280
|
+
if @api_client.config.client_side_validation && repository_version_href.nil?
|
|
281
|
+
fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.read"
|
|
282
|
+
end
|
|
283
|
+
# resource path
|
|
284
|
+
local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
|
|
285
|
+
|
|
286
|
+
# query parameters
|
|
287
|
+
query_params = opts[:query_params] || {}
|
|
288
|
+
|
|
289
|
+
# header parameters
|
|
290
|
+
header_params = opts[:header_params] || {}
|
|
291
|
+
# HTTP header 'Accept' (if needed)
|
|
292
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
293
|
+
|
|
294
|
+
# form parameters
|
|
295
|
+
form_params = opts[:form_params] || {}
|
|
296
|
+
|
|
297
|
+
# http body (model)
|
|
298
|
+
post_body = opts[:body]
|
|
299
|
+
|
|
300
|
+
# return_type
|
|
301
|
+
return_type = opts[:return_type] || 'RepositoryVersion'
|
|
302
|
+
|
|
303
|
+
# auth_names
|
|
304
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
305
|
+
|
|
306
|
+
new_options = opts.merge(
|
|
307
|
+
:header_params => header_params,
|
|
308
|
+
:query_params => query_params,
|
|
309
|
+
:form_params => form_params,
|
|
310
|
+
:body => post_body,
|
|
311
|
+
:auth_names => auth_names,
|
|
312
|
+
:return_type => return_type
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
316
|
+
if @api_client.config.debugging
|
|
317
|
+
@api_client.config.logger.debug "API called: RepositoriesVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
318
|
+
end
|
|
319
|
+
return data, status_code, headers
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -22,19 +22,19 @@ module PulpcoreClient
|
|
|
22
22
|
# Inspect status of Pulp
|
|
23
23
|
# Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [
|
|
26
|
-
def
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
# @return [Status]
|
|
26
|
+
def status_read(opts = {})
|
|
27
|
+
data, _status_code, _headers = status_read_with_http_info(opts)
|
|
28
|
+
data
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Inspect status of Pulp
|
|
32
32
|
# Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(
|
|
35
|
-
def
|
|
34
|
+
# @return [Array<(Status, Integer, Hash)>] Status data, response status code and response headers
|
|
35
|
+
def status_read_with_http_info(opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: StatusApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: StatusApi.status_read ...'
|
|
38
38
|
end
|
|
39
39
|
# resource path
|
|
40
40
|
local_var_path = '/pulp/api/v3/status/'
|
|
@@ -44,6 +44,8 @@ module PulpcoreClient
|
|
|
44
44
|
|
|
45
45
|
# header parameters
|
|
46
46
|
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
47
49
|
|
|
48
50
|
# form parameters
|
|
49
51
|
form_params = opts[:form_params] || {}
|
|
@@ -52,7 +54,7 @@ module PulpcoreClient
|
|
|
52
54
|
post_body = opts[:body]
|
|
53
55
|
|
|
54
56
|
# return_type
|
|
55
|
-
return_type = opts[:return_type]
|
|
57
|
+
return_type = opts[:return_type] || 'Status'
|
|
56
58
|
|
|
57
59
|
# auth_names
|
|
58
60
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -68,7 +70,7 @@ module PulpcoreClient
|
|
|
68
70
|
|
|
69
71
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
70
72
|
if @api_client.config.debugging
|
|
71
|
-
@api_client.config.logger.debug "API called: StatusApi#
|
|
73
|
+
@api_client.config.logger.debug "API called: StatusApi#status_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
72
74
|
end
|
|
73
75
|
return data, status_code, headers
|
|
74
76
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.0.
|
|
9
|
+
OpenAPI Generator version: 4.0.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,82 +19,12 @@ module PulpcoreClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Cancel a task
|
|
23
|
-
# This operation cancels a task.
|
|
24
|
-
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
25
|
-
# @param data [Task]
|
|
26
|
-
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [Task]
|
|
28
|
-
def tasks_cancel(task_href, data, opts = {})
|
|
29
|
-
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, data, opts)
|
|
30
|
-
data
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Cancel a task
|
|
34
|
-
# This operation cancels a task.
|
|
35
|
-
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
36
|
-
# @param data [Task]
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
39
|
-
def tasks_cancel_with_http_info(task_href, data, opts = {})
|
|
40
|
-
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
|
42
|
-
end
|
|
43
|
-
# verify the required parameter 'task_href' is set
|
|
44
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
|
46
|
-
end
|
|
47
|
-
# verify the required parameter 'data' is set
|
|
48
|
-
if @api_client.config.client_side_validation && data.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
|
|
50
|
-
end
|
|
51
|
-
# resource path
|
|
52
|
-
local_var_path = '{task_href}cancel/'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
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'])
|
|
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(data)
|
|
69
|
-
|
|
70
|
-
# return_type
|
|
71
|
-
return_type = opts[:return_type] || 'Task'
|
|
72
|
-
|
|
73
|
-
# auth_names
|
|
74
|
-
auth_names = opts[:auth_names] || ['Basic']
|
|
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: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
-
end
|
|
89
|
-
return data, status_code, headers
|
|
90
|
-
end
|
|
91
|
-
|
|
92
22
|
# Delete a task
|
|
93
23
|
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
94
24
|
# @param [Hash] opts the optional parameters
|
|
95
25
|
# @return [nil]
|
|
96
|
-
def
|
|
97
|
-
|
|
26
|
+
def delete(task_href, opts = {})
|
|
27
|
+
delete_with_http_info(task_href, opts)
|
|
98
28
|
nil
|
|
99
29
|
end
|
|
100
30
|
|
|
@@ -102,13 +32,13 @@ module PulpcoreClient
|
|
|
102
32
|
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
103
33
|
# @param [Hash] opts the optional parameters
|
|
104
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
105
|
-
def
|
|
35
|
+
def delete_with_http_info(task_href, opts = {})
|
|
106
36
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.delete ...'
|
|
108
38
|
end
|
|
109
39
|
# verify the required parameter 'task_href' is set
|
|
110
40
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
111
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
|
|
112
42
|
end
|
|
113
43
|
# resource path
|
|
114
44
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
@@ -142,7 +72,7 @@ module PulpcoreClient
|
|
|
142
72
|
|
|
143
73
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
144
74
|
if @api_client.config.debugging
|
|
145
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
75
|
+
@api_client.config.logger.debug "API called: TasksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
76
|
end
|
|
147
77
|
return data, status_code, headers
|
|
148
78
|
end
|
|
@@ -172,8 +102,8 @@ module PulpcoreClient
|
|
|
172
102
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
173
103
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
174
104
|
# @return [InlineResponse2003]
|
|
175
|
-
def
|
|
176
|
-
data, _status_code, _headers =
|
|
105
|
+
def list(opts = {})
|
|
106
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
177
107
|
data
|
|
178
108
|
end
|
|
179
109
|
|
|
@@ -202,9 +132,9 @@ module PulpcoreClient
|
|
|
202
132
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
203
133
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
204
134
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
205
|
-
def
|
|
135
|
+
def list_with_http_info(opts = {})
|
|
206
136
|
if @api_client.config.debugging
|
|
207
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
137
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
|
208
138
|
end
|
|
209
139
|
# resource path
|
|
210
140
|
local_var_path = '/pulp/api/v3/tasks/'
|
|
@@ -262,7 +192,7 @@ module PulpcoreClient
|
|
|
262
192
|
|
|
263
193
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
264
194
|
if @api_client.config.debugging
|
|
265
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
195
|
+
@api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
196
|
end
|
|
267
197
|
return data, status_code, headers
|
|
268
198
|
end
|
|
@@ -271,8 +201,8 @@ module PulpcoreClient
|
|
|
271
201
|
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
272
202
|
# @param [Hash] opts the optional parameters
|
|
273
203
|
# @return [Task]
|
|
274
|
-
def
|
|
275
|
-
data, _status_code, _headers =
|
|
204
|
+
def read(task_href, opts = {})
|
|
205
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
|
276
206
|
data
|
|
277
207
|
end
|
|
278
208
|
|
|
@@ -280,13 +210,13 @@ module PulpcoreClient
|
|
|
280
210
|
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
281
211
|
# @param [Hash] opts the optional parameters
|
|
282
212
|
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
283
|
-
def
|
|
213
|
+
def read_with_http_info(task_href, opts = {})
|
|
284
214
|
if @api_client.config.debugging
|
|
285
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
215
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
|
286
216
|
end
|
|
287
217
|
# verify the required parameter 'task_href' is set
|
|
288
218
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
289
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
219
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
|
290
220
|
end
|
|
291
221
|
# resource path
|
|
292
222
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
@@ -322,7 +252,77 @@ module PulpcoreClient
|
|
|
322
252
|
|
|
323
253
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
324
254
|
if @api_client.config.debugging
|
|
325
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
255
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
256
|
+
end
|
|
257
|
+
return data, status_code, headers
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Cancel a task
|
|
261
|
+
# This operation cancels a task.
|
|
262
|
+
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
263
|
+
# @param data [TaskCancel]
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [Task]
|
|
266
|
+
def tasks_cancel(task_href, data, opts = {})
|
|
267
|
+
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, data, opts)
|
|
268
|
+
data
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Cancel a task
|
|
272
|
+
# This operation cancels a task.
|
|
273
|
+
# @param task_href [String] URI of Task. e.g.: /pulp/api/v3/tasks/1/
|
|
274
|
+
# @param data [TaskCancel]
|
|
275
|
+
# @param [Hash] opts the optional parameters
|
|
276
|
+
# @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers
|
|
277
|
+
def tasks_cancel_with_http_info(task_href, data, opts = {})
|
|
278
|
+
if @api_client.config.debugging
|
|
279
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
|
280
|
+
end
|
|
281
|
+
# verify the required parameter 'task_href' is set
|
|
282
|
+
if @api_client.config.client_side_validation && task_href.nil?
|
|
283
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
|
284
|
+
end
|
|
285
|
+
# verify the required parameter 'data' is set
|
|
286
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
287
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
|
|
288
|
+
end
|
|
289
|
+
# resource path
|
|
290
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
|
|
291
|
+
|
|
292
|
+
# query parameters
|
|
293
|
+
query_params = opts[:query_params] || {}
|
|
294
|
+
|
|
295
|
+
# header parameters
|
|
296
|
+
header_params = opts[:header_params] || {}
|
|
297
|
+
# HTTP header 'Accept' (if needed)
|
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
299
|
+
# HTTP header 'Content-Type'
|
|
300
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
301
|
+
|
|
302
|
+
# form parameters
|
|
303
|
+
form_params = opts[:form_params] || {}
|
|
304
|
+
|
|
305
|
+
# http body (model)
|
|
306
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
|
307
|
+
|
|
308
|
+
# return_type
|
|
309
|
+
return_type = opts[:return_type] || 'Task'
|
|
310
|
+
|
|
311
|
+
# auth_names
|
|
312
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
313
|
+
|
|
314
|
+
new_options = opts.merge(
|
|
315
|
+
:header_params => header_params,
|
|
316
|
+
:query_params => query_params,
|
|
317
|
+
:form_params => form_params,
|
|
318
|
+
:body => post_body,
|
|
319
|
+
:auth_names => auth_names,
|
|
320
|
+
:return_type => return_type
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
326
326
|
end
|
|
327
327
|
return data, status_code, headers
|
|
328
328
|
end
|