pulpcore_client 3.0.0rc2.dev.1560102015 → 3.0.0rc2.dev.1560174368

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.

Potentially problematic release.


This version of pulpcore_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c1dedcb2408074be60491586883d8567e1d1f64411a32ad1e7959f674cf82ae
4
- data.tar.gz: 131d8a1f8aaeeca05ad4774a44972debbbdd3df3a097c3d956c5b72f4a890b24
3
+ metadata.gz: ebe966d6422fae1e776180fa9be67e6212d48e068a06e7fe23ba64dc6b4cd63a
4
+ data.tar.gz: 6989cec6c210aff85fdbe200557a02dfd9da25ddf76eb9c40e692c4606f9341a
5
5
  SHA512:
6
- metadata.gz: 30d8d6f0ea4dffec8d0a6e6455d32aa2e5f86e8ed4df11d94f5cb132f7903298c12427353d286178248ebfc1e4fae480e7239b376a5464b2f68866b728ac1872
7
- data.tar.gz: 3cf492b6a1a4bb7906d43824fc56823b247001c16717fa412636929ac38848b81d3d43c571c1073ee96ba19189e7cebc401db3b341943ede3761491ee184fb96
6
+ metadata.gz: 14da4ea5a4dd7893558cc7c385088bc943188d48b59e1a7372de2accd0e54bd6c8d18f31dfff5ead69854bfadf3de783a30f22b4ffdc3103a17dbfbaa257de18
7
+ data.tar.gz: 072ae1a13c0c36e1da9cb96c18a0f4a1705cd0f763c3e0403a8acbab2739e67fdaf368b7173eb525465c23ce7448a1d2c17ab84e63dc4848aa857b7bfd339848
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pulpcore_client (3.0.0rc2.dev.1560102015)
4
+ pulpcore_client (3.0.0rc2.dev.1560174368)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.0.0rc2.dev.1560102015
10
+ - Package version: 3.0.0rc2.dev.1560174368
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build pulpcore_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./pulpcore_client-3.0.0rc2.dev.1560102015.gem
26
+ gem install ./pulpcore_client-3.0.0rc2.dev.1560174368.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1560102015.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1560174368.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'pulpcore_client', '~> 3.0.0rc2.dev.1560102015'
35
+ gem 'pulpcore_client', '~> 3.0.0rc2.dev.1560174368'
36
36
 
37
37
  ### Install from Git
38
38
 
data/docs/UploadsApi.md CHANGED
@@ -16,7 +16,7 @@ Method | HTTP request | Description
16
16
 
17
17
  ## uploads_create
18
18
 
19
- > Upload uploads_create(file)
19
+ > Upload uploads_create(content_range, file)
20
20
 
21
21
  Start Upload
22
22
 
@@ -35,11 +35,12 @@ PulpcoreClient.configure do |config|
35
35
  end
36
36
 
37
37
  api_instance = PulpcoreClient::UploadsApi.new
38
+ content_range = 'content_range_example' # String | The Content-Range header specifies the location of the file chunk within the file.
38
39
  file = File.new('/path/to/file') # File | A chunk of a file to upload.
39
40
 
40
41
  begin
41
42
  #Start Upload
42
- result = api_instance.uploads_create(file)
43
+ result = api_instance.uploads_create(content_range, file)
43
44
  p result
44
45
  rescue PulpcoreClient::ApiError => e
45
46
  puts "Exception when calling UploadsApi->uploads_create: #{e}"
@@ -51,6 +52,7 @@ end
51
52
 
52
53
  Name | Type | Description | Notes
53
54
  ------------- | ------------- | ------------- | -------------
55
+ **content_range** | **String**| The Content-Range header specifies the location of the file chunk within the file. |
54
56
  **file** | **File**| A chunk of a file to upload. |
55
57
 
56
58
  ### Return type
@@ -341,7 +343,7 @@ Name | Type | Description | Notes
341
343
 
342
344
  ## uploads_update
343
345
 
344
- > Upload uploads_update(upload_href, file)
346
+ > Upload uploads_update(upload_href, content_range, file)
345
347
 
346
348
  Continue an Upload
347
349
 
@@ -361,11 +363,12 @@ end
361
363
 
362
364
  api_instance = PulpcoreClient::UploadsApi.new
363
365
  upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
366
+ content_range = 'content_range_example' # String | The Content-Range header specifies the location of the file chunk within the file.
364
367
  file = File.new('/path/to/file') # File | A chunk of a file to upload.
365
368
 
366
369
  begin
367
370
  #Continue an Upload
368
- result = api_instance.uploads_update(upload_href, file)
371
+ result = api_instance.uploads_update(upload_href, content_range, file)
369
372
  p result
370
373
  rescue PulpcoreClient::ApiError => e
371
374
  puts "Exception when calling UploadsApi->uploads_update: #{e}"
@@ -378,6 +381,7 @@ end
378
381
  Name | Type | Description | Notes
379
382
  ------------- | ------------- | ------------- | -------------
380
383
  **upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
384
+ **content_range** | **String**| The Content-Range header specifies the location of the file chunk within the file. |
381
385
  **file** | **File**| A chunk of a file to upload. |
382
386
 
383
387
  ### Return type
@@ -21,23 +21,34 @@ module PulpcoreClient
21
21
  end
22
22
  # Start Upload
23
23
  # Start a chunked upload by uploading the first chunk.
24
+ # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
24
25
  # @param file [File] A chunk of a file to upload.
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [Upload]
27
- def uploads_create(file, opts = {})
28
- data, _status_code, _headers = uploads_create_with_http_info(file, opts)
28
+ def uploads_create(content_range, file, opts = {})
29
+ data, _status_code, _headers = uploads_create_with_http_info(content_range, file, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Start Upload
33
34
  # Start a chunked upload by uploading the first chunk.
35
+ # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
34
36
  # @param file [File] A chunk of a file to upload.
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
37
- def uploads_create_with_http_info(file, opts = {})
39
+ def uploads_create_with_http_info(content_range, file, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: UploadsApi.uploads_create ...'
40
42
  end
43
+ # verify the required parameter 'content_range' is set
44
+ if @api_client.config.client_side_validation && content_range.nil?
45
+ fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.uploads_create"
46
+ end
47
+ pattern = Regexp.new(/^bytes (?P<start>\d+)-(?P<end>\d+)\/(?P<total>\d+)$/)
48
+ if @api_client.config.client_side_validation && content_range !~ pattern
49
+ fail ArgumentError, "invalid value for 'content_range' when calling UploadsApi.uploads_create, must conform to the pattern #{pattern}."
50
+ end
51
+
41
52
  # verify the required parameter 'file' is set
42
53
  if @api_client.config.client_side_validation && file.nil?
43
54
  fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.uploads_create"
@@ -54,6 +65,7 @@ module PulpcoreClient
54
65
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
66
  # HTTP header 'Content-Type'
56
67
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
68
+ header_params[:'Content-Range'] = content_range
57
69
 
58
70
  # form parameters
59
71
  form_params = opts[:form_params] || {}
@@ -422,21 +434,23 @@ module PulpcoreClient
422
434
  # Continue an Upload
423
435
  # Continue the upload by uploading the next file chunk.
424
436
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
437
+ # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
425
438
  # @param file [File] A chunk of a file to upload.
426
439
  # @param [Hash] opts the optional parameters
427
440
  # @return [Upload]
428
- def uploads_update(upload_href, file, opts = {})
429
- data, _status_code, _headers = uploads_update_with_http_info(upload_href, file, opts)
441
+ def uploads_update(upload_href, content_range, file, opts = {})
442
+ data, _status_code, _headers = uploads_update_with_http_info(upload_href, content_range, file, opts)
430
443
  data
431
444
  end
432
445
 
433
446
  # Continue an Upload
434
447
  # Continue the upload by uploading the next file chunk.
435
448
  # @param upload_href [String] URI of Upload. e.g.: /pulp/api/v3/uploads/1/
449
+ # @param content_range [String] The Content-Range header specifies the location of the file chunk within the file.
436
450
  # @param file [File] A chunk of a file to upload.
437
451
  # @param [Hash] opts the optional parameters
438
452
  # @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
439
- def uploads_update_with_http_info(upload_href, file, opts = {})
453
+ def uploads_update_with_http_info(upload_href, content_range, file, opts = {})
440
454
  if @api_client.config.debugging
441
455
  @api_client.config.logger.debug 'Calling API: UploadsApi.uploads_update ...'
442
456
  end
@@ -444,6 +458,15 @@ module PulpcoreClient
444
458
  if @api_client.config.client_side_validation && upload_href.nil?
445
459
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.uploads_update"
446
460
  end
461
+ # verify the required parameter 'content_range' is set
462
+ if @api_client.config.client_side_validation && content_range.nil?
463
+ fail ArgumentError, "Missing the required parameter 'content_range' when calling UploadsApi.uploads_update"
464
+ end
465
+ pattern = Regexp.new(/^bytes (?P<start>\d+)-(?P<end>\d+)\/(?P<total>\d+)$/)
466
+ if @api_client.config.client_side_validation && content_range !~ pattern
467
+ fail ArgumentError, "invalid value for 'content_range' when calling UploadsApi.uploads_update, must conform to the pattern #{pattern}."
468
+ end
469
+
447
470
  # verify the required parameter 'file' is set
448
471
  if @api_client.config.client_side_validation && file.nil?
449
472
  fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.uploads_update"
@@ -460,6 +483,7 @@ module PulpcoreClient
460
483
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
461
484
  # HTTP header 'Content-Type'
462
485
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
486
+ header_params[:'Content-Range'] = content_range
463
487
 
464
488
  # form parameters
465
489
  form_params = opts[:form_params] || {}
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.0.0rc2.dev.1560102015'
14
+ VERSION = '3.0.0rc2.dev.1560174368'
15
15
  end
@@ -35,6 +35,7 @@ describe 'UploadsApi' do
35
35
  # unit tests for uploads_create
36
36
  # Start Upload
37
37
  # Start a chunked upload by uploading the first chunk.
38
+ # @param content_range The Content-Range header specifies the location of the file chunk within the file.
38
39
  # @param file A chunk of a file to upload.
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @return [Upload]
@@ -111,6 +112,7 @@ describe 'UploadsApi' do
111
112
  # Continue an Upload
112
113
  # Continue the upload by uploading the next file chunk.
113
114
  # @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
115
+ # @param content_range The Content-Range header specifies the location of the file chunk within the file.
114
116
  # @param file A chunk of a file to upload.
115
117
  # @param [Hash] opts the optional parameters
116
118
  # @return [Upload]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulpcore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0rc2.dev.1560102015
4
+ version: 3.0.0rc2.dev.1560174368
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-09 00:00:00.000000000 Z
11
+ date: 2019-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus