pulpcore_client 3.0.0rc2.dev.1559921036 → 3.0.0rc2.dev.1559929367

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.

Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +6 -6
  4. data/docs/Worker.md +3 -3
  5. data/lib/pulpcore_client.rb +1 -1
  6. data/lib/pulpcore_client/api/artifacts_api.rb +4 -4
  7. data/lib/pulpcore_client/api/orphans_api.rb +2 -2
  8. data/lib/pulpcore_client/api/repositories_api.rb +10 -10
  9. data/lib/pulpcore_client/api/status_api.rb +2 -2
  10. data/lib/pulpcore_client/api/tasks_api.rb +5 -5
  11. data/lib/pulpcore_client/api/uploads_api.rb +6 -6
  12. data/lib/pulpcore_client/api/workers_api.rb +3 -3
  13. data/lib/pulpcore_client/api_client.rb +3 -2
  14. data/lib/pulpcore_client/api_error.rb +1 -1
  15. data/lib/pulpcore_client/configuration.rb +5 -2
  16. data/lib/pulpcore_client/models/artifact.rb +1 -1
  17. data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
  18. data/lib/pulpcore_client/models/database_connection.rb +1 -1
  19. data/lib/pulpcore_client/models/inline_response200.rb +1 -1
  20. data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
  21. data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
  22. data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
  23. data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
  24. data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
  25. data/lib/pulpcore_client/models/progress_report.rb +1 -1
  26. data/lib/pulpcore_client/models/redis_connection.rb +1 -1
  27. data/lib/pulpcore_client/models/repository.rb +1 -1
  28. data/lib/pulpcore_client/models/repository_version.rb +1 -1
  29. data/lib/pulpcore_client/models/repository_version_create.rb +1 -1
  30. data/lib/pulpcore_client/models/status.rb +1 -1
  31. data/lib/pulpcore_client/models/task.rb +1 -1
  32. data/lib/pulpcore_client/models/task_cancel.rb +1 -1
  33. data/lib/pulpcore_client/models/upload.rb +1 -1
  34. data/lib/pulpcore_client/models/version.rb +1 -1
  35. data/lib/pulpcore_client/models/worker.rb +11 -11
  36. data/lib/pulpcore_client/version.rb +2 -2
  37. data/pulpcore_client.gemspec +1 -1
  38. data/spec/api/artifacts_api_spec.rb +1 -1
  39. data/spec/api/orphans_api_spec.rb +1 -1
  40. data/spec/api/repositories_api_spec.rb +1 -1
  41. data/spec/api/status_api_spec.rb +1 -1
  42. data/spec/api/tasks_api_spec.rb +1 -1
  43. data/spec/api/uploads_api_spec.rb +1 -1
  44. data/spec/api/workers_api_spec.rb +1 -1
  45. data/spec/api_client_spec.rb +1 -1
  46. data/spec/configuration_spec.rb +1 -1
  47. data/spec/models/artifact_spec.rb +1 -1
  48. data/spec/models/async_operation_response_spec.rb +1 -1
  49. data/spec/models/database_connection_spec.rb +1 -1
  50. data/spec/models/inline_response2001_spec.rb +1 -1
  51. data/spec/models/inline_response2002_spec.rb +1 -1
  52. data/spec/models/inline_response2003_spec.rb +1 -1
  53. data/spec/models/inline_response2004_spec.rb +1 -1
  54. data/spec/models/inline_response2005_spec.rb +1 -1
  55. data/spec/models/inline_response200_spec.rb +1 -1
  56. data/spec/models/progress_report_spec.rb +1 -1
  57. data/spec/models/redis_connection_spec.rb +1 -1
  58. data/spec/models/repository_spec.rb +1 -1
  59. data/spec/models/repository_version_create_spec.rb +1 -1
  60. data/spec/models/repository_version_spec.rb +1 -1
  61. data/spec/models/status_spec.rb +1 -1
  62. data/spec/models/task_cancel_spec.rb +1 -1
  63. data/spec/models/task_spec.rb +1 -1
  64. data/spec/models/upload_spec.rb +1 -1
  65. data/spec/models/version_spec.rb +1 -1
  66. data/spec/models/worker_spec.rb +3 -3
  67. data/spec/spec_helper.rb +1 -1
  68. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9de9c4844d0789c9ec69da59588204e1d859e62c76ec90f6e74a4e0b00b6681c
4
- data.tar.gz: 5acf0490ed419d71903e1e9f283f6e6301d40c31f4a2eea82ce8633a4b517659
3
+ metadata.gz: 4c9fae00ddac217bc2abb4aec4a6b5e498d8ccf324574074523aef4d8623950d
4
+ data.tar.gz: 82b813d7dd9c4eca6ba45df4bbb109c789a02729126ec6fcf9f4302099640623
5
5
  SHA512:
6
- metadata.gz: af313841a96231a4a5fdec270d04cffb376cfd013c71d001d110f1a0f1f92bdc47325ff4c3a60cc3eb873204e638607c4b40d414ee1aa538b3388c931ebe50ed
7
- data.tar.gz: cc2f7b05fa924db08fe8223ef5f58278a77b876da94a3f64c70396a004bb96049384ed956a2cea60f10b060ebeee0f326a9aa20c10615c9ee65f25a9d4ce7ec1
6
+ metadata.gz: 8afd42342ab3f9b35e199a8826a24d1de0b975fdebc2e152820186202cd94b647469a606e2b30792ae4a0fad6cc998756fc5d878b8dfe0722c54bb2e37e0ed66
7
+ data.tar.gz: 51ff0d34f8aee6275fdedcaa9a0c03d09f84181182e20fc8f5cc406ac27a5315aa50074e1978f2e2f530a01154723e553400817783c3f851084f27744c2a3550
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pulpcore_client (3.0.0rc2.dev.1559921036)
4
+ pulpcore_client (3.0.0rc2.dev.1559929367)
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.1559921036
10
+ - Package version: 3.0.0rc2.dev.1559929367
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.1559921036.gem
26
+ gem install ./pulpcore_client-3.0.0rc2.dev.1559929367.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1559921036.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulpcore_client-3.0.0rc2.dev.1559929367.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.1559921036'
35
+ gem 'pulpcore_client', '~> 3.0.0rc2.dev.1559929367'
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
data/docs/Worker.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **_created** | **DateTime** | Timestamp of creation. | [optional]
8
7
  **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
9
  **name** | **String** | The name of the worker. | [optional]
10
10
  **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional]
11
11
  **online** | **Boolean** | True if the worker is considered online, otherwise False | [optional]
@@ -16,8 +16,8 @@ Name | Type | Description | Notes
16
16
  ```ruby
17
17
  require 'PulpcoreClient'
18
18
 
19
- instance = PulpcoreClient::Worker.new(_created: null,
20
- _href: null,
19
+ instance = PulpcoreClient::Worker.new(_href: null,
20
+ _created: null,
21
21
  name: null,
22
22
  last_heartbeat: null,
23
23
  online: null,
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
14
14
 
15
15
  module PulpcoreClient
16
16
  class ArtifactsApi
@@ -150,7 +150,7 @@ module PulpcoreClient
150
150
  fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_delete"
151
151
  end
152
152
  # resource path
153
- local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s))
153
+ local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
154
154
 
155
155
  # query parameters
156
156
  query_params = opts[:query_params] || {}
@@ -289,7 +289,7 @@ module PulpcoreClient
289
289
  fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_read"
290
290
  end
291
291
  # resource path
292
- local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', CGI.escape(artifact_href.to_s))
292
+ local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
293
293
 
294
294
  # query parameters
295
295
  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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
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.repositories_delete"
106
106
  end
107
107
  # resource path
108
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
108
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
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.repositories_partial_update"
238
238
  end
239
239
  # resource path
240
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
240
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
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.repositories_read"
300
300
  end
301
301
  # resource path
302
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
302
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
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.repositories_update"
368
368
  end
369
369
  # resource path
370
- local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
370
+ local_var_path = '{repository_href}'.sub('{' + 'repository_href' + '}', repository_href.to_s)
371
371
 
372
372
  # query parameters
373
373
  query_params = opts[:query_params] || {}
@@ -437,7 +437,7 @@ module PulpcoreClient
437
437
  fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesApi.repositories_versions_create"
438
438
  end
439
439
  # resource path
440
- local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
440
+ local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
441
441
 
442
442
  # query parameters
443
443
  query_params = opts[:query_params] || {}
@@ -501,7 +501,7 @@ module PulpcoreClient
501
501
  fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesApi.repositories_versions_delete"
502
502
  end
503
503
  # resource path
504
- local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s))
504
+ local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
505
505
 
506
506
  # query parameters
507
507
  query_params = opts[:query_params] || {}
@@ -593,7 +593,7 @@ module PulpcoreClient
593
593
  fail ArgumentError, "Missing the required parameter 'repository_href' when calling RepositoriesApi.repositories_versions_list"
594
594
  end
595
595
  # resource path
596
- local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', CGI.escape(repository_href.to_s))
596
+ local_var_path = '{repository_href}versions/'.sub('{' + 'repository_href' + '}', repository_href.to_s)
597
597
 
598
598
  # query parameters
599
599
  query_params = opts[:query_params] || {}
@@ -669,7 +669,7 @@ module PulpcoreClient
669
669
  fail ArgumentError, "Missing the required parameter 'repository_version_href' when calling RepositoriesApi.repositories_versions_read"
670
670
  end
671
671
  # resource path
672
- local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', CGI.escape(repository_version_href.to_s))
672
+ local_var_path = '{repository_version_href}'.sub('{' + 'repository_version_href' + '}', repository_version_href.to_s)
673
673
 
674
674
  # query parameters
675
675
  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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
14
14
 
15
15
  module PulpcoreClient
16
16
  class TasksApi
@@ -49,7 +49,7 @@ module PulpcoreClient
49
49
  fail ArgumentError, "Missing the required parameter 'data' when calling TasksApi.tasks_cancel"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s))
52
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -111,7 +111,7 @@ module PulpcoreClient
111
111
  fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_delete"
112
112
  end
113
113
  # resource path
114
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s))
114
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
115
115
 
116
116
  # query parameters
117
117
  query_params = opts[:query_params] || {}
@@ -289,7 +289,7 @@ module PulpcoreClient
289
289
  fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
290
290
  end
291
291
  # resource path
292
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s))
292
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', task_href.to_s)
293
293
 
294
294
  # query parameters
295
295
  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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
14
14
 
15
15
  module PulpcoreClient
16
16
  class UploadsApi
@@ -184,7 +184,7 @@ module PulpcoreClient
184
184
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.uploads_delete"
185
185
  end
186
186
  # resource path
187
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s))
187
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
@@ -254,7 +254,7 @@ module PulpcoreClient
254
254
  end
255
255
 
256
256
  # resource path
257
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s))
257
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
258
258
 
259
259
  # query parameters
260
260
  query_params = opts[:query_params] || {}
@@ -381,7 +381,7 @@ module PulpcoreClient
381
381
  fail ArgumentError, "Missing the required parameter 'upload_href' when calling UploadsApi.uploads_read"
382
382
  end
383
383
  # resource path
384
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s))
384
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
385
385
 
386
386
  # query parameters
387
387
  query_params = opts[:query_params] || {}
@@ -449,7 +449,7 @@ module PulpcoreClient
449
449
  fail ArgumentError, "Missing the required parameter 'file' when calling UploadsApi.uploads_update"
450
450
  end
451
451
  # resource path
452
- local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', CGI.escape(upload_href.to_s))
452
+ local_var_path = '{upload_href}'.sub('{' + 'upload_href' + '}', upload_href.to_s)
453
453
 
454
454
  # query parameters
455
455
  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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
13
+ require 'uri'
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.workers_read"
132
132
  end
133
133
  # resource path
134
- local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', CGI.escape(worker_href.to_s))
134
+ local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', worker_href.to_s)
135
135
 
136
136
  # query parameters
137
137
  query_params = opts[:query_params] || {}
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -15,6 +15,7 @@ require 'json'
15
15
  require 'logger'
16
16
  require 'tempfile'
17
17
  require 'typhoeus'
18
+ require 'uri'
18
19
 
19
20
  module PulpcoreClient
20
21
  class ApiClient
@@ -261,7 +262,7 @@ module PulpcoreClient
261
262
  def build_request_url(path)
262
263
  # Add leading and trailing slashes to path
263
264
  path = "/#{path}".gsub(/\/+/, '/')
264
- @config.base_url + path
265
+ URI.encode(@config.base_url + path)
265
266
  end
266
267
 
267
268
  # Builds the HTTP request body
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -6,10 +6,12 @@
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
+ require 'uri'
14
+
13
15
  module PulpcoreClient
14
16
  class Configuration
15
17
  # Defines url scheme
@@ -172,7 +174,8 @@ module PulpcoreClient
172
174
  end
173
175
 
174
176
  def base_url
175
- "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
177
+ url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
+ URI.encode(url)
176
179
  end
177
180
 
178
181
  # 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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
17
17
  class Worker
18
+ attr_accessor :_href
19
+
18
20
  # Timestamp of creation.
19
21
  attr_accessor :_created
20
22
 
21
- attr_accessor :_href
22
-
23
23
  # The name of the worker.
24
24
  attr_accessor :name
25
25
 
@@ -35,8 +35,8 @@ module PulpcoreClient
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
- :'_created' => :'_created',
39
38
  :'_href' => :'_href',
39
+ :'_created' => :'_created',
40
40
  :'name' => :'name',
41
41
  :'last_heartbeat' => :'last_heartbeat',
42
42
  :'online' => :'online',
@@ -47,8 +47,8 @@ module PulpcoreClient
47
47
  # Attribute type mapping.
48
48
  def self.openapi_types
49
49
  {
50
- :'_created' => :'DateTime',
51
50
  :'_href' => :'String',
51
+ :'_created' => :'DateTime',
52
52
  :'name' => :'String',
53
53
  :'last_heartbeat' => :'DateTime',
54
54
  :'online' => :'Boolean',
@@ -71,14 +71,14 @@ module PulpcoreClient
71
71
  h[k.to_sym] = v
72
72
  }
73
73
 
74
- if attributes.key?(:'_created')
75
- self._created = attributes[:'_created']
76
- end
77
-
78
74
  if attributes.key?(:'_href')
79
75
  self._href = attributes[:'_href']
80
76
  end
81
77
 
78
+ if attributes.key?(:'_created')
79
+ self._created = attributes[:'_created']
80
+ end
81
+
82
82
  if attributes.key?(:'name')
83
83
  self.name = attributes[:'name']
84
84
  end
@@ -129,8 +129,8 @@ module PulpcoreClient
129
129
  def ==(o)
130
130
  return true if self.equal?(o)
131
131
  self.class == o.class &&
132
- _created == o._created &&
133
132
  _href == o._href &&
133
+ _created == o._created &&
134
134
  name == o.name &&
135
135
  last_heartbeat == o.last_heartbeat &&
136
136
  online == o.online &&
@@ -146,7 +146,7 @@ module PulpcoreClient
146
146
  # Calculates hash code according to all attributes.
147
147
  # @return [Integer] Hash code
148
148
  def hash
149
- [_created, _href, name, last_heartbeat, online, missing].hash
149
+ [_href, _created, name, last_heartbeat, online, missing].hash
150
150
  end
151
151
 
152
152
  # Builds the object from hash
@@ -6,10 +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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.0.0rc2.dev.1559921036'
14
+ VERSION = '3.0.0rc2.dev.1559929367'
15
15
  end
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.0.2-SNAPSHOT
11
+ OpenAPI Generator version: 4.0.0
12
12
 
13
13
  =end
14
14
 
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -32,13 +32,13 @@ describe 'Worker' do
32
32
  expect(@instance).to be_instance_of(PulpcoreClient::Worker)
33
33
  end
34
34
  end
35
- describe 'test attribute "_created"' do
35
+ describe 'test attribute "_href"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "_href"' do
41
+ describe 'test attribute "_created"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
data/spec/spec_helper.rb CHANGED
@@ -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.2-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulpcore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0rc2.dev.1559921036
4
+ version: 3.0.0rc2.dev.1559929367
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator