pulp_container_client 2.25.0 → 2.25.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/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +62 -62
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +62 -62
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_push_repository.rb +36 -36
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -59
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +0 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22a885f4dd202b3399a6232bf888d1c8c497b3f22be2a6197ca5a8656c857f3a
|
4
|
+
data.tar.gz: '011191a68c511ce49afc8051ed79ae8529ac4c14db0485e9bc1f41599499bbe2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2dac3d371f9efc7497e179b52129a11049f7f3986999e0b1887eab79df9aa5cb93cc076c39de52816bae3a97fcad3180684119661ce1b9d6329d9143b05298
|
7
|
+
data.tar.gz: 2b1370a5f5dd5133aaf04516aabc7c7bbe1f2307dd05e63f85b28f64903e7ef2dd8e604e362d50bf542e9022839d2b48b85be19f15453d4ed8f91e3f929c9591
|
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.25.
|
10
|
+
- Package version: 2.25.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_container_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pulp_container_client-2.25.
|
28
|
+
gem install ./pulp_container_client-2.25.1.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulp_container_client-2.25.
|
31
|
+
(for development, run `gem install --dev ./pulp_container_client-2.25.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_container_client', '~> 2.25.
|
37
|
+
gem 'pulp_container_client', '~> 2.25.1'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
8
7
|
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
9
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
10
|
-
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
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
8
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
10
|
+
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
12
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
13
13
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
14
14
|
| **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional] |
|
15
15
|
| **description** | **String** | An optional description. | [optional] |
|
@@ -20,12 +20,12 @@
|
|
20
20
|
require 'pulp_container_client'
|
21
21
|
|
22
22
|
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
23
|
-
repository: null,
|
24
23
|
content_guard: null,
|
25
|
-
hidden: null,
|
26
|
-
name: null,
|
27
|
-
base_path: null,
|
28
24
|
pulp_labels: null,
|
25
|
+
base_path: null,
|
26
|
+
repository: null,
|
27
|
+
name: null,
|
28
|
+
hidden: null,
|
29
29
|
repository_version: null,
|
30
30
|
private: null,
|
31
31
|
description: null
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
8
8
|
| **pulp_href** | **String** | | [optional][readonly] |
|
9
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
10
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
11
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
12
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
13
|
+
| **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] |
|
14
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
10
15
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
12
|
-
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
13
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
14
16
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
15
|
-
| **
|
16
|
-
| **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\") | |
|
17
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
17
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
18
18
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
19
19
|
| **registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional][readonly] |
|
20
20
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional][readonly] |
|
@@ -28,17 +28,17 @@
|
|
28
28
|
require 'pulp_container_client'
|
29
29
|
|
30
30
|
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
31
|
-
|
31
|
+
content_guard: null,
|
32
32
|
pulp_href: null,
|
33
|
+
pulp_last_updated: null,
|
34
|
+
prn: null,
|
35
|
+
pulp_labels: null,
|
33
36
|
pulp_created: null,
|
37
|
+
no_content_change_since: null,
|
38
|
+
base_path: null,
|
34
39
|
repository: null,
|
35
|
-
prn: null,
|
36
|
-
content_guard: null,
|
37
|
-
hidden: null,
|
38
40
|
name: null,
|
39
|
-
|
40
|
-
base_path: null,
|
41
|
-
pulp_labels: null,
|
41
|
+
hidden: null,
|
42
42
|
repository_version: null,
|
43
43
|
registry_path: null,
|
44
44
|
remote: null,
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
8
7
|
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
9
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
10
|
-
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
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
8
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
10
|
+
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
12
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
13
13
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | |
|
14
14
|
| **distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional] |
|
15
15
|
| **private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional] |
|
@@ -21,12 +21,12 @@
|
|
21
21
|
require 'pulp_container_client'
|
22
22
|
|
23
23
|
instance = PulpContainerClient::ContainerContainerPullThroughDistribution.new(
|
24
|
-
repository: null,
|
25
24
|
content_guard: null,
|
26
|
-
hidden: null,
|
27
|
-
name: null,
|
28
|
-
base_path: null,
|
29
25
|
pulp_labels: null,
|
26
|
+
base_path: null,
|
27
|
+
repository: null,
|
28
|
+
name: null,
|
29
|
+
hidden: null,
|
30
30
|
remote: null,
|
31
31
|
distributions: null,
|
32
32
|
private: null,
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
8
8
|
| **pulp_href** | **String** | | [optional][readonly] |
|
9
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
10
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
11
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
12
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
13
|
+
| **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] |
|
14
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
10
15
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
12
|
-
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
13
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
14
16
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
15
|
-
| **
|
16
|
-
| **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\") | |
|
17
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
17
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
18
18
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | |
|
19
19
|
| **distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional] |
|
20
20
|
| **namespace** | **String** | Namespace this distribution belongs to. | [optional][readonly] |
|
@@ -27,17 +27,17 @@
|
|
27
27
|
require 'pulp_container_client'
|
28
28
|
|
29
29
|
instance = PulpContainerClient::ContainerContainerPullThroughDistributionResponse.new(
|
30
|
-
|
30
|
+
content_guard: null,
|
31
31
|
pulp_href: null,
|
32
|
+
pulp_last_updated: null,
|
33
|
+
prn: null,
|
34
|
+
pulp_labels: null,
|
32
35
|
pulp_created: null,
|
36
|
+
no_content_change_since: null,
|
37
|
+
base_path: null,
|
33
38
|
repository: null,
|
34
|
-
prn: null,
|
35
|
-
content_guard: null,
|
36
|
-
hidden: null,
|
37
39
|
name: null,
|
38
|
-
|
39
|
-
base_path: null,
|
40
|
-
pulp_labels: null,
|
40
|
+
hidden: null,
|
41
41
|
remote: null,
|
42
42
|
distributions: null,
|
43
43
|
namespace: null,
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
7
8
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
8
9
|
| **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
|
9
|
-
| **name** | **String** | A unique name for this repository. | |
|
10
10
|
| **description** | **String** | An optional description. | [optional] |
|
11
|
-
| **
|
11
|
+
| **name** | **String** | A unique name for this repository. | |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
@@ -16,11 +16,11 @@
|
|
16
16
|
require 'pulp_container_client'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::ContainerContainerPushRepository.new(
|
19
|
+
pulp_labels: null,
|
19
20
|
retain_repo_versions: null,
|
20
21
|
manifest_signing_service: null,
|
21
|
-
name: null,
|
22
22
|
description: null,
|
23
|
-
|
23
|
+
name: null
|
24
24
|
)
|
25
25
|
```
|
26
26
|
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **versions_href** | **String** | | [optional][readonly] |
|
8
|
-
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
9
7
|
| **pulp_href** | **String** | | [optional][readonly] |
|
8
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
9
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
10
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
11
|
+
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
10
12
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
11
13
|
| **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
|
12
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
13
|
-
| **name** | **String** | A unique name for this repository. | |
|
14
|
-
| **description** | **String** | An optional description. | [optional] |
|
15
|
-
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
16
14
|
| **latest_version_href** | **String** | | [optional][readonly] |
|
17
|
-
| **
|
15
|
+
| **description** | **String** | An optional description. | [optional] |
|
16
|
+
| **name** | **String** | A unique name for this repository. | |
|
17
|
+
| **versions_href** | **String** | | [optional][readonly] |
|
18
18
|
|
19
19
|
## Example
|
20
20
|
|
@@ -22,17 +22,17 @@
|
|
22
22
|
require 'pulp_container_client'
|
23
23
|
|
24
24
|
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(
|
25
|
-
versions_href: null,
|
26
|
-
retain_repo_versions: null,
|
27
25
|
pulp_href: null,
|
26
|
+
pulp_last_updated: null,
|
27
|
+
prn: null,
|
28
|
+
pulp_labels: null,
|
29
|
+
retain_repo_versions: null,
|
28
30
|
pulp_created: null,
|
29
31
|
manifest_signing_service: null,
|
30
|
-
prn: null,
|
31
|
-
name: null,
|
32
|
-
description: null,
|
33
|
-
pulp_last_updated: null,
|
34
32
|
latest_version_href: null,
|
35
|
-
|
33
|
+
description: null,
|
34
|
+
name: null,
|
35
|
+
versions_href: null
|
36
36
|
)
|
37
37
|
```
|
38
38
|
|
@@ -111,7 +111,7 @@ PulpContainerClient.configure do |config|
|
|
111
111
|
end
|
112
112
|
|
113
113
|
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
114
|
-
container_container_distribution = PulpContainerClient::ContainerContainerDistribution.new({
|
114
|
+
container_container_distribution = PulpContainerClient::ContainerContainerDistribution.new({base_path: 'base_path_example', name: 'name_example'}) # ContainerContainerDistribution |
|
115
115
|
|
116
116
|
begin
|
117
117
|
# Create a container distribution
|
@@ -894,7 +894,7 @@ end
|
|
894
894
|
|
895
895
|
api_instance = PulpContainerClient::DistributionsContainerApi.new
|
896
896
|
container_container_distribution_href = 'container_container_distribution_href_example' # String |
|
897
|
-
container_container_distribution = PulpContainerClient::ContainerContainerDistribution.new({
|
897
|
+
container_container_distribution = PulpContainerClient::ContainerContainerDistribution.new({base_path: 'base_path_example', name: 'name_example'}) # ContainerContainerDistribution |
|
898
898
|
|
899
899
|
begin
|
900
900
|
# Update a container distribution
|
@@ -111,7 +111,7 @@ PulpContainerClient.configure do |config|
|
|
111
111
|
end
|
112
112
|
|
113
113
|
api_instance = PulpContainerClient::DistributionsPullThroughApi.new
|
114
|
-
container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({
|
114
|
+
container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({base_path: 'base_path_example', name: 'name_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
|
115
115
|
|
116
116
|
begin
|
117
117
|
# Create a container pull through distribution
|
@@ -892,7 +892,7 @@ end
|
|
892
892
|
|
893
893
|
api_instance = PulpContainerClient::DistributionsPullThroughApi.new
|
894
894
|
container_container_pull_through_distribution_href = 'container_container_pull_through_distribution_href_example' # String |
|
895
|
-
container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({
|
895
|
+
container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({base_path: 'base_path_example', name: 'name_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
|
896
896
|
|
897
897
|
begin
|
898
898
|
# Update a container pull through distribution
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
8
7
|
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
9
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
10
|
-
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [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
8
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional] |
|
10
|
+
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional] |
|
12
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
13
13
|
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
14
14
|
| **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional] |
|
15
15
|
| **description** | **String** | An optional description. | [optional] |
|
@@ -20,12 +20,12 @@
|
|
20
20
|
require 'pulp_container_client'
|
21
21
|
|
22
22
|
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
23
|
-
repository: null,
|
24
23
|
content_guard: null,
|
25
|
-
hidden: null,
|
26
|
-
name: null,
|
27
|
-
base_path: null,
|
28
24
|
pulp_labels: null,
|
25
|
+
base_path: null,
|
26
|
+
repository: null,
|
27
|
+
name: null,
|
28
|
+
hidden: null,
|
29
29
|
repository_version: null,
|
30
30
|
private: null,
|
31
31
|
description: null
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
8
7
|
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
9
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
10
|
-
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [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
8
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
9
|
+
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional] |
|
10
|
+
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
11
|
+
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional] |
|
12
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
13
13
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
14
14
|
| **distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional] |
|
15
15
|
| **private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional] |
|
@@ -21,12 +21,12 @@
|
|
21
21
|
require 'pulp_container_client'
|
22
22
|
|
23
23
|
instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(
|
24
|
-
repository: null,
|
25
24
|
content_guard: null,
|
26
|
-
hidden: null,
|
27
|
-
name: null,
|
28
|
-
base_path: null,
|
29
25
|
pulp_labels: null,
|
26
|
+
base_path: null,
|
27
|
+
repository: null,
|
28
|
+
name: null,
|
29
|
+
hidden: null,
|
30
30
|
remote: null,
|
31
31
|
distributions: null,
|
32
32
|
private: null,
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
7
8
|
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
8
9
|
| **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
|
9
|
-
| **name** | **String** | A unique name for this repository. | [optional] |
|
10
10
|
| **description** | **String** | An optional description. | [optional] |
|
11
|
-
| **
|
11
|
+
| **name** | **String** | A unique name for this repository. | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
@@ -16,11 +16,11 @@
|
|
16
16
|
require 'pulp_container_client'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
|
19
|
+
pulp_labels: null,
|
19
20
|
retain_repo_versions: null,
|
20
21
|
manifest_signing_service: null,
|
21
|
-
name: null,
|
22
22
|
description: null,
|
23
|
-
|
23
|
+
name: null
|
24
24
|
)
|
25
25
|
```
|
26
26
|
|
@@ -16,22 +16,22 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for ContainerDistribution.
|
18
18
|
class ContainerContainerDistribution
|
19
|
-
# The latest RepositoryVersion for this Repository will be served.
|
20
|
-
attr_accessor :repository
|
21
|
-
|
22
19
|
# An optional content-guard. If none is specified, a default one will be used.
|
23
20
|
attr_accessor :content_guard
|
24
21
|
|
25
|
-
|
26
|
-
attr_accessor :hidden
|
27
|
-
|
28
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
29
|
-
attr_accessor :name
|
22
|
+
attr_accessor :pulp_labels
|
30
23
|
|
31
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
25
|
attr_accessor :base_path
|
33
26
|
|
34
|
-
|
27
|
+
# The latest RepositoryVersion for this Repository will be served.
|
28
|
+
attr_accessor :repository
|
29
|
+
|
30
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
31
|
+
attr_accessor :name
|
32
|
+
|
33
|
+
# Whether this distribution should be shown in the content app.
|
34
|
+
attr_accessor :hidden
|
35
35
|
|
36
36
|
# RepositoryVersion to be served
|
37
37
|
attr_accessor :repository_version
|
@@ -45,12 +45,12 @@ module PulpContainerClient
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
|
-
:'repository' => :'repository',
|
49
48
|
:'content_guard' => :'content_guard',
|
50
|
-
:'hidden' => :'hidden',
|
51
|
-
:'name' => :'name',
|
52
|
-
:'base_path' => :'base_path',
|
53
49
|
:'pulp_labels' => :'pulp_labels',
|
50
|
+
:'base_path' => :'base_path',
|
51
|
+
:'repository' => :'repository',
|
52
|
+
:'name' => :'name',
|
53
|
+
:'hidden' => :'hidden',
|
54
54
|
:'repository_version' => :'repository_version',
|
55
55
|
:'private' => :'private',
|
56
56
|
:'description' => :'description'
|
@@ -65,12 +65,12 @@ module PulpContainerClient
|
|
65
65
|
# Attribute type mapping.
|
66
66
|
def self.openapi_types
|
67
67
|
{
|
68
|
-
:'repository' => :'String',
|
69
68
|
:'content_guard' => :'String',
|
70
|
-
:'hidden' => :'Boolean',
|
71
|
-
:'name' => :'String',
|
72
|
-
:'base_path' => :'String',
|
73
69
|
:'pulp_labels' => :'Hash<String, String>',
|
70
|
+
:'base_path' => :'String',
|
71
|
+
:'repository' => :'String',
|
72
|
+
:'name' => :'String',
|
73
|
+
:'hidden' => :'Boolean',
|
74
74
|
:'repository_version' => :'String',
|
75
75
|
:'private' => :'Boolean',
|
76
76
|
:'description' => :'String'
|
@@ -101,18 +101,24 @@ module PulpContainerClient
|
|
101
101
|
h[k.to_sym] = v
|
102
102
|
}
|
103
103
|
|
104
|
-
if attributes.key?(:'repository')
|
105
|
-
self.repository = attributes[:'repository']
|
106
|
-
end
|
107
|
-
|
108
104
|
if attributes.key?(:'content_guard')
|
109
105
|
self.content_guard = attributes[:'content_guard']
|
110
106
|
end
|
111
107
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
|
108
|
+
if attributes.key?(:'pulp_labels')
|
109
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
110
|
+
self.pulp_labels = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'base_path')
|
115
|
+
self.base_path = attributes[:'base_path']
|
114
116
|
else
|
115
|
-
self.
|
117
|
+
self.base_path = nil
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'repository')
|
121
|
+
self.repository = attributes[:'repository']
|
116
122
|
end
|
117
123
|
|
118
124
|
if attributes.key?(:'name')
|
@@ -121,16 +127,10 @@ module PulpContainerClient
|
|
121
127
|
self.name = nil
|
122
128
|
end
|
123
129
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
130
|
+
if attributes.key?(:'hidden')
|
131
|
+
self.hidden = attributes[:'hidden']
|
126
132
|
else
|
127
|
-
self.
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.key?(:'pulp_labels')
|
131
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
132
|
-
self.pulp_labels = value
|
133
|
-
end
|
133
|
+
self.hidden = false
|
134
134
|
end
|
135
135
|
|
136
136
|
if attributes.key?(:'repository_version')
|
@@ -151,14 +151,6 @@ module PulpContainerClient
|
|
151
151
|
def list_invalid_properties
|
152
152
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
153
153
|
invalid_properties = Array.new
|
154
|
-
if @name.nil?
|
155
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if @name.to_s.length < 1
|
159
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
160
|
-
end
|
161
|
-
|
162
154
|
if @base_path.nil?
|
163
155
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
164
156
|
end
|
@@ -167,6 +159,14 @@ module PulpContainerClient
|
|
167
159
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
168
160
|
end
|
169
161
|
|
162
|
+
if @name.nil?
|
163
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
164
|
+
end
|
165
|
+
|
166
|
+
if @name.to_s.length < 1
|
167
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
168
|
+
end
|
169
|
+
|
170
170
|
if !@description.nil? && @description.to_s.length < 1
|
171
171
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
172
172
|
end
|
@@ -178,28 +178,14 @@ module PulpContainerClient
|
|
178
178
|
# @return true if the model is valid
|
179
179
|
def valid?
|
180
180
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
181
|
-
return false if @name.nil?
|
182
|
-
return false if @name.to_s.length < 1
|
183
181
|
return false if @base_path.nil?
|
184
182
|
return false if @base_path.to_s.length < 1
|
183
|
+
return false if @name.nil?
|
184
|
+
return false if @name.to_s.length < 1
|
185
185
|
return false if !@description.nil? && @description.to_s.length < 1
|
186
186
|
true
|
187
187
|
end
|
188
188
|
|
189
|
-
# Custom attribute writer method with validation
|
190
|
-
# @param [Object] name Value to be assigned
|
191
|
-
def name=(name)
|
192
|
-
if name.nil?
|
193
|
-
fail ArgumentError, 'name cannot be nil'
|
194
|
-
end
|
195
|
-
|
196
|
-
if name.to_s.length < 1
|
197
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
198
|
-
end
|
199
|
-
|
200
|
-
@name = name
|
201
|
-
end
|
202
|
-
|
203
189
|
# Custom attribute writer method with validation
|
204
190
|
# @param [Object] base_path Value to be assigned
|
205
191
|
def base_path=(base_path)
|
@@ -214,6 +200,20 @@ module PulpContainerClient
|
|
214
200
|
@base_path = base_path
|
215
201
|
end
|
216
202
|
|
203
|
+
# Custom attribute writer method with validation
|
204
|
+
# @param [Object] name Value to be assigned
|
205
|
+
def name=(name)
|
206
|
+
if name.nil?
|
207
|
+
fail ArgumentError, 'name cannot be nil'
|
208
|
+
end
|
209
|
+
|
210
|
+
if name.to_s.length < 1
|
211
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
212
|
+
end
|
213
|
+
|
214
|
+
@name = name
|
215
|
+
end
|
216
|
+
|
217
217
|
# Custom attribute writer method with validation
|
218
218
|
# @param [Object] description Value to be assigned
|
219
219
|
def description=(description)
|
@@ -229,12 +229,12 @@ module PulpContainerClient
|
|
229
229
|
def ==(o)
|
230
230
|
return true if self.equal?(o)
|
231
231
|
self.class == o.class &&
|
232
|
-
repository == o.repository &&
|
233
232
|
content_guard == o.content_guard &&
|
234
|
-
hidden == o.hidden &&
|
235
|
-
name == o.name &&
|
236
|
-
base_path == o.base_path &&
|
237
233
|
pulp_labels == o.pulp_labels &&
|
234
|
+
base_path == o.base_path &&
|
235
|
+
repository == o.repository &&
|
236
|
+
name == o.name &&
|
237
|
+
hidden == o.hidden &&
|
238
238
|
repository_version == o.repository_version &&
|
239
239
|
private == o.private &&
|
240
240
|
description == o.description
|
@@ -249,7 +249,7 @@ module PulpContainerClient
|
|
249
249
|
# Calculates hash code according to all attributes.
|
250
250
|
# @return [Integer] Hash code
|
251
251
|
def hash
|
252
|
-
[
|
252
|
+
[content_guard, pulp_labels, base_path, repository, name, hidden, repository_version, private, description].hash
|
253
253
|
end
|
254
254
|
|
255
255
|
# Builds the object from hash
|