pulpcore_client 3.0.0rc3 → 3.0.0rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/docs/Artifact.md +1 -3
- data/docs/ArtifactsApi.md +1 -3
- data/docs/UploadChunkDetail.md +19 -0
- data/docs/UploadDetail.md +25 -0
- data/docs/UploadsApi.md +12 -20
- data/lib/pulpcore_client/api/artifacts_api.rb +4 -7
- data/lib/pulpcore_client/api/orphans_api.rb +2 -2
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_versions_api.rb +6 -6
- data/lib/pulpcore_client/api/status_api.rb +2 -2
- data/lib/pulpcore_client/api/tasks_api.rb +5 -5
- data/lib/pulpcore_client/api/uploads_api.rb +22 -33
- data/lib/pulpcore_client/api/workers_api.rb +3 -3
- data/lib/pulpcore_client/api_client.rb +41 -27
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +2 -5
- data/lib/pulpcore_client/models/artifact.rb +5 -15
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +1 -1
- data/lib/pulpcore_client/models/database_connection.rb +1 -1
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +1 -1
- data/lib/pulpcore_client/models/redis_connection.rb +1 -1
- data/lib/pulpcore_client/models/repository.rb +1 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +1 -1
- data/lib/pulpcore_client/models/status.rb +1 -1
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +1 -1
- data/lib/pulpcore_client/models/upload.rb +1 -1
- data/lib/pulpcore_client/models/upload_chunk_detail.rb +271 -0
- data/lib/pulpcore_client/models/upload_commit.rb +1 -1
- data/lib/pulpcore_client/models/upload_detail.rb +242 -0
- data/lib/pulpcore_client/models/version.rb +1 -1
- data/lib/pulpcore_client/models/worker.rb +1 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +3 -1
- data/pulpcore_client.gemspec +3 -7
- data/spec/api/artifacts_api_spec.rb +1 -2
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/repositories_api_spec.rb +1 -1
- data/spec/api/repositories_versions_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/uploads_api_spec.rb +5 -10
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +1 -1
- data/spec/models/database_connection_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -1
- data/spec/models/redis_connection_spec.rb +1 -1
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -1
- data/spec/models/task_cancel_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_chunk_detail_spec.rb +47 -0
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_spec.rb +65 -0
- data/spec/models/upload_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +14 -93
- data/Gemfile.lock +0 -79
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.0.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,11 +34,11 @@ describe 'UploadsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for commit
|
36
36
|
# Finish an Upload
|
37
|
-
#
|
37
|
+
# Generates a Task to commit the upload and create an artifact
|
38
38
|
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
39
39
|
# @param data
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [
|
41
|
+
# @return [AsyncOperationResponse]
|
42
42
|
describe 'commit test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -73,12 +73,6 @@ describe 'UploadsApi' do
|
|
73
73
|
# List uploads
|
74
74
|
# View for chunked uploads.
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
|
-
# @option opts [String] :completed__lt Filter results where completed is less than value
|
77
|
-
# @option opts [String] :completed__lte Filter results where completed is less than or equal to value
|
78
|
-
# @option opts [String] :completed__gt Filter results where completed is greater than value
|
79
|
-
# @option opts [String] :completed__gte Filter results where completed is greater than or equal to value
|
80
|
-
# @option opts [String] :completed__range Filter results where completed is between two comma separated values
|
81
|
-
# @option opts [String] :completed__isnull Filter results where completed has a null value
|
82
76
|
# @option opts [String] :completed ISO 8601 formatted dates are supported
|
83
77
|
# @option opts [Integer] :page A page number within the paginated result set.
|
84
78
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -94,7 +88,7 @@ describe 'UploadsApi' do
|
|
94
88
|
# View for chunked uploads.
|
95
89
|
# @param upload_href URI of Upload. e.g.: /pulp/api/v3/uploads/1/
|
96
90
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [
|
91
|
+
# @return [UploadDetail]
|
98
92
|
describe 'read test' do
|
99
93
|
it 'should work' do
|
100
94
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -108,6 +102,7 @@ describe 'UploadsApi' do
|
|
108
102
|
# @param content_range The Content-Range header specifies the location of the file chunk within the file.
|
109
103
|
# @param file A chunk of the uploaded file.
|
110
104
|
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
|
111
106
|
# @return [Upload]
|
112
107
|
describe 'update test' do
|
113
108
|
it 'should work' do
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.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.
|
9
|
+
OpenAPI Generator version: 4.0.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -92,10 +92,4 @@ describe 'Artifact' do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "upload"' do
|
96
|
-
it 'should work' do
|
97
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
95
|
end
|
data/spec/models/status_spec.rb
CHANGED
data/spec/models/task_spec.rb
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::UploadChunkDetail
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UploadChunkDetail' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::UploadChunkDetail.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UploadChunkDetail' do
|
31
|
+
it 'should create an instance of UploadChunkDetail' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::UploadChunkDetail)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "offset"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "size"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::UploadDetail
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'UploadDetail' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::UploadDetail.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of UploadDetail' do
|
31
|
+
it 'should create an instance of UploadDetail' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::UploadDetail)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "_href"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "size"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "completed"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "chunks"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
data/spec/models/upload_spec.rb
CHANGED
data/spec/models/version_spec.rb
CHANGED
data/spec/models/worker_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.0rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 0.14.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.0'
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 0.14.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: json
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,86 +104,6 @@ dependencies:
|
|
110
104
|
- - ">="
|
111
105
|
- !ruby/object:Gem::Version
|
112
106
|
version: 1.24.3
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: autotest
|
115
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '4.4'
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: 4.4.6
|
123
|
-
type: :development
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '4.4'
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 4.4.6
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: autotest-rails-pure
|
135
|
-
requirement: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - "~>"
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '4.1'
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 4.1.2
|
143
|
-
type: :development
|
144
|
-
prerelease: false
|
145
|
-
version_requirements: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '4.1'
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 4.1.2
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: autotest-growl
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.2'
|
160
|
-
- - ">="
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 0.2.16
|
163
|
-
type: :development
|
164
|
-
prerelease: false
|
165
|
-
version_requirements: !ruby/object:Gem::Requirement
|
166
|
-
requirements:
|
167
|
-
- - "~>"
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: '0.2'
|
170
|
-
- - ">="
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: 0.2.16
|
173
|
-
- !ruby/object:Gem::Dependency
|
174
|
-
name: autotest-fsevent
|
175
|
-
requirement: !ruby/object:Gem::Requirement
|
176
|
-
requirements:
|
177
|
-
- - "~>"
|
178
|
-
- !ruby/object:Gem::Version
|
179
|
-
version: '0.2'
|
180
|
-
- - ">="
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: 0.2.12
|
183
|
-
type: :development
|
184
|
-
prerelease: false
|
185
|
-
version_requirements: !ruby/object:Gem::Requirement
|
186
|
-
requirements:
|
187
|
-
- - "~>"
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '0.2'
|
190
|
-
- - ">="
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: 0.2.12
|
193
107
|
description: No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
194
108
|
email:
|
195
109
|
- ''
|
@@ -198,7 +112,6 @@ extensions: []
|
|
198
112
|
extra_rdoc_files: []
|
199
113
|
files:
|
200
114
|
- Gemfile
|
201
|
-
- Gemfile.lock
|
202
115
|
- README.md
|
203
116
|
- Rakefile
|
204
117
|
- docs/Artifact.md
|
@@ -226,7 +139,9 @@ files:
|
|
226
139
|
- docs/TaskCancel.md
|
227
140
|
- docs/TasksApi.md
|
228
141
|
- docs/Upload.md
|
142
|
+
- docs/UploadChunkDetail.md
|
229
143
|
- docs/UploadCommit.md
|
144
|
+
- docs/UploadDetail.md
|
230
145
|
- docs/UploadsApi.md
|
231
146
|
- docs/Version.md
|
232
147
|
- docs/Worker.md
|
@@ -263,7 +178,9 @@ files:
|
|
263
178
|
- lib/pulpcore_client/models/task.rb
|
264
179
|
- lib/pulpcore_client/models/task_cancel.rb
|
265
180
|
- lib/pulpcore_client/models/upload.rb
|
181
|
+
- lib/pulpcore_client/models/upload_chunk_detail.rb
|
266
182
|
- lib/pulpcore_client/models/upload_commit.rb
|
183
|
+
- lib/pulpcore_client/models/upload_detail.rb
|
267
184
|
- lib/pulpcore_client/models/version.rb
|
268
185
|
- lib/pulpcore_client/models/worker.rb
|
269
186
|
- lib/pulpcore_client/version.rb
|
@@ -296,14 +213,16 @@ files:
|
|
296
213
|
- spec/models/status_spec.rb
|
297
214
|
- spec/models/task_cancel_spec.rb
|
298
215
|
- spec/models/task_spec.rb
|
216
|
+
- spec/models/upload_chunk_detail_spec.rb
|
299
217
|
- spec/models/upload_commit_spec.rb
|
218
|
+
- spec/models/upload_detail_spec.rb
|
300
219
|
- spec/models/upload_spec.rb
|
301
220
|
- spec/models/version_spec.rb
|
302
221
|
- spec/models/worker_spec.rb
|
303
222
|
- spec/spec_helper.rb
|
304
223
|
homepage: https://openapi-generator.tech
|
305
224
|
licenses:
|
306
|
-
-
|
225
|
+
- GPL-2.0
|
307
226
|
metadata: {}
|
308
227
|
post_install_message:
|
309
228
|
rdoc_options: []
|
@@ -341,6 +260,7 @@ test_files:
|
|
341
260
|
- spec/models/repository_version_spec.rb
|
342
261
|
- spec/models/inline_response2001_spec.rb
|
343
262
|
- spec/models/task_cancel_spec.rb
|
263
|
+
- spec/models/upload_detail_spec.rb
|
344
264
|
- spec/models/inline_response2002_spec.rb
|
345
265
|
- spec/models/inline_response2004_spec.rb
|
346
266
|
- spec/models/status_spec.rb
|
@@ -353,6 +273,7 @@ test_files:
|
|
353
273
|
- spec/models/version_spec.rb
|
354
274
|
- spec/models/task_spec.rb
|
355
275
|
- spec/models/worker_spec.rb
|
276
|
+
- spec/models/upload_chunk_detail_spec.rb
|
356
277
|
- spec/models/content_app_status_spec.rb
|
357
278
|
- spec/models/artifact_spec.rb
|
358
279
|
- spec/models/repository_version_create_spec.rb
|