pulpcore_client 3.0.0rc3 → 3.0.0rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/Artifact.md +1 -3
  4. data/docs/ArtifactsApi.md +1 -3
  5. data/docs/UploadChunkDetail.md +19 -0
  6. data/docs/UploadDetail.md +25 -0
  7. data/docs/UploadsApi.md +12 -20
  8. data/lib/pulpcore_client/api/artifacts_api.rb +4 -7
  9. data/lib/pulpcore_client/api/orphans_api.rb +2 -2
  10. data/lib/pulpcore_client/api/repositories_api.rb +6 -6
  11. data/lib/pulpcore_client/api/repositories_versions_api.rb +6 -6
  12. data/lib/pulpcore_client/api/status_api.rb +2 -2
  13. data/lib/pulpcore_client/api/tasks_api.rb +5 -5
  14. data/lib/pulpcore_client/api/uploads_api.rb +22 -33
  15. data/lib/pulpcore_client/api/workers_api.rb +3 -3
  16. data/lib/pulpcore_client/api_client.rb +41 -27
  17. data/lib/pulpcore_client/api_error.rb +1 -1
  18. data/lib/pulpcore_client/configuration.rb +2 -5
  19. data/lib/pulpcore_client/models/artifact.rb +5 -15
  20. data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
  21. data/lib/pulpcore_client/models/content_app_status.rb +1 -1
  22. data/lib/pulpcore_client/models/database_connection.rb +1 -1
  23. data/lib/pulpcore_client/models/inline_response200.rb +1 -1
  24. data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
  25. data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
  26. data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
  27. data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
  28. data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
  29. data/lib/pulpcore_client/models/progress_report.rb +1 -1
  30. data/lib/pulpcore_client/models/redis_connection.rb +1 -1
  31. data/lib/pulpcore_client/models/repository.rb +1 -1
  32. data/lib/pulpcore_client/models/repository_version.rb +1 -1
  33. data/lib/pulpcore_client/models/repository_version_create.rb +1 -1
  34. data/lib/pulpcore_client/models/status.rb +1 -1
  35. data/lib/pulpcore_client/models/task.rb +1 -1
  36. data/lib/pulpcore_client/models/task_cancel.rb +1 -1
  37. data/lib/pulpcore_client/models/upload.rb +1 -1
  38. data/lib/pulpcore_client/models/upload_chunk_detail.rb +271 -0
  39. data/lib/pulpcore_client/models/upload_commit.rb +1 -1
  40. data/lib/pulpcore_client/models/upload_detail.rb +242 -0
  41. data/lib/pulpcore_client/models/version.rb +1 -1
  42. data/lib/pulpcore_client/models/worker.rb +1 -1
  43. data/lib/pulpcore_client/version.rb +2 -2
  44. data/lib/pulpcore_client.rb +3 -1
  45. data/pulpcore_client.gemspec +3 -7
  46. data/spec/api/artifacts_api_spec.rb +1 -2
  47. data/spec/api/orphans_api_spec.rb +1 -1
  48. data/spec/api/repositories_api_spec.rb +1 -1
  49. data/spec/api/repositories_versions_api_spec.rb +1 -1
  50. data/spec/api/status_api_spec.rb +1 -1
  51. data/spec/api/tasks_api_spec.rb +1 -1
  52. data/spec/api/uploads_api_spec.rb +5 -10
  53. data/spec/api/workers_api_spec.rb +1 -1
  54. data/spec/api_client_spec.rb +1 -1
  55. data/spec/configuration_spec.rb +1 -1
  56. data/spec/models/artifact_spec.rb +1 -7
  57. data/spec/models/async_operation_response_spec.rb +1 -1
  58. data/spec/models/content_app_status_spec.rb +1 -1
  59. data/spec/models/database_connection_spec.rb +1 -1
  60. data/spec/models/inline_response2001_spec.rb +1 -1
  61. data/spec/models/inline_response2002_spec.rb +1 -1
  62. data/spec/models/inline_response2003_spec.rb +1 -1
  63. data/spec/models/inline_response2004_spec.rb +1 -1
  64. data/spec/models/inline_response2005_spec.rb +1 -1
  65. data/spec/models/inline_response200_spec.rb +1 -1
  66. data/spec/models/progress_report_spec.rb +1 -1
  67. data/spec/models/redis_connection_spec.rb +1 -1
  68. data/spec/models/repository_spec.rb +1 -1
  69. data/spec/models/repository_version_create_spec.rb +1 -1
  70. data/spec/models/repository_version_spec.rb +1 -1
  71. data/spec/models/status_spec.rb +1 -1
  72. data/spec/models/task_cancel_spec.rb +1 -1
  73. data/spec/models/task_spec.rb +1 -1
  74. data/spec/models/upload_chunk_detail_spec.rb +47 -0
  75. data/spec/models/upload_commit_spec.rb +1 -1
  76. data/spec/models/upload_detail_spec.rb +65 -0
  77. data/spec/models/upload_spec.rb +1 -1
  78. data/spec/models/version_spec.rb +1 -1
  79. data/spec/models/worker_spec.rb +1 -1
  80. data/spec/spec_helper.rb +1 -1
  81. metadata +14 -93
  82. data/Gemfile.lock +0 -79
@@ -6,11 +6,11 @@
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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpcoreClient
16
16
  class UploadsApi
@@ -20,22 +20,22 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Finish an Upload
23
- # Commit the upload and mark it as completed.
23
+ # Generates a Task to commit the upload and create an artifact
24
24
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
25
25
  # @param data [UploadCommit]
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [Upload]
27
+ # @return [AsyncOperationResponse]
28
28
  def commit(upload_href, data, opts = {})
29
29
  data, _status_code, _headers = commit_with_http_info(upload_href, data, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Finish an Upload
34
- # Commit the upload and mark it as completed.
34
+ # Generates a Task to commit the upload and create an artifact
35
35
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
36
36
  # @param data [UploadCommit]
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
39
  def commit_with_http_info(upload_href, data, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: UploadsApi.commit ...'
@@ -49,7 +49,7 @@ module PulpcoreClient
49
49
  fail ArgumentError, "Missing the required parameter 'data' when calling UploadsApi.commit"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{upload_href}commit/'.sub('{' + 'upload_href' + '}', upload_href.to_s)
52
+ local_var_path = '{upload_href}commit/'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s)).gsub('%2F', '/')
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -68,7 +68,7 @@ module PulpcoreClient
68
68
  post_body = opts[:body] || @api_client.object_to_http_body(data)
69
69
 
70
70
  # return_type
71
- return_type = opts[:return_type] || 'Upload'
71
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
72
72
 
73
73
  # auth_names
74
74
  auth_names = opts[:auth_names] || ['Basic']
@@ -82,7 +82,7 @@ module PulpcoreClient
82
82
  :return_type => return_type
83
83
  )
84
84
 
85
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
86
  if @api_client.config.debugging
87
87
  @api_client.config.logger.debug "API called: UploadsApi#commit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
88
  end
@@ -177,7 +177,7 @@ module PulpcoreClient
177
177
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.delete"
178
178
  end
179
179
  # resource path
180
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
180
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s)).gsub('%2F', '/')
181
181
 
182
182
  # query parameters
183
183
  query_params = opts[:query_params] || {}
@@ -216,12 +216,6 @@ module PulpcoreClient
216
216
  # List uploads
217
217
  # View for chunked uploads.
218
218
  # @param [Hash] opts the optional parameters
219
- # @option opts [String] :completed__lt Filter results where completed is less than value
220
- # @option opts [String] :completed__lte Filter results where completed is less than or equal to value
221
- # @option opts [String] :completed__gt Filter results where completed is greater than value
222
- # @option opts [String] :completed__gte Filter results where completed is greater than or equal to value
223
- # @option opts [String] :completed__range Filter results where completed is between two comma separated values
224
- # @option opts [String] :completed__isnull Filter results where completed has a null value
225
219
  # @option opts [String] :completed ISO 8601 formatted dates are supported
226
220
  # @option opts [Integer] :page A page number within the paginated result set.
227
221
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -234,12 +228,6 @@ module PulpcoreClient
234
228
  # List uploads
235
229
  # View for chunked uploads.
236
230
  # @param [Hash] opts the optional parameters
237
- # @option opts [String] :completed__lt Filter results where completed is less than value
238
- # @option opts [String] :completed__lte Filter results where completed is less than or equal to value
239
- # @option opts [String] :completed__gt Filter results where completed is greater than value
240
- # @option opts [String] :completed__gte Filter results where completed is greater than or equal to value
241
- # @option opts [String] :completed__range Filter results where completed is between two comma separated values
242
- # @option opts [String] :completed__isnull Filter results where completed has a null value
243
231
  # @option opts [String] :completed ISO 8601 formatted dates are supported
244
232
  # @option opts [Integer] :page A page number within the paginated result set.
245
233
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -253,12 +241,6 @@ module PulpcoreClient
253
241
 
254
242
  # query parameters
255
243
  query_params = opts[:query_params] || {}
256
- query_params[:'completed__lt'] = opts[:'completed__lt'] if !opts[:'completed__lt'].nil?
257
- query_params[:'completed__lte'] = opts[:'completed__lte'] if !opts[:'completed__lte'].nil?
258
- query_params[:'completed__gt'] = opts[:'completed__gt'] if !opts[:'completed__gt'].nil?
259
- query_params[:'completed__gte'] = opts[:'completed__gte'] if !opts[:'completed__gte'].nil?
260
- query_params[:'completed__range'] = opts[:'completed__range'] if !opts[:'completed__range'].nil?
261
- query_params[:'completed__isnull'] = opts[:'completed__isnull'] if !opts[:'completed__isnull'].nil?
262
244
  query_params[:'completed'] = opts[:'completed'] if !opts[:'completed'].nil?
263
245
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
264
246
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
@@ -300,7 +282,7 @@ module PulpcoreClient
300
282
  # View for chunked uploads.
301
283
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
302
284
  # @param [Hash] opts the optional parameters
303
- # @return [Upload]
285
+ # @return [UploadDetail]
304
286
  def read(upload_href, opts = {})
305
287
  data, _status_code, _headers = read_with_http_info(upload_href, opts)
306
288
  data
@@ -310,7 +292,7 @@ module PulpcoreClient
310
292
  # View for chunked uploads.
311
293
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
312
294
  # @param [Hash] opts the optional parameters
313
- # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
295
+ # @return [Array<(UploadDetail, Integer, Hash)>] UploadDetail data, response status code and response headers
314
296
  def read_with_http_info(upload_href, opts = {})
315
297
  if @api_client.config.debugging
316
298
  @api_client.config.logger.debug 'Calling API: UploadsApi.read ...'
@@ -320,7 +302,7 @@ module PulpcoreClient
320
302
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.read"
321
303
  end
322
304
  # resource path
323
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
305
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s)).gsub('%2F', '/')
324
306
 
325
307
  # query parameters
326
308
  query_params = opts[:query_params] || {}
@@ -337,7 +319,7 @@ module PulpcoreClient
337
319
  post_body = opts[:body]
338
320
 
339
321
  # return_type
340
- return_type = opts[:return_type] || 'Upload'
322
+ return_type = opts[:return_type] || 'UploadDetail'
341
323
 
342
324
  # auth_names
343
325
  auth_names = opts[:auth_names] || ['Basic']
@@ -364,6 +346,7 @@ module PulpcoreClient
364
346
  # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
365
347
  # @param file [File] A chunk of the uploaded file.
366
348
  # @param [Hash] opts the optional parameters
349
+ # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
367
350
  # @return [Upload]
368
351
  def update(upload_href, content_range, file, opts = {})
369
352
  data, _status_code, _headers = update_with_http_info(upload_href, content_range, file, opts)
@@ -376,6 +359,7 @@ module PulpcoreClient
376
359
  # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
377
360
  # @param file [File] A chunk of the uploaded file.
378
361
  # @param [Hash] opts the optional parameters
362
+ # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
379
363
  # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
380
364
  def update_with_http_info(upload_href, content_range, file, opts = {})
381
365
  if @api_client.config.debugging
@@ -398,8 +382,12 @@ module PulpcoreClient
398
382
  if @api_client.config.client_side_validation && file.nil?
399
383
  fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.update"
400
384
  end
385
+ if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
386
+ fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling UploadsApi.update, the character length must be great than or equal to 1.'
387
+ end
388
+
401
389
  # resource path
402
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
390
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s)).gsub('%2F', '/')
403
391
 
404
392
  # query parameters
405
393
  query_params = opts[:query_params] || {}
@@ -415,6 +403,7 @@ module PulpcoreClient
415
403
  # form parameters
416
404
  form_params = opts[:form_params] || {}
417
405
  form_params['file'] = file
406
+ form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
418
407
 
419
408
  # http body (model)
420
409
  post_body = opts[:body]
@@ -6,11 +6,11 @@
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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'cgi'
14
14
 
15
15
  module PulpcoreClient
16
16
  class WorkersApi
@@ -131,7 +131,7 @@ module PulpcoreClient
131
131
  fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.read"
132
132
  end
133
133
  # resource path
134
- local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', worker_href.to_s)
134
+ local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', CGI.escape(worker_href.to_s)).gsub('%2F', '/')
135
135
 
136
136
  # query parameters
137
137
  query_params = opts[:query_params] || {}
@@ -6,16 +6,15 @@
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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'faraday'
14
15
  require 'json'
15
16
  require 'logger'
16
17
  require 'tempfile'
17
- require 'typhoeus'
18
- require 'uri'
19
18
 
20
19
  module PulpcoreClient
21
20
  class ApiClient
@@ -47,26 +46,37 @@ module PulpcoreClient
47
46
  # @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
48
47
  # the data deserialized from response body (could be nil), response status code and response headers.
49
48
  def call_api(http_method, path, opts = {})
50
- request = build_request(http_method, path, opts)
51
- response = request.run
52
-
53
- if @config.debugging
54
- @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
49
+ connection = Faraday.new(:url => config.base_url) do |conn|
50
+ conn.basic_auth(config.username, config.password)
51
+ if opts[:header_params]["Content-Type"] == "multipart/form-data"
52
+ conn.request :multipart
53
+ conn.request :url_encoded
54
+ end
55
+ conn.adapter(Faraday.default_adapter)
55
56
  end
57
+ begin
58
+ response = connection.public_send(http_method.to_sym.downcase) do |req|
59
+ build_request(http_method, path, req, opts)
60
+ end
61
+
62
+ if @config.debugging
63
+ @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
64
+ end
56
65
 
57
- unless response.success?
58
- if response.timed_out?
66
+ unless response.success?
67
+ if response.status == 0
68
+ # Errors from libcurl will be made visible here
69
+ fail ApiError.new(:code => 0,
70
+ :message => response.return_message)
71
+ else
72
+ fail ApiError.new(:code => response.status,
73
+ :response_headers => response.headers,
74
+ :response_body => response.body),
75
+ response.reason_phrase
76
+ end
77
+ end
78
+ rescue Faraday::TimeoutError
59
79
  fail ApiError.new('Connection timed out')
60
- elsif response.code == 0
61
- # Errors from libcurl will be made visible here
62
- fail ApiError.new(:code => 0,
63
- :message => response.return_message)
64
- else
65
- fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
67
- :response_body => response.body),
68
- response.status_message
69
- end
70
80
  end
71
81
 
72
82
  if opts[:return_type]
@@ -74,7 +84,7 @@ module PulpcoreClient
74
84
  else
75
85
  data = nil
76
86
  end
77
- return data, response.code, response.headers
87
+ return data, response.status, response.headers
78
88
  end
79
89
 
80
90
  # Builds the HTTP request
@@ -86,7 +96,7 @@ module PulpcoreClient
86
96
  # @option opts [Hash] :form_params Query parameters
87
97
  # @option opts [Object] :body HTTP body (JSON/XML)
88
98
  # @return [Typhoeus::Request] A Typhoeus Request
89
- def build_request(http_method, path, opts = {})
99
+ def build_request(http_method, path, request, opts = {})
90
100
  url = build_request_url(path)
91
101
  http_method = http_method.to_sym.downcase
92
102
 
@@ -122,8 +132,10 @@ module PulpcoreClient
122
132
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
123
133
  end
124
134
  end
125
-
126
- request = Typhoeus::Request.new(url, req_opts)
135
+ request.headers = header_params
136
+ request.body = req_body
137
+ request.params = query_params
138
+ request.url path
127
139
  download_file(request) if opts[:return_type] == 'File'
128
140
  request
129
141
  end
@@ -262,7 +274,7 @@ module PulpcoreClient
262
274
  def build_request_url(path)
263
275
  # Add leading and trailing slashes to path
264
276
  path = "/#{path}".gsub(/\/+/, '/')
265
- URI.encode(@config.base_url + path)
277
+ @config.base_url + path
266
278
  end
267
279
 
268
280
  # Builds the HTTP request body
@@ -278,8 +290,10 @@ module PulpcoreClient
278
290
  data = {}
279
291
  form_params.each do |key, value|
280
292
  case value
281
- when ::File, ::Array, nil
282
- # let typhoeus handle File, Array and nil parameters
293
+ when ::File, ::Tempfile
294
+ data[key] = Faraday::UploadIO.new(value.path, '')
295
+ when ::Array, nil
296
+ # let Faraday handle Array and nil parameters
283
297
  data[key] = value
284
298
  else
285
299
  data[key] = value.to_s
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -6,12 +6,10 @@
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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
14
-
15
13
  module PulpcoreClient
16
14
  class Configuration
17
15
  # Defines url scheme
@@ -174,8 +172,7 @@ module PulpcoreClient
174
172
  end
175
173
 
176
174
  def base_url
177
- url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
175
+ "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
179
176
  end
180
177
 
181
178
  # Gets API key (with prefix if set).
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -43,9 +43,6 @@ module PulpcoreClient
43
43
  # The SHA-512 checksum of the file if available.
44
44
  attr_accessor :sha512
45
45
 
46
- # An href for an Upload.
47
- attr_accessor :upload
48
-
49
46
  # Attribute mapping from ruby-style variable name to JSON key.
50
47
  def self.attribute_map
51
48
  {
@@ -58,8 +55,7 @@ module PulpcoreClient
58
55
  :'sha224' => :'sha224',
59
56
  :'sha256' => :'sha256',
60
57
  :'sha384' => :'sha384',
61
- :'sha512' => :'sha512',
62
- :'upload' => :'upload'
58
+ :'sha512' => :'sha512'
63
59
  }
64
60
  end
65
61
 
@@ -75,8 +71,7 @@ module PulpcoreClient
75
71
  :'sha224' => :'String',
76
72
  :'sha256' => :'String',
77
73
  :'sha384' => :'String',
78
- :'sha512' => :'String',
79
- :'upload' => :'String'
74
+ :'sha512' => :'String'
80
75
  }
81
76
  end
82
77
 
@@ -134,10 +129,6 @@ module PulpcoreClient
134
129
  if attributes.key?(:'sha512')
135
130
  self.sha512 = attributes[:'sha512']
136
131
  end
137
-
138
- if attributes.key?(:'upload')
139
- self.upload = attributes[:'upload']
140
- end
141
132
  end
142
133
 
143
134
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -257,8 +248,7 @@ module PulpcoreClient
257
248
  sha224 == o.sha224 &&
258
249
  sha256 == o.sha256 &&
259
250
  sha384 == o.sha384 &&
260
- sha512 == o.sha512 &&
261
- upload == o.upload
251
+ sha512 == o.sha512
262
252
  end
263
253
 
264
254
  # @see the `==` method
@@ -270,7 +260,7 @@ module PulpcoreClient
270
260
  # Calculates hash code according to all attributes.
271
261
  # @return [Integer] Hash code
272
262
  def hash
273
- [_href, _created, file, size, md5, sha1, sha224, sha256, sha384, sha512, upload].hash
263
+ [_href, _created, file, size, md5, sha1, sha224, sha256, sha384, sha512].hash
274
264
  end
275
265
 
276
266
  # Builds the object from hash
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12
 
@@ -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.0
9
+ OpenAPI Generator version: 4.0.2
10
10
 
11
11
  =end
12
12