pulp_npm_client 0.7.0 → 0.7.1
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/NpmNpmDistribution.md +2 -0
- data/docs/NpmNpmDistributionResponse.md +4 -0
- data/docs/NpmNpmRepository.md +2 -0
- data/docs/NpmNpmRepositoryResponse.md +2 -0
- data/docs/PatchednpmNpmDistribution.md +2 -0
- data/docs/PatchednpmNpmRepository.md +2 -0
- data/docs/RepositoriesNpmApi.md +18 -2
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +27 -3
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +12 -1
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +22 -1
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +15 -0
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +15 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +42 -1
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +42 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +12 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +15 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +42 -1
- data/lib/pulp_npm_client/models/remote_network_config.rb +15 -0
- data/lib/pulp_npm_client/models/remote_network_config_response.rb +15 -0
- data/lib/pulp_npm_client/models/set_label.rb +0 -11
- data/lib/pulp_npm_client/models/set_label_response.rb +0 -21
- data/lib/pulp_npm_client/models/unset_label.rb +0 -11
- data/lib/pulp_npm_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/repositories_npm_api_spec.rb +9 -1
- data/spec/models/npm_npm_distribution_response_spec.rb +12 -0
- data/spec/models/npm_npm_distribution_spec.rb +6 -0
- data/spec/models/npm_npm_repository_response_spec.rb +6 -0
- data/spec/models/npm_npm_repository_spec.rb +6 -0
- data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +6 -0
- metadata +25 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 859c2ff3f419d42b19899751c84302d13b69dcff65c78525443f5ea611925151
|
|
4
|
+
data.tar.gz: 9b1bfc35c4cbeefb7569e4184326b028bc9d2a703fde30d07e577657637ddccf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d417bfc7e30a23a636a5f72dbe3a30e08803c198efca179499e432c0d5ea50284c76a8815df599c1e9841fece41febe2bee3f690a697b18cb85a0111ef55eaa
|
|
7
|
+
data.tar.gz: ae85c382d1db8890cfc14268cf50766aabc15267597508508731ef3d323702729a81ea06c0dfb065ec2f609692299fed2c6321eb7cdff4928f1fb543e3ea7a93
|
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: 0.7.
|
|
10
|
+
- Package version: 0.7.1
|
|
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_npm_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_npm_client-0.7.
|
|
28
|
+
gem install ./pulp_npm_client-0.7.1.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_npm_client-0.7.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_npm_client-0.7.1.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_npm_client', '~> 0.7.
|
|
37
|
+
gem 'pulp_npm_client', '~> 0.7.1'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/docs/NpmNpmDistribution.md
CHANGED
|
@@ -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
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -24,6 +25,7 @@ instance = PulpNpmClient::NpmNpmDistribution.new(
|
|
|
24
25
|
pulp_labels: null,
|
|
25
26
|
name: null,
|
|
26
27
|
repository: null,
|
|
28
|
+
repository_version: null,
|
|
27
29
|
remote: null
|
|
28
30
|
)
|
|
29
31
|
```
|
|
@@ -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
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
20
22
|
|
|
21
23
|
## Example
|
|
@@ -31,11 +33,13 @@ instance = PulpNpmClient::NpmNpmDistributionResponse.new(
|
|
|
31
33
|
base_path: null,
|
|
32
34
|
base_url: null,
|
|
33
35
|
content_guard: null,
|
|
36
|
+
content_guard_prn: null,
|
|
34
37
|
no_content_change_since: null,
|
|
35
38
|
hidden: null,
|
|
36
39
|
pulp_labels: null,
|
|
37
40
|
name: null,
|
|
38
41
|
repository: null,
|
|
42
|
+
repository_version: null,
|
|
39
43
|
remote: null
|
|
40
44
|
)
|
|
41
45
|
```
|
data/docs/NpmNpmRepository.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
|
|
|
13
14
|
## Example
|
|
@@ -20,6 +21,7 @@ instance = PulpNpmClient::NpmNpmRepository.new(
|
|
|
20
21
|
name: null,
|
|
21
22
|
description: null,
|
|
22
23
|
retain_repo_versions: null,
|
|
24
|
+
retain_checkpoints: null,
|
|
23
25
|
remote: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
@@ -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
|
|
|
19
20
|
## Example
|
|
@@ -32,6 +33,7 @@ instance = PulpNpmClient::NpmNpmRepositoryResponse.new(
|
|
|
32
33
|
name: null,
|
|
33
34
|
description: null,
|
|
34
35
|
retain_repo_versions: null,
|
|
36
|
+
retain_checkpoints: null,
|
|
35
37
|
remote: null
|
|
36
38
|
)
|
|
37
39
|
```
|
|
@@ -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
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
14
15
|
|
|
15
16
|
## Example
|
|
@@ -24,6 +25,7 @@ instance = PulpNpmClient::PatchednpmNpmDistribution.new(
|
|
|
24
25
|
pulp_labels: null,
|
|
25
26
|
name: null,
|
|
26
27
|
repository: null,
|
|
28
|
+
repository_version: null,
|
|
27
29
|
remote: null
|
|
28
30
|
)
|
|
29
31
|
```
|
|
@@ -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
|
|
|
13
14
|
## Example
|
|
@@ -20,6 +21,7 @@ instance = PulpNpmClient::PatchednpmNpmRepository.new(
|
|
|
20
21
|
name: null,
|
|
21
22
|
description: null,
|
|
22
23
|
retain_repo_versions: null,
|
|
24
|
+
retain_checkpoints: null,
|
|
23
25
|
remote: null
|
|
24
26
|
)
|
|
25
27
|
```
|
data/docs/RepositoriesNpmApi.md
CHANGED
|
@@ -199,13 +199,21 @@ opts = {
|
|
|
199
199
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
|
200
200
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
201
201
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
202
|
-
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)
|
|
202
|
+
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)
|
|
203
203
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
204
204
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
205
205
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
206
206
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
207
207
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
208
208
|
remote: 'remote_example', # String |
|
|
209
|
+
retain_checkpoints: 56, # Integer | Filter results where retain_checkpoints matches value
|
|
210
|
+
retain_checkpoints__gt: 56, # Integer | Filter results where retain_checkpoints is greater than value
|
|
211
|
+
retain_checkpoints__gte: 56, # Integer | Filter results where retain_checkpoints is greater than or equal to value
|
|
212
|
+
retain_checkpoints__isnull: true, # Boolean | Filter results where retain_checkpoints has a null value
|
|
213
|
+
retain_checkpoints__lt: 56, # Integer | Filter results where retain_checkpoints is less than value
|
|
214
|
+
retain_checkpoints__lte: 56, # Integer | Filter results where retain_checkpoints is less than or equal to value
|
|
215
|
+
retain_checkpoints__ne: 56, # Integer | Filter results where retain_checkpoints not equal to value
|
|
216
|
+
retain_checkpoints__range: [37], # Array<Integer> | Filter results where retain_checkpoints is between two comma separated values
|
|
209
217
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
|
210
218
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
|
211
219
|
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -263,13 +271,21 @@ end
|
|
|
263
271
|
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
|
264
272
|
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
|
265
273
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
266
|
-
| **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] |
|
|
274
|
+
| **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] |
|
|
267
275
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
268
276
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
269
277
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
270
278
|
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
|
271
279
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
272
280
|
| **remote** | **String** | | [optional] |
|
|
281
|
+
| **retain_checkpoints** | **Integer** | Filter results where retain_checkpoints matches value | [optional] |
|
|
282
|
+
| **retain_checkpoints__gt** | **Integer** | Filter results where retain_checkpoints is greater than value | [optional] |
|
|
283
|
+
| **retain_checkpoints__gte** | **Integer** | Filter results where retain_checkpoints is greater than or equal to value | [optional] |
|
|
284
|
+
| **retain_checkpoints__isnull** | **Boolean** | Filter results where retain_checkpoints has a null value | [optional] |
|
|
285
|
+
| **retain_checkpoints__lt** | **Integer** | Filter results where retain_checkpoints is less than value | [optional] |
|
|
286
|
+
| **retain_checkpoints__lte** | **Integer** | Filter results where retain_checkpoints is less than or equal to value | [optional] |
|
|
287
|
+
| **retain_checkpoints__ne** | **Integer** | Filter results where retain_checkpoints not equal to value | [optional] |
|
|
288
|
+
| **retain_checkpoints__range** | [**Array<Integer>**](Integer.md) | Filter results where retain_checkpoints is between two comma separated values | [optional] |
|
|
273
289
|
| **retain_repo_versions** | **Integer** | Filter results where retain_repo_versions matches value | [optional] |
|
|
274
290
|
| **retain_repo_versions__gt** | **Integer** | Filter results where retain_repo_versions is greater than value | [optional] |
|
|
275
291
|
| **retain_repo_versions__gte** | **Integer** | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
|
|
@@ -172,13 +172,21 @@ module PulpNpmClient
|
|
|
172
172
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
173
173
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
174
174
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
175
|
-
# @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)
|
|
175
|
+
# @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)
|
|
176
176
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
177
177
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
178
178
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
179
179
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
180
180
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
181
181
|
# @option opts [String] :remote
|
|
182
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
183
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
184
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
185
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
186
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
187
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
188
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
189
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
182
190
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
183
191
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
184
192
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -212,13 +220,21 @@ module PulpNpmClient
|
|
|
212
220
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
213
221
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
214
222
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
215
|
-
# @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)
|
|
223
|
+
# @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)
|
|
216
224
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
217
225
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
218
226
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
219
227
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
220
228
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
221
229
|
# @option opts [String] :remote
|
|
230
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
231
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
232
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
233
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
234
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
235
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
236
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
237
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
222
238
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
223
239
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
224
240
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -235,7 +251,7 @@ module PulpNpmClient
|
|
|
235
251
|
if @api_client.config.debugging
|
|
236
252
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.list ...'
|
|
237
253
|
end
|
|
238
|
-
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"]
|
|
254
|
+
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"]
|
|
239
255
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
240
256
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
241
257
|
end
|
|
@@ -263,6 +279,14 @@ module PulpNpmClient
|
|
|
263
279
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
264
280
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
265
281
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
|
282
|
+
query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
|
|
283
|
+
query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
|
|
284
|
+
query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
|
|
285
|
+
query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
|
|
286
|
+
query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
|
|
287
|
+
query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
|
|
288
|
+
query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
|
|
289
|
+
query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
|
|
266
290
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
|
267
291
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
|
268
292
|
query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
|
|
@@ -33,6 +33,9 @@ module PulpNpmClient
|
|
|
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
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
37
40
|
attr_accessor :remote
|
|
38
41
|
|
|
@@ -45,6 +48,7 @@ module PulpNpmClient
|
|
|
45
48
|
:'pulp_labels' => :'pulp_labels',
|
|
46
49
|
:'name' => :'name',
|
|
47
50
|
:'repository' => :'repository',
|
|
51
|
+
:'repository_version' => :'repository_version',
|
|
48
52
|
:'remote' => :'remote'
|
|
49
53
|
}
|
|
50
54
|
end
|
|
@@ -63,6 +67,7 @@ module PulpNpmClient
|
|
|
63
67
|
:'pulp_labels' => :'Hash<String, String>',
|
|
64
68
|
:'name' => :'String',
|
|
65
69
|
:'repository' => :'String',
|
|
70
|
+
:'repository_version' => :'String',
|
|
66
71
|
:'remote' => :'String'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
@@ -72,6 +77,7 @@ module PulpNpmClient
|
|
|
72
77
|
Set.new([
|
|
73
78
|
:'content_guard',
|
|
74
79
|
:'repository',
|
|
80
|
+
:'repository_version',
|
|
75
81
|
:'remote'
|
|
76
82
|
])
|
|
77
83
|
end
|
|
@@ -123,6 +129,10 @@ module PulpNpmClient
|
|
|
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?(:'remote')
|
|
127
137
|
self.remote = attributes[:'remote']
|
|
128
138
|
end
|
|
@@ -202,6 +212,7 @@ module PulpNpmClient
|
|
|
202
212
|
pulp_labels == o.pulp_labels &&
|
|
203
213
|
name == o.name &&
|
|
204
214
|
repository == o.repository &&
|
|
215
|
+
repository_version == o.repository_version &&
|
|
205
216
|
remote == o.remote
|
|
206
217
|
end
|
|
207
218
|
|
|
@@ -214,7 +225,7 @@ module PulpNpmClient
|
|
|
214
225
|
# Calculates hash code according to all attributes.
|
|
215
226
|
# @return [Integer] Hash code
|
|
216
227
|
def hash
|
|
217
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, remote].hash
|
|
228
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, remote].hash
|
|
218
229
|
end
|
|
219
230
|
|
|
220
231
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module PulpNpmClient
|
|
|
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 PulpNpmClient
|
|
|
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
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
54
60
|
attr_accessor :remote
|
|
55
61
|
|
|
@@ -63,11 +69,13 @@ module PulpNpmClient
|
|
|
63
69
|
:'base_path' => :'base_path',
|
|
64
70
|
:'base_url' => :'base_url',
|
|
65
71
|
:'content_guard' => :'content_guard',
|
|
72
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
66
73
|
:'no_content_change_since' => :'no_content_change_since',
|
|
67
74
|
:'hidden' => :'hidden',
|
|
68
75
|
:'pulp_labels' => :'pulp_labels',
|
|
69
76
|
:'name' => :'name',
|
|
70
77
|
:'repository' => :'repository',
|
|
78
|
+
:'repository_version' => :'repository_version',
|
|
71
79
|
:'remote' => :'remote'
|
|
72
80
|
}
|
|
73
81
|
end
|
|
@@ -87,11 +95,13 @@ module PulpNpmClient
|
|
|
87
95
|
:'base_path' => :'String',
|
|
88
96
|
:'base_url' => :'String',
|
|
89
97
|
:'content_guard' => :'String',
|
|
98
|
+
:'content_guard_prn' => :'String',
|
|
90
99
|
:'no_content_change_since' => :'String',
|
|
91
100
|
:'hidden' => :'Boolean',
|
|
92
101
|
:'pulp_labels' => :'Hash<String, String>',
|
|
93
102
|
:'name' => :'String',
|
|
94
103
|
:'repository' => :'String',
|
|
104
|
+
:'repository_version' => :'String',
|
|
95
105
|
:'remote' => :'String'
|
|
96
106
|
}
|
|
97
107
|
end
|
|
@@ -101,6 +111,7 @@ module PulpNpmClient
|
|
|
101
111
|
Set.new([
|
|
102
112
|
:'content_guard',
|
|
103
113
|
:'repository',
|
|
114
|
+
:'repository_version',
|
|
104
115
|
:'remote'
|
|
105
116
|
])
|
|
106
117
|
end
|
|
@@ -150,6 +161,10 @@ module PulpNpmClient
|
|
|
150
161
|
self.content_guard = attributes[:'content_guard']
|
|
151
162
|
end
|
|
152
163
|
|
|
164
|
+
if attributes.key?(:'content_guard_prn')
|
|
165
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
166
|
+
end
|
|
167
|
+
|
|
153
168
|
if attributes.key?(:'no_content_change_since')
|
|
154
169
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
155
170
|
end
|
|
@@ -176,6 +191,10 @@ module PulpNpmClient
|
|
|
176
191
|
self.repository = attributes[:'repository']
|
|
177
192
|
end
|
|
178
193
|
|
|
194
|
+
if attributes.key?(:'repository_version')
|
|
195
|
+
self.repository_version = attributes[:'repository_version']
|
|
196
|
+
end
|
|
197
|
+
|
|
179
198
|
if attributes.key?(:'remote')
|
|
180
199
|
self.remote = attributes[:'remote']
|
|
181
200
|
end
|
|
@@ -218,11 +237,13 @@ module PulpNpmClient
|
|
|
218
237
|
base_path == o.base_path &&
|
|
219
238
|
base_url == o.base_url &&
|
|
220
239
|
content_guard == o.content_guard &&
|
|
240
|
+
content_guard_prn == o.content_guard_prn &&
|
|
221
241
|
no_content_change_since == o.no_content_change_since &&
|
|
222
242
|
hidden == o.hidden &&
|
|
223
243
|
pulp_labels == o.pulp_labels &&
|
|
224
244
|
name == o.name &&
|
|
225
245
|
repository == o.repository &&
|
|
246
|
+
repository_version == o.repository_version &&
|
|
226
247
|
remote == o.remote
|
|
227
248
|
end
|
|
228
249
|
|
|
@@ -235,7 +256,7 @@ module PulpNpmClient
|
|
|
235
256
|
# Calculates hash code according to all attributes.
|
|
236
257
|
# @return [Integer] Hash code
|
|
237
258
|
def hash
|
|
238
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, remote].hash
|
|
259
|
+
[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, remote].hash
|
|
239
260
|
end
|
|
240
261
|
|
|
241
262
|
# Builds the object from hash
|
|
@@ -357,6 +357,10 @@ module PulpNpmClient
|
|
|
357
357
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
358
358
|
end
|
|
359
359
|
|
|
360
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
361
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
362
|
+
end
|
|
363
|
+
|
|
360
364
|
invalid_properties
|
|
361
365
|
end
|
|
362
366
|
|
|
@@ -380,6 +384,7 @@ module PulpNpmClient
|
|
|
380
384
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
381
385
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
382
386
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
387
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
383
388
|
true
|
|
384
389
|
end
|
|
385
390
|
|
|
@@ -531,6 +536,16 @@ module PulpNpmClient
|
|
|
531
536
|
@sock_read_timeout = sock_read_timeout
|
|
532
537
|
end
|
|
533
538
|
|
|
539
|
+
# Custom attribute writer method with validation
|
|
540
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
541
|
+
def download_concurrency=(download_concurrency)
|
|
542
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
543
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
@download_concurrency = download_concurrency
|
|
547
|
+
end
|
|
548
|
+
|
|
534
549
|
# Checks equality by comparing each attribute.
|
|
535
550
|
# @param [Object] Object to be compared
|
|
536
551
|
def ==(o)
|
|
@@ -313,6 +313,10 @@ module PulpNpmClient
|
|
|
313
313
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
314
314
|
end
|
|
315
315
|
|
|
316
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
317
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
318
|
+
end
|
|
319
|
+
|
|
316
320
|
invalid_properties
|
|
317
321
|
end
|
|
318
322
|
|
|
@@ -326,6 +330,7 @@ module PulpNpmClient
|
|
|
326
330
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
327
331
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
328
332
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
333
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
329
334
|
true
|
|
330
335
|
end
|
|
331
336
|
|
|
@@ -369,6 +374,16 @@ module PulpNpmClient
|
|
|
369
374
|
@sock_read_timeout = sock_read_timeout
|
|
370
375
|
end
|
|
371
376
|
|
|
377
|
+
# Custom attribute writer method with validation
|
|
378
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
379
|
+
def download_concurrency=(download_concurrency)
|
|
380
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
381
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
@download_concurrency = download_concurrency
|
|
385
|
+
end
|
|
386
|
+
|
|
372
387
|
# Checks equality by comparing each attribute.
|
|
373
388
|
# @param [Object] Object to be compared
|
|
374
389
|
def ==(o)
|
|
@@ -27,6 +27,9 @@ module PulpNpmClient
|
|
|
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
|
|
|
@@ -37,6 +40,7 @@ module PulpNpmClient
|
|
|
37
40
|
:'name' => :'name',
|
|
38
41
|
:'description' => :'description',
|
|
39
42
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
43
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
40
44
|
:'remote' => :'remote'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
@@ -53,6 +57,7 @@ module PulpNpmClient
|
|
|
53
57
|
:'name' => :'String',
|
|
54
58
|
:'description' => :'String',
|
|
55
59
|
:'retain_repo_versions' => :'Integer',
|
|
60
|
+
:'retain_checkpoints' => :'Integer',
|
|
56
61
|
:'remote' => :'String'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
@@ -62,6 +67,7 @@ module PulpNpmClient
|
|
|
62
67
|
Set.new([
|
|
63
68
|
:'description',
|
|
64
69
|
:'retain_repo_versions',
|
|
70
|
+
:'retain_checkpoints',
|
|
65
71
|
:'remote'
|
|
66
72
|
])
|
|
67
73
|
end
|
|
@@ -101,6 +107,10 @@ module PulpNpmClient
|
|
|
101
107
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
108
|
end
|
|
103
109
|
|
|
110
|
+
if attributes.key?(:'retain_checkpoints')
|
|
111
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
112
|
+
end
|
|
113
|
+
|
|
104
114
|
if attributes.key?(:'remote')
|
|
105
115
|
self.remote = attributes[:'remote']
|
|
106
116
|
end
|
|
@@ -123,6 +133,14 @@ module PulpNpmClient
|
|
|
123
133
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
134
|
end
|
|
125
135
|
|
|
136
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
137
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
126
144
|
invalid_properties
|
|
127
145
|
end
|
|
128
146
|
|
|
@@ -133,6 +151,8 @@ module PulpNpmClient
|
|
|
133
151
|
return false if @name.nil?
|
|
134
152
|
return false if @name.to_s.length < 1
|
|
135
153
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
136
156
|
true
|
|
137
157
|
end
|
|
138
158
|
|
|
@@ -160,6 +180,26 @@ module PulpNpmClient
|
|
|
160
180
|
@description = description
|
|
161
181
|
end
|
|
162
182
|
|
|
183
|
+
# Custom attribute writer method with validation
|
|
184
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
185
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
186
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
187
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
@retain_repo_versions = retain_repo_versions
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
196
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
201
|
+
end
|
|
202
|
+
|
|
163
203
|
# Checks equality by comparing each attribute.
|
|
164
204
|
# @param [Object] Object to be compared
|
|
165
205
|
def ==(o)
|
|
@@ -169,6 +209,7 @@ module PulpNpmClient
|
|
|
169
209
|
name == o.name &&
|
|
170
210
|
description == o.description &&
|
|
171
211
|
retain_repo_versions == o.retain_repo_versions &&
|
|
212
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
172
213
|
remote == o.remote
|
|
173
214
|
end
|
|
174
215
|
|
|
@@ -181,7 +222,7 @@ module PulpNpmClient
|
|
|
181
222
|
# Calculates hash code according to all attributes.
|
|
182
223
|
# @return [Integer] Hash code
|
|
183
224
|
def hash
|
|
184
|
-
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
|
225
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote].hash
|
|
185
226
|
end
|
|
186
227
|
|
|
187
228
|
# Builds the object from hash
|