pulp_file_client 3.105.2 → 3.106.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/FileFileDistribution.md +2 -0
- data/docs/FileFileDistributionResponse.md +4 -0
- data/docs/FileFileRepository.md +2 -0
- data/docs/FileFileRepositoryResponse.md +2 -0
- data/docs/PatchedfileFileDistribution.md +2 -0
- data/docs/PatchedfileFileRepository.md +2 -0
- data/docs/RepositoriesFileApi.md +18 -2
- data/lib/pulp_file_client/api/repositories_file_api.rb +27 -3
- data/lib/pulp_file_client/models/file_file_distribution.rb +12 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +22 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +27 -1
- data/lib/pulp_file_client/models/file_file_repository_response.rb +27 -1
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +12 -1
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +27 -1
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/api/repositories_file_api_spec.rb +9 -1
- data/spec/models/file_file_distribution_response_spec.rb +12 -0
- data/spec/models/file_file_distribution_spec.rb +6 -0
- data/spec/models/file_file_repository_response_spec.rb +6 -0
- data/spec/models/file_file_repository_spec.rb +6 -0
- data/spec/models/patchedfile_file_distribution_spec.rb +6 -0
- data/spec/models/patchedfile_file_repository_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6efe7902978e3bee2148edff0a536f32cc7957fdf46fec6d66b8729bdb61a1b
|
|
4
|
+
data.tar.gz: '03292bde725f5731dcaa52278b40e5e9360c048e2d36b7197d7b47f25f4bc86e'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1be50d92dd4827dfd4e5d5cc9c83a8a2fc370e295bb73d2bc7af440ac80275ca6fac4d00dead0c9a4c44d3a57334f82996995da21efdfe62de3a7db92c6db97a
|
|
7
|
+
data.tar.gz: f261d554c692e12715483b3f57b9be1420d5fd5648a7ebe8f774369c17a6163f8923de8ba3749647b0ddc133a5b2377ca9fb08869b08bb0b2a09aff0d8d4632f
|
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.106.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_file_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_file_client-3.
|
|
28
|
+
gem install ./pulp_file_client-3.106.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_file_client-3.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_file_client-3.106.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_file_client', '~> 3.
|
|
37
|
+
gem 'pulp_file_client', '~> 3.106.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
11
11
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
12
12
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
13
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
13
14
|
| **publication** | **String** | Publication to be served | [optional] |
|
|
14
15
|
| **checkpoint** | **Boolean** | | [optional] |
|
|
15
16
|
|
|
@@ -25,6 +26,7 @@ instance = PulpFileClient::FileFileDistribution.new(
|
|
|
25
26
|
pulp_labels: null,
|
|
26
27
|
name: null,
|
|
27
28
|
repository: null,
|
|
29
|
+
repository_version: null,
|
|
28
30
|
publication: null,
|
|
29
31
|
checkpoint: null
|
|
30
32
|
)
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
| **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\") | |
|
|
12
12
|
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
13
13
|
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
14
|
+
| **content_guard_prn** | **String** | The Pulp Resource Name (PRN) of the associated optional content guard. | [optional][readonly] |
|
|
14
15
|
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
|
15
16
|
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
16
17
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
17
18
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
18
19
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
20
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
19
21
|
| **publication** | **String** | Publication to be served | [optional] |
|
|
20
22
|
| **checkpoint** | **Boolean** | | [optional] |
|
|
21
23
|
|
|
@@ -32,11 +34,13 @@ instance = PulpFileClient::FileFileDistributionResponse.new(
|
|
|
32
34
|
base_path: null,
|
|
33
35
|
base_url: null,
|
|
34
36
|
content_guard: null,
|
|
37
|
+
content_guard_prn: null,
|
|
35
38
|
no_content_change_since: null,
|
|
36
39
|
hidden: null,
|
|
37
40
|
pulp_labels: null,
|
|
38
41
|
name: null,
|
|
39
42
|
repository: null,
|
|
43
|
+
repository_version: null,
|
|
40
44
|
publication: null,
|
|
41
45
|
checkpoint: null
|
|
42
46
|
)
|
data/docs/FileFileRepository.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **name** | **String** | A unique name for this repository. | |
|
|
9
9
|
| **description** | **String** | An optional description. | [optional] |
|
|
10
10
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
11
|
+
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
11
12
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
12
13
|
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
13
14
|
| **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
|
|
@@ -22,6 +23,7 @@ instance = PulpFileClient::FileFileRepository.new(
|
|
|
22
23
|
name: null,
|
|
23
24
|
description: null,
|
|
24
25
|
retain_repo_versions: null,
|
|
26
|
+
retain_checkpoints: null,
|
|
25
27
|
remote: null,
|
|
26
28
|
autopublish: null,
|
|
27
29
|
manifest: null
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
| **name** | **String** | A unique name for this repository. | |
|
|
15
15
|
| **description** | **String** | An optional description. | [optional] |
|
|
16
16
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
17
|
+
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
17
18
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
18
19
|
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
19
20
|
| **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
|
|
@@ -34,6 +35,7 @@ instance = PulpFileClient::FileFileRepositoryResponse.new(
|
|
|
34
35
|
name: null,
|
|
35
36
|
description: null,
|
|
36
37
|
retain_repo_versions: null,
|
|
38
|
+
retain_checkpoints: null,
|
|
37
39
|
remote: null,
|
|
38
40
|
autopublish: null,
|
|
39
41
|
manifest: null
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
11
11
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional] |
|
|
12
12
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
13
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
13
14
|
| **publication** | **String** | Publication to be served | [optional] |
|
|
14
15
|
| **checkpoint** | **Boolean** | | [optional] |
|
|
15
16
|
|
|
@@ -25,6 +26,7 @@ instance = PulpFileClient::PatchedfileFileDistribution.new(
|
|
|
25
26
|
pulp_labels: null,
|
|
26
27
|
name: null,
|
|
27
28
|
repository: null,
|
|
29
|
+
repository_version: null,
|
|
28
30
|
publication: null,
|
|
29
31
|
checkpoint: null
|
|
30
32
|
)
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **name** | **String** | A unique name for this repository. | [optional] |
|
|
9
9
|
| **description** | **String** | An optional description. | [optional] |
|
|
10
10
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
11
|
+
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
11
12
|
| **remote** | **String** | An optional remote to use by default when syncing. | [optional] |
|
|
12
13
|
| **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional][default to false] |
|
|
13
14
|
| **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional][default to 'PULP_MANIFEST'] |
|
|
@@ -22,6 +23,7 @@ instance = PulpFileClient::PatchedfileFileRepository.new(
|
|
|
22
23
|
name: null,
|
|
23
24
|
description: null,
|
|
24
25
|
retain_repo_versions: null,
|
|
26
|
+
retain_checkpoints: null,
|
|
25
27
|
remote: null,
|
|
26
28
|
autopublish: null,
|
|
27
29
|
manifest: null
|
data/docs/RepositoriesFileApi.md
CHANGED
|
@@ -279,13 +279,21 @@ opts = {
|
|
|
279
279
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
|
280
280
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
281
281
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
282
|
-
ordering: ['-description'], # 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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
282
|
+
ordering: ['-description'], # 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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
283
283
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
284
284
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
285
285
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
286
286
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
287
287
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
288
288
|
remote: 'remote_example', # String |
|
|
289
|
+
retain_checkpoints: 56, # Integer | Filter results where retain_checkpoints matches value
|
|
290
|
+
retain_checkpoints__gt: 56, # Integer | Filter results where retain_checkpoints is greater than value
|
|
291
|
+
retain_checkpoints__gte: 56, # Integer | Filter results where retain_checkpoints is greater than or equal to value
|
|
292
|
+
retain_checkpoints__isnull: true, # Boolean | Filter results where retain_checkpoints has a null value
|
|
293
|
+
retain_checkpoints__lt: 56, # Integer | Filter results where retain_checkpoints is less than value
|
|
294
|
+
retain_checkpoints__lte: 56, # Integer | Filter results where retain_checkpoints is less than or equal to value
|
|
295
|
+
retain_checkpoints__ne: 56, # Integer | Filter results where retain_checkpoints not equal to value
|
|
296
|
+
retain_checkpoints__range: [37], # Array<Integer> | Filter results where retain_checkpoints is between two comma separated values
|
|
289
297
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
|
290
298
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
|
291
299
|
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -343,13 +351,21 @@ end
|
|
|
343
351
|
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
|
344
352
|
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
|
345
353
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
346
|
-
| **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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
354
|
+
| **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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
347
355
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
348
356
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
349
357
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
350
358
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
351
359
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
352
360
|
| **remote** | **String** | | [optional] |
|
|
361
|
+
| **retain_checkpoints** | **Integer** | Filter results where retain_checkpoints matches value | [optional] |
|
|
362
|
+
| **retain_checkpoints__gt** | **Integer** | Filter results where retain_checkpoints is greater than value | [optional] |
|
|
363
|
+
| **retain_checkpoints__gte** | **Integer** | Filter results where retain_checkpoints is greater than or equal to value | [optional] |
|
|
364
|
+
| **retain_checkpoints__isnull** | **Boolean** | Filter results where retain_checkpoints has a null value | [optional] |
|
|
365
|
+
| **retain_checkpoints__lt** | **Integer** | Filter results where retain_checkpoints is less than value | [optional] |
|
|
366
|
+
| **retain_checkpoints__lte** | **Integer** | Filter results where retain_checkpoints is less than or equal to value | [optional] |
|
|
367
|
+
| **retain_checkpoints__ne** | **Integer** | Filter results where retain_checkpoints not equal to value | [optional] |
|
|
368
|
+
| **retain_checkpoints__range** | [**Array<Integer>**](Integer.md) | Filter results where retain_checkpoints is between two comma separated values | [optional] |
|
|
353
369
|
| **retain_repo_versions** | **Integer** | Filter results where retain_repo_versions matches value | [optional] |
|
|
354
370
|
| **retain_repo_versions__gt** | **Integer** | Filter results where retain_repo_versions is greater than value | [optional] |
|
|
355
371
|
| **retain_repo_versions__gte** | **Integer** | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
|
|
@@ -249,13 +249,21 @@ module PulpFileClient
|
|
|
249
249
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
250
250
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
251
251
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
252
|
-
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
252
|
+
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
253
253
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
254
254
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
255
255
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
256
256
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
257
257
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
258
258
|
# @option opts [String] :remote
|
|
259
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
260
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
261
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
262
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
263
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
264
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
265
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
266
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
259
267
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
260
268
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
261
269
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -289,13 +297,21 @@ module PulpFileClient
|
|
|
289
297
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
290
298
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
291
299
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
292
|
-
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
300
|
+
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
293
301
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
294
302
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
295
303
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
296
304
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
297
305
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
298
306
|
# @option opts [String] :remote
|
|
307
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
308
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
309
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
310
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
311
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
312
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
313
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
314
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
299
315
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
300
316
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
301
317
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -312,7 +328,7 @@ module PulpFileClient
|
|
|
312
328
|
if @api_client.config.debugging
|
|
313
329
|
@api_client.config.logger.debug 'Calling API: RepositoriesFileApi.list ...'
|
|
314
330
|
end
|
|
315
|
-
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
|
|
331
|
+
allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
|
|
316
332
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
317
333
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
318
334
|
end
|
|
@@ -340,6 +356,14 @@ module PulpFileClient
|
|
|
340
356
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
341
357
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
342
358
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
|
359
|
+
query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
|
|
360
|
+
query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
|
|
361
|
+
query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
|
|
362
|
+
query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
|
|
363
|
+
query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
|
|
364
|
+
query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
|
|
365
|
+
query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
|
|
366
|
+
query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
|
|
343
367
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
|
344
368
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
|
345
369
|
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
|
@@ -33,6 +33,9 @@ module PulpFileClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
36
39
|
# Publication to be served
|
|
37
40
|
attr_accessor :publication
|
|
38
41
|
|
|
@@ -47,6 +50,7 @@ module PulpFileClient
|
|
|
47
50
|
:'pulp_labels' => :'pulp_labels',
|
|
48
51
|
:'name' => :'name',
|
|
49
52
|
:'repository' => :'repository',
|
|
53
|
+
:'repository_version' => :'repository_version',
|
|
50
54
|
:'publication' => :'publication',
|
|
51
55
|
:'checkpoint' => :'checkpoint'
|
|
52
56
|
}
|
|
@@ -66,6 +70,7 @@ module PulpFileClient
|
|
|
66
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
67
71
|
:'name' => :'String',
|
|
68
72
|
:'repository' => :'String',
|
|
73
|
+
:'repository_version' => :'String',
|
|
69
74
|
:'publication' => :'String',
|
|
70
75
|
:'checkpoint' => :'Boolean'
|
|
71
76
|
}
|
|
@@ -76,6 +81,7 @@ module PulpFileClient
|
|
|
76
81
|
Set.new([
|
|
77
82
|
:'content_guard',
|
|
78
83
|
:'repository',
|
|
84
|
+
:'repository_version',
|
|
79
85
|
:'publication',
|
|
80
86
|
])
|
|
81
87
|
end
|
|
@@ -127,6 +133,10 @@ module PulpFileClient
|
|
|
127
133
|
self.repository = attributes[:'repository']
|
|
128
134
|
end
|
|
129
135
|
|
|
136
|
+
if attributes.key?(:'repository_version')
|
|
137
|
+
self.repository_version = attributes[:'repository_version']
|
|
138
|
+
end
|
|
139
|
+
|
|
130
140
|
if attributes.key?(:'publication')
|
|
131
141
|
self.publication = attributes[:'publication']
|
|
132
142
|
end
|
|
@@ -210,6 +220,7 @@ module PulpFileClient
|
|
|
210
220
|
pulp_labels == o.pulp_labels &&
|
|
211
221
|
name == o.name &&
|
|
212
222
|
repository == o.repository &&
|
|
223
|
+
repository_version == o.repository_version &&
|
|
213
224
|
publication == o.publication &&
|
|
214
225
|
checkpoint == o.checkpoint
|
|
215
226
|
end
|
|
@@ -223,7 +234,7 @@ module PulpFileClient
|
|
|
223
234
|
# Calculates hash code according to all attributes.
|
|
224
235
|
# @return [Integer] Hash code
|
|
225
236
|
def hash
|
|
226
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, checkpoint].hash
|
|
237
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, checkpoint].hash
|
|
227
238
|
end
|
|
228
239
|
|
|
229
240
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module PulpFileClient
|
|
|
36
36
|
# An optional content-guard.
|
|
37
37
|
attr_accessor :content_guard
|
|
38
38
|
|
|
39
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
40
|
+
attr_accessor :content_guard_prn
|
|
41
|
+
|
|
39
42
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
40
43
|
attr_accessor :no_content_change_since
|
|
41
44
|
|
|
@@ -50,6 +53,9 @@ module PulpFileClient
|
|
|
50
53
|
# The latest RepositoryVersion for this Repository will be served.
|
|
51
54
|
attr_accessor :repository
|
|
52
55
|
|
|
56
|
+
# RepositoryVersion to be served
|
|
57
|
+
attr_accessor :repository_version
|
|
58
|
+
|
|
53
59
|
# Publication to be served
|
|
54
60
|
attr_accessor :publication
|
|
55
61
|
|
|
@@ -65,11 +71,13 @@ module PulpFileClient
|
|
|
65
71
|
:'base_path' => :'base_path',
|
|
66
72
|
:'base_url' => :'base_url',
|
|
67
73
|
:'content_guard' => :'content_guard',
|
|
74
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
68
75
|
:'no_content_change_since' => :'no_content_change_since',
|
|
69
76
|
:'hidden' => :'hidden',
|
|
70
77
|
:'pulp_labels' => :'pulp_labels',
|
|
71
78
|
:'name' => :'name',
|
|
72
79
|
:'repository' => :'repository',
|
|
80
|
+
:'repository_version' => :'repository_version',
|
|
73
81
|
:'publication' => :'publication',
|
|
74
82
|
:'checkpoint' => :'checkpoint'
|
|
75
83
|
}
|
|
@@ -90,11 +98,13 @@ module PulpFileClient
|
|
|
90
98
|
:'base_path' => :'String',
|
|
91
99
|
:'base_url' => :'String',
|
|
92
100
|
:'content_guard' => :'String',
|
|
101
|
+
:'content_guard_prn' => :'String',
|
|
93
102
|
:'no_content_change_since' => :'String',
|
|
94
103
|
:'hidden' => :'Boolean',
|
|
95
104
|
:'pulp_labels' => :'Hash<String, String>',
|
|
96
105
|
:'name' => :'String',
|
|
97
106
|
:'repository' => :'String',
|
|
107
|
+
:'repository_version' => :'String',
|
|
98
108
|
:'publication' => :'String',
|
|
99
109
|
:'checkpoint' => :'Boolean'
|
|
100
110
|
}
|
|
@@ -105,6 +115,7 @@ module PulpFileClient
|
|
|
105
115
|
Set.new([
|
|
106
116
|
:'content_guard',
|
|
107
117
|
:'repository',
|
|
118
|
+
:'repository_version',
|
|
108
119
|
:'publication',
|
|
109
120
|
])
|
|
110
121
|
end
|
|
@@ -154,6 +165,10 @@ module PulpFileClient
|
|
|
154
165
|
self.content_guard = attributes[:'content_guard']
|
|
155
166
|
end
|
|
156
167
|
|
|
168
|
+
if attributes.key?(:'content_guard_prn')
|
|
169
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
170
|
+
end
|
|
171
|
+
|
|
157
172
|
if attributes.key?(:'no_content_change_since')
|
|
158
173
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
159
174
|
end
|
|
@@ -180,6 +195,10 @@ module PulpFileClient
|
|
|
180
195
|
self.repository = attributes[:'repository']
|
|
181
196
|
end
|
|
182
197
|
|
|
198
|
+
if attributes.key?(:'repository_version')
|
|
199
|
+
self.repository_version = attributes[:'repository_version']
|
|
200
|
+
end
|
|
201
|
+
|
|
183
202
|
if attributes.key?(:'publication')
|
|
184
203
|
self.publication = attributes[:'publication']
|
|
185
204
|
end
|
|
@@ -226,11 +245,13 @@ module PulpFileClient
|
|
|
226
245
|
base_path == o.base_path &&
|
|
227
246
|
base_url == o.base_url &&
|
|
228
247
|
content_guard == o.content_guard &&
|
|
248
|
+
content_guard_prn == o.content_guard_prn &&
|
|
229
249
|
no_content_change_since == o.no_content_change_since &&
|
|
230
250
|
hidden == o.hidden &&
|
|
231
251
|
pulp_labels == o.pulp_labels &&
|
|
232
252
|
name == o.name &&
|
|
233
253
|
repository == o.repository &&
|
|
254
|
+
repository_version == o.repository_version &&
|
|
234
255
|
publication == o.publication &&
|
|
235
256
|
checkpoint == o.checkpoint
|
|
236
257
|
end
|
|
@@ -244,7 +265,7 @@ module PulpFileClient
|
|
|
244
265
|
# Calculates hash code according to all attributes.
|
|
245
266
|
# @return [Integer] Hash code
|
|
246
267
|
def hash
|
|
247
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, checkpoint].hash
|
|
268
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, publication, checkpoint].hash
|
|
248
269
|
end
|
|
249
270
|
|
|
250
271
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpFileClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -43,6 +46,7 @@ module PulpFileClient
|
|
|
43
46
|
:'name' => :'name',
|
|
44
47
|
:'description' => :'description',
|
|
45
48
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
46
50
|
:'remote' => :'remote',
|
|
47
51
|
:'autopublish' => :'autopublish',
|
|
48
52
|
:'manifest' => :'manifest'
|
|
@@ -61,6 +65,7 @@ module PulpFileClient
|
|
|
61
65
|
:'name' => :'String',
|
|
62
66
|
:'description' => :'String',
|
|
63
67
|
:'retain_repo_versions' => :'Integer',
|
|
68
|
+
:'retain_checkpoints' => :'Integer',
|
|
64
69
|
:'remote' => :'String',
|
|
65
70
|
:'autopublish' => :'Boolean',
|
|
66
71
|
:'manifest' => :'String'
|
|
@@ -72,6 +77,7 @@ module PulpFileClient
|
|
|
72
77
|
Set.new([
|
|
73
78
|
:'description',
|
|
74
79
|
:'retain_repo_versions',
|
|
80
|
+
:'retain_checkpoints',
|
|
75
81
|
:'remote',
|
|
76
82
|
:'manifest'
|
|
77
83
|
])
|
|
@@ -112,6 +118,10 @@ module PulpFileClient
|
|
|
112
118
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
113
119
|
end
|
|
114
120
|
|
|
121
|
+
if attributes.key?(:'retain_checkpoints')
|
|
122
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
123
|
+
end
|
|
124
|
+
|
|
115
125
|
if attributes.key?(:'remote')
|
|
116
126
|
self.remote = attributes[:'remote']
|
|
117
127
|
end
|
|
@@ -150,6 +160,10 @@ module PulpFileClient
|
|
|
150
160
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
151
161
|
end
|
|
152
162
|
|
|
163
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
164
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
165
|
+
end
|
|
166
|
+
|
|
153
167
|
if !@manifest.nil? && @manifest.to_s.length < 1
|
|
154
168
|
invalid_properties.push('invalid value for "manifest", the character length must be great than or equal to 1.')
|
|
155
169
|
end
|
|
@@ -165,6 +179,7 @@ module PulpFileClient
|
|
|
165
179
|
return false if @name.to_s.length < 1
|
|
166
180
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
167
181
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
182
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
168
183
|
return false if !@manifest.nil? && @manifest.to_s.length < 1
|
|
169
184
|
true
|
|
170
185
|
end
|
|
@@ -203,6 +218,16 @@ module PulpFileClient
|
|
|
203
218
|
@retain_repo_versions = retain_repo_versions
|
|
204
219
|
end
|
|
205
220
|
|
|
221
|
+
# Custom attribute writer method with validation
|
|
222
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
223
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
224
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
225
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
@retain_checkpoints = retain_checkpoints
|
|
229
|
+
end
|
|
230
|
+
|
|
206
231
|
# Custom attribute writer method with validation
|
|
207
232
|
# @param [Object] manifest Value to be assigned
|
|
208
233
|
def manifest=(manifest)
|
|
@@ -222,6 +247,7 @@ module PulpFileClient
|
|
|
222
247
|
name == o.name &&
|
|
223
248
|
description == o.description &&
|
|
224
249
|
retain_repo_versions == o.retain_repo_versions &&
|
|
250
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
225
251
|
remote == o.remote &&
|
|
226
252
|
autopublish == o.autopublish &&
|
|
227
253
|
manifest == o.manifest
|
|
@@ -236,7 +262,7 @@ module PulpFileClient
|
|
|
236
262
|
# Calculates hash code according to all attributes.
|
|
237
263
|
# @return [Integer] Hash code
|
|
238
264
|
def hash
|
|
239
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, manifest].hash
|
|
265
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest].hash
|
|
240
266
|
end
|
|
241
267
|
|
|
242
268
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module PulpFileClient
|
|
|
42
42
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
43
|
attr_accessor :retain_repo_versions
|
|
44
44
|
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
|
+
|
|
45
48
|
# An optional remote to use by default when syncing.
|
|
46
49
|
attr_accessor :remote
|
|
47
50
|
|
|
@@ -64,6 +67,7 @@ module PulpFileClient
|
|
|
64
67
|
:'name' => :'name',
|
|
65
68
|
:'description' => :'description',
|
|
66
69
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
70
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
67
71
|
:'remote' => :'remote',
|
|
68
72
|
:'autopublish' => :'autopublish',
|
|
69
73
|
:'manifest' => :'manifest'
|
|
@@ -88,6 +92,7 @@ module PulpFileClient
|
|
|
88
92
|
:'name' => :'String',
|
|
89
93
|
:'description' => :'String',
|
|
90
94
|
:'retain_repo_versions' => :'Integer',
|
|
95
|
+
:'retain_checkpoints' => :'Integer',
|
|
91
96
|
:'remote' => :'String',
|
|
92
97
|
:'autopublish' => :'Boolean',
|
|
93
98
|
:'manifest' => :'String'
|
|
@@ -99,6 +104,7 @@ module PulpFileClient
|
|
|
99
104
|
Set.new([
|
|
100
105
|
:'description',
|
|
101
106
|
:'retain_repo_versions',
|
|
107
|
+
:'retain_checkpoints',
|
|
102
108
|
:'remote',
|
|
103
109
|
:'manifest'
|
|
104
110
|
])
|
|
@@ -163,6 +169,10 @@ module PulpFileClient
|
|
|
163
169
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
164
170
|
end
|
|
165
171
|
|
|
172
|
+
if attributes.key?(:'retain_checkpoints')
|
|
173
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
174
|
+
end
|
|
175
|
+
|
|
166
176
|
if attributes.key?(:'remote')
|
|
167
177
|
self.remote = attributes[:'remote']
|
|
168
178
|
end
|
|
@@ -193,6 +203,10 @@ module PulpFileClient
|
|
|
193
203
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
194
204
|
end
|
|
195
205
|
|
|
206
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
207
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
208
|
+
end
|
|
209
|
+
|
|
196
210
|
invalid_properties
|
|
197
211
|
end
|
|
198
212
|
|
|
@@ -202,6 +216,7 @@ module PulpFileClient
|
|
|
202
216
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
203
217
|
return false if @name.nil?
|
|
204
218
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
219
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
205
220
|
true
|
|
206
221
|
end
|
|
207
222
|
|
|
@@ -215,6 +230,16 @@ module PulpFileClient
|
|
|
215
230
|
@retain_repo_versions = retain_repo_versions
|
|
216
231
|
end
|
|
217
232
|
|
|
233
|
+
# Custom attribute writer method with validation
|
|
234
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
235
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
236
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
237
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
@retain_checkpoints = retain_checkpoints
|
|
241
|
+
end
|
|
242
|
+
|
|
218
243
|
# Checks equality by comparing each attribute.
|
|
219
244
|
# @param [Object] Object to be compared
|
|
220
245
|
def ==(o)
|
|
@@ -230,6 +255,7 @@ module PulpFileClient
|
|
|
230
255
|
name == o.name &&
|
|
231
256
|
description == o.description &&
|
|
232
257
|
retain_repo_versions == o.retain_repo_versions &&
|
|
258
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
233
259
|
remote == o.remote &&
|
|
234
260
|
autopublish == o.autopublish &&
|
|
235
261
|
manifest == o.manifest
|
|
@@ -244,7 +270,7 @@ module PulpFileClient
|
|
|
244
270
|
# Calculates hash code according to all attributes.
|
|
245
271
|
# @return [Integer] Hash code
|
|
246
272
|
def hash
|
|
247
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, manifest].hash
|
|
273
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest].hash
|
|
248
274
|
end
|
|
249
275
|
|
|
250
276
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module PulpFileClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
36
39
|
# Publication to be served
|
|
37
40
|
attr_accessor :publication
|
|
38
41
|
|
|
@@ -47,6 +50,7 @@ module PulpFileClient
|
|
|
47
50
|
:'pulp_labels' => :'pulp_labels',
|
|
48
51
|
:'name' => :'name',
|
|
49
52
|
:'repository' => :'repository',
|
|
53
|
+
:'repository_version' => :'repository_version',
|
|
50
54
|
:'publication' => :'publication',
|
|
51
55
|
:'checkpoint' => :'checkpoint'
|
|
52
56
|
}
|
|
@@ -66,6 +70,7 @@ module PulpFileClient
|
|
|
66
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
67
71
|
:'name' => :'String',
|
|
68
72
|
:'repository' => :'String',
|
|
73
|
+
:'repository_version' => :'String',
|
|
69
74
|
:'publication' => :'String',
|
|
70
75
|
:'checkpoint' => :'Boolean'
|
|
71
76
|
}
|
|
@@ -76,6 +81,7 @@ module PulpFileClient
|
|
|
76
81
|
Set.new([
|
|
77
82
|
:'content_guard',
|
|
78
83
|
:'repository',
|
|
84
|
+
:'repository_version',
|
|
79
85
|
:'publication',
|
|
80
86
|
])
|
|
81
87
|
end
|
|
@@ -123,6 +129,10 @@ module PulpFileClient
|
|
|
123
129
|
self.repository = attributes[:'repository']
|
|
124
130
|
end
|
|
125
131
|
|
|
132
|
+
if attributes.key?(:'repository_version')
|
|
133
|
+
self.repository_version = attributes[:'repository_version']
|
|
134
|
+
end
|
|
135
|
+
|
|
126
136
|
if attributes.key?(:'publication')
|
|
127
137
|
self.publication = attributes[:'publication']
|
|
128
138
|
end
|
|
@@ -196,6 +206,7 @@ module PulpFileClient
|
|
|
196
206
|
pulp_labels == o.pulp_labels &&
|
|
197
207
|
name == o.name &&
|
|
198
208
|
repository == o.repository &&
|
|
209
|
+
repository_version == o.repository_version &&
|
|
199
210
|
publication == o.publication &&
|
|
200
211
|
checkpoint == o.checkpoint
|
|
201
212
|
end
|
|
@@ -209,7 +220,7 @@ module PulpFileClient
|
|
|
209
220
|
# Calculates hash code according to all attributes.
|
|
210
221
|
# @return [Integer] Hash code
|
|
211
222
|
def hash
|
|
212
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, checkpoint].hash
|
|
223
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, checkpoint].hash
|
|
213
224
|
end
|
|
214
225
|
|
|
215
226
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpFileClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -43,6 +46,7 @@ module PulpFileClient
|
|
|
43
46
|
:'name' => :'name',
|
|
44
47
|
:'description' => :'description',
|
|
45
48
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
49
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
46
50
|
:'remote' => :'remote',
|
|
47
51
|
:'autopublish' => :'autopublish',
|
|
48
52
|
:'manifest' => :'manifest'
|
|
@@ -61,6 +65,7 @@ module PulpFileClient
|
|
|
61
65
|
:'name' => :'String',
|
|
62
66
|
:'description' => :'String',
|
|
63
67
|
:'retain_repo_versions' => :'Integer',
|
|
68
|
+
:'retain_checkpoints' => :'Integer',
|
|
64
69
|
:'remote' => :'String',
|
|
65
70
|
:'autopublish' => :'Boolean',
|
|
66
71
|
:'manifest' => :'String'
|
|
@@ -72,6 +77,7 @@ module PulpFileClient
|
|
|
72
77
|
Set.new([
|
|
73
78
|
:'description',
|
|
74
79
|
:'retain_repo_versions',
|
|
80
|
+
:'retain_checkpoints',
|
|
75
81
|
:'remote',
|
|
76
82
|
:'manifest'
|
|
77
83
|
])
|
|
@@ -110,6 +116,10 @@ module PulpFileClient
|
|
|
110
116
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
111
117
|
end
|
|
112
118
|
|
|
119
|
+
if attributes.key?(:'retain_checkpoints')
|
|
120
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
121
|
+
end
|
|
122
|
+
|
|
113
123
|
if attributes.key?(:'remote')
|
|
114
124
|
self.remote = attributes[:'remote']
|
|
115
125
|
end
|
|
@@ -144,6 +154,10 @@ module PulpFileClient
|
|
|
144
154
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
145
155
|
end
|
|
146
156
|
|
|
157
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
158
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
159
|
+
end
|
|
160
|
+
|
|
147
161
|
if !@manifest.nil? && @manifest.to_s.length < 1
|
|
148
162
|
invalid_properties.push('invalid value for "manifest", the character length must be great than or equal to 1.')
|
|
149
163
|
end
|
|
@@ -158,6 +172,7 @@ module PulpFileClient
|
|
|
158
172
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
159
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
160
174
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
175
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
161
176
|
return false if !@manifest.nil? && @manifest.to_s.length < 1
|
|
162
177
|
true
|
|
163
178
|
end
|
|
@@ -196,6 +211,16 @@ module PulpFileClient
|
|
|
196
211
|
@retain_repo_versions = retain_repo_versions
|
|
197
212
|
end
|
|
198
213
|
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
216
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
217
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
218
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@retain_checkpoints = retain_checkpoints
|
|
222
|
+
end
|
|
223
|
+
|
|
199
224
|
# Custom attribute writer method with validation
|
|
200
225
|
# @param [Object] manifest Value to be assigned
|
|
201
226
|
def manifest=(manifest)
|
|
@@ -215,6 +240,7 @@ module PulpFileClient
|
|
|
215
240
|
name == o.name &&
|
|
216
241
|
description == o.description &&
|
|
217
242
|
retain_repo_versions == o.retain_repo_versions &&
|
|
243
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
218
244
|
remote == o.remote &&
|
|
219
245
|
autopublish == o.autopublish &&
|
|
220
246
|
manifest == o.manifest
|
|
@@ -229,7 +255,7 @@ module PulpFileClient
|
|
|
229
255
|
# Calculates hash code according to all attributes.
|
|
230
256
|
# @return [Integer] Hash code
|
|
231
257
|
def hash
|
|
232
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, manifest].hash
|
|
258
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, manifest].hash
|
|
233
259
|
end
|
|
234
260
|
|
|
235
261
|
# Builds the object from hash
|
|
@@ -89,13 +89,21 @@ describe 'RepositoriesFileApi' do
|
|
|
89
89
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
90
90
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
91
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
92
|
-
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
92
|
+
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
93
93
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
94
94
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
95
95
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
96
96
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
97
97
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
98
98
|
# @option opts [String] :remote
|
|
99
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
100
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
101
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
102
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
103
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
104
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
105
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
106
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
99
107
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
100
108
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
101
109
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -69,6 +69,12 @@ describe PulpFileClient::FileFileDistributionResponse do
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
describe 'test attribute "content_guard_prn"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
72
78
|
describe 'test attribute "no_content_change_since"' do
|
|
73
79
|
it 'should work' do
|
|
74
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -99,6 +105,12 @@ describe PulpFileClient::FileFileDistributionResponse do
|
|
|
99
105
|
end
|
|
100
106
|
end
|
|
101
107
|
|
|
108
|
+
describe 'test attribute "repository_version"' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
102
114
|
describe 'test attribute "publication"' do
|
|
103
115
|
it 'should work' do
|
|
104
116
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -63,6 +63,12 @@ describe PulpFileClient::FileFileDistribution do
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
describe 'test attribute "repository_version"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
66
72
|
describe 'test attribute "publication"' do
|
|
67
73
|
it 'should work' do
|
|
68
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -87,6 +87,12 @@ describe PulpFileClient::FileFileRepositoryResponse do
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
describe 'test attribute "retain_checkpoints"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
90
96
|
describe 'test attribute "remote"' do
|
|
91
97
|
it 'should work' do
|
|
92
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -51,6 +51,12 @@ describe PulpFileClient::FileFileRepository do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "retain_checkpoints"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
describe 'test attribute "remote"' do
|
|
55
61
|
it 'should work' do
|
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -63,6 +63,12 @@ describe PulpFileClient::PatchedfileFileDistribution do
|
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
describe 'test attribute "repository_version"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
66
72
|
describe 'test attribute "publication"' do
|
|
67
73
|
it 'should work' do
|
|
68
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -51,6 +51,12 @@ describe PulpFileClient::PatchedfileFileRepository do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
describe 'test attribute "retain_checkpoints"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
describe 'test attribute "remote"' do
|
|
55
61
|
it 'should work' do
|
|
56
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|