pulp_file_client 1.11.1 → 1.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/DistributionsFileApi.md +2 -0
- data/docs/RepositoriesFileApi.md +2 -0
- data/lib/pulp_file_client/api/distributions_file_api.rb +3 -0
- data/lib/pulp_file_client/api/repositories_file_api.rb +3 -0
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +1 -1
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/version.rb +1 -1
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -0
- data/spec/api/repositories_file_api_spec.rb +1 -0
- 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: 3a4af5031bd3c11ba96f02f1d4b4878b475d05a3c2350890c335ce8c6495235a
|
4
|
+
data.tar.gz: 59b222bc31cd53b5274f0922942ff11d7f59bf6a32d300b8e0a3fbdb0bccfbbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 622d678bf071b5590c136daa2852ce56c70cc0551200cb155b9d619e9a5400e045e064c31ecb0377421ef876ff91e1d14be1a3b273ab330875233fb0f4be90a8
|
7
|
+
data.tar.gz: efb44d6a4dd5b34f25615595edc6127fbc9abe9bd13acb7324d28faa545f38ae7043d2623acf672bd7d9f0cb164d060949c7a37818472d3462a3b62210869042
|
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: 1.11.
|
10
|
+
- Package version: 1.11.2
|
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-1.11.
|
27
|
+
gem install ./pulp_file_client-1.11.2.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-1.11.
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-1.11.2.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', '~> 1.11.
|
36
|
+
gem 'pulp_file_client', '~> 1.11.2'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -212,6 +212,7 @@ opts = {
|
|
212
212
|
offset: 56, # Integer | The initial index from which to return the results.
|
213
213
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
214
214
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
215
|
+
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
215
216
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
216
217
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
217
218
|
}
|
@@ -243,6 +244,7 @@ Name | Type | Description | Notes
|
|
243
244
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
244
245
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
245
246
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
247
|
+
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
246
248
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
247
249
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
248
250
|
|
data/docs/RepositoriesFileApi.md
CHANGED
@@ -210,6 +210,7 @@ opts = {
|
|
210
210
|
offset: 56, # Integer | The initial index from which to return the results.
|
211
211
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
212
212
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
213
|
+
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
213
214
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
214
215
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
215
216
|
}
|
@@ -237,6 +238,7 @@ Name | Type | Description | Notes
|
|
237
238
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
238
239
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
239
240
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
241
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
240
242
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
241
243
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
242
244
|
|
@@ -229,6 +229,7 @@ module PulpFileClient
|
|
229
229
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
230
230
|
# @option opts [Array<String>] :ordering Ordering
|
231
231
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
232
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
232
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
233
234
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
234
235
|
# @return [PaginatedfileFileDistributionResponseList]
|
@@ -253,6 +254,7 @@ module PulpFileClient
|
|
253
254
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
254
255
|
# @option opts [Array<String>] :ordering Ordering
|
255
256
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
257
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
256
258
|
# @option opts [String] :fields A list of fields to include in the response.
|
257
259
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
258
260
|
# @return [Array<(PaginatedfileFileDistributionResponseList, Integer, Hash)>] PaginatedfileFileDistributionResponseList data, response status code and response headers
|
@@ -282,6 +284,7 @@ module PulpFileClient
|
|
282
284
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
283
285
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
284
286
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
287
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
285
288
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
286
289
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
287
290
|
|
@@ -225,6 +225,7 @@ module PulpFileClient
|
|
225
225
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
226
226
|
# @option opts [Array<String>] :ordering Ordering
|
227
227
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
228
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
228
229
|
# @option opts [String] :fields A list of fields to include in the response.
|
229
230
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
230
231
|
# @return [PaginatedfileFileRepositoryResponseList]
|
@@ -245,6 +246,7 @@ module PulpFileClient
|
|
245
246
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
246
247
|
# @option opts [Array<String>] :ordering Ordering
|
247
248
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
249
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
248
250
|
# @option opts [String] :fields A list of fields to include in the response.
|
249
251
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
250
252
|
# @return [Array<(PaginatedfileFileRepositoryResponseList, Integer, Hash)>] PaginatedfileFileRepositoryResponseList data, response status code and response headers
|
@@ -270,6 +272,7 @@ module PulpFileClient
|
|
270
272
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
271
273
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
272
274
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
275
|
+
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
273
276
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
274
277
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
275
278
|
|
@@ -142,7 +142,7 @@ module PulpFileClient
|
|
142
142
|
if @api_client.config.client_side_validation && file_file_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileVersionsApi.list"
|
144
144
|
end
|
145
|
-
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
145
|
+
allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
|
146
146
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
147
147
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
148
148
|
end
|
@@ -154,7 +154,7 @@ module PulpFileClient
|
|
154
154
|
case value
|
155
155
|
when ::File, ::Tempfile
|
156
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
157
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
158
158
|
when ::Array, nil
|
159
159
|
# let Faraday handle Array and nil parameters
|
160
160
|
data[key] = value
|
data/pulp_file_client.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '>= 0.
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -85,6 +85,7 @@ describe 'DistributionsFileApi' do
|
|
85
85
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
86
86
|
# @option opts [Array<String>] :ordering Ordering
|
87
87
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
88
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
88
89
|
# @option opts [String] :fields A list of fields to include in the response.
|
89
90
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
90
91
|
# @return [PaginatedfileFileDistributionResponseList]
|
@@ -81,6 +81,7 @@ describe 'RepositoriesFileApi' do
|
|
81
81
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
82
82
|
# @option opts [Array<String>] :ordering Ordering
|
83
83
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
84
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
84
85
|
# @option opts [String] :fields A list of fields to include in the response.
|
85
86
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
86
87
|
# @return [PaginatedfileFileRepositoryResponseList]
|
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: 1.11.
|
4
|
+
version: 1.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '2.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 1.0.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,48 +239,48 @@ signing_key:
|
|
239
239
|
specification_version: 4
|
240
240
|
summary: Pulp 3 API Ruby Gem
|
241
241
|
test_files:
|
242
|
-
- spec/api/
|
243
|
-
- spec/api/remotes_file_api_spec.rb
|
244
|
-
- spec/api/repositories_file_api_spec.rb
|
242
|
+
- spec/api/distributions_file_api_spec.rb
|
245
243
|
- spec/api/acs_file_api_spec.rb
|
246
|
-
- spec/api/content_files_api_spec.rb
|
247
244
|
- spec/api/repositories_file_versions_api_spec.rb
|
248
|
-
- spec/api/
|
245
|
+
- spec/api/content_files_api_spec.rb
|
246
|
+
- spec/api/repositories_file_api_spec.rb
|
247
|
+
- spec/api/publications_file_api_spec.rb
|
248
|
+
- spec/api/remotes_file_api_spec.rb
|
249
249
|
- spec/api_client_spec.rb
|
250
250
|
- spec/configuration_spec.rb
|
251
|
+
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
252
|
+
- spec/models/repository_version_response_spec.rb
|
251
253
|
- spec/models/file_file_repository_response_spec.rb
|
252
|
-
- spec/models/file_file_remote_response_spec.rb
|
253
254
|
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
255
|
+
- spec/models/file_file_distribution_response_spec.rb
|
256
|
+
- spec/models/object_roles_response_spec.rb
|
257
|
+
- spec/models/nested_role_response_spec.rb
|
258
|
+
- spec/models/file_file_content_response_spec.rb
|
254
259
|
- spec/models/patchedfile_file_alternate_content_source_spec.rb
|
255
|
-
- spec/models/
|
260
|
+
- spec/models/file_file_remote_response_spec.rb
|
261
|
+
- spec/models/my_permissions_response_spec.rb
|
262
|
+
- spec/models/file_file_content_spec.rb
|
263
|
+
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
256
264
|
- spec/models/async_operation_response_spec.rb
|
257
|
-
- spec/models/
|
258
|
-
- spec/models/
|
265
|
+
- spec/models/file_file_publication_spec.rb
|
266
|
+
- spec/models/content_summary_response_spec.rb
|
259
267
|
- spec/models/file_file_repository_spec.rb
|
260
|
-
- spec/models/
|
261
|
-
- spec/models/repository_sync_url_spec.rb
|
262
|
-
- spec/models/patchedfile_file_remote_spec.rb
|
263
|
-
- spec/models/object_roles_response_spec.rb
|
268
|
+
- spec/models/file_file_distribution_spec.rb
|
264
269
|
- spec/models/file_file_remote_spec.rb
|
265
|
-
- spec/models/my_permissions_response_spec.rb
|
266
|
-
- spec/models/policy_enum_spec.rb
|
267
|
-
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
268
|
-
- spec/models/file_file_distribution_response_spec.rb
|
269
270
|
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
270
|
-
- spec/models/
|
271
|
-
- spec/models/
|
272
|
-
- spec/models/patchedfile_file_distribution_spec.rb
|
273
|
-
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
274
|
-
- spec/models/file_file_alternate_content_source_response_spec.rb
|
275
|
-
- spec/models/task_group_operation_response_spec.rb
|
276
|
-
- spec/models/nested_role_spec.rb
|
271
|
+
- spec/models/policy_enum_spec.rb
|
272
|
+
- spec/models/repair_spec.rb
|
277
273
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
278
|
-
- spec/models/
|
274
|
+
- spec/models/repository_sync_url_spec.rb
|
279
275
|
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
280
|
-
- spec/models/
|
276
|
+
- spec/models/nested_role_spec.rb
|
277
|
+
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
278
|
+
- spec/models/file_file_alternate_content_source_response_spec.rb
|
279
|
+
- spec/models/patchedfile_file_repository_spec.rb
|
281
280
|
- spec/models/file_file_publication_response_spec.rb
|
282
|
-
- spec/models/
|
283
|
-
- spec/models/
|
284
|
-
- spec/models/
|
285
|
-
- spec/models/
|
281
|
+
- spec/models/patchedfile_file_distribution_spec.rb
|
282
|
+
- spec/models/patchedfile_file_remote_spec.rb
|
283
|
+
- spec/models/repository_add_remove_content_spec.rb
|
284
|
+
- spec/models/file_file_alternate_content_source_spec.rb
|
285
|
+
- spec/models/task_group_operation_response_spec.rb
|
286
286
|
- spec/spec_helper.rb
|