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.
- checksums.yaml +4 -4
- data/README.md +7 -22
- data/docs/ArtifactsApi.md +4 -4
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/Status.md +3 -1
- data/docs/Storage.md +21 -0
- data/docs/TasksApi.md +2 -2
- data/docs/UploadsApi.md +2 -2
- data/docs/WorkersApi.md +2 -2
- data/lib/pulpcore_client/api/artifacts_api.rb +11 -7
- data/lib/pulpcore_client/api/orphans_api.rb +1 -1
- data/lib/pulpcore_client/api/status_api.rb +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +4 -4
- data/lib/pulpcore_client/api/uploads_api.rb +4 -4
- data/lib/pulpcore_client/api/workers_api.rb +4 -4
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +18 -2
- data/lib/pulpcore_client/models/async_operation_response.rb +12 -2
- data/lib/pulpcore_client/models/content_app_status.rb +12 -2
- data/lib/pulpcore_client/models/database_connection.rb +12 -2
- data/lib/pulpcore_client/models/inline_response200.rb +14 -2
- data/lib/pulpcore_client/models/inline_response2001.rb +15 -3
- data/lib/pulpcore_client/models/inline_response2002.rb +15 -3
- data/lib/pulpcore_client/models/inline_response2003.rb +15 -3
- data/lib/pulpcore_client/models/progress_report.rb +13 -2
- data/lib/pulpcore_client/models/redis_connection.rb +12 -2
- data/lib/pulpcore_client/models/status.rb +25 -6
- data/lib/pulpcore_client/models/{inline_response2004.rb → storage.rb} +106 -41
- data/lib/pulpcore_client/models/task.rb +12 -2
- data/lib/pulpcore_client/models/task_cancel.rb +12 -2
- data/lib/pulpcore_client/models/upload.rb +12 -2
- data/lib/pulpcore_client/models/upload_chunk.rb +13 -2
- data/lib/pulpcore_client/models/upload_commit.rb +12 -2
- data/lib/pulpcore_client/models/upload_detail.rb +12 -2
- data/lib/pulpcore_client/models/version.rb +12 -2
- data/lib/pulpcore_client/models/worker.rb +12 -2
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +2 -9
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +2 -2
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +2 -2
- data/spec/api/workers_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- 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_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/status_spec.rb +7 -1
- data/spec/models/{content_summary_spec.rb → storage_spec.rb} +10 -10
- data/spec/models/task_cancel_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_chunk_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_spec.rb +1 -1
- 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 +6 -34
- data/docs/ContentSummary.md +0 -21
- data/docs/InlineResponse2004.md +0 -23
- data/docs/InlineResponse2005.md +0 -23
- data/docs/RepositoriesApi.md +0 -346
- data/docs/RepositoriesVersionsApi.md +0 -266
- data/docs/Repository.md +0 -29
- data/docs/RepositoryVersion.md +0 -25
- data/docs/RepositoryVersionCreate.md +0 -21
- data/lib/pulpcore_client/api/repositories_api.rb +0 -422
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -334
- data/lib/pulpcore_client/models/content_summary.rb +0 -236
- data/lib/pulpcore_client/models/inline_response2005.rb +0 -235
- data/lib/pulpcore_client/models/repository.rb +0 -293
- data/lib/pulpcore_client/models/repository_version.rb +0 -234
- data/lib/pulpcore_client/models/repository_version_create.rb +0 -221
- data/spec/api/repositories_api_spec.rb +0 -112
- data/spec/api/repositories_versions_api_spec.rb +0 -102
- data/spec/models/inline_response2004_spec.rb +0 -59
- data/spec/models/inline_response2005_spec.rb +0 -59
- data/spec/models/repository_spec.rb +0 -77
- data/spec/models/repository_version_create_spec.rb +0 -53
- data/spec/models/repository_version_spec.rb +0 -65
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -49,6 +49,12 @@ module PulpcoreClient
|
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
def self.openapi_nullable
|
54
|
+
Set.new([
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
52
58
|
# Initializes the object
|
53
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
60
|
def initialize(attributes = {})
|
@@ -215,7 +221,11 @@ module PulpcoreClient
|
|
215
221
|
hash = {}
|
216
222
|
self.class.attribute_map.each_pair do |attr, param|
|
217
223
|
value = self.send(attr)
|
218
|
-
|
224
|
+
if value.nil?
|
225
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
226
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
227
|
+
end
|
228
|
+
|
219
229
|
hash[param] = _to_hash(value)
|
220
230
|
end
|
221
231
|
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.
|
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 = {})
|
@@ -229,7 +235,11 @@ module PulpcoreClient
|
|
229
235
|
hash = {}
|
230
236
|
self.class.attribute_map.each_pair do |attr, param|
|
231
237
|
value = self.send(attr)
|
232
|
-
|
238
|
+
if value.nil?
|
239
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
240
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
241
|
+
end
|
242
|
+
|
233
243
|
hash[param] = _to_hash(value)
|
234
244
|
end
|
235
245
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -56,6 +56,12 @@ module PulpcoreClient
|
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
59
65
|
# Initializes the object
|
60
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
67
|
def initialize(attributes = {})
|
@@ -235,7 +241,11 @@ module PulpcoreClient
|
|
235
241
|
hash = {}
|
236
242
|
self.class.attribute_map.each_pair do |attr, param|
|
237
243
|
value = self.send(attr)
|
238
|
-
|
244
|
+
if value.nil?
|
245
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
246
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
247
|
+
end
|
248
|
+
|
239
249
|
hash[param] = _to_hash(value)
|
240
250
|
end
|
241
251
|
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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpcoreClient
|
14
|
-
VERSION = '3.0.
|
14
|
+
VERSION = '3.0.0rc8'
|
15
15
|
end
|
data/lib/pulpcore_client.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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,20 +20,15 @@ require 'pulpcore_client/configuration'
|
|
20
20
|
require 'pulpcore_client/models/artifact'
|
21
21
|
require 'pulpcore_client/models/async_operation_response'
|
22
22
|
require 'pulpcore_client/models/content_app_status'
|
23
|
-
require 'pulpcore_client/models/content_summary'
|
24
23
|
require 'pulpcore_client/models/database_connection'
|
25
24
|
require 'pulpcore_client/models/inline_response200'
|
26
25
|
require 'pulpcore_client/models/inline_response2001'
|
27
26
|
require 'pulpcore_client/models/inline_response2002'
|
28
27
|
require 'pulpcore_client/models/inline_response2003'
|
29
|
-
require 'pulpcore_client/models/inline_response2004'
|
30
|
-
require 'pulpcore_client/models/inline_response2005'
|
31
28
|
require 'pulpcore_client/models/progress_report'
|
32
29
|
require 'pulpcore_client/models/redis_connection'
|
33
|
-
require 'pulpcore_client/models/repository'
|
34
|
-
require 'pulpcore_client/models/repository_version'
|
35
|
-
require 'pulpcore_client/models/repository_version_create'
|
36
30
|
require 'pulpcore_client/models/status'
|
31
|
+
require 'pulpcore_client/models/storage'
|
37
32
|
require 'pulpcore_client/models/task'
|
38
33
|
require 'pulpcore_client/models/task_cancel'
|
39
34
|
require 'pulpcore_client/models/upload'
|
@@ -46,8 +41,6 @@ require 'pulpcore_client/models/worker'
|
|
46
41
|
# APIs
|
47
42
|
require 'pulpcore_client/api/artifacts_api'
|
48
43
|
require 'pulpcore_client/api/orphans_api'
|
49
|
-
require 'pulpcore_client/api/repositories_api'
|
50
|
-
require 'pulpcore_client/api/repositories_versions_api'
|
51
44
|
require 'pulpcore_client/api/status_api'
|
52
45
|
require 'pulpcore_client/api/tasks_api'
|
53
46
|
require 'pulpcore_client/api/uploads_api'
|
data/pulpcore_client.gemspec
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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,8 +34,8 @@ describe 'ArtifactsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create an artifact
|
37
|
+
# @param file The stored file.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [File] :file The stored file.
|
39
39
|
# @option opts [Integer] :size The size of the file in bytes.
|
40
40
|
# @option opts [String] :md5 The MD5 checksum of the file if available.
|
41
41
|
# @option opts [String] :sha1 The SHA-1 checksum of the file if available.
|
data/spec/api/status_api_spec.rb
CHANGED
data/spec/api/tasks_api_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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -72,7 +72,7 @@ describe 'TasksApi' do
|
|
72
72
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
73
|
# @option opts [String] :fields A list of fields to include in the response.
|
74
74
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
75
|
-
# @return [
|
75
|
+
# @return [InlineResponse2001]
|
76
76
|
describe 'list test' do
|
77
77
|
it 'should work' do
|
78
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -78,7 +78,7 @@ describe 'UploadsApi' do
|
|
78
78
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
79
79
|
# @option opts [String] :fields A list of fields to include in the response.
|
80
80
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
81
|
-
# @return [
|
81
|
+
# @return [InlineResponse2002]
|
82
82
|
describe 'list test' do
|
83
83
|
it 'should work' do
|
84
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -49,7 +49,7 @@ describe 'WorkersApi' do
|
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
50
50
|
# @option opts [String] :fields A list of fields to include in the response.
|
51
51
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
52
|
-
# @return [
|
52
|
+
# @return [InlineResponse2003]
|
53
53
|
describe 'list test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/models/status_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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -68,4 +68,10 @@ describe 'Status' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
describe 'test attribute "storage"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
71
77
|
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.2.
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,37 +14,37 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpcoreClient::
|
17
|
+
# Unit tests for PulpcoreClient::Storage
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'Storage' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpcoreClient::
|
23
|
+
@instance = PulpcoreClient::Storage.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(PulpcoreClient::
|
30
|
+
describe 'test an instance of Storage' do
|
31
|
+
it 'should create an instance of Storage' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::Storage)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "total"' 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 "
|
41
|
+
describe 'test attribute "used"' 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
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "free"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
data/spec/models/task_spec.rb
CHANGED
data/spec/models/upload_spec.rb
CHANGED
data/spec/models/version_spec.rb
CHANGED
data/spec/models/worker_spec.rb
CHANGED