pulp_file_client 3.56.0 → 3.57.0
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 +2 -2
- data/docs/FileFileContent.md +2 -2
- data/lib/pulp_file_client/api/content_files_api.rb +5 -5
- data/lib/pulp_file_client/models/file_file_content.rb +15 -15
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +1 -1
- metadata +36 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b2e6909d5abfd536b23686ebd51f3546c1a3269d9e76a564d56c841d35fb7ad
|
4
|
+
data.tar.gz: 64dc11f417ea866484e6ebf4aea58f37ee32e04ffc03e0c3a143ad8ba7a35385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9476b5837ff924e3b7b0f9245d3fea3d3919952b8d4191df0f75bcdebc6f16c70316f2e3580fa6072d8f4b91c209b3155883b8c42ad0013f60b32401e1cc1882
|
7
|
+
data.tar.gz: 28643e95acc99ca83260a29678449269867216cda87a8e0c69e7c7dd106290081a4089802c8b97aa579a5622dd253cbfdb8a3c22e40ab7cda6b5ad3343693954
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.
|
10
|
+
- Package version: 3.57.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_file_client-3.
|
27
|
+
gem install ./pulp_file_client-3.57.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-3.57.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_file_client', '~> 3.
|
36
|
+
gem 'pulp_file_client', '~> 3.57.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/ContentFilesApi.md
CHANGED
@@ -37,7 +37,7 @@ opts = {
|
|
37
37
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
38
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
39
39
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
|
-
|
40
|
+
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
41
41
|
}
|
42
42
|
|
43
43
|
begin
|
@@ -59,7 +59,7 @@ Name | Type | Description | Notes
|
|
59
59
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
60
60
|
**file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
|
61
61
|
**upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
|
62
|
-
**
|
62
|
+
**file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
|
63
63
|
|
64
64
|
### Return type
|
65
65
|
|
data/docs/FileFileContent.md
CHANGED
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
10
10
|
**file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
|
12
|
-
**
|
12
|
+
**file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
|
13
13
|
|
14
14
|
## Code Sample
|
15
15
|
|
@@ -21,7 +21,7 @@ instance = PulpFileClient::FileFileContent.new(repository: null,
|
|
21
21
|
relative_path: null,
|
22
22
|
file: null,
|
23
23
|
upload: null,
|
24
|
-
|
24
|
+
file_url: null)
|
25
25
|
```
|
26
26
|
|
27
27
|
|
@@ -27,7 +27,7 @@ module PulpFileClient
|
|
27
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
30
|
-
# @option opts [String] :
|
30
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
31
31
|
# @return [AsyncOperationResponse]
|
32
32
|
def create(relative_path, opts = {})
|
33
33
|
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
@@ -42,7 +42,7 @@ module PulpFileClient
|
|
42
42
|
# @option opts [String] :artifact Artifact file representing the physical content
|
43
43
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
44
44
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
45
|
-
# @option opts [String] :
|
45
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
46
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
47
47
|
def create_with_http_info(relative_path, opts = {})
|
48
48
|
if @api_client.config.debugging
|
@@ -56,8 +56,8 @@ module PulpFileClient
|
|
56
56
|
fail ArgumentError, 'invalid value for "relative_path" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
|
57
57
|
end
|
58
58
|
|
59
|
-
if @api_client.config.client_side_validation && !opts[:'
|
60
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
|
61
61
|
end
|
62
62
|
|
63
63
|
# resource path
|
@@ -80,7 +80,7 @@ module PulpFileClient
|
|
80
80
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
81
81
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
82
82
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
83
|
-
form_params['
|
83
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
84
84
|
|
85
85
|
# http body (model)
|
86
86
|
post_body = opts[:body]
|
@@ -31,7 +31,7 @@ module PulpFileClient
|
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# A url that Pulp can download and turn into the content unit.
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :file_url
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
@@ -41,7 +41,7 @@ module PulpFileClient
|
|
41
41
|
:'relative_path' => :'relative_path',
|
42
42
|
:'file' => :'file',
|
43
43
|
:'upload' => :'upload',
|
44
|
-
:'
|
44
|
+
:'file_url' => :'file_url'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -53,7 +53,7 @@ module PulpFileClient
|
|
53
53
|
:'relative_path' => :'String',
|
54
54
|
:'file' => :'File',
|
55
55
|
:'upload' => :'String',
|
56
|
-
:'
|
56
|
+
:'file_url' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -98,8 +98,8 @@ module PulpFileClient
|
|
98
98
|
self.upload = attributes[:'upload']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'file_url')
|
102
|
+
self.file_url = attributes[:'file_url']
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
@@ -115,8 +115,8 @@ module PulpFileClient
|
|
115
115
|
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
116
116
|
end
|
117
117
|
|
118
|
-
if !@
|
119
|
-
invalid_properties.push('invalid value for "
|
118
|
+
if !@file_url.nil? && @file_url.to_s.length < 1
|
119
|
+
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
120
120
|
end
|
121
121
|
|
122
122
|
invalid_properties
|
@@ -127,7 +127,7 @@ module PulpFileClient
|
|
127
127
|
def valid?
|
128
128
|
return false if @relative_path.nil?
|
129
129
|
return false if @relative_path.to_s.length < 1
|
130
|
-
return false if !@
|
130
|
+
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
@@ -146,13 +146,13 @@ module PulpFileClient
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# Custom attribute writer method with validation
|
149
|
-
# @param [Object]
|
150
|
-
def
|
151
|
-
if !
|
152
|
-
fail ArgumentError, 'invalid value for "
|
149
|
+
# @param [Object] file_url Value to be assigned
|
150
|
+
def file_url=(file_url)
|
151
|
+
if !file_url.nil? && file_url.to_s.length < 1
|
152
|
+
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
153
153
|
end
|
154
154
|
|
155
|
-
@
|
155
|
+
@file_url = file_url
|
156
156
|
end
|
157
157
|
|
158
158
|
# Checks equality by comparing each attribute.
|
@@ -165,7 +165,7 @@ module PulpFileClient
|
|
165
165
|
relative_path == o.relative_path &&
|
166
166
|
file == o.file &&
|
167
167
|
upload == o.upload &&
|
168
|
-
|
168
|
+
file_url == o.file_url
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpFileClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[repository, artifact, relative_path, file, upload,
|
180
|
+
[repository, artifact, relative_path, file, upload, file_url].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -41,7 +41,7 @@ describe 'ContentFilesApi' do
|
|
41
41
|
# @option opts [String] :artifact Artifact file representing the physical content
|
42
42
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
43
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
44
|
-
# @option opts [String] :
|
44
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
45
45
|
# @return [AsyncOperationResponse]
|
46
46
|
describe 'create test' do
|
47
47
|
it 'should work' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_file_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.57.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -254,53 +254,53 @@ signing_key:
|
|
254
254
|
specification_version: 4
|
255
255
|
summary: Pulp 3 API Ruby Gem
|
256
256
|
test_files:
|
257
|
-
- spec/api/remotes_file_api_spec.rb
|
258
|
-
- spec/api/content_files_api_spec.rb
|
259
|
-
- spec/api/acs_file_api_spec.rb
|
260
|
-
- spec/api/repositories_file_api_spec.rb
|
261
257
|
- spec/api/distributions_file_api_spec.rb
|
258
|
+
- spec/api/remotes_file_api_spec.rb
|
262
259
|
- spec/api/publications_file_api_spec.rb
|
263
260
|
- spec/api/repositories_file_versions_api_spec.rb
|
261
|
+
- spec/api/repositories_file_api_spec.rb
|
262
|
+
- spec/api/content_files_api_spec.rb
|
263
|
+
- spec/api/acs_file_api_spec.rb
|
264
264
|
- spec/api_client_spec.rb
|
265
265
|
- spec/configuration_spec.rb
|
266
|
-
- spec/models/
|
267
|
-
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
268
|
-
- spec/models/patchedfile_file_remote_spec.rb
|
269
|
-
- spec/models/repository_sync_url_spec.rb
|
266
|
+
- spec/models/nested_role_spec.rb
|
270
267
|
- spec/models/file_file_distribution_spec.rb
|
271
|
-
- spec/models/
|
272
|
-
- spec/models/
|
273
|
-
- spec/models/
|
268
|
+
- spec/models/patchedfile_file_remote_spec.rb
|
269
|
+
- spec/models/repair_spec.rb
|
270
|
+
- spec/models/content_summary_response_spec.rb
|
271
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
274
272
|
- spec/models/set_label_response_spec.rb
|
275
|
-
- spec/models/
|
276
|
-
- spec/models/
|
277
|
-
- spec/models/file_file_remote_spec.rb
|
278
|
-
- spec/models/task_group_operation_response_spec.rb
|
273
|
+
- spec/models/file_file_remote_response_spec.rb
|
274
|
+
- spec/models/patchedfile_file_alternate_content_source_spec.rb
|
279
275
|
- spec/models/object_roles_response_spec.rb
|
280
|
-
- spec/models/async_operation_response_spec.rb
|
281
|
-
- spec/models/file_file_alternate_content_source_response_spec.rb
|
282
|
-
- spec/models/patchedfile_file_repository_spec.rb
|
283
|
-
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
284
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
285
276
|
- spec/models/nested_role_response_spec.rb
|
286
|
-
- spec/models/
|
277
|
+
- spec/models/policy_enum_spec.rb
|
278
|
+
- spec/models/file_file_repository_spec.rb
|
287
279
|
- spec/models/file_file_repository_response_spec.rb
|
280
|
+
- spec/models/repository_version_response_spec.rb
|
281
|
+
- spec/models/unset_label_spec.rb
|
282
|
+
- spec/models/my_permissions_response_spec.rb
|
283
|
+
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
284
|
+
- spec/models/repository_sync_url_spec.rb
|
285
|
+
- spec/models/unset_label_response_spec.rb
|
288
286
|
- spec/models/file_file_alternate_content_source_spec.rb
|
289
|
-
- spec/models/
|
290
|
-
- spec/models/
|
291
|
-
- spec/models/
|
292
|
-
- spec/models/
|
293
|
-
- spec/models/
|
294
|
-
- spec/models/patchedfile_file_distribution_spec.rb
|
287
|
+
- spec/models/async_operation_response_spec.rb
|
288
|
+
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
289
|
+
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
290
|
+
- spec/models/patchedfile_file_repository_spec.rb
|
291
|
+
- spec/models/file_file_alternate_content_source_response_spec.rb
|
295
292
|
- spec/models/repository_add_remove_content_spec.rb
|
296
|
-
- spec/models/file_file_remote_response_spec.rb
|
297
|
-
- spec/models/file_file_content_spec.rb
|
298
|
-
- spec/models/content_summary_response_spec.rb
|
299
|
-
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
300
|
-
- spec/models/nested_role_spec.rb
|
301
293
|
- spec/models/file_file_content_response_spec.rb
|
302
|
-
- spec/models/
|
294
|
+
- spec/models/file_file_remote_spec.rb
|
303
295
|
- spec/models/file_file_publication_spec.rb
|
296
|
+
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
297
|
+
- spec/models/patchedfile_file_distribution_spec.rb
|
298
|
+
- spec/models/file_file_content_spec.rb
|
299
|
+
- spec/models/file_file_distribution_response_spec.rb
|
300
|
+
- spec/models/task_group_operation_response_spec.rb
|
301
|
+
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
302
|
+
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
303
|
+
- spec/models/set_label_spec.rb
|
304
304
|
- spec/models/file_file_publication_response_spec.rb
|
305
|
-
- spec/models/
|
305
|
+
- spec/models/file_file_remote_response_hidden_fields_spec.rb
|
306
306
|
- spec/spec_helper.rb
|