pulp_container_client 2.15.0 → 2.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +7 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +7 -5
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- data/lib/pulp_container_client/api/distributions_container_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +58 -46
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -36
- data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +49 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +13 -7
- data/spec/models/container_container_distribution_spec.rb +10 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +10 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +45 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7d45b250e249ec85396f07fce4f0a31b0ccda431cb7b4608ee647b1b4d9fbfd
|
4
|
+
data.tar.gz: 5104dcc2f964866da18b7c214068684ac26f1e3225aad84664a3a1cd112efe6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e25708ca2038436a0025d3fa98e049db1696e9adae46894a3f342bff91d295ccbc7e19396adf2900380c9ca24581f1c260d33cc7bc220385a400db8a234286
|
7
|
+
data.tar.gz: 892857eeb3287eeb690e033791731088afd5b6f374c06c3fba930c74834e61784750aa084f909cc25be332ce370945dd40be7a048e199269649eec831682ac32
|
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: 2.15.
|
10
|
+
- Package version: 2.15.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_container_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_container_client-2.15.
|
27
|
+
gem install ./pulp_container_client-2.15.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.15.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.15.1.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_container_client', '~> 2.15.
|
36
|
+
gem 'pulp_container_client', '~> 2.15.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,11 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_labels** | **Hash<String, String>** | | [optional]
|
8
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**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\") |
|
9
9
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
10
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
11
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
12
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
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
13
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
13
14
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
15
|
**description** | **String** | An optional description. | [optional]
|
@@ -18,11 +19,12 @@ Name | Type | Description | Notes
|
|
18
19
|
```ruby
|
19
20
|
require 'PulpContainerClient'
|
20
21
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
22
|
-
|
22
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(repository: null,
|
23
|
+
base_path: null,
|
23
24
|
name: null,
|
25
|
+
hidden: null,
|
26
|
+
pulp_labels: null,
|
24
27
|
content_guard: null,
|
25
|
-
base_path: null,
|
26
28
|
repository_version: null,
|
27
29
|
private: null,
|
28
30
|
description: null)
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**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\") |
|
7
9
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
8
12
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
9
13
|
**pulp_href** | **String** | | [optional] [readonly]
|
10
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
11
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
12
14
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
13
|
-
**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\") |
|
14
15
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
15
16
|
**registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
16
17
|
**namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
|
@@ -22,13 +23,14 @@ Name | Type | Description | Notes
|
|
22
23
|
```ruby
|
23
24
|
require 'PulpContainerClient'
|
24
25
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
26
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(repository: null,
|
27
|
+
base_path: null,
|
28
|
+
pulp_created: null,
|
29
|
+
name: null,
|
30
|
+
hidden: null,
|
26
31
|
pulp_labels: null,
|
27
32
|
pulp_href: null,
|
28
|
-
repository: null,
|
29
|
-
name: null,
|
30
33
|
content_guard: null,
|
31
|
-
base_path: null,
|
32
34
|
repository_version: null,
|
33
35
|
registry_path: null,
|
34
36
|
namespace: null,
|
@@ -5,8 +5,8 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
9
8
|
**name** | **String** | A unique name for this repository. |
|
9
|
+
**description** | **String** | An optional description. | [optional]
|
10
10
|
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
11
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
12
12
|
|
@@ -16,8 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::ContainerContainerPushRepository.new(retain_repo_versions: null,
|
19
|
-
description: null,
|
20
19
|
name: null,
|
20
|
+
description: null,
|
21
21
|
manifest_signing_service: null,
|
22
22
|
pulp_labels: null)
|
23
23
|
```
|
@@ -4,30 +4,30 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**versions_href** | **String** | | [optional] [readonly]
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
10
|
-
**latest_version_href** | **String** | | [optional] [readonly]
|
11
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
12
|
-
**
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
13
9
|
**name** | **String** | A unique name for this repository. |
|
10
|
+
**description** | **String** | An optional description. | [optional]
|
14
11
|
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
12
|
+
**latest_version_href** | **String** | | [optional] [readonly]
|
15
13
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
14
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
15
|
+
**versions_href** | **String** | | [optional] [readonly]
|
16
16
|
|
17
17
|
## Code Sample
|
18
18
|
|
19
19
|
```ruby
|
20
20
|
require 'PulpContainerClient'
|
21
21
|
|
22
|
-
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(
|
22
|
+
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(retain_repo_versions: null,
|
23
23
|
pulp_created: null,
|
24
|
-
pulp_href: null,
|
25
|
-
latest_version_href: null,
|
26
|
-
retain_repo_versions: null,
|
27
|
-
description: null,
|
28
24
|
name: null,
|
25
|
+
description: null,
|
29
26
|
manifest_signing_service: null,
|
30
|
-
|
27
|
+
latest_version_href: null,
|
28
|
+
pulp_labels: null,
|
29
|
+
pulp_href: null,
|
30
|
+
versions_href: null)
|
31
31
|
```
|
32
32
|
|
33
33
|
|
@@ -211,7 +211,7 @@ opts = {
|
|
211
211
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
212
212
|
namespace__name: 'namespace__name_example', # String |
|
213
213
|
offset: 56, # Integer | The initial index from which to return the results.
|
214
|
-
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
214
|
+
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
215
215
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
216
216
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
217
217
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
@@ -248,7 +248,7 @@ Name | Type | Description | Notes
|
|
248
248
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
249
249
|
**namespace__name** | **String**| | [optional]
|
250
250
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
251
|
-
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
251
|
+
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
252
252
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
253
253
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
254
254
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
@@ -4,11 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_labels** | **Hash<String, String>** | | [optional]
|
8
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
|
9
9
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
10
|
+
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
11
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
12
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
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\") | [optional]
|
12
13
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
13
14
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
15
|
**description** | **String** | An optional description. | [optional]
|
@@ -18,11 +19,12 @@ Name | Type | Description | Notes
|
|
18
19
|
```ruby
|
19
20
|
require 'PulpContainerClient'
|
20
21
|
|
21
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
22
|
-
|
22
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository: null,
|
23
|
+
base_path: null,
|
23
24
|
name: null,
|
25
|
+
hidden: null,
|
26
|
+
pulp_labels: null,
|
24
27
|
content_guard: null,
|
25
|
-
base_path: null,
|
26
28
|
repository_version: null,
|
27
29
|
private: null,
|
28
30
|
description: null)
|
@@ -5,8 +5,8 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
9
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
9
|
+
**description** | **String** | An optional description. | [optional]
|
10
10
|
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
11
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
12
12
|
|
@@ -16,8 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
|
19
|
-
description: null,
|
20
19
|
name: null,
|
20
|
+
description: null,
|
21
21
|
manifest_signing_service: null,
|
22
22
|
pulp_labels: null)
|
23
23
|
```
|
@@ -228,7 +228,7 @@ module PulpContainerClient
|
|
228
228
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
229
229
|
# @option opts [String] :namespace__name
|
230
230
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
231
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
231
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
232
232
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
233
233
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
234
234
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -258,7 +258,7 @@ module PulpContainerClient
|
|
258
258
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
259
259
|
# @option opts [String] :namespace__name
|
260
260
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
261
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
261
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `private` - Private * `-private` - Private (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
262
262
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
263
263
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
264
264
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
@@ -272,7 +272,7 @@ module PulpContainerClient
|
|
272
272
|
if @api_client.config.debugging
|
273
273
|
@api_client.config.logger.debug 'Calling API: DistributionsContainerApi.list ...'
|
274
274
|
end
|
275
|
-
allowable_values = ["-base_path", "-description", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "description", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
275
|
+
allowable_values = ["-base_path", "-description", "-hidden", "-name", "-pk", "-private", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "description", "hidden", "name", "pk", "private", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
276
276
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
277
277
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
278
278
|
end
|
@@ -15,20 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# The latest RepositoryVersion for this Repository will be served.
|
21
19
|
attr_accessor :repository
|
22
20
|
|
21
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
|
+
attr_accessor :base_path
|
23
|
+
|
23
24
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
25
|
attr_accessor :name
|
25
26
|
|
27
|
+
# Whether this distribution should be shown in the content app.
|
28
|
+
attr_accessor :hidden
|
29
|
+
|
30
|
+
attr_accessor :pulp_labels
|
31
|
+
|
26
32
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
33
|
attr_accessor :content_guard
|
28
34
|
|
29
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
|
-
attr_accessor :base_path
|
31
|
-
|
32
35
|
# RepositoryVersion to be served
|
33
36
|
attr_accessor :repository_version
|
34
37
|
|
@@ -41,11 +44,12 @@ module PulpContainerClient
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
45
|
def self.attribute_map
|
43
46
|
{
|
44
|
-
:'pulp_labels' => :'pulp_labels',
|
45
47
|
:'repository' => :'repository',
|
48
|
+
:'base_path' => :'base_path',
|
46
49
|
:'name' => :'name',
|
50
|
+
:'hidden' => :'hidden',
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
47
52
|
:'content_guard' => :'content_guard',
|
48
|
-
:'base_path' => :'base_path',
|
49
53
|
:'repository_version' => :'repository_version',
|
50
54
|
:'private' => :'private',
|
51
55
|
:'description' => :'description'
|
@@ -55,11 +59,12 @@ module PulpContainerClient
|
|
55
59
|
# Attribute type mapping.
|
56
60
|
def self.openapi_types
|
57
61
|
{
|
58
|
-
:'pulp_labels' => :'Hash<String, String>',
|
59
62
|
:'repository' => :'String',
|
63
|
+
:'base_path' => :'String',
|
60
64
|
:'name' => :'String',
|
65
|
+
:'hidden' => :'Boolean',
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
61
67
|
:'content_guard' => :'String',
|
62
|
-
:'base_path' => :'String',
|
63
68
|
:'repository_version' => :'String',
|
64
69
|
:'private' => :'Boolean',
|
65
70
|
:'description' => :'String'
|
@@ -90,26 +95,32 @@ module PulpContainerClient
|
|
90
95
|
h[k.to_sym] = v
|
91
96
|
}
|
92
97
|
|
93
|
-
if attributes.key?(:'pulp_labels')
|
94
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
95
|
-
self.pulp_labels = value
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
98
|
if attributes.key?(:'repository')
|
100
99
|
self.repository = attributes[:'repository']
|
101
100
|
end
|
102
101
|
|
102
|
+
if attributes.key?(:'base_path')
|
103
|
+
self.base_path = attributes[:'base_path']
|
104
|
+
end
|
105
|
+
|
103
106
|
if attributes.key?(:'name')
|
104
107
|
self.name = attributes[:'name']
|
105
108
|
end
|
106
109
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
110
|
+
if attributes.key?(:'hidden')
|
111
|
+
self.hidden = attributes[:'hidden']
|
112
|
+
else
|
113
|
+
self.hidden = false
|
109
114
|
end
|
110
115
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
|
116
|
+
if attributes.key?(:'pulp_labels')
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
+
self.pulp_labels = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'content_guard')
|
123
|
+
self.content_guard = attributes[:'content_guard']
|
113
124
|
end
|
114
125
|
|
115
126
|
if attributes.key?(:'repository_version')
|
@@ -129,14 +140,6 @@ module PulpContainerClient
|
|
129
140
|
# @return Array for valid properties with the reasons
|
130
141
|
def list_invalid_properties
|
131
142
|
invalid_properties = Array.new
|
132
|
-
if @name.nil?
|
133
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @name.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
143
|
if @base_path.nil?
|
141
144
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
142
145
|
end
|
@@ -145,6 +148,14 @@ module PulpContainerClient
|
|
145
148
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
146
149
|
end
|
147
150
|
|
151
|
+
if @name.nil?
|
152
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
if @name.to_s.length < 1
|
156
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
157
|
+
end
|
158
|
+
|
148
159
|
if !@description.nil? && @description.to_s.length < 1
|
149
160
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
150
161
|
end
|
@@ -155,28 +166,14 @@ module PulpContainerClient
|
|
155
166
|
# Check to see if the all the properties in the model are valid
|
156
167
|
# @return true if the model is valid
|
157
168
|
def valid?
|
158
|
-
return false if @name.nil?
|
159
|
-
return false if @name.to_s.length < 1
|
160
169
|
return false if @base_path.nil?
|
161
170
|
return false if @base_path.to_s.length < 1
|
171
|
+
return false if @name.nil?
|
172
|
+
return false if @name.to_s.length < 1
|
162
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
163
174
|
true
|
164
175
|
end
|
165
176
|
|
166
|
-
# Custom attribute writer method with validation
|
167
|
-
# @param [Object] name Value to be assigned
|
168
|
-
def name=(name)
|
169
|
-
if name.nil?
|
170
|
-
fail ArgumentError, 'name cannot be nil'
|
171
|
-
end
|
172
|
-
|
173
|
-
if name.to_s.length < 1
|
174
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
175
|
-
end
|
176
|
-
|
177
|
-
@name = name
|
178
|
-
end
|
179
|
-
|
180
177
|
# Custom attribute writer method with validation
|
181
178
|
# @param [Object] base_path Value to be assigned
|
182
179
|
def base_path=(base_path)
|
@@ -191,6 +188,20 @@ module PulpContainerClient
|
|
191
188
|
@base_path = base_path
|
192
189
|
end
|
193
190
|
|
191
|
+
# Custom attribute writer method with validation
|
192
|
+
# @param [Object] name Value to be assigned
|
193
|
+
def name=(name)
|
194
|
+
if name.nil?
|
195
|
+
fail ArgumentError, 'name cannot be nil'
|
196
|
+
end
|
197
|
+
|
198
|
+
if name.to_s.length < 1
|
199
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
200
|
+
end
|
201
|
+
|
202
|
+
@name = name
|
203
|
+
end
|
204
|
+
|
194
205
|
# Custom attribute writer method with validation
|
195
206
|
# @param [Object] description Value to be assigned
|
196
207
|
def description=(description)
|
@@ -206,11 +217,12 @@ module PulpContainerClient
|
|
206
217
|
def ==(o)
|
207
218
|
return true if self.equal?(o)
|
208
219
|
self.class == o.class &&
|
209
|
-
pulp_labels == o.pulp_labels &&
|
210
220
|
repository == o.repository &&
|
221
|
+
base_path == o.base_path &&
|
211
222
|
name == o.name &&
|
223
|
+
hidden == o.hidden &&
|
224
|
+
pulp_labels == o.pulp_labels &&
|
212
225
|
content_guard == o.content_guard &&
|
213
|
-
base_path == o.base_path &&
|
214
226
|
repository_version == o.repository_version &&
|
215
227
|
private == o.private &&
|
216
228
|
description == o.description
|
@@ -225,7 +237,7 @@ module PulpContainerClient
|
|
225
237
|
# Calculates hash code according to all attributes.
|
226
238
|
# @return [Integer] Hash code
|
227
239
|
def hash
|
228
|
-
[
|
240
|
+
[repository, base_path, name, hidden, pulp_labels, content_guard, repository_version, private, description].hash
|
229
241
|
end
|
230
242
|
|
231
243
|
# Builds the object from hash
|