pulp_container_client 2.14.18 → 2.15.0.dev1676344221
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +5 -5
- data/docs/ContainerContainerPushRepository.md +6 -6
- 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 +5 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +17 -1
- data/docs/RepositoriesContainerPushApi.md +17 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +24 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +24 -0
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +26 -26
- data/lib/pulp_container_client/models/container_container_push_repository.rb +50 -50
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +41 -41
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_container_client/models/nested_role.rb +19 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +33 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +2 -0
- data/spec/api/repositories_container_api_spec.rb +8 -0
- data/spec/api/repositories_container_push_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +4 -4
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- 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
- metadata +63 -63
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
18
|
attr_accessor :pulp_labels
|
22
19
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
22
|
+
|
23
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
26
|
+
# 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
|
+
attr_accessor :base_path
|
28
28
|
|
29
29
|
# The latest RepositoryVersion for this Repository will be served.
|
30
30
|
attr_accessor :repository
|
@@ -41,10 +41,10 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'base_path' => :'base_path',
|
45
44
|
:'pulp_labels' => :'pulp_labels',
|
46
|
-
:'name' => :'name',
|
47
45
|
:'content_guard' => :'content_guard',
|
46
|
+
:'name' => :'name',
|
47
|
+
:'base_path' => :'base_path',
|
48
48
|
:'repository' => :'repository',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
@@ -55,10 +55,10 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
58
|
:'pulp_labels' => :'Hash<String, String>',
|
60
|
-
:'name' => :'String',
|
61
59
|
:'content_guard' => :'String',
|
60
|
+
:'name' => :'String',
|
61
|
+
:'base_path' => :'String',
|
62
62
|
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
@@ -90,22 +90,22 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'base_path')
|
94
|
-
self.base_path = attributes[:'base_path']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'pulp_labels')
|
98
94
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
99
95
|
self.pulp_labels = value
|
100
96
|
end
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'content_guard')
|
100
|
+
self.content_guard = attributes[:'content_guard']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'name')
|
104
104
|
self.name = attributes[:'name']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
107
|
+
if attributes.key?(:'base_path')
|
108
|
+
self.base_path = attributes[:'base_path']
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'repository')
|
@@ -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 @base_path.nil?
|
133
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @base_path.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
132
|
if @name.nil?
|
141
133
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
142
134
|
end
|
@@ -145,6 +137,14 @@ module PulpContainerClient
|
|
145
137
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
146
138
|
end
|
147
139
|
|
140
|
+
if @base_path.nil?
|
141
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @base_path.to_s.length < 1
|
145
|
+
invalid_properties.push('invalid value for "base_path", 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 @base_path.nil?
|
159
|
-
return false if @base_path.to_s.length < 1
|
160
158
|
return false if @name.nil?
|
161
159
|
return false if @name.to_s.length < 1
|
160
|
+
return false if @base_path.nil?
|
161
|
+
return false if @base_path.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] base_path Value to be assigned
|
168
|
-
def base_path=(base_path)
|
169
|
-
if base_path.nil?
|
170
|
-
fail ArgumentError, 'base_path cannot be nil'
|
171
|
-
end
|
172
|
-
|
173
|
-
if base_path.to_s.length < 1
|
174
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
175
|
-
end
|
176
|
-
|
177
|
-
@base_path = base_path
|
178
|
-
end
|
179
|
-
|
180
166
|
# Custom attribute writer method with validation
|
181
167
|
# @param [Object] name Value to be assigned
|
182
168
|
def name=(name)
|
@@ -191,6 +177,20 @@ module PulpContainerClient
|
|
191
177
|
@name = name
|
192
178
|
end
|
193
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] base_path Value to be assigned
|
182
|
+
def base_path=(base_path)
|
183
|
+
if base_path.nil?
|
184
|
+
fail ArgumentError, 'base_path cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
if base_path.to_s.length < 1
|
188
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
191
|
+
@base_path = base_path
|
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)
|
@@ -206,10 +206,10 @@ module PulpContainerClient
|
|
206
206
|
def ==(o)
|
207
207
|
return true if self.equal?(o)
|
208
208
|
self.class == o.class &&
|
209
|
-
base_path == o.base_path &&
|
210
209
|
pulp_labels == o.pulp_labels &&
|
211
|
-
name == o.name &&
|
212
210
|
content_guard == o.content_guard &&
|
211
|
+
name == o.name &&
|
212
|
+
base_path == o.base_path &&
|
213
213
|
repository == o.repository &&
|
214
214
|
repository_version == o.repository_version &&
|
215
215
|
private == o.private &&
|
@@ -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
|
-
[
|
228
|
+
[pulp_labels, content_guard, name, base_path, repository, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
18
|
attr_accessor :pulp_labels
|
22
19
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
22
|
+
|
23
23
|
attr_accessor :pulp_href
|
24
24
|
|
25
25
|
# A unique name. Ex, `rawhide` and `stable`.
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
29
|
+
attr_accessor :base_path
|
30
|
+
|
28
31
|
# Timestamp of creation.
|
29
32
|
attr_accessor :pulp_created
|
30
33
|
|
31
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
32
|
-
attr_accessor :content_guard
|
33
|
-
|
34
34
|
# The latest RepositoryVersion for this Repository will be served.
|
35
35
|
attr_accessor :repository
|
36
36
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'base_path' => :'base_path',
|
56
55
|
:'pulp_labels' => :'pulp_labels',
|
56
|
+
:'content_guard' => :'content_guard',
|
57
57
|
:'pulp_href' => :'pulp_href',
|
58
58
|
:'name' => :'name',
|
59
|
+
:'base_path' => :'base_path',
|
59
60
|
:'pulp_created' => :'pulp_created',
|
60
|
-
:'content_guard' => :'content_guard',
|
61
61
|
:'repository' => :'repository',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
@@ -70,12 +70,12 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'base_path' => :'String',
|
74
73
|
:'pulp_labels' => :'Hash<String, String>',
|
74
|
+
:'content_guard' => :'String',
|
75
75
|
:'pulp_href' => :'String',
|
76
76
|
:'name' => :'String',
|
77
|
+
:'base_path' => :'String',
|
77
78
|
:'pulp_created' => :'DateTime',
|
78
|
-
:'content_guard' => :'String',
|
79
79
|
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
@@ -109,16 +109,16 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'base_path')
|
113
|
-
self.base_path = attributes[:'base_path']
|
114
|
-
end
|
115
|
-
|
116
112
|
if attributes.key?(:'pulp_labels')
|
117
113
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
114
|
self.pulp_labels = value
|
119
115
|
end
|
120
116
|
end
|
121
117
|
|
118
|
+
if attributes.key?(:'content_guard')
|
119
|
+
self.content_guard = attributes[:'content_guard']
|
120
|
+
end
|
121
|
+
|
122
122
|
if attributes.key?(:'pulp_href')
|
123
123
|
self.pulp_href = attributes[:'pulp_href']
|
124
124
|
end
|
@@ -127,12 +127,12 @@ module PulpContainerClient
|
|
127
127
|
self.name = attributes[:'name']
|
128
128
|
end
|
129
129
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
130
|
+
if attributes.key?(:'base_path')
|
131
|
+
self.base_path = attributes[:'base_path']
|
132
132
|
end
|
133
133
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
134
|
+
if attributes.key?(:'pulp_created')
|
135
|
+
self.pulp_created = attributes[:'pulp_created']
|
136
136
|
end
|
137
137
|
|
138
138
|
if attributes.key?(:'repository')
|
@@ -164,22 +164,22 @@ module PulpContainerClient
|
|
164
164
|
# @return Array for valid properties with the reasons
|
165
165
|
def list_invalid_properties
|
166
166
|
invalid_properties = Array.new
|
167
|
-
if @base_path.nil?
|
168
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
167
|
if @name.nil?
|
172
168
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
173
169
|
end
|
174
170
|
|
171
|
+
if @base_path.nil?
|
172
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
175
|
invalid_properties
|
176
176
|
end
|
177
177
|
|
178
178
|
# Check to see if the all the properties in the model are valid
|
179
179
|
# @return true if the model is valid
|
180
180
|
def valid?
|
181
|
-
return false if @base_path.nil?
|
182
181
|
return false if @name.nil?
|
182
|
+
return false if @base_path.nil?
|
183
183
|
true
|
184
184
|
end
|
185
185
|
|
@@ -188,12 +188,12 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
base_path == o.base_path &&
|
192
191
|
pulp_labels == o.pulp_labels &&
|
192
|
+
content_guard == o.content_guard &&
|
193
193
|
pulp_href == o.pulp_href &&
|
194
194
|
name == o.name &&
|
195
|
+
base_path == o.base_path &&
|
195
196
|
pulp_created == o.pulp_created &&
|
196
|
-
content_guard == o.content_guard &&
|
197
197
|
repository == o.repository &&
|
198
198
|
repository_version == o.repository_version &&
|
199
199
|
registry_path == o.registry_path &&
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
211
211
|
# Calculates hash code according to all attributes.
|
212
212
|
# @return [Integer] Hash code
|
213
213
|
def hash
|
214
|
-
[
|
214
|
+
[pulp_labels, content_guard, pulp_href, name, base_path, pulp_created, repository, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# Builds the object from hash
|
@@ -15,12 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
# 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.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
|
-
# An optional description.
|
22
|
-
attr_accessor :description
|
23
|
-
|
24
18
|
attr_accessor :pulp_labels
|
25
19
|
|
26
20
|
# A unique name for this repository.
|
@@ -29,34 +23,40 @@ module PulpContainerClient
|
|
29
23
|
# A reference to an associated signing service.
|
30
24
|
attr_accessor :manifest_signing_service
|
31
25
|
|
26
|
+
# 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.
|
27
|
+
attr_accessor :retain_repo_versions
|
28
|
+
|
29
|
+
# An optional description.
|
30
|
+
attr_accessor :description
|
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',
|
36
|
-
:'description' => :'description',
|
37
35
|
:'pulp_labels' => :'pulp_labels',
|
38
36
|
:'name' => :'name',
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
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',
|
47
|
-
:'description' => :'String',
|
48
46
|
:'pulp_labels' => :'Hash<String, String>',
|
49
47
|
:'name' => :'String',
|
50
|
-
:'manifest_signing_service' => :'String'
|
48
|
+
:'manifest_signing_service' => :'String',
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
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',
|
57
58
|
:'retain_repo_versions',
|
58
|
-
:'description'
|
59
|
-
:'manifest_signing_service'
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,14 +75,6 @@ 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
|
-
|
82
|
-
if attributes.key?(:'description')
|
83
|
-
self.description = attributes[:'description']
|
84
|
-
end
|
85
|
-
|
86
78
|
if attributes.key?(:'pulp_labels')
|
87
79
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
88
80
|
self.pulp_labels = value
|
@@ -96,20 +88,20 @@ module PulpContainerClient
|
|
96
88
|
if attributes.key?(:'manifest_signing_service')
|
97
89
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
90
|
end
|
91
|
+
|
92
|
+
if attributes.key?(:'retain_repo_versions')
|
93
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
-
end
|
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
105
|
if @name.nil?
|
114
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
107
|
end
|
@@ -118,19 +110,41 @@ module PulpContainerClient
|
|
118
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
119
111
|
end
|
120
112
|
|
113
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if !@description.nil? && @description.to_s.length < 1
|
118
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
|
+
end
|
120
|
+
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
129
127
|
return false if @name.nil?
|
130
128
|
return false if @name.to_s.length < 1
|
129
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] name Value to be assigned
|
136
|
+
def name=(name)
|
137
|
+
if name.nil?
|
138
|
+
fail ArgumentError, 'name cannot be nil'
|
139
|
+
end
|
140
|
+
|
141
|
+
if name.to_s.length < 1
|
142
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
143
|
+
end
|
144
|
+
|
145
|
+
@name = name
|
146
|
+
end
|
147
|
+
|
134
148
|
# Custom attribute writer method with validation
|
135
149
|
# @param [Object] retain_repo_versions Value to be assigned
|
136
150
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -151,30 +165,16 @@ module PulpContainerClient
|
|
151
165
|
@description = description
|
152
166
|
end
|
153
167
|
|
154
|
-
# Custom attribute writer method with validation
|
155
|
-
# @param [Object] name Value to be assigned
|
156
|
-
def name=(name)
|
157
|
-
if name.nil?
|
158
|
-
fail ArgumentError, 'name cannot be nil'
|
159
|
-
end
|
160
|
-
|
161
|
-
if name.to_s.length < 1
|
162
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
163
|
-
end
|
164
|
-
|
165
|
-
@name = name
|
166
|
-
end
|
167
|
-
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
description == o.description &&
|
175
173
|
pulp_labels == o.pulp_labels &&
|
176
174
|
name == o.name &&
|
177
|
-
manifest_signing_service == o.manifest_signing_service
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
|
+
description == o.description
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[pulp_labels, name, manifest_signing_service, retain_repo_versions, description].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|