pulp_container_client 2.14.15 → 2.14.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +15 -15
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +37 -37
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +15 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +66 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60ee1d6232b407410a9c89af51080c56a05412eda78cf4c9334e7a0cbb6d7cec
|
4
|
+
data.tar.gz: 1724d927b9f14ce3dae62c87d26632b0b95a1e246ba05b6aa6799ebac21061c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b64e1013dfa549e00b28506834b9a2b0d3d254c835a01623c6fedcfc01acb594f008a0e9798bffb4a65bb8169a5895aa86273a3b3226c6f84babe81c310cae4
|
7
|
+
data.tar.gz: bb0f57ce55e82cf23df362917d5b3d8b18614d6d2dc0c03b6626254bc71b75ce4a0c80ac8a692cacd10b6affd99459ec0a5414cc8f5c248ae208a1a9e6eadba2
|
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.14.
|
10
|
+
- Package version: 2.14.17
|
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.14.
|
27
|
+
gem install ./pulp_container_client-2.14.17.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.14.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.14.17.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.14.
|
36
|
+
gem 'pulp_container_client', '~> 2.14.17'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -90,7 +90,7 @@ end
|
|
90
90
|
|
91
91
|
## Documentation for API Endpoints
|
92
92
|
|
93
|
-
All URIs are relative to *
|
93
|
+
All URIs are relative to *http://localhost:24817*
|
94
94
|
|
95
95
|
Class | Method | HTTP request | Description
|
96
96
|
------------ | ------------- | ------------- | -------------
|
@@ -5,10 +5,10 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [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\") |
|
8
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
9
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
|
-
**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\") |
|
11
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
@@ -19,10 +19,10 @@ Name | Type | Description | Notes
|
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
21
|
instance = PulpContainerClient::ContainerContainerDistribution.new(repository: null,
|
22
|
+
content_guard: null,
|
23
|
+
base_path: null,
|
22
24
|
name: null,
|
23
25
|
pulp_labels: null,
|
24
|
-
base_path: null,
|
25
|
-
content_guard: null,
|
26
26
|
repository_version: null,
|
27
27
|
private: null,
|
28
28
|
description: null)
|
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
8
8
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
9
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
10
|
+
**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
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
10
12
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
-
**
|
12
|
-
**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\") |
|
13
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
13
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
14
14
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
15
15
|
**registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
16
16
|
**namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
|
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
|
|
22
22
|
```ruby
|
23
23
|
require 'PulpContainerClient'
|
24
24
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_created: null,
|
26
26
|
repository: null,
|
27
|
+
content_guard: null,
|
28
|
+
base_path: null,
|
27
29
|
name: null,
|
28
30
|
pulp_labels: null,
|
29
|
-
|
30
|
-
base_path: null,
|
31
|
-
content_guard: null,
|
31
|
+
pulp_href: null,
|
32
32
|
repository_version: null,
|
33
33
|
registry_path: null,
|
34
34
|
namespace: null,
|
@@ -5,10 +5,10 @@
|
|
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. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
8
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
8
9
|
**description** | **String** | An optional description. | [optional]
|
9
10
|
**name** | **String** | A unique name for this repository. |
|
10
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
-
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
@@ -16,10 +16,10 @@ Name | Type | Description | Notes
|
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::ContainerContainerPushRepository.new(retain_repo_versions: null,
|
19
|
+
manifest_signing_service: null,
|
19
20
|
description: null,
|
20
21
|
name: null,
|
21
|
-
pulp_labels: null
|
22
|
-
manifest_signing_service: null)
|
22
|
+
pulp_labels: null)
|
23
23
|
```
|
24
24
|
|
25
25
|
|
@@ -4,30 +4,30 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
8
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
9
10
|
**latest_version_href** | **String** | | [optional] [readonly]
|
10
11
|
**description** | **String** | An optional description. | [optional]
|
12
|
+
**versions_href** | **String** | | [optional] [readonly]
|
11
13
|
**name** | **String** | A unique name for this repository. |
|
12
14
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
13
|
-
**
|
14
|
-
**versions_href** | **String** | | [optional] [readonly]
|
15
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
15
|
+
**pulp_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(
|
23
|
-
|
22
|
+
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(retain_repo_versions: null,
|
23
|
+
pulp_created: null,
|
24
|
+
manifest_signing_service: null,
|
24
25
|
latest_version_href: null,
|
25
26
|
description: null,
|
27
|
+
versions_href: null,
|
26
28
|
name: null,
|
27
29
|
pulp_labels: null,
|
28
|
-
|
29
|
-
versions_href: null,
|
30
|
-
pulp_created: null)
|
30
|
+
pulp_href: null)
|
31
31
|
```
|
32
32
|
|
33
33
|
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | |
|
8
|
-
**is_set** | **Boolean** | |
|
7
|
+
**name** | **String** | |
|
8
|
+
**is_set** | **Boolean** | |
|
9
9
|
|
10
10
|
## Code Sample
|
11
11
|
|
data/docs/ContentBlobsApi.md
CHANGED
data/docs/ContentManifestsApi.md
CHANGED
data/docs/ContentTagsApi.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [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]
|
8
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
9
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
|
-
**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]
|
11
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
@@ -19,10 +19,10 @@ Name | Type | Description | Notes
|
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
21
|
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository: null,
|
22
|
+
content_guard: null,
|
23
|
+
base_path: null,
|
22
24
|
name: null,
|
23
25
|
pulp_labels: null,
|
24
|
-
base_path: null,
|
25
|
-
content_guard: null,
|
26
26
|
repository_version: null,
|
27
27
|
private: null,
|
28
28
|
description: null)
|
@@ -5,10 +5,10 @@
|
|
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. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
8
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
8
9
|
**description** | **String** | An optional description. | [optional]
|
9
10
|
**name** | **String** | A unique name for this repository. | [optional]
|
10
11
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
-
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
@@ -16,10 +16,10 @@ Name | Type | Description | Notes
|
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
18
|
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
|
19
|
+
manifest_signing_service: null,
|
19
20
|
description: null,
|
20
21
|
name: null,
|
21
|
-
pulp_labels: null
|
22
|
-
manifest_signing_service: null)
|
22
|
+
pulp_labels: null)
|
23
23
|
```
|
24
24
|
|
25
25
|
|
data/docs/RemotesContainerApi.md
CHANGED
data/docs/TokenApi.md
CHANGED
@@ -127,8 +127,8 @@ module PulpContainerClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
131
|
-
@host = '
|
130
|
+
@scheme = 'http'
|
131
|
+
@host = 'localhost'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpContainerClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "http://localhost:24817/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -18,16 +18,16 @@ module PulpContainerClient
|
|
18
18
|
# The latest RepositoryVersion for this Repository will be served.
|
19
19
|
attr_accessor :repository
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
attr_accessor :pulp_labels
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
+
attr_accessor :content_guard
|
25
23
|
|
26
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\")
|
27
25
|
attr_accessor :base_path
|
28
26
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -42,10 +42,10 @@ module PulpContainerClient
|
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'repository' => :'repository',
|
45
|
+
:'content_guard' => :'content_guard',
|
46
|
+
:'base_path' => :'base_path',
|
45
47
|
:'name' => :'name',
|
46
48
|
:'pulp_labels' => :'pulp_labels',
|
47
|
-
:'base_path' => :'base_path',
|
48
|
-
:'content_guard' => :'content_guard',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -56,10 +56,10 @@ module PulpContainerClient
|
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
58
|
:'repository' => :'String',
|
59
|
+
:'content_guard' => :'String',
|
60
|
+
:'base_path' => :'String',
|
59
61
|
:'name' => :'String',
|
60
62
|
:'pulp_labels' => :'Hash<String, String>',
|
61
|
-
:'base_path' => :'String',
|
62
|
-
:'content_guard' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -94,6 +94,14 @@ module PulpContainerClient
|
|
94
94
|
self.repository = attributes[:'repository']
|
95
95
|
end
|
96
96
|
|
97
|
+
if attributes.key?(:'content_guard')
|
98
|
+
self.content_guard = attributes[:'content_guard']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'base_path')
|
102
|
+
self.base_path = attributes[:'base_path']
|
103
|
+
end
|
104
|
+
|
97
105
|
if attributes.key?(:'name')
|
98
106
|
self.name = attributes[:'name']
|
99
107
|
end
|
@@ -104,14 +112,6 @@ module PulpContainerClient
|
|
104
112
|
end
|
105
113
|
end
|
106
114
|
|
107
|
-
if attributes.key?(:'base_path')
|
108
|
-
self.base_path = attributes[:'base_path']
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'content_guard')
|
112
|
-
self.content_guard = attributes[:'content_guard']
|
113
|
-
end
|
114
|
-
|
115
115
|
if attributes.key?(:'repository_version')
|
116
116
|
self.repository_version = attributes[:'repository_version']
|
117
117
|
end
|
@@ -129,14 +129,6 @@ module PulpContainerClient
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
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
132
|
if @base_path.nil?
|
141
133
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
142
134
|
end
|
@@ -145,6 +137,14 @@ module PulpContainerClient
|
|
145
137
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
146
138
|
end
|
147
139
|
|
140
|
+
if @name.nil?
|
141
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @name.to_s.length < 1
|
145
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
146
|
+
end
|
147
|
+
|
148
148
|
if !@description.nil? && @description.to_s.length < 1
|
149
149
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
150
150
|
end
|
@@ -155,28 +155,14 @@ module PulpContainerClient
|
|
155
155
|
# Check to see if the all the properties in the model are valid
|
156
156
|
# @return true if the model is valid
|
157
157
|
def valid?
|
158
|
-
return false if @name.nil?
|
159
|
-
return false if @name.to_s.length < 1
|
160
158
|
return false if @base_path.nil?
|
161
159
|
return false if @base_path.to_s.length < 1
|
160
|
+
return false if @name.nil?
|
161
|
+
return false if @name.to_s.length < 1
|
162
162
|
return false if !@description.nil? && @description.to_s.length < 1
|
163
163
|
true
|
164
164
|
end
|
165
165
|
|
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
166
|
# Custom attribute writer method with validation
|
181
167
|
# @param [Object] base_path Value to be assigned
|
182
168
|
def base_path=(base_path)
|
@@ -191,6 +177,20 @@ module PulpContainerClient
|
|
191
177
|
@base_path = base_path
|
192
178
|
end
|
193
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] name Value to be assigned
|
182
|
+
def name=(name)
|
183
|
+
if name.nil?
|
184
|
+
fail ArgumentError, 'name cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
if name.to_s.length < 1
|
188
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
191
|
+
@name = name
|
192
|
+
end
|
193
|
+
|
194
194
|
# Custom attribute writer method with validation
|
195
195
|
# @param [Object] description Value to be assigned
|
196
196
|
def description=(description)
|
@@ -207,10 +207,10 @@ module PulpContainerClient
|
|
207
207
|
return true if self.equal?(o)
|
208
208
|
self.class == o.class &&
|
209
209
|
repository == o.repository &&
|
210
|
+
content_guard == o.content_guard &&
|
211
|
+
base_path == o.base_path &&
|
210
212
|
name == o.name &&
|
211
213
|
pulp_labels == o.pulp_labels &&
|
212
|
-
base_path == o.base_path &&
|
213
|
-
content_guard == o.content_guard &&
|
214
214
|
repository_version == o.repository_version &&
|
215
215
|
private == o.private &&
|
216
216
|
description == o.description
|
@@ -225,7 +225,7 @@ module PulpContainerClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[repository,
|
228
|
+
[repository, content_guard, base_path, name, pulp_labels, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|