pulpcore_client 3.0.0rc3 → 3.0.0rc4

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.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16359ad9890fdd6e41e68011bd96954f90c7072a95383202d47dbcb685f968ce
4
- data.tar.gz: 9302da06dca18722b272a8bbd6b6d4f9041e8d3e71df1d7a2c7ade739ab8536e
3
+ metadata.gz: b07d51c2036e977f46107e1e39e9cad91f71ffef9584d4fc5e478747e110848c
4
+ data.tar.gz: 28d73d2f792f76e89861c0070d9d4ebb30865fcc13d59f782fc508084465845d
5
5
  SHA512:
6
- metadata.gz: 18ff04a45988db2388563d70e40e961c18b35758eb31a04b0b5c8671ee1b03f3bcab16a0574d35aae504129b7f0b114474937ee385978d9a2ec48fd33cb6f7bb
7
- data.tar.gz: ebf3b528af9a56a57ee4159d426b0eb20a9ea07076c5bbd0c1a81b4ecb0f24b1254a660a0062b85e1290965bb27e27f81c4b01f43d8b397351d479b9cc63e7c4
6
+ metadata.gz: 6f2a320119e6cc241af01aa85f222685c3bd3adb53a3ce8079991ffda41f26d3a266e7a6ebf0517b45ce133bf3ba1efbf440a5be7a4bf03fab61d5174201f072
7
+ data.tar.gz: 8304f53e157b4a3955ed6025e9252256bb9a13d2f8ccd28944d1cf323c807ca45ce8cc10b7ce4a56197e79d900a15b2bd9d7a8f98a1ed850f1f3e670b7700f2d
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.0rc3
10
+ - Package version: 3.0.0rc4
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.0rc3.gem
26
+ gem install ./pulpcore_client-3.0.0rc4.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulpcore_client-3.0.0rc3.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulpcore_client-3.0.0rc4.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.0rc3'
35
+ gem 'pulpcore_client', '~> 3.0.0rc4'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -59,8 +59,8 @@ require 'pulpcore_client'
59
59
  # Setup authorization
60
60
  PulpcoreClient.configure do |config|
61
61
  # Configure HTTP basic authorization: Basic
62
- config.username = 'YOUR USERNAME'
63
- config.password = 'YOUR PASSWORD'
62
+ config.username = 'YOUR_USERNAME'
63
+ config.password = 'YOUR_PASSWORD'
64
64
  end
65
65
 
66
66
  api_instance = PulpcoreClient::ArtifactsApi.new
@@ -72,8 +72,7 @@ opts = {
72
72
  sha224: 'sha224_example', # String | The SHA-224 checksum of the file if available.
73
73
  sha256: 'sha256_example', # String | The SHA-256 checksum of the file if available.
74
74
  sha384: 'sha384_example', # String | The SHA-384 checksum of the file if available.
75
- sha512: 'sha512_example', # String | The SHA-512 checksum of the file if available.
76
- upload: 'upload_example' # String | An href for an Upload.
75
+ sha512: 'sha512_example' # String | The SHA-512 checksum of the file if available.
77
76
  }
78
77
 
79
78
  begin
@@ -112,7 +111,7 @@ Class | Method | HTTP request | Description
112
111
  *PulpcoreClient::TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
113
112
  *PulpcoreClient::TasksApi* | [**read**](docs/TasksApi.md#read) | **GET** {task_href} | Inspect a task
114
113
  *PulpcoreClient::TasksApi* | [**tasks_cancel**](docs/TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
115
- *PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **PUT** {upload_href}commit/ | Finish an Upload
114
+ *PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
116
115
  *PulpcoreClient::UploadsApi* | [**create**](docs/UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
117
116
  *PulpcoreClient::UploadsApi* | [**delete**](docs/UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
118
117
  *PulpcoreClient::UploadsApi* | [**list**](docs/UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
@@ -143,7 +142,9 @@ Class | Method | HTTP request | Description
143
142
  - [PulpcoreClient::Task](docs/Task.md)
144
143
  - [PulpcoreClient::TaskCancel](docs/TaskCancel.md)
145
144
  - [PulpcoreClient::Upload](docs/Upload.md)
145
+ - [PulpcoreClient::UploadChunkDetail](docs/UploadChunkDetail.md)
146
146
  - [PulpcoreClient::UploadCommit](docs/UploadCommit.md)
147
+ - [PulpcoreClient::UploadDetail](docs/UploadDetail.md)
147
148
  - [PulpcoreClient::Version](docs/Version.md)
148
149
  - [PulpcoreClient::Worker](docs/Worker.md)
149
150
 
data/docs/Artifact.md CHANGED
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
14
14
  **sha256** | **String** | The SHA-256 checksum of the file if available. | [optional]
15
15
  **sha384** | **String** | The SHA-384 checksum of the file if available. | [optional]
16
16
  **sha512** | **String** | The SHA-512 checksum of the file if available. | [optional]
17
- **upload** | **String** | An href for an Upload. | [optional]
18
17
 
19
18
  ## Code Sample
20
19
 
@@ -30,8 +29,7 @@ instance = PulpcoreClient::Artifact.new(_href: null,
30
29
  sha224: null,
31
30
  sha256: null,
32
31
  sha384: null,
33
- sha512: null,
34
- upload: null)
32
+ sha512: null)
35
33
  ```
36
34
 
37
35
 
data/docs/ArtifactsApi.md CHANGED
@@ -38,8 +38,7 @@ opts = {
38
38
  sha224: 'sha224_example', # String | The SHA-224 checksum of the file if available.
39
39
  sha256: 'sha256_example', # String | The SHA-256 checksum of the file if available.
40
40
  sha384: 'sha384_example', # String | The SHA-384 checksum of the file if available.
41
- sha512: 'sha512_example', # String | The SHA-512 checksum of the file if available.
42
- upload: 'upload_example' # String | An href for an Upload.
41
+ sha512: 'sha512_example' # String | The SHA-512 checksum of the file if available.
43
42
  }
44
43
 
45
44
  begin
@@ -64,7 +63,6 @@ Name | Type | Description | Notes
64
63
  **sha256** | **String**| The SHA-256 checksum of the file if available. | [optional]
65
64
  **sha384** | **String**| The SHA-384 checksum of the file if available. | [optional]
66
65
  **sha512** | **String**| The SHA-512 checksum of the file if available. | [optional]
67
- **upload** | **String**| An href for an Upload. | [optional]
68
66
 
69
67
  ### Return type
70
68
 
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::UploadChunkDetail
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **offset** | **Integer** | |
8
+ **size** | **Integer** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::UploadChunkDetail.new(offset: null,
16
+ size: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,25 @@
1
+ # PulpcoreClient::UploadDetail
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **size** | **Integer** | The size of the upload in bytes. |
10
+ **completed** | **DateTime** | Timestamp when upload is committed. | [optional]
11
+ **chunks** | [**Array<UploadChunkDetail>**](UploadChunkDetail.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpcoreClient'
17
+
18
+ instance = PulpcoreClient::UploadDetail.new(_href: null,
19
+ _created: null,
20
+ size: null,
21
+ completed: null,
22
+ chunks: null)
23
+ ```
24
+
25
+
data/docs/UploadsApi.md CHANGED
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**commit**](UploadsApi.md#commit) | **PUT** {upload_href}commit/ | Finish an Upload
7
+ [**commit**](UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
8
8
  [**create**](UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
9
9
  [**delete**](UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
10
10
  [**list**](UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
@@ -15,11 +15,11 @@ Method | HTTP request | Description
15
15
 
16
16
  ## commit
17
17
 
18
- > Upload commit(upload_href, data)
18
+ > AsyncOperationResponse commit(upload_href, data)
19
19
 
20
20
  Finish an Upload
21
21
 
22
- Commit the upload and mark it as completed.
22
+ Generates a Task to commit the upload and create an artifact
23
23
 
24
24
  ### Example
25
25
 
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
56
56
 
57
57
  ### Return type
58
58
 
59
- [**Upload**](Upload.md)
59
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
60
60
 
61
61
  ### Authorization
62
62
 
@@ -195,12 +195,6 @@ end
195
195
 
196
196
  api_instance = PulpcoreClient::UploadsApi.new
197
197
  opts = {
198
- completed__lt: 'completed__lt_example', # String | Filter results where completed is less than value
199
- completed__lte: 'completed__lte_example', # String | Filter results where completed is less than or equal to value
200
- completed__gt: 'completed__gt_example', # String | Filter results where completed is greater than value
201
- completed__gte: 'completed__gte_example', # String | Filter results where completed is greater than or equal to value
202
- completed__range: 'completed__range_example', # String | Filter results where completed is between two comma separated values
203
- completed__isnull: 'completed__isnull_example', # String | Filter results where completed has a null value
204
198
  completed: 'completed_example', # String | ISO 8601 formatted dates are supported
205
199
  page: 56, # Integer | A page number within the paginated result set.
206
200
  page_size: 56 # Integer | Number of results to return per page.
@@ -220,12 +214,6 @@ end
220
214
 
221
215
  Name | Type | Description | Notes
222
216
  ------------- | ------------- | ------------- | -------------
223
- **completed__lt** | **String**| Filter results where completed is less than value | [optional]
224
- **completed__lte** | **String**| Filter results where completed is less than or equal to value | [optional]
225
- **completed__gt** | **String**| Filter results where completed is greater than value | [optional]
226
- **completed__gte** | **String**| Filter results where completed is greater than or equal to value | [optional]
227
- **completed__range** | **String**| Filter results where completed is between two comma separated values | [optional]
228
- **completed__isnull** | **String**| Filter results where completed has a null value | [optional]
229
217
  **completed** | **String**| ISO 8601 formatted dates are supported | [optional]
230
218
  **page** | **Integer**| A page number within the paginated result set. | [optional]
231
219
  **page_size** | **Integer**| Number of results to return per page. | [optional]
@@ -246,7 +234,7 @@ Name | Type | Description | Notes
246
234
 
247
235
  ## read
248
236
 
249
- > Upload read(upload_href)
237
+ > UploadDetail read(upload_href)
250
238
 
251
239
  Inspect an upload
252
240
 
@@ -285,7 +273,7 @@ Name | Type | Description | Notes
285
273
 
286
274
  ### Return type
287
275
 
288
- [**Upload**](Upload.md)
276
+ [**UploadDetail**](UploadDetail.md)
289
277
 
290
278
  ### Authorization
291
279
 
@@ -299,7 +287,7 @@ Name | Type | Description | Notes
299
287
 
300
288
  ## update
301
289
 
302
- > Upload update(upload_href, content_range, file)
290
+ > Upload update(upload_href, content_range, file, opts)
303
291
 
304
292
  Upload a file chunk
305
293
 
@@ -321,10 +309,13 @@ api_instance = PulpcoreClient::UploadsApi.new
321
309
  upload_href = 'upload_href_example' # String | URI of Upload. e.g.: /pulp/api/v3/uploads/1/
322
310
  content_range = 'content_range_example' # String | The Content-Range header specifies the location of the file chunk within the file.
323
311
  file = File.new('/path/to/file') # File | A chunk of the uploaded file.
312
+ opts = {
313
+ sha256: 'sha256_example' # String | The SHA-256 checksum of the chunk if available.
314
+ }
324
315
 
325
316
  begin
326
317
  #Upload a file chunk
327
- result = api_instance.update(upload_href, content_range, file)
318
+ result = api_instance.update(upload_href, content_range, file, opts)
328
319
  p result
329
320
  rescue PulpcoreClient::ApiError => e
330
321
  puts "Exception when calling UploadsApi->update: #{e}"
@@ -339,6 +330,7 @@ Name | Type | Description | Notes
339
330
  **upload_href** | **String**| URI of Upload. e.g.: /pulp/api/v3/uploads/1/ |
340
331
  **content_range** | **String**| The Content-Range header specifies the location of the file chunk within the file. |
341
332
  **file** | **File**| A chunk of the uploaded file. |
333
+ **sha256** | **String**| The SHA-256 checksum of the chunk if available. | [optional]
342
334
 
343
335
  ### Return type
344
336
 
@@ -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 ArtifactsApi
@@ -29,7 +29,6 @@ module PulpcoreClient
29
29
  # @option opts [String] :sha256 The SHA-256 checksum of the file if available.
30
30
  # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
31
31
  # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
32
- # @option opts [String] :upload An href for an Upload.
33
32
  # @return [Artifact]
34
33
  def create(opts = {})
35
34
  data, _status_code, _headers = create_with_http_info(opts)
@@ -46,7 +45,6 @@ module PulpcoreClient
46
45
  # @option opts [String] :sha256 The SHA-256 checksum of the file if available.
47
46
  # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
48
47
  # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
49
- # @option opts [String] :upload An href for an Upload.
50
48
  # @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
51
49
  def create_with_http_info(opts = {})
52
50
  if @api_client.config.debugging
@@ -99,7 +97,6 @@ module PulpcoreClient
99
97
  form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
100
98
  form_params['sha384'] = opts[:'sha384'] if !opts[:'sha384'].nil?
101
99
  form_params['sha512'] = opts[:'sha512'] if !opts[:'sha512'].nil?
102
- form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
103
100
 
104
101
  # http body (model)
105
102
  post_body = opts[:body]
@@ -150,7 +147,7 @@ module PulpcoreClient
150
147
  fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.delete"
151
148
  end
152
149
  # resource path
153
- local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
150
+ local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s)).gsub('%2F', '/')
154
151
 
155
152
  # query parameters
156
153
  query_params = opts[:query_params] || {}
@@ -289,7 +286,7 @@ module PulpcoreClient
289
286
  fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.read"
290
287
  end
291
288
  # resource path
292
- local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
289
+ local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s)).gsub('%2F', '/')
293
290
 
294
291
  # query parameters
295
292
  query_params = opts[:query_params] || {}
@@ -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 OrphansApi
@@ -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 RepositoriesApi
@@ -105,7 +105,7 @@ module PulpcoreClient
105
105
  fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.delete"
106
106
  end
107
107
  # resource path
108
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
108
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
109
109
 
110
110
  # query parameters
111
111
  query_params = opts[:query_params] || {}
@@ -237,7 +237,7 @@ module PulpcoreClient
237
237
  fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.partial_update"
238
238
  end
239
239
  # resource path
240
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
240
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
241
241
 
242
242
  # query parameters
243
243
  query_params = opts[:query_params] || {}
@@ -299,7 +299,7 @@ module PulpcoreClient
299
299
  fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.read"
300
300
  end
301
301
  # resource path
302
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
302
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
303
303
 
304
304
  # query parameters
305
305
  query_params = opts[:query_params] || {}
@@ -367,7 +367,7 @@ module PulpcoreClient
367
367
  fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.update"
368
368
  end
369
369
  # resource path
370
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
370
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
371
371
 
372
372
  # query parameters
373
373
  query_params = opts[:query_params] || {}
@@ -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 RepositoriesVersionsApi
@@ -49,7 +49,7 @@ module PulpcoreClient
49
49
  fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesVersionsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
52
+ local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -113,7 +113,7 @@ module PulpcoreClient
113
113
  fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
116
+ local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s)).gsub('%2F', '/')
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}
@@ -205,7 +205,7 @@ module PulpcoreClient
205
205
  fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesVersionsApi.list"
206
206
  end
207
207
  # resource path
208
- local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
208
+ local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s)).gsub('%2F', '/')
209
209
 
210
210
  # query parameters
211
211
  query_params = opts[:query_params] || {}
@@ -281,7 +281,7 @@ module PulpcoreClient
281
281
  fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesVersionsApi.read"
282
282
  end
283
283
  # resource path
284
- local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
284
+ local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s)).gsub('%2F', '/')
285
285
 
286
286
  # query parameters
287
287
  query_params = opts[:query_params] || {}
@@ -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 StatusApi
@@ -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 TasksApi
@@ -41,7 +41,7 @@ module PulpcoreClient
41
41
  fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
42
42
  end
43
43
  # resource path
44
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
44
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
45
45
 
46
46
  # query parameters
47
47
  query_params = opts[:query_params] || {}
@@ -219,7 +219,7 @@ module PulpcoreClient
219
219
  fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
220
220
  end
221
221
  # resource path
222
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
222
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
223
223
 
224
224
  # query parameters
225
225
  query_params = opts[:query_params] || {}
@@ -287,7 +287,7 @@ module PulpcoreClient
287
287
  fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
288
288
  end
289
289
  # resource path
290
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
290
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s)).gsub('%2F', '/')
291
291
 
292
292
  # query parameters
293
293
  query_params = opts[:query_params] || {}