pulp_file_client 1.14.3 → 1.14.4
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 +2 -2
- data/docs/DistributionsFileApi.md +3 -3
- data/docs/FileFileContent.md +3 -3
- data/docs/FileFileDistribution.md +2 -0
- data/docs/FileFileDistributionResponse.md +2 -0
- data/docs/PatchedfileFileDistribution.md +2 -0
- data/docs/RepositoriesFileApi.md +1 -1
- data/lib/pulp_file_client/api/content_files_api.rb +3 -3
- data/lib/pulp_file_client/api/distributions_file_api.rb +3 -3
- data/lib/pulp_file_client/models/file_file_content.rb +11 -11
- data/lib/pulp_file_client/models/file_file_distribution.rb +13 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +13 -1
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +13 -1
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +4 -4
- data/spec/models/file_file_distribution_response_spec.rb +6 -0
- data/spec/models/file_file_distribution_spec.rb +6 -0
- data/spec/models/patchedfile_file_distribution_spec.rb +6 -0
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c79185564cf62bf3329865835143e650aa56d17d16d91cba63d0b0b6c6a829d
|
4
|
+
data.tar.gz: d0f4cf0890aad6c4117e7646fcdb7f87814bf38ae430cc96ffef0fec6ede21f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 351fb690e38e7895490102526d04fca808fa41ddeba9e588a1c31773e50c2a3ec7d89b329a9ca2d64d8f8819ff2267c7dc6fbe07b1fe43edd2712ed702eeabd0
|
7
|
+
data.tar.gz: 2b0aaf5f2807f8485cb81d5e4a52afd155141700f29f88756f465a61db171ce3a23fbd0ccf1901df3fc75d08d28c2f9d7fab5a915ff9f98a37d20f86d5ed8ca1
|
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.14.
|
10
|
+
- Package version: 1.14.4
|
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.14.
|
27
|
+
gem install ./pulp_file_client-1.14.4.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-1.14.
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-1.14.4.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.14.
|
36
|
+
gem 'pulp_file_client', '~> 1.14.4'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/ContentFilesApi.md
CHANGED
@@ -33,9 +33,9 @@ end
|
|
33
33
|
api_instance = PulpFileClient::ContentFilesApi.new
|
34
34
|
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
35
35
|
opts = {
|
36
|
+
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
36
37
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
38
|
-
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
39
39
|
upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
|
40
40
|
}
|
41
41
|
|
@@ -54,9 +54,9 @@ end
|
|
54
54
|
Name | Type | Description | Notes
|
55
55
|
------------- | ------------- | ------------- | -------------
|
56
56
|
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path |
|
57
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
57
58
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
58
59
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
59
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
60
60
|
**upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
61
61
|
|
62
62
|
### Return type
|
@@ -210,7 +210,7 @@ opts = {
|
|
210
210
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
211
211
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
212
212
|
offset: 56, # Integer | The initial index from which to return the results.
|
213
|
-
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
213
|
+
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
214
214
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
215
215
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
216
216
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
@@ -246,11 +246,11 @@ Name | Type | Description | Notes
|
|
246
246
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
247
247
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
248
248
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
249
|
-
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
249
|
+
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
250
250
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
251
251
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
252
252
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
253
|
-
**repository** | **String
|
253
|
+
**repository** | [**String**](.md)| Filter results where repository matches value | [optional]
|
254
254
|
**repository__in** | [**Array<String>**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
|
255
255
|
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
256
256
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
data/docs/FileFileContent.md
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
7
8
|
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
8
9
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
9
10
|
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
10
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
@@ -15,10 +15,10 @@ Name | Type | Description | Notes
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpFileClient'
|
17
17
|
|
18
|
-
instance = PulpFileClient::FileFileContent.new(
|
18
|
+
instance = PulpFileClient::FileFileContent.new(repository: null,
|
19
|
+
artifact: null,
|
19
20
|
relative_path: null,
|
20
21
|
file: null,
|
21
|
-
repository: null,
|
22
22
|
upload: null)
|
23
23
|
```
|
24
24
|
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**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\") |
|
8
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
9
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
9
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
@@ -18,6 +19,7 @@ require 'PulpFileClient'
|
|
18
19
|
|
19
20
|
instance = PulpFileClient::FileFileDistribution.new(base_path: null,
|
20
21
|
content_guard: null,
|
22
|
+
hidden: null,
|
21
23
|
pulp_labels: null,
|
22
24
|
name: null,
|
23
25
|
repository: null,
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
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
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
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
12
13
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
13
14
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
14
15
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
@@ -24,6 +25,7 @@ instance = PulpFileClient::FileFileDistributionResponse.new(pulp_href: null,
|
|
24
25
|
base_path: null,
|
25
26
|
base_url: null,
|
26
27
|
content_guard: null,
|
28
|
+
hidden: null,
|
27
29
|
pulp_labels: null,
|
28
30
|
name: null,
|
29
31
|
repository: null,
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**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\") | [optional]
|
8
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
9
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
9
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
11
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
@@ -18,6 +19,7 @@ require 'PulpFileClient'
|
|
18
19
|
|
19
20
|
instance = PulpFileClient::PatchedfileFileDistribution.new(base_path: null,
|
20
21
|
content_guard: null,
|
22
|
+
hidden: null,
|
21
23
|
pulp_labels: null,
|
22
24
|
name: null,
|
23
25
|
repository: null,
|
data/docs/RepositoriesFileApi.md
CHANGED
@@ -253,7 +253,7 @@ Name | Type | Description | Notes
|
|
253
253
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
254
254
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
255
255
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
256
|
-
**remote** | **String
|
256
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
257
257
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
258
258
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
259
259
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -23,9 +23,9 @@ module PulpFileClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
27
28
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
30
30
|
# @return [AsyncOperationResponse]
|
31
31
|
def create(relative_path, opts = {})
|
@@ -37,9 +37,9 @@ module PulpFileClient
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
41
|
# @option opts [String] :artifact Artifact file representing the physical content
|
41
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
44
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
45
|
def create_with_http_info(relative_path, opts = {})
|
@@ -70,9 +70,9 @@ module PulpFileClient
|
|
70
70
|
# form parameters
|
71
71
|
form_params = opts[:form_params] || {}
|
72
72
|
form_params['relative_path'] = relative_path
|
73
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
73
74
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
74
75
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
75
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
76
76
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
77
77
|
|
78
78
|
# http body (model)
|
@@ -227,7 +227,7 @@ module PulpFileClient
|
|
227
227
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
228
228
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
229
229
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
230
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
230
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
231
231
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
232
232
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
233
233
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -256,7 +256,7 @@ module PulpFileClient
|
|
256
256
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
257
257
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
258
258
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
259
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
259
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
260
260
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
261
261
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
262
262
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -270,7 +270,7 @@ module PulpFileClient
|
|
270
270
|
if @api_client.config.debugging
|
271
271
|
@api_client.config.logger.debug 'Calling API: DistributionsFileApi.list ...'
|
272
272
|
end
|
273
|
-
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
273
|
+
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
274
274
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
275
275
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
276
276
|
end
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpFileClient
|
16
16
|
# Serializer for File Content.
|
17
17
|
class FileFileContent
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Artifact file representing the physical content
|
19
22
|
attr_accessor :artifact
|
20
23
|
|
@@ -24,19 +27,16 @@ module PulpFileClient
|
|
24
27
|
# An uploaded file that may be turned into the artifact of the content unit.
|
25
28
|
attr_accessor :file
|
26
29
|
|
27
|
-
# A URI of a repository the new content unit should be associated with.
|
28
|
-
attr_accessor :repository
|
29
|
-
|
30
30
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'repository' => :'repository',
|
36
37
|
:'artifact' => :'artifact',
|
37
38
|
:'relative_path' => :'relative_path',
|
38
39
|
:'file' => :'file',
|
39
|
-
:'repository' => :'repository',
|
40
40
|
:'upload' => :'upload'
|
41
41
|
}
|
42
42
|
end
|
@@ -44,10 +44,10 @@ module PulpFileClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'repository' => :'String',
|
47
48
|
:'artifact' => :'String',
|
48
49
|
:'relative_path' => :'String',
|
49
50
|
:'file' => :'File',
|
50
|
-
:'repository' => :'String',
|
51
51
|
:'upload' => :'String'
|
52
52
|
}
|
53
53
|
end
|
@@ -73,6 +73,10 @@ module PulpFileClient
|
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
75
75
|
|
76
|
+
if attributes.key?(:'repository')
|
77
|
+
self.repository = attributes[:'repository']
|
78
|
+
end
|
79
|
+
|
76
80
|
if attributes.key?(:'artifact')
|
77
81
|
self.artifact = attributes[:'artifact']
|
78
82
|
end
|
@@ -85,10 +89,6 @@ module PulpFileClient
|
|
85
89
|
self.file = attributes[:'file']
|
86
90
|
end
|
87
91
|
|
88
|
-
if attributes.key?(:'repository')
|
89
|
-
self.repository = attributes[:'repository']
|
90
|
-
end
|
91
|
-
|
92
92
|
if attributes.key?(:'upload')
|
93
93
|
self.upload = attributes[:'upload']
|
94
94
|
end
|
@@ -136,10 +136,10 @@ module PulpFileClient
|
|
136
136
|
def ==(o)
|
137
137
|
return true if self.equal?(o)
|
138
138
|
self.class == o.class &&
|
139
|
+
repository == o.repository &&
|
139
140
|
artifact == o.artifact &&
|
140
141
|
relative_path == o.relative_path &&
|
141
142
|
file == o.file &&
|
142
|
-
repository == o.repository &&
|
143
143
|
upload == o.upload
|
144
144
|
end
|
145
145
|
|
@@ -152,7 +152,7 @@ module PulpFileClient
|
|
152
152
|
# Calculates hash code according to all attributes.
|
153
153
|
# @return [Integer] Hash code
|
154
154
|
def hash
|
155
|
-
[artifact, relative_path, file,
|
155
|
+
[repository, artifact, relative_path, file, upload].hash
|
156
156
|
end
|
157
157
|
|
158
158
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module PulpFileClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
# Whether this distribution should be shown in the content app.
|
25
|
+
attr_accessor :hidden
|
26
|
+
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -37,6 +40,7 @@ module PulpFileClient
|
|
37
40
|
{
|
38
41
|
:'base_path' => :'base_path',
|
39
42
|
:'content_guard' => :'content_guard',
|
43
|
+
:'hidden' => :'hidden',
|
40
44
|
:'pulp_labels' => :'pulp_labels',
|
41
45
|
:'name' => :'name',
|
42
46
|
:'repository' => :'repository',
|
@@ -49,6 +53,7 @@ module PulpFileClient
|
|
49
53
|
{
|
50
54
|
:'base_path' => :'String',
|
51
55
|
:'content_guard' => :'String',
|
56
|
+
:'hidden' => :'Boolean',
|
52
57
|
:'pulp_labels' => :'Hash<String, String>',
|
53
58
|
:'name' => :'String',
|
54
59
|
:'repository' => :'String',
|
@@ -88,6 +93,12 @@ module PulpFileClient
|
|
88
93
|
self.content_guard = attributes[:'content_guard']
|
89
94
|
end
|
90
95
|
|
96
|
+
if attributes.key?(:'hidden')
|
97
|
+
self.hidden = attributes[:'hidden']
|
98
|
+
else
|
99
|
+
self.hidden = false
|
100
|
+
end
|
101
|
+
|
91
102
|
if attributes.key?(:'pulp_labels')
|
92
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
104
|
self.pulp_labels = value
|
@@ -175,6 +186,7 @@ module PulpFileClient
|
|
175
186
|
self.class == o.class &&
|
176
187
|
base_path == o.base_path &&
|
177
188
|
content_guard == o.content_guard &&
|
189
|
+
hidden == o.hidden &&
|
178
190
|
pulp_labels == o.pulp_labels &&
|
179
191
|
name == o.name &&
|
180
192
|
repository == o.repository &&
|
@@ -190,7 +202,7 @@ module PulpFileClient
|
|
190
202
|
# Calculates hash code according to all attributes.
|
191
203
|
# @return [Integer] Hash code
|
192
204
|
def hash
|
193
|
-
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
205
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
194
206
|
end
|
195
207
|
|
196
208
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module PulpFileClient
|
|
29
29
|
# An optional content-guard.
|
30
30
|
attr_accessor :content_guard
|
31
31
|
|
32
|
+
# Whether this distribution should be shown in the content app.
|
33
|
+
attr_accessor :hidden
|
34
|
+
|
32
35
|
attr_accessor :pulp_labels
|
33
36
|
|
34
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -48,6 +51,7 @@ module PulpFileClient
|
|
48
51
|
:'base_path' => :'base_path',
|
49
52
|
:'base_url' => :'base_url',
|
50
53
|
:'content_guard' => :'content_guard',
|
54
|
+
:'hidden' => :'hidden',
|
51
55
|
:'pulp_labels' => :'pulp_labels',
|
52
56
|
:'name' => :'name',
|
53
57
|
:'repository' => :'repository',
|
@@ -63,6 +67,7 @@ module PulpFileClient
|
|
63
67
|
:'base_path' => :'String',
|
64
68
|
:'base_url' => :'String',
|
65
69
|
:'content_guard' => :'String',
|
70
|
+
:'hidden' => :'Boolean',
|
66
71
|
:'pulp_labels' => :'Hash<String, String>',
|
67
72
|
:'name' => :'String',
|
68
73
|
:'repository' => :'String',
|
@@ -114,6 +119,12 @@ module PulpFileClient
|
|
114
119
|
self.content_guard = attributes[:'content_guard']
|
115
120
|
end
|
116
121
|
|
122
|
+
if attributes.key?(:'hidden')
|
123
|
+
self.hidden = attributes[:'hidden']
|
124
|
+
else
|
125
|
+
self.hidden = false
|
126
|
+
end
|
127
|
+
|
117
128
|
if attributes.key?(:'pulp_labels')
|
118
129
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
119
130
|
self.pulp_labels = value
|
@@ -166,6 +177,7 @@ module PulpFileClient
|
|
166
177
|
base_path == o.base_path &&
|
167
178
|
base_url == o.base_url &&
|
168
179
|
content_guard == o.content_guard &&
|
180
|
+
hidden == o.hidden &&
|
169
181
|
pulp_labels == o.pulp_labels &&
|
170
182
|
name == o.name &&
|
171
183
|
repository == o.repository &&
|
@@ -181,7 +193,7 @@ module PulpFileClient
|
|
181
193
|
# Calculates hash code according to all attributes.
|
182
194
|
# @return [Integer] Hash code
|
183
195
|
def hash
|
184
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
|
196
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
185
197
|
end
|
186
198
|
|
187
199
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module PulpFileClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
# Whether this distribution should be shown in the content app.
|
25
|
+
attr_accessor :hidden
|
26
|
+
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -37,6 +40,7 @@ module PulpFileClient
|
|
37
40
|
{
|
38
41
|
:'base_path' => :'base_path',
|
39
42
|
:'content_guard' => :'content_guard',
|
43
|
+
:'hidden' => :'hidden',
|
40
44
|
:'pulp_labels' => :'pulp_labels',
|
41
45
|
:'name' => :'name',
|
42
46
|
:'repository' => :'repository',
|
@@ -49,6 +53,7 @@ module PulpFileClient
|
|
49
53
|
{
|
50
54
|
:'base_path' => :'String',
|
51
55
|
:'content_guard' => :'String',
|
56
|
+
:'hidden' => :'Boolean',
|
52
57
|
:'pulp_labels' => :'Hash<String, String>',
|
53
58
|
:'name' => :'String',
|
54
59
|
:'repository' => :'String',
|
@@ -88,6 +93,12 @@ module PulpFileClient
|
|
88
93
|
self.content_guard = attributes[:'content_guard']
|
89
94
|
end
|
90
95
|
|
96
|
+
if attributes.key?(:'hidden')
|
97
|
+
self.hidden = attributes[:'hidden']
|
98
|
+
else
|
99
|
+
self.hidden = false
|
100
|
+
end
|
101
|
+
|
91
102
|
if attributes.key?(:'pulp_labels')
|
92
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
104
|
self.pulp_labels = value
|
@@ -157,6 +168,7 @@ module PulpFileClient
|
|
157
168
|
self.class == o.class &&
|
158
169
|
base_path == o.base_path &&
|
159
170
|
content_guard == o.content_guard &&
|
171
|
+
hidden == o.hidden &&
|
160
172
|
pulp_labels == o.pulp_labels &&
|
161
173
|
name == o.name &&
|
162
174
|
repository == o.repository &&
|
@@ -172,7 +184,7 @@ module PulpFileClient
|
|
172
184
|
# Calculates hash code according to all attributes.
|
173
185
|
# @return [Integer] Hash code
|
174
186
|
def hash
|
175
|
-
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
187
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
176
188
|
end
|
177
189
|
|
178
190
|
# Builds the object from hash
|
@@ -37,9 +37,9 @@ describe 'ContentFilesApi' do
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param relative_path Path where the artifact is located relative to distributions base_path
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
41
|
# @option opts [String] :artifact Artifact file representing the physical content
|
41
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
44
44
|
# @return [AsyncOperationResponse]
|
45
45
|
describe 'create test' do
|
@@ -83,7 +83,7 @@ describe 'DistributionsFileApi' do
|
|
83
83
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
84
84
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
85
85
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
86
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
86
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
87
87
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
88
88
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
89
89
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -32,25 +32,25 @@ describe 'FileFileContent' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpFileClient::FileFileContent)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "repository"' 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 "artifact"' 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
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "relative_path"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "file"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -62,6 +62,12 @@ describe 'FileFileDistributionResponse' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
describe 'test attribute "hidden"' 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 "pulp_labels"' do
|
66
72
|
it 'should work' do
|
67
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,6 +44,12 @@ describe 'FileFileDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "hidden"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "pulp_labels"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,6 +44,12 @@ describe 'PatchedfileFileDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "hidden"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "pulp_labels"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.14.
|
4
|
+
version: 1.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -242,49 +242,49 @@ signing_key:
|
|
242
242
|
specification_version: 4
|
243
243
|
summary: Pulp 3 API Ruby Gem
|
244
244
|
test_files:
|
245
|
-
- spec/api/repositories_file_versions_api_spec.rb
|
246
245
|
- spec/api/distributions_file_api_spec.rb
|
247
246
|
- spec/api/content_files_api_spec.rb
|
247
|
+
- spec/api/repositories_file_versions_api_spec.rb
|
248
|
+
- spec/api/repositories_file_api_spec.rb
|
248
249
|
- spec/api/remotes_file_api_spec.rb
|
249
|
-
- spec/api/publications_file_api_spec.rb
|
250
250
|
- spec/api/acs_file_api_spec.rb
|
251
|
-
- spec/api/
|
251
|
+
- spec/api/publications_file_api_spec.rb
|
252
252
|
- spec/api_client_spec.rb
|
253
253
|
- spec/configuration_spec.rb
|
254
|
-
- spec/models/file_file_repository_response_spec.rb
|
255
|
-
- spec/models/patchedfile_file_remote_spec.rb
|
256
|
-
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
257
|
-
- spec/models/nested_role_response_spec.rb
|
258
|
-
- spec/models/content_summary_response_spec.rb
|
259
254
|
- spec/models/file_file_alternate_content_source_spec.rb
|
260
|
-
- spec/models/
|
261
|
-
- spec/models/object_roles_response_spec.rb
|
262
|
-
- spec/models/task_group_operation_response_spec.rb
|
263
|
-
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
264
|
-
- spec/models/file_file_content_spec.rb
|
265
|
-
- spec/models/repository_sync_url_spec.rb
|
266
|
-
- spec/models/repository_add_remove_content_spec.rb
|
267
|
-
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
268
|
-
- spec/models/nested_role_spec.rb
|
269
|
-
- spec/models/file_file_publication_response_spec.rb
|
270
|
-
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
271
|
-
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
255
|
+
- spec/models/file_file_remote_response_hidden_fields_spec.rb
|
272
256
|
- spec/models/repair_spec.rb
|
273
|
-
- spec/models/
|
274
|
-
- spec/models/
|
257
|
+
- spec/models/repository_add_remove_content_spec.rb
|
258
|
+
- spec/models/repository_sync_url_spec.rb
|
275
259
|
- spec/models/policy_enum_spec.rb
|
276
|
-
- spec/models/
|
277
|
-
- spec/models/
|
260
|
+
- spec/models/object_roles_response_spec.rb
|
261
|
+
- spec/models/repository_version_response_spec.rb
|
262
|
+
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
263
|
+
- spec/models/file_file_publication_response_spec.rb
|
264
|
+
- spec/models/nested_role_spec.rb
|
265
|
+
- spec/models/patchedfile_file_distribution_spec.rb
|
278
266
|
- spec/models/my_permissions_response_spec.rb
|
279
|
-
- spec/models/
|
267
|
+
- spec/models/nested_role_response_spec.rb
|
280
268
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
281
|
-
- spec/models/
|
282
|
-
- spec/models/
|
269
|
+
- spec/models/content_summary_response_spec.rb
|
270
|
+
- spec/models/patchedfile_file_alternate_content_source_spec.rb
|
271
|
+
- spec/models/file_file_distribution_spec.rb
|
283
272
|
- spec/models/file_file_alternate_content_source_response_spec.rb
|
284
|
-
- spec/models/
|
285
|
-
- spec/models/repository_version_response_spec.rb
|
273
|
+
- spec/models/file_file_repository_response_spec.rb
|
286
274
|
- spec/models/file_file_repository_spec.rb
|
275
|
+
- spec/models/file_file_remote_spec.rb
|
276
|
+
- spec/models/task_group_operation_response_spec.rb
|
287
277
|
- spec/models/file_file_remote_response_spec.rb
|
288
278
|
- spec/models/file_file_publication_spec.rb
|
289
|
-
- spec/models/
|
279
|
+
- spec/models/file_file_content_response_spec.rb
|
280
|
+
- spec/models/async_operation_response_spec.rb
|
281
|
+
- spec/models/patchedfile_file_remote_spec.rb
|
282
|
+
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
283
|
+
- spec/models/patchedfile_file_repository_spec.rb
|
284
|
+
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
285
|
+
- spec/models/file_file_content_spec.rb
|
286
|
+
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
287
|
+
- spec/models/file_file_distribution_response_spec.rb
|
288
|
+
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
289
|
+
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
290
290
|
- spec/spec_helper.rb
|