pulpcore_client 3.0.0rc2 → 3.0.0rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +43 -37
  4. data/docs/ArtifactsApi.md +20 -20
  5. data/docs/ContentAppStatus.md +19 -0
  6. data/docs/DatabaseConnection.md +17 -0
  7. data/docs/OrphansApi.md +5 -5
  8. data/docs/ProgressReport.md +1 -3
  9. data/docs/RedisConnection.md +17 -0
  10. data/docs/RepositoriesApi.md +30 -278
  11. data/docs/RepositoriesVersionsApi.md +256 -0
  12. data/docs/RepositoryVersionCreate.md +2 -2
  13. data/docs/Status.md +27 -0
  14. data/docs/StatusApi.md +8 -7
  15. data/docs/TaskCancel.md +17 -0
  16. data/docs/TasksApi.md +71 -71
  17. data/docs/Upload.md +6 -8
  18. data/docs/UploadCommit.md +17 -0
  19. data/docs/UploadsApi.md +66 -106
  20. data/docs/Version.md +19 -0
  21. data/docs/WorkersApi.md +10 -10
  22. data/lib/pulpcore_client/api/artifacts_api.rb +47 -23
  23. data/lib/pulpcore_client/api/orphans_api.rb +6 -6
  24. data/lib/pulpcore_client/api/repositories_api.rb +38 -338
  25. data/lib/pulpcore_client/api/repositories_versions_api.rb +322 -0
  26. data/lib/pulpcore_client/api/status_api.rb +12 -10
  27. data/lib/pulpcore_client/api/tasks_api.rb +88 -88
  28. data/lib/pulpcore_client/api/uploads_api.rb +105 -154
  29. data/lib/pulpcore_client/api/workers_api.rb +12 -12
  30. data/lib/pulpcore_client/api_client.rb +1 -1
  31. data/lib/pulpcore_client/api_error.rb +1 -1
  32. data/lib/pulpcore_client/configuration.rb +1 -1
  33. data/lib/pulpcore_client/models/artifact.rb +91 -1
  34. data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
  35. data/lib/pulpcore_client/models/content_app_status.rb +223 -0
  36. data/lib/pulpcore_client/models/database_connection.rb +203 -0
  37. data/lib/pulpcore_client/models/inline_response200.rb +1 -1
  38. data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
  39. data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
  40. data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
  41. data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
  42. data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
  43. data/lib/pulpcore_client/models/progress_report.rb +20 -15
  44. data/lib/pulpcore_client/models/redis_connection.rb +203 -0
  45. data/lib/pulpcore_client/models/repository.rb +16 -1
  46. data/lib/pulpcore_client/models/repository_version.rb +1 -1
  47. data/lib/pulpcore_client/models/repository_version_create.rb +3 -13
  48. data/lib/pulpcore_client/models/status.rb +283 -0
  49. data/lib/pulpcore_client/models/task.rb +1 -1
  50. data/lib/pulpcore_client/models/task_cancel.rb +221 -0
  51. data/lib/pulpcore_client/models/upload.rb +26 -52
  52. data/lib/pulpcore_client/models/upload_commit.rb +221 -0
  53. data/lib/pulpcore_client/models/version.rb +256 -0
  54. data/lib/pulpcore_client/models/worker.rb +2 -1
  55. data/lib/pulpcore_client/version.rb +2 -2
  56. data/lib/pulpcore_client.rb +9 -1
  57. data/pulpcore_client.gemspec +1 -1
  58. data/spec/api/artifacts_api_spec.rb +9 -9
  59. data/spec/api/orphans_api_spec.rb +3 -3
  60. data/spec/api/repositories_api_spec.rb +13 -76
  61. data/spec/api/repositories_versions_api_spec.rb +98 -0
  62. data/spec/api/status_api_spec.rb +4 -4
  63. data/spec/api/tasks_api_spec.rb +20 -20
  64. data/spec/api/uploads_api_spec.rb +32 -37
  65. data/spec/api/workers_api_spec.rb +5 -5
  66. data/spec/api_client_spec.rb +1 -1
  67. data/spec/configuration_spec.rb +1 -1
  68. data/spec/models/artifact_spec.rb +1 -1
  69. data/spec/models/async_operation_response_spec.rb +1 -1
  70. data/spec/models/content_app_status_spec.rb +47 -0
  71. data/spec/models/database_connection_spec.rb +41 -0
  72. data/spec/models/inline_response2001_spec.rb +1 -1
  73. data/spec/models/inline_response2002_spec.rb +1 -1
  74. data/spec/models/inline_response2003_spec.rb +1 -1
  75. data/spec/models/inline_response2004_spec.rb +1 -1
  76. data/spec/models/inline_response2005_spec.rb +1 -1
  77. data/spec/models/inline_response200_spec.rb +1 -1
  78. data/spec/models/progress_report_spec.rb +1 -7
  79. data/spec/models/redis_connection_spec.rb +41 -0
  80. data/spec/models/repository_spec.rb +1 -1
  81. data/spec/models/repository_version_create_spec.rb +1 -1
  82. data/spec/models/repository_version_spec.rb +1 -1
  83. data/spec/models/status_spec.rb +71 -0
  84. data/spec/models/task_cancel_spec.rb +41 -0
  85. data/spec/models/task_spec.rb +1 -1
  86. data/spec/models/upload_commit_spec.rb +41 -0
  87. data/spec/models/upload_spec.rb +4 -10
  88. data/spec/models/version_spec.rb +47 -0
  89. data/spec/models/worker_spec.rb +1 -1
  90. data/spec/spec_helper.rb +1 -1
  91. metadata +34 -2
data/docs/WorkersApi.md CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**workers_list**](WorkersApi.md#workers_list) | **GET** /pulp/api/v3/workers/ | List workers
8
- [**workers_read**](WorkersApi.md#workers_read) | **GET** {worker_href} | Inspect a worker
7
+ [**list**](WorkersApi.md#list) | **GET** /pulp/api/v3/workers/ | List workers
8
+ [**read**](WorkersApi.md#read) | **GET** {worker_href} | Inspect a worker
9
9
 
10
10
 
11
11
 
12
- ## workers_list
12
+ ## list
13
13
 
14
- > InlineResponse2005 workers_list(opts)
14
+ > InlineResponse2005 list(opts)
15
15
 
16
16
  List workers
17
17
 
@@ -45,10 +45,10 @@ opts = {
45
45
 
46
46
  begin
47
47
  #List workers
48
- result = api_instance.workers_list(opts)
48
+ result = api_instance.list(opts)
49
49
  p result
50
50
  rescue PulpcoreClient::ApiError => e
51
- puts "Exception when calling WorkersApi->workers_list: #{e}"
51
+ puts "Exception when calling WorkersApi->list: #{e}"
52
52
  end
53
53
  ```
54
54
 
@@ -84,9 +84,9 @@ Name | Type | Description | Notes
84
84
  - **Accept**: application/json
85
85
 
86
86
 
87
- ## workers_read
87
+ ## read
88
88
 
89
- > Worker workers_read(worker_href)
89
+ > Worker read(worker_href)
90
90
 
91
91
  Inspect a worker
92
92
 
@@ -107,10 +107,10 @@ worker_href = 'worker_href_example' # String | URI of Worker. e.g.: /pulp/api/v3
107
107
 
108
108
  begin
109
109
  #Inspect a worker
110
- result = api_instance.workers_read(worker_href)
110
+ result = api_instance.read(worker_href)
111
111
  p result
112
112
  rescue PulpcoreClient::ApiError => e
113
- puts "Exception when calling WorkersApi->workers_read: #{e}"
113
+ puts "Exception when calling WorkersApi->read: #{e}"
114
114
  end
115
115
  ```
116
116
 
@@ -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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -31,8 +31,8 @@ module PulpcoreClient
31
31
  # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
32
32
  # @option opts [String] :upload An href for an Upload.
33
33
  # @return [Artifact]
34
- def artifacts_create(opts = {})
35
- data, _status_code, _headers = artifacts_create_with_http_info(opts)
34
+ def create(opts = {})
35
+ data, _status_code, _headers = create_with_http_info(opts)
36
36
  data
37
37
  end
38
38
 
@@ -48,10 +48,34 @@ module PulpcoreClient
48
48
  # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
49
49
  # @option opts [String] :upload An href for an Upload.
50
50
  # @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
51
- def artifacts_create_with_http_info(opts = {})
51
+ def create_with_http_info(opts = {})
52
52
  if @api_client.config.debugging
53
- @api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_create ...'
53
+ @api_client.config.logger.debug 'Calling API: ArtifactsApi.create ...'
54
54
  end
55
+ if @api_client.config.client_side_validation && !opts[:'md5'].nil? && opts[:'md5'].to_s.length < 1
56
+ fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
57
+ end
58
+
59
+ if @api_client.config.client_side_validation && !opts[:'sha1'].nil? && opts[:'sha1'].to_s.length < 1
60
+ fail ArgumentError, 'invalid value for "opts[:"sha1"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
61
+ end
62
+
63
+ if @api_client.config.client_side_validation && !opts[:'sha224'].nil? && opts[:'sha224'].to_s.length < 1
64
+ fail ArgumentError, 'invalid value for "opts[:"sha224"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
65
+ end
66
+
67
+ if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
68
+ fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
69
+ end
70
+
71
+ if @api_client.config.client_side_validation && !opts[:'sha384'].nil? && opts[:'sha384'].to_s.length < 1
72
+ fail ArgumentError, 'invalid value for "opts[:"sha384"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
73
+ end
74
+
75
+ if @api_client.config.client_side_validation && !opts[:'sha512'].nil? && opts[:'sha512'].to_s.length < 1
76
+ fail ArgumentError, 'invalid value for "opts[:"sha512"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
77
+ end
78
+
55
79
  # resource path
56
80
  local_var_path = '/pulp/api/v3/artifacts/'
57
81
 
@@ -97,7 +121,7 @@ module PulpcoreClient
97
121
 
98
122
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
99
123
  if @api_client.config.debugging
100
- @api_client.config.logger.debug "API called: ArtifactsApi#artifacts_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
+ @api_client.config.logger.debug "API called: ArtifactsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
125
  end
102
126
  return data, status_code, headers
103
127
  end
@@ -107,8 +131,8 @@ module PulpcoreClient
107
131
  # @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
108
132
  # @param [Hash] opts the optional parameters
109
133
  # @return [nil]
110
- def artifacts_delete(artifact_href, opts = {})
111
- artifacts_delete_with_http_info(artifact_href, opts)
134
+ def delete(artifact_href, opts = {})
135
+ delete_with_http_info(artifact_href, opts)
112
136
  nil
113
137
  end
114
138
 
@@ -117,13 +141,13 @@ module PulpcoreClient
117
141
  # @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
118
142
  # @param [Hash] opts the optional parameters
119
143
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
120
- def artifacts_delete_with_http_info(artifact_href, opts = {})
144
+ def delete_with_http_info(artifact_href, opts = {})
121
145
  if @api_client.config.debugging
122
- @api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_delete ...'
146
+ @api_client.config.logger.debug 'Calling API: ArtifactsApi.delete ...'
123
147
  end
124
148
  # verify the required parameter 'artifact_href' is set
125
149
  if @api_client.config.client_side_validation && artifact_href.nil?
126
- fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_delete"
150
+ fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.delete"
127
151
  end
128
152
  # resource path
129
153
  local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
@@ -157,7 +181,7 @@ module PulpcoreClient
157
181
 
158
182
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
159
183
  if @api_client.config.debugging
160
- @api_client.config.logger.debug "API called: ArtifactsApi#artifacts_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
+ @api_client.config.logger.debug "API called: ArtifactsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
185
  end
162
186
  return data, status_code, headers
163
187
  end
@@ -174,8 +198,8 @@ module PulpcoreClient
174
198
  # @option opts [Integer] :page A page number within the paginated result set.
175
199
  # @option opts [Integer] :page_size Number of results to return per page.
176
200
  # @return [InlineResponse200]
177
- def artifacts_list(opts = {})
178
- data, _status_code, _headers = artifacts_list_with_http_info(opts)
201
+ def list(opts = {})
202
+ data, _status_code, _headers = list_with_http_info(opts)
179
203
  data
180
204
  end
181
205
 
@@ -191,9 +215,9 @@ module PulpcoreClient
191
215
  # @option opts [Integer] :page A page number within the paginated result set.
192
216
  # @option opts [Integer] :page_size Number of results to return per page.
193
217
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
194
- def artifacts_list_with_http_info(opts = {})
218
+ def list_with_http_info(opts = {})
195
219
  if @api_client.config.debugging
196
- @api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_list ...'
220
+ @api_client.config.logger.debug 'Calling API: ArtifactsApi.list ...'
197
221
  end
198
222
  # resource path
199
223
  local_var_path = '/pulp/api/v3/artifacts/'
@@ -238,7 +262,7 @@ module PulpcoreClient
238
262
 
239
263
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
240
264
  if @api_client.config.debugging
241
- @api_client.config.logger.debug "API called: ArtifactsApi#artifacts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
265
+ @api_client.config.logger.debug "API called: ArtifactsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
242
266
  end
243
267
  return data, status_code, headers
244
268
  end
@@ -247,8 +271,8 @@ module PulpcoreClient
247
271
  # @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
248
272
  # @param [Hash] opts the optional parameters
249
273
  # @return [Artifact]
250
- def artifacts_read(artifact_href, opts = {})
251
- data, _status_code, _headers = artifacts_read_with_http_info(artifact_href, opts)
274
+ def read(artifact_href, opts = {})
275
+ data, _status_code, _headers = read_with_http_info(artifact_href, opts)
252
276
  data
253
277
  end
254
278
 
@@ -256,13 +280,13 @@ module PulpcoreClient
256
280
  # @param artifact_href [String] URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
257
281
  # @param [Hash] opts the optional parameters
258
282
  # @return [Array<(Artifact, Integer, Hash)>] Artifact data, response status code and response headers
259
- def artifacts_read_with_http_info(artifact_href, opts = {})
283
+ def read_with_http_info(artifact_href, opts = {})
260
284
  if @api_client.config.debugging
261
- @api_client.config.logger.debug 'Calling API: ArtifactsApi.artifacts_read ...'
285
+ @api_client.config.logger.debug 'Calling API: ArtifactsApi.read ...'
262
286
  end
263
287
  # verify the required parameter 'artifact_href' is set
264
288
  if @api_client.config.client_side_validation && artifact_href.nil?
265
- fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.artifacts_read"
289
+ fail ArgumentError, "Missing the required parameter 'artifact_href' when calling ArtifactsApi.read"
266
290
  end
267
291
  # resource path
268
292
  local_var_path = '{artifact_href}'.sub('{' + 'artifact_href' + '}', artifact_href.to_s)
@@ -298,7 +322,7 @@ module PulpcoreClient
298
322
 
299
323
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
300
324
  if @api_client.config.debugging
301
- @api_client.config.logger.debug "API called: ArtifactsApi#artifacts_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ @api_client.config.logger.debug "API called: ArtifactsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
326
  end
303
327
  return data, status_code, headers
304
328
  end
@@ -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.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.0.0
10
10
 
11
11
  =end
12
12
 
@@ -23,8 +23,8 @@ module PulpcoreClient
23
23
  # Trigger an asynchronous task that deletes allorphaned content and artifacts.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [AsyncOperationResponse]
26
- def orphans_delete(opts = {})
27
- data, _status_code, _headers = orphans_delete_with_http_info(opts)
26
+ def delete(opts = {})
27
+ data, _status_code, _headers = delete_with_http_info(opts)
28
28
  data
29
29
  end
30
30
 
@@ -32,9 +32,9 @@ module PulpcoreClient
32
32
  # Trigger an asynchronous task that deletes allorphaned content and artifacts.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
35
- def orphans_delete_with_http_info(opts = {})
35
+ def delete_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: OrphansApi.orphans_delete ...'
37
+ @api_client.config.logger.debug 'Calling API: OrphansApi.delete ...'
38
38
  end
39
39
  # resource path
40
40
  local_var_path = '/pulp/api/v3/orphans/'
@@ -70,7 +70,7 @@ module PulpcoreClient
70
70
 
71
71
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
72
72
  if @api_client.config.debugging
73
- @api_client.config.logger.debug "API called: OrphansApi#orphans_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ @api_client.config.logger.debug "API called: OrphansApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
74
  end
75
75
  return data, status_code, headers
76
76
  end