pulpcore_client 3.0.0rc7 → 3.0.0rc8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -22
  3. data/docs/ArtifactsApi.md +4 -4
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +1 -1
  6. data/docs/InlineResponse2003.md +1 -1
  7. data/docs/Status.md +3 -1
  8. data/docs/Storage.md +21 -0
  9. data/docs/TasksApi.md +2 -2
  10. data/docs/UploadsApi.md +2 -2
  11. data/docs/WorkersApi.md +2 -2
  12. data/lib/pulpcore_client/api/artifacts_api.rb +11 -7
  13. data/lib/pulpcore_client/api/orphans_api.rb +1 -1
  14. data/lib/pulpcore_client/api/status_api.rb +1 -1
  15. data/lib/pulpcore_client/api/tasks_api.rb +4 -4
  16. data/lib/pulpcore_client/api/uploads_api.rb +4 -4
  17. data/lib/pulpcore_client/api/workers_api.rb +4 -4
  18. data/lib/pulpcore_client/api_client.rb +1 -1
  19. data/lib/pulpcore_client/api_error.rb +1 -1
  20. data/lib/pulpcore_client/configuration.rb +1 -1
  21. data/lib/pulpcore_client/models/artifact.rb +18 -2
  22. data/lib/pulpcore_client/models/async_operation_response.rb +12 -2
  23. data/lib/pulpcore_client/models/content_app_status.rb +12 -2
  24. data/lib/pulpcore_client/models/database_connection.rb +12 -2
  25. data/lib/pulpcore_client/models/inline_response200.rb +14 -2
  26. data/lib/pulpcore_client/models/inline_response2001.rb +15 -3
  27. data/lib/pulpcore_client/models/inline_response2002.rb +15 -3
  28. data/lib/pulpcore_client/models/inline_response2003.rb +15 -3
  29. data/lib/pulpcore_client/models/progress_report.rb +13 -2
  30. data/lib/pulpcore_client/models/redis_connection.rb +12 -2
  31. data/lib/pulpcore_client/models/status.rb +25 -6
  32. data/lib/pulpcore_client/models/{inline_response2004.rb → storage.rb} +106 -41
  33. data/lib/pulpcore_client/models/task.rb +12 -2
  34. data/lib/pulpcore_client/models/task_cancel.rb +12 -2
  35. data/lib/pulpcore_client/models/upload.rb +12 -2
  36. data/lib/pulpcore_client/models/upload_chunk.rb +13 -2
  37. data/lib/pulpcore_client/models/upload_commit.rb +12 -2
  38. data/lib/pulpcore_client/models/upload_detail.rb +12 -2
  39. data/lib/pulpcore_client/models/version.rb +12 -2
  40. data/lib/pulpcore_client/models/worker.rb +12 -2
  41. data/lib/pulpcore_client/version.rb +2 -2
  42. data/lib/pulpcore_client.rb +2 -9
  43. data/pulpcore_client.gemspec +1 -1
  44. data/spec/api/artifacts_api_spec.rb +2 -2
  45. data/spec/api/orphans_api_spec.rb +1 -1
  46. data/spec/api/status_api_spec.rb +1 -1
  47. data/spec/api/tasks_api_spec.rb +2 -2
  48. data/spec/api/uploads_api_spec.rb +2 -2
  49. data/spec/api/workers_api_spec.rb +2 -2
  50. data/spec/api_client_spec.rb +1 -1
  51. data/spec/configuration_spec.rb +1 -1
  52. data/spec/models/artifact_spec.rb +1 -1
  53. data/spec/models/async_operation_response_spec.rb +1 -1
  54. data/spec/models/content_app_status_spec.rb +1 -1
  55. data/spec/models/database_connection_spec.rb +1 -1
  56. data/spec/models/inline_response2001_spec.rb +1 -1
  57. data/spec/models/inline_response2002_spec.rb +1 -1
  58. data/spec/models/inline_response2003_spec.rb +1 -1
  59. data/spec/models/inline_response200_spec.rb +1 -1
  60. data/spec/models/progress_report_spec.rb +1 -1
  61. data/spec/models/redis_connection_spec.rb +1 -1
  62. data/spec/models/status_spec.rb +7 -1
  63. data/spec/models/{content_summary_spec.rb → storage_spec.rb} +10 -10
  64. data/spec/models/task_cancel_spec.rb +1 -1
  65. data/spec/models/task_spec.rb +1 -1
  66. data/spec/models/upload_chunk_spec.rb +1 -1
  67. data/spec/models/upload_commit_spec.rb +1 -1
  68. data/spec/models/upload_detail_spec.rb +1 -1
  69. data/spec/models/upload_spec.rb +1 -1
  70. data/spec/models/version_spec.rb +1 -1
  71. data/spec/models/worker_spec.rb +1 -1
  72. data/spec/spec_helper.rb +1 -1
  73. metadata +6 -34
  74. data/docs/ContentSummary.md +0 -21
  75. data/docs/InlineResponse2004.md +0 -23
  76. data/docs/InlineResponse2005.md +0 -23
  77. data/docs/RepositoriesApi.md +0 -346
  78. data/docs/RepositoriesVersionsApi.md +0 -266
  79. data/docs/Repository.md +0 -29
  80. data/docs/RepositoryVersion.md +0 -25
  81. data/docs/RepositoryVersionCreate.md +0 -21
  82. data/lib/pulpcore_client/api/repositories_api.rb +0 -422
  83. data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -334
  84. data/lib/pulpcore_client/models/content_summary.rb +0 -236
  85. data/lib/pulpcore_client/models/inline_response2005.rb +0 -235
  86. data/lib/pulpcore_client/models/repository.rb +0 -293
  87. data/lib/pulpcore_client/models/repository_version.rb +0 -234
  88. data/lib/pulpcore_client/models/repository_version_create.rb +0 -221
  89. data/spec/api/repositories_api_spec.rb +0 -112
  90. data/spec/api/repositories_versions_api_spec.rb +0 -102
  91. data/spec/models/inline_response2004_spec.rb +0 -59
  92. data/spec/models/inline_response2005_spec.rb +0 -59
  93. data/spec/models/repository_spec.rb +0 -77
  94. data/spec/models/repository_version_create_spec.rb +0 -53
  95. data/spec/models/repository_version_spec.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 380fd5cd051a0d846251486118cfed3db8f586da88b355efc34c641b92196260
4
- data.tar.gz: 55b11be77ed7a1a9638494ad02eb62a53a6dfbf87b60e429e12cea9c2f6c0353
3
+ metadata.gz: 66ec5463cac7e6c0b66ca80234fae0a86ac54f849b7cadb7d18e56efd974b644
4
+ data.tar.gz: e6d7d315c9adf25db2b926e6e76cfe6dcf227aab4ed9a96e0db5d87d90091a46
5
5
  SHA512:
6
- metadata.gz: 9401040b94b4bc897135519404f04847e2e848175916f60c96dbb665878867dd8cf498485d2db8989365c737d33fa804ca7f1d608d67e2d0bef0d183837e510a
7
- data.tar.gz: 212287ae0d4a59940a6ec3b1659272b211e6b3b680746b2cde84dd69238a346b63b52605d37e839225d80aa9098c530a7c9e117783ce27122b8e276a43fab296
6
+ metadata.gz: 0cdc498920ee6d31c4981b324f2fb4eeef07e3f355c7027942b464c016589a5cee50baa5d9ddd211d78d13c9f7ddb2c052e73d3e54b05d10f35064989b39e285
7
+ data.tar.gz: dd0d09f38d3ecc2bf7326d8225ee909dca5e2d2663dafffdb2dd5232fb30daff88cb9f804ebc2d8517452e6d7485a1d29caa1106a507e6eb411ce8ea1568bf89
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.0rc7
10
+ - Package version: 3.0.0rc8
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.0rc7.gem
26
+ gem install ./pulpcore_client-3.0.0rc8.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./pulpcore_client-3.0.0rc7.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./pulpcore_client-3.0.0rc8.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.0rc7'
35
+ gem 'pulpcore_client', '~> 3.0.0rc8'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -64,8 +64,8 @@ PulpcoreClient.configure do |config|
64
64
  end
65
65
 
66
66
  api_instance = PulpcoreClient::ArtifactsApi.new
67
+ file = File.new('/path/to/file') # File | The stored file.
67
68
  opts = {
68
- file: File.new('/path/to/file'), # File | The stored file.
69
69
  size: 56, # Integer | The size of the file in bytes.
70
70
  md5: 'md5_example', # String | The MD5 checksum of the file if available.
71
71
  sha1: 'sha1_example', # String | The SHA-1 checksum of the file if available.
@@ -77,7 +77,7 @@ opts = {
77
77
 
78
78
  begin
79
79
  #Create an artifact
80
- result = api_instance.create(opts)
80
+ result = api_instance.create(file, opts)
81
81
  p result
82
82
  rescue PulpcoreClient::ApiError => e
83
83
  puts "Exception when calling ArtifactsApi->create: #{e}"
@@ -96,16 +96,6 @@ Class | Method | HTTP request | Description
96
96
  *PulpcoreClient::ArtifactsApi* | [**list**](docs/ArtifactsApi.md#list) | **GET** /pulp/api/v3/artifacts/ | List artifacts
97
97
  *PulpcoreClient::ArtifactsApi* | [**read**](docs/ArtifactsApi.md#read) | **GET** {artifact_href} | Inspect an artifact
98
98
  *PulpcoreClient::OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
99
- *PulpcoreClient::RepositoriesApi* | [**create**](docs/RepositoriesApi.md#create) | **POST** /pulp/api/v3/repositories/ | Create a repository
100
- *PulpcoreClient::RepositoriesApi* | [**delete**](docs/RepositoriesApi.md#delete) | **DELETE** {repository_href} | Delete a repository
101
- *PulpcoreClient::RepositoriesApi* | [**list**](docs/RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
102
- *PulpcoreClient::RepositoriesApi* | [**partial_update**](docs/RepositoriesApi.md#partial_update) | **PATCH** {repository_href} | Partially update a repository
103
- *PulpcoreClient::RepositoriesApi* | [**read**](docs/RepositoriesApi.md#read) | **GET** {repository_href} | Inspect a repository
104
- *PulpcoreClient::RepositoriesApi* | [**update**](docs/RepositoriesApi.md#update) | **PUT** {repository_href} | Update a repository
105
- *PulpcoreClient::RepositoriesVersionsApi* | [**create**](docs/RepositoriesVersionsApi.md#create) | **POST** {repository_href}versions/ | Create a repository version
106
- *PulpcoreClient::RepositoriesVersionsApi* | [**delete**](docs/RepositoriesVersionsApi.md#delete) | **DELETE** {repository_version_href} | Delete a repository version
107
- *PulpcoreClient::RepositoriesVersionsApi* | [**list**](docs/RepositoriesVersionsApi.md#list) | **GET** {repository_href}versions/ | List repository versions
108
- *PulpcoreClient::RepositoriesVersionsApi* | [**read**](docs/RepositoriesVersionsApi.md#read) | **GET** {repository_version_href} | Inspect a repository version
109
99
  *PulpcoreClient::StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
110
100
  *PulpcoreClient::TasksApi* | [**delete**](docs/TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
111
101
  *PulpcoreClient::TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
@@ -126,20 +116,15 @@ Class | Method | HTTP request | Description
126
116
  - [PulpcoreClient::Artifact](docs/Artifact.md)
127
117
  - [PulpcoreClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
128
118
  - [PulpcoreClient::ContentAppStatus](docs/ContentAppStatus.md)
129
- - [PulpcoreClient::ContentSummary](docs/ContentSummary.md)
130
119
  - [PulpcoreClient::DatabaseConnection](docs/DatabaseConnection.md)
131
120
  - [PulpcoreClient::InlineResponse200](docs/InlineResponse200.md)
132
121
  - [PulpcoreClient::InlineResponse2001](docs/InlineResponse2001.md)
133
122
  - [PulpcoreClient::InlineResponse2002](docs/InlineResponse2002.md)
134
123
  - [PulpcoreClient::InlineResponse2003](docs/InlineResponse2003.md)
135
- - [PulpcoreClient::InlineResponse2004](docs/InlineResponse2004.md)
136
- - [PulpcoreClient::InlineResponse2005](docs/InlineResponse2005.md)
137
124
  - [PulpcoreClient::ProgressReport](docs/ProgressReport.md)
138
125
  - [PulpcoreClient::RedisConnection](docs/RedisConnection.md)
139
- - [PulpcoreClient::Repository](docs/Repository.md)
140
- - [PulpcoreClient::RepositoryVersion](docs/RepositoryVersion.md)
141
- - [PulpcoreClient::RepositoryVersionCreate](docs/RepositoryVersionCreate.md)
142
126
  - [PulpcoreClient::Status](docs/Status.md)
127
+ - [PulpcoreClient::Storage](docs/Storage.md)
143
128
  - [PulpcoreClient::Task](docs/Task.md)
144
129
  - [PulpcoreClient::TaskCancel](docs/TaskCancel.md)
145
130
  - [PulpcoreClient::Upload](docs/Upload.md)
data/docs/ArtifactsApi.md CHANGED
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  ## create
15
15
 
16
- > Artifact create(opts)
16
+ > Artifact create(file, opts)
17
17
 
18
18
  Create an artifact
19
19
 
@@ -30,8 +30,8 @@ PulpcoreClient.configure do |config|
30
30
  end
31
31
 
32
32
  api_instance = PulpcoreClient::ArtifactsApi.new
33
+ file = File.new('/path/to/file') # File | The stored file.
33
34
  opts = {
34
- file: File.new('/path/to/file'), # File | The stored file.
35
35
  size: 56, # Integer | The size of the file in bytes.
36
36
  md5: 'md5_example', # String | The MD5 checksum of the file if available.
37
37
  sha1: 'sha1_example', # String | The SHA-1 checksum of the file if available.
@@ -43,7 +43,7 @@ opts = {
43
43
 
44
44
  begin
45
45
  #Create an artifact
46
- result = api_instance.create(opts)
46
+ result = api_instance.create(file, opts)
47
47
  p result
48
48
  rescue PulpcoreClient::ApiError => e
49
49
  puts "Exception when calling ArtifactsApi->create: #{e}"
@@ -55,7 +55,7 @@ end
55
55
 
56
56
  Name | Type | Description | Notes
57
57
  ------------- | ------------- | ------------- | -------------
58
- **file** | **File**| The stored file. | [optional]
58
+ **file** | **File**| The stored file. |
59
59
  **size** | **Integer**| The size of the file in bytes. | [optional]
60
60
  **md5** | **String**| The MD5 checksum of the file if available. | [optional]
61
61
  **sha1** | **String**| The SHA-1 checksum of the file if available. | [optional]
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Repository>**](Repository.md) | |
10
+ **results** | [**Array<Task>**](Task.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<RepositoryVersion>**](RepositoryVersion.md) | |
10
+ **results** | [**Array<Upload>**](Upload.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<Task>**](Task.md) | |
10
+ **results** | [**Array<Worker>**](Worker.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
data/docs/Status.md CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **online_content_apps** | [**Array<ContentAppStatus>**](ContentAppStatus.md) | List of online content apps known to the application. An online worker is actively heartbeating |
11
11
  **database_connection** | [**DatabaseConnection**](DatabaseConnection.md) | |
12
12
  **redis_connection** | [**RedisConnection**](RedisConnection.md) | |
13
+ **storage** | [**Storage**](Storage.md) | | [optional]
13
14
 
14
15
  ## Code Sample
15
16
 
@@ -21,7 +22,8 @@ instance = PulpcoreClient::Status.new(versions: null,
21
22
  missing_workers: null,
22
23
  online_content_apps: null,
23
24
  database_connection: null,
24
- redis_connection: null)
25
+ redis_connection: null,
26
+ storage: null)
25
27
  ```
26
28
 
27
29
 
data/docs/Storage.md ADDED
@@ -0,0 +1,21 @@
1
+ # PulpcoreClient::Storage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **total** | **Integer** | Total number of bytes |
8
+ **used** | **Integer** | Number of bytes in use |
9
+ **free** | **Integer** | Number of free bytes |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpcoreClient'
15
+
16
+ instance = PulpcoreClient::Storage.new(total: null,
17
+ used: null,
18
+ free: null)
19
+ ```
20
+
21
+
data/docs/TasksApi.md CHANGED
@@ -63,7 +63,7 @@ nil (empty response body)
63
63
 
64
64
  ## list
65
65
 
66
- > InlineResponse2003 list(opts)
66
+ > InlineResponse2001 list(opts)
67
67
 
68
68
  List tasks
69
69
 
@@ -152,7 +152,7 @@ Name | Type | Description | Notes
152
152
 
153
153
  ### Return type
154
154
 
155
- [**InlineResponse2003**](InlineResponse2003.md)
155
+ [**InlineResponse2001**](InlineResponse2001.md)
156
156
 
157
157
  ### Authorization
158
158
 
data/docs/UploadsApi.md CHANGED
@@ -175,7 +175,7 @@ nil (empty response body)
175
175
 
176
176
  ## list
177
177
 
178
- > InlineResponse2004 list(opts)
178
+ > InlineResponse2002 list(opts)
179
179
 
180
180
  List uploads
181
181
 
@@ -224,7 +224,7 @@ Name | Type | Description | Notes
224
224
 
225
225
  ### Return type
226
226
 
227
- [**InlineResponse2004**](InlineResponse2004.md)
227
+ [**InlineResponse2002**](InlineResponse2002.md)
228
228
 
229
229
  ### Authorization
230
230
 
data/docs/WorkersApi.md CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
 
12
12
  ## list
13
13
 
14
- > InlineResponse2005 list(opts)
14
+ > InlineResponse2003 list(opts)
15
15
 
16
16
  List workers
17
17
 
@@ -76,7 +76,7 @@ Name | Type | Description | Notes
76
76
 
77
77
  ### Return type
78
78
 
79
- [**InlineResponse2005**](InlineResponse2005.md)
79
+ [**InlineResponse2003**](InlineResponse2003.md)
80
80
 
81
81
  ### Authorization
82
82
 
@@ -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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -20,8 +20,8 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create an artifact
23
+ # @param file [File] The stored file.
23
24
  # @param [Hash] opts the optional parameters
24
- # @option opts [File] :file The stored file.
25
25
  # @option opts [Integer] :size The size of the file in bytes.
26
26
  # @option opts [String] :md5 The MD5 checksum of the file if available.
27
27
  # @option opts [String] :sha1 The SHA-1 checksum of the file if available.
@@ -30,14 +30,14 @@ module PulpcoreClient
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
32
  # @return [Artifact]
33
- def create(opts = {})
34
- data, _status_code, _headers = create_with_http_info(opts)
33
+ def create(file, opts = {})
34
+ data, _status_code, _headers = create_with_http_info(file, opts)
35
35
  data
36
36
  end
37
37
 
38
38
  # Create an artifact
39
+ # @param file [File] The stored file.
39
40
  # @param [Hash] opts the optional parameters
40
- # @option opts [File] :file The stored file.
41
41
  # @option opts [Integer] :size The size of the file in bytes.
42
42
  # @option opts [String] :md5 The MD5 checksum of the file if available.
43
43
  # @option opts [String] :sha1 The SHA-1 checksum of the file if available.
@@ -46,10 +46,14 @@ module PulpcoreClient
46
46
  # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
47
47
  # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
48
48
  # @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
49
- def create_with_http_info(opts = {})
49
+ def create_with_http_info(file, opts = {})
50
50
  if @api_client.config.debugging
51
51
  @api_client.config.logger.debug 'Calling API: ArtifactsApi.create ...'
52
52
  end
53
+ # verify the required parameter 'file' is set
54
+ if @api_client.config.client_side_validation && file.nil?
55
+ fail ArgumentError, "Missing the required parameter 'file' when calling ArtifactsApi.create"
56
+ end
53
57
  if @api_client.config.client_side_validation && !opts[:'md5'].nil? && opts[:'md5'].to_s.length < 1
54
58
  fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
55
59
  end
@@ -89,7 +93,7 @@ module PulpcoreClient
89
93
 
90
94
  # form parameters
91
95
  form_params = opts[:form_params] || {}
92
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
96
+ form_params['file'] = file
93
97
  form_params['size'] = opts[:'size'] if !opts[:'size'].nil?
94
98
  form_params['md5'] = opts[:'md5'] if !opts[:'md5'].nil?
95
99
  form_params['sha1'] = opts[:'sha1'] if !opts[:'sha1'].nil?
@@ -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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -105,7 +105,7 @@ module PulpcoreClient
105
105
  # @option opts [Integer] :offset The initial index from which to return the results.
106
106
  # @option opts [String] :fields A list of fields to include in the response.
107
107
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
- # @return [InlineResponse2003]
108
+ # @return [InlineResponse2001]
109
109
  def list(opts = {})
110
110
  data, _status_code, _headers = list_with_http_info(opts)
111
111
  data
@@ -139,7 +139,7 @@ module PulpcoreClient
139
139
  # @option opts [Integer] :offset The initial index from which to return the results.
140
140
  # @option opts [String] :fields A list of fields to include in the response.
141
141
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
142
- # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
142
+ # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
143
143
  def list_with_http_info(opts = {})
144
144
  if @api_client.config.debugging
145
145
  @api_client.config.logger.debug 'Calling API: TasksApi.list ...'
@@ -188,7 +188,7 @@ module PulpcoreClient
188
188
  post_body = opts[:body]
189
189
 
190
190
  # return_type
191
- return_type = opts[:return_type] || 'InlineResponse2003'
191
+ return_type = opts[:return_type] || 'InlineResponse2001'
192
192
 
193
193
  # auth_names
194
194
  auth_names = opts[:auth_names] || ['Basic']
@@ -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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -221,7 +221,7 @@ module PulpcoreClient
221
221
  # @option opts [Integer] :offset The initial index from which to return the results.
222
222
  # @option opts [String] :fields A list of fields to include in the response.
223
223
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
224
- # @return [InlineResponse2004]
224
+ # @return [InlineResponse2002]
225
225
  def list(opts = {})
226
226
  data, _status_code, _headers = list_with_http_info(opts)
227
227
  data
@@ -235,7 +235,7 @@ module PulpcoreClient
235
235
  # @option opts [Integer] :offset The initial index from which to return the results.
236
236
  # @option opts [String] :fields A list of fields to include in the response.
237
237
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
238
- # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
238
+ # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
239
239
  def list_with_http_info(opts = {})
240
240
  if @api_client.config.debugging
241
241
  @api_client.config.logger.debug 'Calling API: UploadsApi.list ...'
@@ -263,7 +263,7 @@ module PulpcoreClient
263
263
  post_body = opts[:body]
264
264
 
265
265
  # return_type
266
- return_type = opts[:return_type] || 'InlineResponse2004'
266
+ return_type = opts[:return_type] || 'InlineResponse2002'
267
267
 
268
268
  # auth_names
269
269
  auth_names = opts[:auth_names] || ['Basic']
@@ -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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -35,7 +35,7 @@ module PulpcoreClient
35
35
  # @option opts [Integer] :offset The initial index from which to return the results.
36
36
  # @option opts [String] :fields A list of fields to include in the response.
37
37
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
- # @return [InlineResponse2005]
38
+ # @return [InlineResponse2003]
39
39
  def list(opts = {})
40
40
  data, _status_code, _headers = list_with_http_info(opts)
41
41
  data
@@ -57,7 +57,7 @@ module PulpcoreClient
57
57
  # @option opts [Integer] :offset The initial index from which to return the results.
58
58
  # @option opts [String] :fields A list of fields to include in the response.
59
59
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
60
- # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
60
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
61
61
  def list_with_http_info(opts = {})
62
62
  if @api_client.config.debugging
63
63
  @api_client.config.logger.debug 'Calling API: WorkersApi.list ...'
@@ -94,7 +94,7 @@ module PulpcoreClient
94
94
  post_body = opts[:body]
95
95
 
96
96
  # return_type
97
- return_type = opts[:return_type] || 'InlineResponse2005'
97
+ return_type = opts[:return_type] || 'InlineResponse2003'
98
98
 
99
99
  # auth_names
100
100
  auth_names = opts[:auth_names] || ['Basic']
@@ -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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -75,6 +75,18 @@ module PulpcoreClient
75
75
  }
76
76
  end
77
77
 
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ :'md5',
82
+ :'sha1',
83
+ :'sha224',
84
+ :'sha256',
85
+ :'sha384',
86
+ :'sha512'
87
+ ])
88
+ end
89
+
78
90
  # Initializes the object
79
91
  # @param [Hash] attributes Model attributes in the form of hash
80
92
  def initialize(attributes = {})
@@ -349,7 +361,11 @@ module PulpcoreClient
349
361
  hash = {}
350
362
  self.class.attribute_map.each_pair do |attr, param|
351
363
  value = self.send(attr)
352
- next if value.nil?
364
+ if value.nil?
365
+ is_nullable = self.class.openapi_nullable.include?(attr)
366
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
367
+ end
368
+
353
369
  hash[param] = _to_hash(value)
354
370
  end
355
371
  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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -31,6 +31,12 @@ module PulpcoreClient
31
31
  }
32
32
  end
33
33
 
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
34
40
  # Initializes the object
35
41
  # @param [Hash] attributes Model attributes in the form of hash
36
42
  def initialize(attributes = {})
@@ -175,7 +181,11 @@ module PulpcoreClient
175
181
  hash = {}
176
182
  self.class.attribute_map.each_pair do |attr, param|
177
183
  value = self.send(attr)
178
- next if value.nil?
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
179
189
  hash[param] = _to_hash(value)
180
190
  end
181
191
  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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -37,6 +37,12 @@ module PulpcoreClient
37
37
  }
38
38
  end
39
39
 
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
40
46
  # Initializes the object
41
47
  # @param [Hash] attributes Model attributes in the form of hash
42
48
  def initialize(attributes = {})
@@ -196,7 +202,11 @@ module PulpcoreClient
196
202
  hash = {}
197
203
  self.class.attribute_map.each_pair do |attr, param|
198
204
  value = self.send(attr)
199
- next if value.nil?
205
+ if value.nil?
206
+ is_nullable = self.class.openapi_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
200
210
  hash[param] = _to_hash(value)
201
211
  end
202
212
  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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -32,6 +32,12 @@ module PulpcoreClient
32
32
  }
33
33
  end
34
34
 
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
35
41
  # Initializes the object
36
42
  # @param [Hash] attributes Model attributes in the form of hash
37
43
  def initialize(attributes = {})
@@ -176,7 +182,11 @@ module PulpcoreClient
176
182
  hash = {}
177
183
  self.class.attribute_map.each_pair do |attr, param|
178
184
  value = self.send(attr)
179
- next if value.nil?
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
180
190
  hash[param] = _to_hash(value)
181
191
  end
182
192
  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.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -42,6 +42,14 @@ module PulpcoreClient
42
42
  }
43
43
  end
44
44
 
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
45
53
  # Initializes the object
46
54
  # @param [Hash] attributes Model attributes in the form of hash
47
55
  def initialize(attributes = {})
@@ -208,7 +216,11 @@ module PulpcoreClient
208
216
  hash = {}
209
217
  self.class.attribute_map.each_pair do |attr, param|
210
218
  value = self.send(attr)
211
- next if value.nil?
219
+ if value.nil?
220
+ is_nullable = self.class.openapi_nullable.include?(attr)
221
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
+ end
223
+
212
224
  hash[param] = _to_hash(value)
213
225
  end
214
226
  hash