pulp_container_client 2.16.0 → 2.16.2
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 +36 -25
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContentBlobsApi.md +3 -1
- data/docs/ContentManifestsApi.md +3 -1
- data/docs/ContentSignaturesApi.md +7 -1
- data/docs/ContentTagsApi.md +3 -1
- data/docs/DistributionsContainerApi.md +132 -10
- data/docs/IndexDynamicApi.md +1 -1
- data/docs/IndexStaticApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +19 -9
- data/docs/RemotesContainerApi.md +131 -9
- data/docs/RepositoriesContainerApi.md +132 -10
- data/docs/RepositoriesContainerPushApi.md +20 -10
- data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
- data/docs/RepositoriesContainerVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TokenApi.md +1 -1
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +9 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +157 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +17 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +157 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +157 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +17 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
- data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +33 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/models/set_label.rb +252 -0
- data/lib/pulp_container_client/models/set_label_response.rb +243 -0
- data/lib/pulp_container_client/models/unset_label.rb +242 -0
- data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +4 -0
- data/spec/api/content_blobs_api_spec.rb +1 -0
- data/spec/api/content_manifests_api_spec.rb +1 -0
- data/spec/api/content_signatures_api_spec.rb +3 -0
- data/spec/api/content_tags_api_spec.rb +1 -0
- data/spec/api/distributions_container_api_spec.rb +33 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -0
- data/spec/api/remotes_container_api_spec.rb +33 -0
- data/spec/api/repositories_container_api_spec.rb +33 -0
- data/spec/api/repositories_container_push_api_spec.rb +7 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
- data/spec/api/repositories_container_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +60 -44
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
+
attr_accessor :retain_repo_versions
|
20
20
|
|
21
21
|
# A reference to an associated signing service.
|
22
22
|
attr_accessor :manifest_signing_service
|
23
23
|
|
24
24
|
attr_accessor :pulp_labels
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
-
attr_accessor :retain_repo_versions
|
28
|
-
|
29
|
-
# An optional description.
|
30
|
-
attr_accessor :description
|
31
|
-
|
32
26
|
attr_accessor :latest_version_href
|
33
27
|
|
34
|
-
|
35
|
-
|
36
|
-
attr_accessor :pulp_href
|
28
|
+
# Timestamp of creation.
|
29
|
+
attr_accessor :pulp_created
|
37
30
|
|
38
31
|
# A unique name for this repository.
|
39
32
|
attr_accessor :name
|
40
33
|
|
34
|
+
attr_accessor :pulp_href
|
35
|
+
|
36
|
+
# An optional description.
|
37
|
+
attr_accessor :description
|
38
|
+
|
39
|
+
attr_accessor :versions_href
|
40
|
+
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
45
45
|
:'manifest_signing_service' => :'manifest_signing_service',
|
46
46
|
:'pulp_labels' => :'pulp_labels',
|
47
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
-
:'description' => :'description',
|
49
47
|
:'latest_version_href' => :'latest_version_href',
|
50
|
-
:'
|
48
|
+
:'pulp_created' => :'pulp_created',
|
49
|
+
:'name' => :'name',
|
51
50
|
:'pulp_href' => :'pulp_href',
|
52
|
-
:'
|
51
|
+
:'description' => :'description',
|
52
|
+
:'versions_href' => :'versions_href'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'retain_repo_versions' => :'Integer',
|
60
60
|
:'manifest_signing_service' => :'String',
|
61
61
|
:'pulp_labels' => :'Hash<String, String>',
|
62
|
-
:'retain_repo_versions' => :'Integer',
|
63
|
-
:'description' => :'String',
|
64
62
|
:'latest_version_href' => :'String',
|
65
|
-
:'
|
63
|
+
:'pulp_created' => :'DateTime',
|
64
|
+
:'name' => :'String',
|
66
65
|
:'pulp_href' => :'String',
|
67
|
-
:'
|
66
|
+
:'description' => :'String',
|
67
|
+
:'versions_href' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'manifest_signing_service',
|
75
74
|
:'retain_repo_versions',
|
75
|
+
:'manifest_signing_service',
|
76
76
|
:'description',
|
77
77
|
])
|
78
78
|
end
|
@@ -92,8 +92,8 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
97
97
|
end
|
98
98
|
|
99
99
|
if attributes.key?(:'manifest_signing_service')
|
@@ -106,28 +106,28 @@ module PulpContainerClient
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'retain_repo_versions')
|
110
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'description')
|
114
|
-
self.description = attributes[:'description']
|
115
|
-
end
|
116
|
-
|
117
109
|
if attributes.key?(:'latest_version_href')
|
118
110
|
self.latest_version_href = attributes[:'latest_version_href']
|
119
111
|
end
|
120
112
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
113
|
+
if attributes.key?(:'pulp_created')
|
114
|
+
self.pulp_created = attributes[:'pulp_created']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'name')
|
118
|
+
self.name = attributes[:'name']
|
123
119
|
end
|
124
120
|
|
125
121
|
if attributes.key?(:'pulp_href')
|
126
122
|
self.pulp_href = attributes[:'pulp_href']
|
127
123
|
end
|
128
124
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
125
|
+
if attributes.key?(:'description')
|
126
|
+
self.description = attributes[:'description']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'versions_href')
|
130
|
+
self.versions_href = attributes[:'versions_href']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
|
172
|
+
retain_repo_versions == o.retain_repo_versions &&
|
173
173
|
manifest_signing_service == o.manifest_signing_service &&
|
174
174
|
pulp_labels == o.pulp_labels &&
|
175
|
-
retain_repo_versions == o.retain_repo_versions &&
|
176
|
-
description == o.description &&
|
177
175
|
latest_version_href == o.latest_version_href &&
|
178
|
-
|
176
|
+
pulp_created == o.pulp_created &&
|
177
|
+
name == o.name &&
|
179
178
|
pulp_href == o.pulp_href &&
|
180
|
-
|
179
|
+
description == o.description &&
|
180
|
+
versions_href == o.versions_href
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[retain_repo_versions, manifest_signing_service, pulp_labels, latest_version_href, pulp_created, name, pulp_href, description, versions_href].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -20,17 +20,17 @@ module PulpContainerClient
|
|
20
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
|
-
# The latest RepositoryVersion for this Repository will be served.
|
24
|
-
attr_accessor :repository
|
25
|
-
|
26
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
24
|
attr_accessor :content_guard
|
28
25
|
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
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
30
|
attr_accessor :base_path
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -46,10 +46,10 @@ module PulpContainerClient
|
|
46
46
|
{
|
47
47
|
:'hidden' => :'hidden',
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
-
:'repository' => :'repository',
|
50
49
|
:'content_guard' => :'content_guard',
|
51
|
-
:'base_path' => :'base_path',
|
52
50
|
:'name' => :'name',
|
51
|
+
:'base_path' => :'base_path',
|
52
|
+
:'repository' => :'repository',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -61,10 +61,10 @@ module PulpContainerClient
|
|
61
61
|
{
|
62
62
|
:'hidden' => :'Boolean',
|
63
63
|
:'pulp_labels' => :'Hash<String, String>',
|
64
|
-
:'repository' => :'String',
|
65
64
|
:'content_guard' => :'String',
|
66
|
-
:'base_path' => :'String',
|
67
65
|
:'name' => :'String',
|
66
|
+
:'base_path' => :'String',
|
67
|
+
:'repository' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -107,20 +107,20 @@ module PulpContainerClient
|
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'repository')
|
111
|
-
self.repository = attributes[:'repository']
|
112
|
-
end
|
113
|
-
|
114
110
|
if attributes.key?(:'content_guard')
|
115
111
|
self.content_guard = attributes[:'content_guard']
|
116
112
|
end
|
117
113
|
|
114
|
+
if attributes.key?(:'name')
|
115
|
+
self.name = attributes[:'name']
|
116
|
+
end
|
117
|
+
|
118
118
|
if attributes.key?(:'base_path')
|
119
119
|
self.base_path = attributes[:'base_path']
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'repository')
|
123
|
+
self.repository = attributes[:'repository']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if !@base_path.nil? && @base_path.to_s.length < 1
|
144
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
145
|
-
end
|
146
|
-
|
147
143
|
if !@name.nil? && @name.to_s.length < 1
|
148
144
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
149
145
|
end
|
150
146
|
|
147
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
153
153
|
end
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
159
159
|
# @return true if the model is valid
|
160
160
|
def valid?
|
161
|
-
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
162
161
|
return false if !@name.nil? && @name.to_s.length < 1
|
162
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
164
164
|
true
|
165
165
|
end
|
166
166
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] base_path Value to be assigned
|
169
|
-
def base_path=(base_path)
|
170
|
-
if !base_path.nil? && base_path.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@base_path = base_path
|
175
|
-
end
|
176
|
-
|
177
167
|
# Custom attribute writer method with validation
|
178
168
|
# @param [Object] name Value to be assigned
|
179
169
|
def name=(name)
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
184
174
|
@name = name
|
185
175
|
end
|
186
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] base_path Value to be assigned
|
179
|
+
def base_path=(base_path)
|
180
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
181
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
182
|
+
end
|
183
|
+
|
184
|
+
@base_path = base_path
|
185
|
+
end
|
186
|
+
|
187
187
|
# Custom attribute writer method with validation
|
188
188
|
# @param [Object] description Value to be assigned
|
189
189
|
def description=(description)
|
@@ -201,10 +201,10 @@ module PulpContainerClient
|
|
201
201
|
self.class == o.class &&
|
202
202
|
hidden == o.hidden &&
|
203
203
|
pulp_labels == o.pulp_labels &&
|
204
|
-
repository == o.repository &&
|
205
204
|
content_guard == o.content_guard &&
|
206
|
-
base_path == o.base_path &&
|
207
205
|
name == o.name &&
|
206
|
+
base_path == o.base_path &&
|
207
|
+
repository == o.repository &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[hidden, pulp_labels,
|
222
|
+
[hidden, pulp_labels, content_guard, name, base_path, repository, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
+
attr_accessor :retain_repo_versions
|
20
|
+
|
18
21
|
# A reference to an associated signing service.
|
19
22
|
attr_accessor :manifest_signing_service
|
20
23
|
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
25
28
|
|
26
29
|
# An optional description.
|
27
30
|
attr_accessor :description
|
28
31
|
|
29
|
-
# A unique name for this repository.
|
30
|
-
attr_accessor :name
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
35
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
36
37
|
:'pulp_labels' => :'pulp_labels',
|
37
|
-
:'
|
38
|
-
:'description' => :'description'
|
39
|
-
:'name' => :'name'
|
38
|
+
:'name' => :'name',
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
+
:'retain_repo_versions' => :'Integer',
|
46
47
|
:'manifest_signing_service' => :'String',
|
47
48
|
:'pulp_labels' => :'Hash<String, String>',
|
48
|
-
:'
|
49
|
-
:'description' => :'String'
|
50
|
-
:'name' => :'String'
|
49
|
+
:'name' => :'String',
|
50
|
+
:'description' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'manifest_signing_service',
|
58
57
|
:'retain_repo_versions',
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,6 +75,10 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'manifest_signing_service')
|
79
83
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
84
|
end
|
@@ -85,17 +89,13 @@ module PulpContainerClient
|
|
85
89
|
end
|
86
90
|
end
|
87
91
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
90
94
|
end
|
91
95
|
|
92
96
|
if attributes.key?(:'description')
|
93
97
|
self.description = attributes[:'description']
|
94
98
|
end
|
95
|
-
|
96
|
-
if attributes.key?(:'name')
|
97
|
-
self.name = attributes[:'name']
|
98
|
-
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -106,14 +106,14 @@ module PulpContainerClient
|
|
106
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
107
|
end
|
108
108
|
|
109
|
-
if !@description.nil? && @description.to_s.length < 1
|
110
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
109
|
if !@name.nil? && @name.to_s.length < 1
|
114
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
@@ -121,8 +121,8 @@ module PulpContainerClient
|
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
124
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
125
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
136
136
|
@retain_repo_versions = retain_repo_versions
|
137
137
|
end
|
138
138
|
|
139
|
-
# Custom attribute writer method with validation
|
140
|
-
# @param [Object] description Value to be assigned
|
141
|
-
def description=(description)
|
142
|
-
if !description.nil? && description.to_s.length < 1
|
143
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
144
|
-
end
|
145
|
-
|
146
|
-
@description = description
|
147
|
-
end
|
148
|
-
|
149
139
|
# Custom attribute writer method with validation
|
150
140
|
# @param [Object] name Value to be assigned
|
151
141
|
def name=(name)
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
156
146
|
@name = name
|
157
147
|
end
|
158
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] description Value to be assigned
|
151
|
+
def description=(description)
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@description = description
|
157
|
+
end
|
158
|
+
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
retain_repo_versions == o.retain_repo_versions &&
|
164
165
|
manifest_signing_service == o.manifest_signing_service &&
|
165
166
|
pulp_labels == o.pulp_labels &&
|
166
|
-
|
167
|
-
description == o.description
|
168
|
-
name == o.name
|
167
|
+
name == o.name &&
|
168
|
+
description == o.description
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[manifest_signing_service, pulp_labels,
|
180
|
+
[retain_repo_versions, manifest_signing_service, pulp_labels, name, description].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|