pulpcore_client 3.0.0rc5 → 3.0.0rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ProgressReport.md +3 -1
- data/docs/RepositoriesApi.md +6 -4
- data/docs/Repository.md +2 -0
- data/docs/UploadChunk.md +23 -0
- data/docs/UploadDetail.md +1 -1
- data/lib/pulpcore_client/api/artifacts_api.rb +1 -1
- data/lib/pulpcore_client/api/orphans_api.rb +1 -1
- data/lib/pulpcore_client/api/repositories_api.rb +10 -7
- data/lib/pulpcore_client/api/repositories_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/status_api.rb +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +1 -1
- data/lib/pulpcore_client/api/workers_api.rb +1 -1
- 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 +1 -1
- 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/content_summary.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 +28 -3
- data/lib/pulpcore_client/models/redis_connection.rb +1 -1
- data/lib/pulpcore_client/models/repository.rb +12 -2
- 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 → upload_chunk.rb} +33 -64
- data/lib/pulpcore_client/models/upload_commit.rb +1 -1
- data/lib/pulpcore_client/models/upload_detail.rb +2 -2
- 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 +2 -2
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/orphans_api_spec.rb +1 -1
- data/spec/api/repositories_api_spec.rb +4 -3
- 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 +1 -1
- 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 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +1 -1
- data/spec/models/content_summary_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 +7 -1
- data/spec/models/redis_connection_spec.rb +1 -1
- data/spec/models/repository_spec.rb +7 -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 → upload_chunk_spec.rb} +19 -7
- 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 -6
- data/docs/UploadChunkDetail.md +0 -19
@@ -6,14 +6,20 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpcoreClient
|
16
|
-
class
|
16
|
+
class UploadChunk
|
17
|
+
# A chunk of the uploaded file.
|
18
|
+
attr_accessor :file
|
19
|
+
|
20
|
+
# The SHA-256 checksum of the chunk if available.
|
21
|
+
attr_accessor :sha256
|
22
|
+
|
17
23
|
attr_accessor :offset
|
18
24
|
|
19
25
|
attr_accessor :size
|
@@ -21,6 +27,8 @@ module PulpcoreClient
|
|
21
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
28
|
def self.attribute_map
|
23
29
|
{
|
30
|
+
:'file' => :'file',
|
31
|
+
:'sha256' => :'sha256',
|
24
32
|
:'offset' => :'offset',
|
25
33
|
:'size' => :'size'
|
26
34
|
}
|
@@ -29,6 +37,8 @@ module PulpcoreClient
|
|
29
37
|
# Attribute type mapping.
|
30
38
|
def self.openapi_types
|
31
39
|
{
|
40
|
+
:'file' => :'String',
|
41
|
+
:'sha256' => :'String',
|
32
42
|
:'offset' => :'Integer',
|
33
43
|
:'size' => :'Integer'
|
34
44
|
}
|
@@ -38,17 +48,25 @@ module PulpcoreClient
|
|
38
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
39
49
|
def initialize(attributes = {})
|
40
50
|
if (!attributes.is_a?(Hash))
|
41
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::UploadChunk` initialize method"
|
42
52
|
end
|
43
53
|
|
44
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
45
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
46
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
47
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::UploadChunk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
48
58
|
end
|
49
59
|
h[k.to_sym] = v
|
50
60
|
}
|
51
61
|
|
62
|
+
if attributes.key?(:'file')
|
63
|
+
self.file = attributes[:'file']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.key?(:'sha256')
|
67
|
+
self.sha256 = attributes[:'sha256']
|
68
|
+
end
|
69
|
+
|
52
70
|
if attributes.key?(:'offset')
|
53
71
|
self.offset = attributes[:'offset']
|
54
72
|
end
|
@@ -62,28 +80,8 @@ module PulpcoreClient
|
|
62
80
|
# @return Array for valid properties with the reasons
|
63
81
|
def list_invalid_properties
|
64
82
|
invalid_properties = Array.new
|
65
|
-
if
|
66
|
-
invalid_properties.push('invalid value for "
|
67
|
-
end
|
68
|
-
|
69
|
-
if @offset > 9223372036854775807
|
70
|
-
invalid_properties.push('invalid value for "offset", must be smaller than or equal to 9223372036854775807.')
|
71
|
-
end
|
72
|
-
|
73
|
-
if @offset < -9223372036854775808
|
74
|
-
invalid_properties.push('invalid value for "offset", must be greater than or equal to -9223372036854775808.')
|
75
|
-
end
|
76
|
-
|
77
|
-
if @size.nil?
|
78
|
-
invalid_properties.push('invalid value for "size", size cannot be nil.')
|
79
|
-
end
|
80
|
-
|
81
|
-
if @size > 9223372036854775807
|
82
|
-
invalid_properties.push('invalid value for "size", must be smaller than or equal to 9223372036854775807.')
|
83
|
-
end
|
84
|
-
|
85
|
-
if @size < -9223372036854775808
|
86
|
-
invalid_properties.push('invalid value for "size", must be greater than or equal to -9223372036854775808.')
|
83
|
+
if !@sha256.nil? && @sha256.to_s.length < 1
|
84
|
+
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
87
85
|
end
|
88
86
|
|
89
87
|
invalid_properties
|
@@ -92,49 +90,18 @@ module PulpcoreClient
|
|
92
90
|
# Check to see if the all the properties in the model are valid
|
93
91
|
# @return true if the model is valid
|
94
92
|
def valid?
|
95
|
-
return false if
|
96
|
-
return false if @offset > 9223372036854775807
|
97
|
-
return false if @offset < -9223372036854775808
|
98
|
-
return false if @size.nil?
|
99
|
-
return false if @size > 9223372036854775807
|
100
|
-
return false if @size < -9223372036854775808
|
93
|
+
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
101
94
|
true
|
102
95
|
end
|
103
96
|
|
104
97
|
# Custom attribute writer method with validation
|
105
|
-
# @param [Object]
|
106
|
-
def
|
107
|
-
if
|
108
|
-
fail ArgumentError, '
|
109
|
-
end
|
110
|
-
|
111
|
-
if offset > 9223372036854775807
|
112
|
-
fail ArgumentError, 'invalid value for "offset", must be smaller than or equal to 9223372036854775807.'
|
113
|
-
end
|
114
|
-
|
115
|
-
if offset < -9223372036854775808
|
116
|
-
fail ArgumentError, 'invalid value for "offset", must be greater than or equal to -9223372036854775808.'
|
117
|
-
end
|
118
|
-
|
119
|
-
@offset = offset
|
120
|
-
end
|
121
|
-
|
122
|
-
# Custom attribute writer method with validation
|
123
|
-
# @param [Object] size Value to be assigned
|
124
|
-
def size=(size)
|
125
|
-
if size.nil?
|
126
|
-
fail ArgumentError, 'size cannot be nil'
|
127
|
-
end
|
128
|
-
|
129
|
-
if size > 9223372036854775807
|
130
|
-
fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 9223372036854775807.'
|
131
|
-
end
|
132
|
-
|
133
|
-
if size < -9223372036854775808
|
134
|
-
fail ArgumentError, 'invalid value for "size", must be greater than or equal to -9223372036854775808.'
|
98
|
+
# @param [Object] sha256 Value to be assigned
|
99
|
+
def sha256=(sha256)
|
100
|
+
if !sha256.nil? && sha256.to_s.length < 1
|
101
|
+
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
135
102
|
end
|
136
103
|
|
137
|
-
@
|
104
|
+
@sha256 = sha256
|
138
105
|
end
|
139
106
|
|
140
107
|
# Checks equality by comparing each attribute.
|
@@ -142,6 +109,8 @@ module PulpcoreClient
|
|
142
109
|
def ==(o)
|
143
110
|
return true if self.equal?(o)
|
144
111
|
self.class == o.class &&
|
112
|
+
file == o.file &&
|
113
|
+
sha256 == o.sha256 &&
|
145
114
|
offset == o.offset &&
|
146
115
|
size == o.size
|
147
116
|
end
|
@@ -155,7 +124,7 @@ module PulpcoreClient
|
|
155
124
|
# Calculates hash code according to all attributes.
|
156
125
|
# @return [Integer] Hash code
|
157
126
|
def hash
|
158
|
-
[offset, size].hash
|
127
|
+
[file, sha256, offset, size].hash
|
159
128
|
end
|
160
129
|
|
161
130
|
# Builds the object from 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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,7 +45,7 @@ module PulpcoreClient
|
|
45
45
|
:'_created' => :'DateTime',
|
46
46
|
:'size' => :'Integer',
|
47
47
|
:'completed' => :'DateTime',
|
48
|
-
:'chunks' => :'Array<
|
48
|
+
:'chunks' => :'Array<UploadChunk>'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
@@ -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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpcoreClient
|
14
|
-
VERSION = '3.0.
|
14
|
+
VERSION = '3.0.0rc6'
|
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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,7 +37,7 @@ require 'pulpcore_client/models/status'
|
|
37
37
|
require 'pulpcore_client/models/task'
|
38
38
|
require 'pulpcore_client/models/task_cancel'
|
39
39
|
require 'pulpcore_client/models/upload'
|
40
|
-
require 'pulpcore_client/models/
|
40
|
+
require 'pulpcore_client/models/upload_chunk'
|
41
41
|
require 'pulpcore_client/models/upload_commit'
|
42
42
|
require 'pulpcore_client/models/upload_detail'
|
43
43
|
require 'pulpcore_client/models/version'
|
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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -60,8 +60,9 @@ describe 'RepositoriesApi' do
|
|
60
60
|
# @param [Hash] opts the optional parameters
|
61
61
|
# @option opts [String] :name
|
62
62
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
63
|
-
# @option opts [
|
64
|
-
# @option opts [Integer] :
|
63
|
+
# @option opts [String] :plugin_managed
|
64
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
65
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
65
66
|
# @option opts [String] :fields A list of fields to include in the response.
|
66
67
|
# @return [InlineResponse2001]
|
67
68
|
describe 'list test' do
|
data/spec/api/status_api_spec.rb
CHANGED
data/spec/api/tasks_api_spec.rb
CHANGED
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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -38,6 +38,12 @@ describe 'ProgressReport' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "code"' 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
|
+
|
41
47
|
describe 'test attribute "state"' do
|
42
48
|
it 'should work' do
|
43
49
|
# 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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -62,6 +62,12 @@ describe 'Repository' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
describe 'test attribute "plugin_managed"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
65
71
|
describe 'test attribute "description"' do
|
66
72
|
it 'should work' do
|
67
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/status_spec.rb
CHANGED
data/spec/models/task_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.1.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,24 +14,36 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for PulpcoreClient::
|
17
|
+
# Unit tests for PulpcoreClient::UploadChunk
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'UploadChunk' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = PulpcoreClient::
|
23
|
+
@instance = PulpcoreClient::UploadChunk.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 UploadChunk' do
|
31
|
+
it 'should create an instance of UploadChunk' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::UploadChunk)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "file"' 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 "sha256"' 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
|
+
|
35
47
|
describe 'test attribute "offset"' do
|
36
48
|
it 'should work' do
|
37
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|