pulp_file_client 0.1.0b3 → 0.1.0b4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentFilesApi.md +6 -2
- data/docs/DistributionsFileApi.md +6 -2
- data/docs/FileContent.md +11 -13
- data/docs/FileDistribution.md +5 -5
- data/docs/FilePublication.md +5 -7
- data/docs/FileRemote.md +6 -8
- data/docs/PublicationsFileApi.md +6 -2
- data/docs/RemotesFileApi.md +18 -14
- data/lib/pulp_file_client.rb +1 -1
- data/lib/pulp_file_client/api/content_files_api.rb +7 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +7 -1
- data/lib/pulp_file_client/api/publications_file_api.rb +7 -1
- data/lib/pulp_file_client/api/remotes_file_api.rb +25 -19
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +1 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/file_content.rb +14 -38
- data/lib/pulp_file_client/models/file_distribution.rb +14 -14
- data/lib/pulp_file_client/models/file_publication.rb +14 -38
- data/lib/pulp_file_client/models/file_remote.rb +20 -44
- data/lib/pulp_file_client/models/inline_response200.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +3 -1
- data/spec/api/distributions_file_api_spec.rb +3 -1
- data/spec/api/publications_file_api_spec.rb +3 -1
- data/spec/api/remotes_file_api_spec.rb +9 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/file_content_spec.rb +3 -9
- data/spec/models/file_distribution_spec.rb +3 -3
- data/spec/models/file_publication_spec.rb +3 -9
- data/spec/models/file_remote_spec.rb +4 -10
- 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/repository_sync_url_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,12 +14,10 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpFileClient
|
16
16
|
class FileRemote
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :_type
|
20
|
+
attr_accessor :pulp_created
|
23
21
|
|
24
22
|
# A unique name for this remote.
|
25
23
|
attr_accessor :name
|
@@ -49,7 +47,7 @@ module PulpFileClient
|
|
49
47
|
attr_accessor :password
|
50
48
|
|
51
49
|
# Timestamp of the most recent update of the remote.
|
52
|
-
attr_accessor :
|
50
|
+
attr_accessor :pulp_last_updated
|
53
51
|
|
54
52
|
# Total number of simultaneous connections.
|
55
53
|
attr_accessor :download_concurrency
|
@@ -82,9 +80,8 @@ module PulpFileClient
|
|
82
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
81
|
def self.attribute_map
|
84
82
|
{
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'_type' => :'_type',
|
83
|
+
:'pulp_href' => :'pulp_href',
|
84
|
+
:'pulp_created' => :'pulp_created',
|
88
85
|
:'name' => :'name',
|
89
86
|
:'url' => :'url',
|
90
87
|
:'ssl_ca_certificate' => :'ssl_ca_certificate',
|
@@ -94,7 +91,7 @@ module PulpFileClient
|
|
94
91
|
:'proxy_url' => :'proxy_url',
|
95
92
|
:'username' => :'username',
|
96
93
|
:'password' => :'password',
|
97
|
-
:'
|
94
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
98
95
|
:'download_concurrency' => :'download_concurrency',
|
99
96
|
:'policy' => :'policy'
|
100
97
|
}
|
@@ -103,9 +100,8 @@ module PulpFileClient
|
|
103
100
|
# Attribute type mapping.
|
104
101
|
def self.openapi_types
|
105
102
|
{
|
106
|
-
:'
|
107
|
-
:'
|
108
|
-
:'_type' => :'String',
|
103
|
+
:'pulp_href' => :'String',
|
104
|
+
:'pulp_created' => :'DateTime',
|
109
105
|
:'name' => :'String',
|
110
106
|
:'url' => :'String',
|
111
107
|
:'ssl_ca_certificate' => :'String',
|
@@ -115,7 +111,7 @@ module PulpFileClient
|
|
115
111
|
:'proxy_url' => :'String',
|
116
112
|
:'username' => :'String',
|
117
113
|
:'password' => :'String',
|
118
|
-
:'
|
114
|
+
:'pulp_last_updated' => :'DateTime',
|
119
115
|
:'download_concurrency' => :'Integer',
|
120
116
|
:'policy' => :'String'
|
121
117
|
}
|
@@ -136,16 +132,12 @@ module PulpFileClient
|
|
136
132
|
h[k.to_sym] = v
|
137
133
|
}
|
138
134
|
|
139
|
-
if attributes.key?(:'
|
140
|
-
self.
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.key?(:'_created')
|
144
|
-
self._created = attributes[:'_created']
|
135
|
+
if attributes.key?(:'pulp_href')
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
145
137
|
end
|
146
138
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
139
|
+
if attributes.key?(:'pulp_created')
|
140
|
+
self.pulp_created = attributes[:'pulp_created']
|
149
141
|
end
|
150
142
|
|
151
143
|
if attributes.key?(:'name')
|
@@ -184,8 +176,8 @@ module PulpFileClient
|
|
184
176
|
self.password = attributes[:'password']
|
185
177
|
end
|
186
178
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
179
|
+
if attributes.key?(:'pulp_last_updated')
|
180
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
189
181
|
end
|
190
182
|
|
191
183
|
if attributes.key?(:'download_concurrency')
|
@@ -203,10 +195,6 @@ module PulpFileClient
|
|
203
195
|
# @return Array for valid properties with the reasons
|
204
196
|
def list_invalid_properties
|
205
197
|
invalid_properties = Array.new
|
206
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
207
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
208
|
-
end
|
209
|
-
|
210
198
|
if @name.nil?
|
211
199
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
212
200
|
end
|
@@ -257,7 +245,6 @@ module PulpFileClient
|
|
257
245
|
# Check to see if the all the properties in the model are valid
|
258
246
|
# @return true if the model is valid
|
259
247
|
def valid?
|
260
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
261
248
|
return false if @name.nil?
|
262
249
|
return false if @name.to_s.length < 1
|
263
250
|
return false if @url.nil?
|
@@ -274,16 +261,6 @@ module PulpFileClient
|
|
274
261
|
true
|
275
262
|
end
|
276
263
|
|
277
|
-
# Custom attribute writer method with validation
|
278
|
-
# @param [Object] _type Value to be assigned
|
279
|
-
def _type=(_type)
|
280
|
-
if !_type.nil? && _type.to_s.length < 1
|
281
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
282
|
-
end
|
283
|
-
|
284
|
-
@_type = _type
|
285
|
-
end
|
286
|
-
|
287
264
|
# Custom attribute writer method with validation
|
288
265
|
# @param [Object] name Value to be assigned
|
289
266
|
def name=(name)
|
@@ -397,9 +374,8 @@ module PulpFileClient
|
|
397
374
|
def ==(o)
|
398
375
|
return true if self.equal?(o)
|
399
376
|
self.class == o.class &&
|
400
|
-
|
401
|
-
|
402
|
-
_type == o._type &&
|
377
|
+
pulp_href == o.pulp_href &&
|
378
|
+
pulp_created == o.pulp_created &&
|
403
379
|
name == o.name &&
|
404
380
|
url == o.url &&
|
405
381
|
ssl_ca_certificate == o.ssl_ca_certificate &&
|
@@ -409,7 +385,7 @@ module PulpFileClient
|
|
409
385
|
proxy_url == o.proxy_url &&
|
410
386
|
username == o.username &&
|
411
387
|
password == o.password &&
|
412
|
-
|
388
|
+
pulp_last_updated == o.pulp_last_updated &&
|
413
389
|
download_concurrency == o.download_concurrency &&
|
414
390
|
policy == o.policy
|
415
391
|
end
|
@@ -423,7 +399,7 @@ module PulpFileClient
|
|
423
399
|
# Calculates hash code according to all attributes.
|
424
400
|
# @return [Integer] Hash code
|
425
401
|
def hash
|
426
|
-
[
|
402
|
+
[pulp_href, pulp_created, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
|
427
403
|
end
|
428
404
|
|
429
405
|
# Builds the object from 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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpFileClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.0b4'
|
15
15
|
end
|
data/pulp_file_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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -59,6 +59,7 @@ describe 'ContentFilesApi' do
|
|
59
59
|
# @option opts [Integer] :limit Number of results to return per page.
|
60
60
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
61
61
|
# @option opts [String] :fields A list of fields to include in the response.
|
62
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
62
63
|
# @return [InlineResponse200]
|
63
64
|
describe 'list test' do
|
64
65
|
it 'should work' do
|
@@ -72,6 +73,7 @@ describe 'ContentFilesApi' do
|
|
72
73
|
# @param file_content_href URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
73
74
|
# @param [Hash] opts the optional parameters
|
74
75
|
# @option opts [String] :fields A list of fields to include in the response.
|
76
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
75
77
|
# @return [FileContent]
|
76
78
|
describe 'read test' do
|
77
79
|
it 'should work' do
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -69,6 +69,7 @@ describe 'DistributionsFileApi' do
|
|
69
69
|
# @option opts [Integer] :limit Number of results to return per page.
|
70
70
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
71
71
|
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
72
73
|
# @return [InlineResponse2001]
|
73
74
|
describe 'list test' do
|
74
75
|
it 'should work' do
|
@@ -95,6 +96,7 @@ describe 'DistributionsFileApi' do
|
|
95
96
|
# @param file_distribution_href URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
96
97
|
# @param [Hash] opts the optional parameters
|
97
98
|
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
98
100
|
# @return [FileDistribution]
|
99
101
|
describe 'read test' do
|
100
102
|
it 'should work' do
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -64,6 +64,7 @@ describe 'PublicationsFileApi' do
|
|
64
64
|
# @option opts [Integer] :limit Number of results to return per page.
|
65
65
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
66
66
|
# @option opts [String] :fields A list of fields to include in the response.
|
67
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
67
68
|
# @return [InlineResponse2002]
|
68
69
|
describe 'list test' do
|
69
70
|
it 'should work' do
|
@@ -77,6 +78,7 @@ describe 'PublicationsFileApi' do
|
|
77
78
|
# @param file_publication_href URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
|
78
79
|
# @param [Hash] opts the optional parameters
|
79
80
|
# @option opts [String] :fields A list of fields to include in the response.
|
81
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
80
82
|
# @return [FilePublication]
|
81
83
|
describe 'read test' do
|
82
84
|
it 'should work' do
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -62,15 +62,16 @@ describe 'RemotesFileApi' do
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [String] :name
|
64
64
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
|
-
# @option opts [String] :
|
66
|
-
# @option opts [String] :
|
67
|
-
# @option opts [String] :
|
68
|
-
# @option opts [String] :
|
69
|
-
# @option opts [String] :
|
70
|
-
# @option opts [String] :
|
65
|
+
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
66
|
+
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
67
|
+
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
68
|
+
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
69
|
+
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
70
|
+
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
71
71
|
# @option opts [Integer] :limit Number of results to return per page.
|
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
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
74
75
|
# @return [InlineResponse2003]
|
75
76
|
describe 'list test' do
|
76
77
|
it 'should work' do
|
@@ -97,6 +98,7 @@ describe 'RemotesFileApi' do
|
|
97
98
|
# @param file_remote_href URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
98
99
|
# @param [Hash] opts the optional parameters
|
99
100
|
# @option opts [String] :fields A list of fields to include in the response.
|
101
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
102
|
# @return [FileRemote]
|
101
103
|
describe 'read test' do
|
102
104
|
it 'should work' do
|
data/spec/api_client_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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -118,7 +118,7 @@ describe PulpFileClient::ApiClient do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'fails for invalid collection format' do
|
121
|
-
expect
|
121
|
+
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,19 +32,13 @@ describe 'FileContent' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpFileClient::FileContent)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_href"' 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 "
|
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 "_type"' do
|
41
|
+
describe 'test attribute "pulp_created"' do
|
48
42
|
it 'should work' do
|
49
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
44
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,13 +32,13 @@ describe 'FileDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpFileClient::FileDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_href"' 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 "pulp_created"' 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
|