pulp_file_client 0.1.0b3 → 0.1.0b4
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/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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d213e72c4ed42db6ad69d923d9aea90ca48c97d3c687458c7651c340b22e0f5
|
4
|
+
data.tar.gz: 689b45102722d6ddd6da5f80e0f5591c2a60d62eba9b60c154a6bac865baa09d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8734585ba01154800023b9dec7cc1bc6a0d9fd2d1ce9792d8527301652423d9f5eb5f8e0011f363ed1b0fe465d079b31f7a83d9d35c912e9f46036fea38dd1
|
7
|
+
data.tar.gz: d030d6eba8c4a9c0d9fc4816e274baf6b730f4fd3569fcb43174c481285bdd84ae7c09824efa2e9b2a5e382f94dee6de7f0588d47d1b3efaeb77cd92d8d80483
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
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: 0.1.
|
10
|
+
- Package version: 0.1.0b4
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulp_file_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulp_file_client-0.1.
|
26
|
+
gem install ./pulp_file_client-0.1.0b4.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_file_client-0.1.
|
29
|
+
(for development, run `gem install --dev ./pulp_file_client-0.1.0b4.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'pulp_file_client', '~> 0.1.
|
35
|
+
gem 'pulp_file_client', '~> 0.1.0b4'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
data/docs/ContentFilesApi.md
CHANGED
@@ -100,7 +100,8 @@ opts = {
|
|
100
100
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
101
101
|
limit: 56, # Integer | Number of results to return per page.
|
102
102
|
offset: 56, # Integer | The initial index from which to return the results.
|
103
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
103
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
104
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
104
105
|
}
|
105
106
|
|
106
107
|
begin
|
@@ -125,6 +126,7 @@ Name | Type | Description | Notes
|
|
125
126
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
126
127
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
127
128
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
129
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
128
130
|
|
129
131
|
### Return type
|
130
132
|
|
@@ -163,7 +165,8 @@ end
|
|
163
165
|
api_instance = PulpFileClient::ContentFilesApi.new
|
164
166
|
file_content_href = 'file_content_href_example' # String | URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
165
167
|
opts = {
|
166
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
168
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
169
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
167
170
|
}
|
168
171
|
|
169
172
|
begin
|
@@ -182,6 +185,7 @@ Name | Type | Description | Notes
|
|
182
185
|
------------- | ------------- | ------------- | -------------
|
183
186
|
**file_content_href** | **String**| URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/ |
|
184
187
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
188
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
185
189
|
|
186
190
|
### Return type
|
187
191
|
|
@@ -149,7 +149,8 @@ opts = {
|
|
149
149
|
base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
|
150
150
|
limit: 56, # Integer | Number of results to return per page.
|
151
151
|
offset: 56, # Integer | The initial index from which to return the results.
|
152
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
152
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
153
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
153
154
|
}
|
154
155
|
|
155
156
|
begin
|
@@ -175,6 +176,7 @@ Name | Type | Description | Notes
|
|
175
176
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
176
177
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
177
178
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
179
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
178
180
|
|
179
181
|
### Return type
|
180
182
|
|
@@ -268,7 +270,8 @@ end
|
|
268
270
|
api_instance = PulpFileClient::DistributionsFileApi.new
|
269
271
|
file_distribution_href = 'file_distribution_href_example' # String | URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
270
272
|
opts = {
|
271
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
273
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
274
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
272
275
|
}
|
273
276
|
|
274
277
|
begin
|
@@ -287,6 +290,7 @@ Name | Type | Description | Notes
|
|
287
290
|
------------- | ------------- | ------------- | -------------
|
288
291
|
**file_distribution_href** | **String**| URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/ |
|
289
292
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
293
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
290
294
|
|
291
295
|
### Return type
|
292
296
|
|
data/docs/FileContent.md
CHANGED
@@ -4,28 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
11
10
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
12
|
-
**file** | **String** | An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
11
|
+
**file** | **String** | An uploaded file that should be turned into the artifact of the content unit. | [optional] [readonly]
|
13
12
|
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
14
|
-
**md5** | **String** | The MD5 checksum if available. | [optional]
|
15
|
-
**sha1** | **String** | The SHA-1 checksum if available. | [optional]
|
16
|
-
**sha224** | **String** | The SHA-224 checksum if available. | [optional]
|
17
|
-
**sha256** | **String** | The SHA-256 checksum if available. | [optional]
|
18
|
-
**sha384** | **String** | The SHA-384 checksum if available. | [optional]
|
19
|
-
**sha512** | **String** | The SHA-512 checksum if available. | [optional]
|
13
|
+
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
14
|
+
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
15
|
+
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
16
|
+
**sha256** | **String** | The SHA-256 checksum if available. | [optional] [readonly]
|
17
|
+
**sha384** | **String** | The SHA-384 checksum if available. | [optional] [readonly]
|
18
|
+
**sha512** | **String** | The SHA-512 checksum if available. | [optional] [readonly]
|
20
19
|
|
21
20
|
## Code Sample
|
22
21
|
|
23
22
|
```ruby
|
24
23
|
require 'PulpFileClient'
|
25
24
|
|
26
|
-
instance = PulpFileClient::FileContent.new(
|
27
|
-
|
28
|
-
_type: null,
|
25
|
+
instance = PulpFileClient::FileContent.new(pulp_href: null,
|
26
|
+
pulp_created: null,
|
29
27
|
artifact: null,
|
30
28
|
relative_path: null,
|
31
29
|
file: null,
|
data/docs/FileDistribution.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
|
-
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional]
|
10
|
+
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
11
11
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
12
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
13
|
**publication** | **String** | Publication to be served | [optional]
|
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
|
|
17
17
|
```ruby
|
18
18
|
require 'PulpFileClient'
|
19
19
|
|
20
|
-
instance = PulpFileClient::FileDistribution.new(
|
21
|
-
|
20
|
+
instance = PulpFileClient::FileDistribution.new(pulp_href: null,
|
21
|
+
pulp_created: null,
|
22
22
|
base_path: null,
|
23
23
|
base_url: null,
|
24
24
|
content_guard: null,
|
data/docs/FilePublication.md
CHANGED
@@ -4,13 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**publisher** | **String** | | [optional]
|
11
10
|
**repository_version** | **String** | | [optional]
|
12
11
|
**repository** | **String** | A URI of the repository to be published. | [optional]
|
13
|
-
**distributions** | **Array<String>** | This publication is currently hosted as defined by these distributions. | [optional]
|
12
|
+
**distributions** | **Array<String>** | This publication is currently hosted as defined by these distributions. | [optional] [readonly]
|
14
13
|
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
15
14
|
|
16
15
|
## Code Sample
|
@@ -18,9 +17,8 @@ Name | Type | Description | Notes
|
|
18
17
|
```ruby
|
19
18
|
require 'PulpFileClient'
|
20
19
|
|
21
|
-
instance = PulpFileClient::FilePublication.new(
|
22
|
-
|
23
|
-
_type: null,
|
20
|
+
instance = PulpFileClient::FilePublication.new(pulp_href: null,
|
21
|
+
pulp_created: null,
|
24
22
|
publisher: null,
|
25
23
|
repository_version: null,
|
26
24
|
repository: null,
|
data/docs/FileRemote.md
CHANGED
@@ -4,9 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**
|
9
|
-
**_type** | **String** | | [optional]
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
9
|
**name** | **String** | A unique name for this remote. |
|
11
10
|
**url** | **String** | The URL of an external content source. |
|
12
11
|
**ssl_ca_certificate** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
@@ -16,7 +15,7 @@ Name | Type | Description | Notes
|
|
16
15
|
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
17
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
18
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
19
|
-
**
|
18
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
20
19
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
21
20
|
**policy** | **String** | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. | [optional] [default to 'immediate']
|
22
21
|
|
@@ -25,9 +24,8 @@ Name | Type | Description | Notes
|
|
25
24
|
```ruby
|
26
25
|
require 'PulpFileClient'
|
27
26
|
|
28
|
-
instance = PulpFileClient::FileRemote.new(
|
29
|
-
|
30
|
-
_type: null,
|
27
|
+
instance = PulpFileClient::FileRemote.new(pulp_href: null,
|
28
|
+
pulp_created: null,
|
31
29
|
name: null,
|
32
30
|
url: null,
|
33
31
|
ssl_ca_certificate: null,
|
@@ -37,7 +35,7 @@ instance = PulpFileClient::FileRemote.new(_href: null,
|
|
37
35
|
proxy_url: null,
|
38
36
|
username: null,
|
39
37
|
password: null,
|
40
|
-
|
38
|
+
pulp_last_updated: null,
|
41
39
|
download_concurrency: null,
|
42
40
|
policy: null)
|
43
41
|
```
|
data/docs/PublicationsFileApi.md
CHANGED
@@ -141,7 +141,8 @@ opts = {
|
|
141
141
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
142
142
|
limit: 56, # Integer | Number of results to return per page.
|
143
143
|
offset: 56, # Integer | The initial index from which to return the results.
|
144
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
144
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
145
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
145
146
|
}
|
146
147
|
|
147
148
|
begin
|
@@ -162,6 +163,7 @@ Name | Type | Description | Notes
|
|
162
163
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
163
164
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
164
165
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
166
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
165
167
|
|
166
168
|
### Return type
|
167
169
|
|
@@ -200,7 +202,8 @@ end
|
|
200
202
|
api_instance = PulpFileClient::PublicationsFileApi.new
|
201
203
|
file_publication_href = 'file_publication_href_example' # String | URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
|
202
204
|
opts = {
|
203
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
205
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
206
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
204
207
|
}
|
205
208
|
|
206
209
|
begin
|
@@ -219,6 +222,7 @@ Name | Type | Description | Notes
|
|
219
222
|
------------- | ------------- | ------------- | -------------
|
220
223
|
**file_publication_href** | **String**| URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/ |
|
221
224
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
225
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
222
226
|
|
223
227
|
### Return type
|
224
228
|
|
data/docs/RemotesFileApi.md
CHANGED
@@ -144,15 +144,16 @@ api_instance = PulpFileClient::RemotesFileApi.new
|
|
144
144
|
opts = {
|
145
145
|
name: 'name_example', # String |
|
146
146
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
147
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
|
148
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
|
149
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
|
150
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
|
151
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
|
152
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
153
|
limit: 56, # Integer | Number of results to return per page.
|
154
154
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
155
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
156
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
156
157
|
}
|
157
158
|
|
158
159
|
begin
|
@@ -171,15 +172,16 @@ Name | Type | Description | Notes
|
|
171
172
|
------------- | ------------- | ------------- | -------------
|
172
173
|
**name** | **String**| | [optional]
|
173
174
|
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
174
|
-
**
|
175
|
-
**
|
176
|
-
**
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
175
|
+
**pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
|
176
|
+
**pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
177
|
+
**pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
|
178
|
+
**pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
179
|
+
**pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
180
|
+
**pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
180
181
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
181
182
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
182
183
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
184
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
183
185
|
|
184
186
|
### Return type
|
185
187
|
|
@@ -273,7 +275,8 @@ end
|
|
273
275
|
api_instance = PulpFileClient::RemotesFileApi.new
|
274
276
|
file_remote_href = 'file_remote_href_example' # String | URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
|
275
277
|
opts = {
|
276
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
278
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
279
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
277
280
|
}
|
278
281
|
|
279
282
|
begin
|
@@ -292,6 +295,7 @@ Name | Type | Description | Notes
|
|
292
295
|
------------- | ------------- | ------------- | -------------
|
293
296
|
**file_remote_href** | **String**| URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/ |
|
294
297
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
298
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
299
|
|
296
300
|
### Return type
|
297
301
|
|
data/lib/pulp_file_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.
|
9
|
+
OpenAPI Generator version: 4.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -108,6 +108,7 @@ module PulpFileClient
|
|
108
108
|
# @option opts [Integer] :limit Number of results to return per page.
|
109
109
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
110
110
|
# @option opts [String] :fields A list of fields to include in the response.
|
111
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
111
112
|
# @return [InlineResponse200]
|
112
113
|
def list(opts = {})
|
113
114
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -125,6 +126,7 @@ module PulpFileClient
|
|
125
126
|
# @option opts [Integer] :limit Number of results to return per page.
|
126
127
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
128
|
# @option opts [String] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
128
130
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
129
131
|
def list_with_http_info(opts = {})
|
130
132
|
if @api_client.config.debugging
|
@@ -143,6 +145,7 @@ module PulpFileClient
|
|
143
145
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
144
146
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
145
147
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
148
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
146
149
|
|
147
150
|
# header parameters
|
148
151
|
header_params = opts[:header_params] || {}
|
@@ -182,6 +185,7 @@ module PulpFileClient
|
|
182
185
|
# @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
183
186
|
# @param [Hash] opts the optional parameters
|
184
187
|
# @option opts [String] :fields A list of fields to include in the response.
|
188
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
185
189
|
# @return [FileContent]
|
186
190
|
def read(file_content_href, opts = {})
|
187
191
|
data, _status_code, _headers = read_with_http_info(file_content_href, opts)
|
@@ -193,6 +197,7 @@ module PulpFileClient
|
|
193
197
|
# @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
|
194
198
|
# @param [Hash] opts the optional parameters
|
195
199
|
# @option opts [String] :fields A list of fields to include in the response.
|
200
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
196
201
|
# @return [Array<(FileContent, Integer, Hash)>] FileContent data, response status code and response headers
|
197
202
|
def read_with_http_info(file_content_href, opts = {})
|
198
203
|
if @api_client.config.debugging
|
@@ -208,6 +213,7 @@ module PulpFileClient
|
|
208
213
|
# query parameters
|
209
214
|
query_params = opts[:query_params] || {}
|
210
215
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
216
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
211
217
|
|
212
218
|
# header parameters
|
213
219
|
header_params = opts[:header_params] || {}
|
@@ -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
|
|
@@ -157,6 +157,7 @@ module PulpFileClient
|
|
157
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
158
158
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
160
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
160
161
|
# @return [InlineResponse2001]
|
161
162
|
def list(opts = {})
|
162
163
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -175,6 +176,7 @@ module PulpFileClient
|
|
175
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
176
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
178
|
# @option opts [String] :fields A list of fields to include in the response.
|
179
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
178
180
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
179
181
|
def list_with_http_info(opts = {})
|
180
182
|
if @api_client.config.debugging
|
@@ -194,6 +196,7 @@ module PulpFileClient
|
|
194
196
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
197
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
196
198
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
199
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
197
200
|
|
198
201
|
# header parameters
|
199
202
|
header_params = opts[:header_params] || {}
|
@@ -303,6 +306,7 @@ module PulpFileClient
|
|
303
306
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
304
307
|
# @param [Hash] opts the optional parameters
|
305
308
|
# @option opts [String] :fields A list of fields to include in the response.
|
309
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
306
310
|
# @return [FileDistribution]
|
307
311
|
def read(file_distribution_href, opts = {})
|
308
312
|
data, _status_code, _headers = read_with_http_info(file_distribution_href, opts)
|
@@ -314,6 +318,7 @@ module PulpFileClient
|
|
314
318
|
# @param file_distribution_href [String] URI of File Distribution. e.g.: /pulp/api/v3/distributions/file/file/1/
|
315
319
|
# @param [Hash] opts the optional parameters
|
316
320
|
# @option opts [String] :fields A list of fields to include in the response.
|
321
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
317
322
|
# @return [Array<(FileDistribution, Integer, Hash)>] FileDistribution data, response status code and response headers
|
318
323
|
def read_with_http_info(file_distribution_href, opts = {})
|
319
324
|
if @api_client.config.debugging
|
@@ -329,6 +334,7 @@ module PulpFileClient
|
|
329
334
|
# query parameters
|
330
335
|
query_params = opts[:query_params] || {}
|
331
336
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
337
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
332
338
|
|
333
339
|
# header parameters
|
334
340
|
header_params = opts[:header_params] || {}
|