pulp_container_client 2.18.0 → 2.18.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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +6 -6
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +36 -36
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +36 -36
- 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 +53 -53
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +38 -38
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -38
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +61 -61
@@ -18,16 +18,10 @@ module PulpContainerClient
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
19
|
attr_accessor :content_guard
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :base_path
|
21
|
+
attr_accessor :pulp_labels
|
23
22
|
|
24
23
|
attr_accessor :pulp_href
|
25
24
|
|
26
|
-
# Whether this distribution should be shown in the content app.
|
27
|
-
attr_accessor :hidden
|
28
|
-
|
29
|
-
attr_accessor :pulp_labels
|
30
|
-
|
31
25
|
# A unique name. Ex, `rawhide` and `stable`.
|
32
26
|
attr_accessor :name
|
33
27
|
|
@@ -37,6 +31,12 @@ module PulpContainerClient
|
|
37
31
|
# Timestamp of creation.
|
38
32
|
attr_accessor :pulp_created
|
39
33
|
|
34
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
+
attr_accessor :base_path
|
36
|
+
|
37
|
+
# Whether this distribution should be shown in the content app.
|
38
|
+
attr_accessor :hidden
|
39
|
+
|
40
40
|
# RepositoryVersion to be served
|
41
41
|
attr_accessor :repository_version
|
42
42
|
|
@@ -59,13 +59,13 @@ module PulpContainerClient
|
|
59
59
|
def self.attribute_map
|
60
60
|
{
|
61
61
|
:'content_guard' => :'content_guard',
|
62
|
-
:'base_path' => :'base_path',
|
63
|
-
:'pulp_href' => :'pulp_href',
|
64
|
-
:'hidden' => :'hidden',
|
65
62
|
:'pulp_labels' => :'pulp_labels',
|
63
|
+
:'pulp_href' => :'pulp_href',
|
66
64
|
:'name' => :'name',
|
67
65
|
:'repository' => :'repository',
|
68
66
|
:'pulp_created' => :'pulp_created',
|
67
|
+
:'base_path' => :'base_path',
|
68
|
+
:'hidden' => :'hidden',
|
69
69
|
:'repository_version' => :'repository_version',
|
70
70
|
:'registry_path' => :'registry_path',
|
71
71
|
:'remote' => :'remote',
|
@@ -79,13 +79,13 @@ module PulpContainerClient
|
|
79
79
|
def self.openapi_types
|
80
80
|
{
|
81
81
|
:'content_guard' => :'String',
|
82
|
-
:'base_path' => :'String',
|
83
|
-
:'pulp_href' => :'String',
|
84
|
-
:'hidden' => :'Boolean',
|
85
82
|
:'pulp_labels' => :'Hash<String, String>',
|
83
|
+
:'pulp_href' => :'String',
|
86
84
|
:'name' => :'String',
|
87
85
|
:'repository' => :'String',
|
88
86
|
:'pulp_created' => :'DateTime',
|
87
|
+
:'base_path' => :'String',
|
88
|
+
:'hidden' => :'Boolean',
|
89
89
|
:'repository_version' => :'String',
|
90
90
|
:'registry_path' => :'String',
|
91
91
|
:'remote' => :'String',
|
@@ -123,26 +123,16 @@ module PulpContainerClient
|
|
123
123
|
self.content_guard = attributes[:'content_guard']
|
124
124
|
end
|
125
125
|
|
126
|
-
if attributes.key?(:'base_path')
|
127
|
-
self.base_path = attributes[:'base_path']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.key?(:'pulp_href')
|
131
|
-
self.pulp_href = attributes[:'pulp_href']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'hidden')
|
135
|
-
self.hidden = attributes[:'hidden']
|
136
|
-
else
|
137
|
-
self.hidden = false
|
138
|
-
end
|
139
|
-
|
140
126
|
if attributes.key?(:'pulp_labels')
|
141
127
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
142
128
|
self.pulp_labels = value
|
143
129
|
end
|
144
130
|
end
|
145
131
|
|
132
|
+
if attributes.key?(:'pulp_href')
|
133
|
+
self.pulp_href = attributes[:'pulp_href']
|
134
|
+
end
|
135
|
+
|
146
136
|
if attributes.key?(:'name')
|
147
137
|
self.name = attributes[:'name']
|
148
138
|
end
|
@@ -155,6 +145,16 @@ module PulpContainerClient
|
|
155
145
|
self.pulp_created = attributes[:'pulp_created']
|
156
146
|
end
|
157
147
|
|
148
|
+
if attributes.key?(:'base_path')
|
149
|
+
self.base_path = attributes[:'base_path']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'hidden')
|
153
|
+
self.hidden = attributes[:'hidden']
|
154
|
+
else
|
155
|
+
self.hidden = false
|
156
|
+
end
|
157
|
+
|
158
158
|
if attributes.key?(:'repository_version')
|
159
159
|
self.repository_version = attributes[:'repository_version']
|
160
160
|
end
|
@@ -184,22 +184,22 @@ module PulpContainerClient
|
|
184
184
|
# @return Array for valid properties with the reasons
|
185
185
|
def list_invalid_properties
|
186
186
|
invalid_properties = Array.new
|
187
|
-
if @base_path.nil?
|
188
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
189
|
-
end
|
190
|
-
|
191
187
|
if @name.nil?
|
192
188
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
193
189
|
end
|
194
190
|
|
191
|
+
if @base_path.nil?
|
192
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
193
|
+
end
|
194
|
+
|
195
195
|
invalid_properties
|
196
196
|
end
|
197
197
|
|
198
198
|
# Check to see if the all the properties in the model are valid
|
199
199
|
# @return true if the model is valid
|
200
200
|
def valid?
|
201
|
-
return false if @base_path.nil?
|
202
201
|
return false if @name.nil?
|
202
|
+
return false if @base_path.nil?
|
203
203
|
true
|
204
204
|
end
|
205
205
|
|
@@ -209,13 +209,13 @@ module PulpContainerClient
|
|
209
209
|
return true if self.equal?(o)
|
210
210
|
self.class == o.class &&
|
211
211
|
content_guard == o.content_guard &&
|
212
|
-
base_path == o.base_path &&
|
213
|
-
pulp_href == o.pulp_href &&
|
214
|
-
hidden == o.hidden &&
|
215
212
|
pulp_labels == o.pulp_labels &&
|
213
|
+
pulp_href == o.pulp_href &&
|
216
214
|
name == o.name &&
|
217
215
|
repository == o.repository &&
|
218
216
|
pulp_created == o.pulp_created &&
|
217
|
+
base_path == o.base_path &&
|
218
|
+
hidden == o.hidden &&
|
219
219
|
repository_version == o.repository_version &&
|
220
220
|
registry_path == o.registry_path &&
|
221
221
|
remote == o.remote &&
|
@@ -233,7 +233,7 @@ module PulpContainerClient
|
|
233
233
|
# Calculates hash code according to all attributes.
|
234
234
|
# @return [Integer] Hash code
|
235
235
|
def hash
|
236
|
-
[content_guard,
|
236
|
+
[content_guard, pulp_labels, pulp_href, name, repository, pulp_created, base_path, hidden, repository_version, registry_path, remote, namespace, private, description].hash
|
237
237
|
end
|
238
238
|
|
239
239
|
# Builds the object from hash
|
@@ -18,12 +18,6 @@ module PulpContainerClient
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
19
|
attr_accessor :content_guard
|
20
20
|
|
21
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
|
-
attr_accessor :base_path
|
23
|
-
|
24
|
-
# Whether this distribution should be shown in the content app.
|
25
|
-
attr_accessor :hidden
|
26
|
-
|
27
21
|
attr_accessor :pulp_labels
|
28
22
|
|
29
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -32,6 +26,12 @@ module PulpContainerClient
|
|
32
26
|
# The latest RepositoryVersion for this Repository will be served.
|
33
27
|
attr_accessor :repository
|
34
28
|
|
29
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
|
+
attr_accessor :base_path
|
31
|
+
|
32
|
+
# Whether this distribution should be shown in the content app.
|
33
|
+
attr_accessor :hidden
|
34
|
+
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
37
37
|
|
@@ -48,11 +48,11 @@ module PulpContainerClient
|
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
50
|
:'content_guard' => :'content_guard',
|
51
|
-
:'base_path' => :'base_path',
|
52
|
-
:'hidden' => :'hidden',
|
53
51
|
:'pulp_labels' => :'pulp_labels',
|
54
52
|
:'name' => :'name',
|
55
53
|
:'repository' => :'repository',
|
54
|
+
:'base_path' => :'base_path',
|
55
|
+
:'hidden' => :'hidden',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -64,11 +64,11 @@ module PulpContainerClient
|
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
66
|
:'content_guard' => :'String',
|
67
|
-
:'base_path' => :'String',
|
68
|
-
:'hidden' => :'Boolean',
|
69
67
|
:'pulp_labels' => :'Hash<String, String>',
|
70
68
|
:'name' => :'String',
|
71
69
|
:'repository' => :'String',
|
70
|
+
:'base_path' => :'String',
|
71
|
+
:'hidden' => :'Boolean',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -103,16 +103,6 @@ module PulpContainerClient
|
|
103
103
|
self.content_guard = attributes[:'content_guard']
|
104
104
|
end
|
105
105
|
|
106
|
-
if attributes.key?(:'base_path')
|
107
|
-
self.base_path = attributes[:'base_path']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'hidden')
|
111
|
-
self.hidden = attributes[:'hidden']
|
112
|
-
else
|
113
|
-
self.hidden = false
|
114
|
-
end
|
115
|
-
|
116
106
|
if attributes.key?(:'pulp_labels')
|
117
107
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
108
|
self.pulp_labels = value
|
@@ -127,6 +117,16 @@ module PulpContainerClient
|
|
127
117
|
self.repository = attributes[:'repository']
|
128
118
|
end
|
129
119
|
|
120
|
+
if attributes.key?(:'base_path')
|
121
|
+
self.base_path = attributes[:'base_path']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'hidden')
|
125
|
+
self.hidden = attributes[:'hidden']
|
126
|
+
else
|
127
|
+
self.hidden = false
|
128
|
+
end
|
129
|
+
|
130
130
|
if attributes.key?(:'remote')
|
131
131
|
self.remote = attributes[:'remote']
|
132
132
|
end
|
@@ -150,14 +150,6 @@ module PulpContainerClient
|
|
150
150
|
# @return Array for valid properties with the reasons
|
151
151
|
def list_invalid_properties
|
152
152
|
invalid_properties = Array.new
|
153
|
-
if @base_path.nil?
|
154
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
155
|
-
end
|
156
|
-
|
157
|
-
if @base_path.to_s.length < 1
|
158
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
159
|
-
end
|
160
|
-
|
161
153
|
if @name.nil?
|
162
154
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
163
155
|
end
|
@@ -166,6 +158,14 @@ module PulpContainerClient
|
|
166
158
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
167
159
|
end
|
168
160
|
|
161
|
+
if @base_path.nil?
|
162
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @base_path.to_s.length < 1
|
166
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
167
|
+
end
|
168
|
+
|
169
169
|
if @remote.nil?
|
170
170
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
171
171
|
end
|
@@ -180,29 +180,15 @@ module PulpContainerClient
|
|
180
180
|
# Check to see if the all the properties in the model are valid
|
181
181
|
# @return true if the model is valid
|
182
182
|
def valid?
|
183
|
-
return false if @base_path.nil?
|
184
|
-
return false if @base_path.to_s.length < 1
|
185
183
|
return false if @name.nil?
|
186
184
|
return false if @name.to_s.length < 1
|
185
|
+
return false if @base_path.nil?
|
186
|
+
return false if @base_path.to_s.length < 1
|
187
187
|
return false if @remote.nil?
|
188
188
|
return false if !@description.nil? && @description.to_s.length < 1
|
189
189
|
true
|
190
190
|
end
|
191
191
|
|
192
|
-
# Custom attribute writer method with validation
|
193
|
-
# @param [Object] base_path Value to be assigned
|
194
|
-
def base_path=(base_path)
|
195
|
-
if base_path.nil?
|
196
|
-
fail ArgumentError, 'base_path cannot be nil'
|
197
|
-
end
|
198
|
-
|
199
|
-
if base_path.to_s.length < 1
|
200
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
201
|
-
end
|
202
|
-
|
203
|
-
@base_path = base_path
|
204
|
-
end
|
205
|
-
|
206
192
|
# Custom attribute writer method with validation
|
207
193
|
# @param [Object] name Value to be assigned
|
208
194
|
def name=(name)
|
@@ -217,6 +203,20 @@ module PulpContainerClient
|
|
217
203
|
@name = name
|
218
204
|
end
|
219
205
|
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] base_path Value to be assigned
|
208
|
+
def base_path=(base_path)
|
209
|
+
if base_path.nil?
|
210
|
+
fail ArgumentError, 'base_path cannot be nil'
|
211
|
+
end
|
212
|
+
|
213
|
+
if base_path.to_s.length < 1
|
214
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
215
|
+
end
|
216
|
+
|
217
|
+
@base_path = base_path
|
218
|
+
end
|
219
|
+
|
220
220
|
# Custom attribute writer method with validation
|
221
221
|
# @param [Object] description Value to be assigned
|
222
222
|
def description=(description)
|
@@ -233,11 +233,11 @@ module PulpContainerClient
|
|
233
233
|
return true if self.equal?(o)
|
234
234
|
self.class == o.class &&
|
235
235
|
content_guard == o.content_guard &&
|
236
|
-
base_path == o.base_path &&
|
237
|
-
hidden == o.hidden &&
|
238
236
|
pulp_labels == o.pulp_labels &&
|
239
237
|
name == o.name &&
|
240
238
|
repository == o.repository &&
|
239
|
+
base_path == o.base_path &&
|
240
|
+
hidden == o.hidden &&
|
241
241
|
remote == o.remote &&
|
242
242
|
distributions == o.distributions &&
|
243
243
|
private == o.private &&
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
253
253
|
# Calculates hash code according to all attributes.
|
254
254
|
# @return [Integer] Hash code
|
255
255
|
def hash
|
256
|
-
[content_guard,
|
256
|
+
[content_guard, pulp_labels, name, repository, base_path, hidden, remote, distributions, private, description].hash
|
257
257
|
end
|
258
258
|
|
259
259
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -18,16 +18,10 @@ module PulpContainerClient
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
19
|
attr_accessor :content_guard
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :base_path
|
21
|
+
attr_accessor :pulp_labels
|
23
22
|
|
24
23
|
attr_accessor :pulp_href
|
25
24
|
|
26
|
-
# Whether this distribution should be shown in the content app.
|
27
|
-
attr_accessor :hidden
|
28
|
-
|
29
|
-
attr_accessor :pulp_labels
|
30
|
-
|
31
25
|
# A unique name. Ex, `rawhide` and `stable`.
|
32
26
|
attr_accessor :name
|
33
27
|
|
@@ -37,6 +31,12 @@ module PulpContainerClient
|
|
37
31
|
# Timestamp of creation.
|
38
32
|
attr_accessor :pulp_created
|
39
33
|
|
34
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
+
attr_accessor :base_path
|
36
|
+
|
37
|
+
# Whether this distribution should be shown in the content app.
|
38
|
+
attr_accessor :hidden
|
39
|
+
|
40
40
|
# Remote that can be used to fetch content when using pull-through caching.
|
41
41
|
attr_accessor :remote
|
42
42
|
|
@@ -56,13 +56,13 @@ module PulpContainerClient
|
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
58
|
:'content_guard' => :'content_guard',
|
59
|
-
:'base_path' => :'base_path',
|
60
|
-
:'pulp_href' => :'pulp_href',
|
61
|
-
:'hidden' => :'hidden',
|
62
59
|
:'pulp_labels' => :'pulp_labels',
|
60
|
+
:'pulp_href' => :'pulp_href',
|
63
61
|
:'name' => :'name',
|
64
62
|
:'repository' => :'repository',
|
65
63
|
:'pulp_created' => :'pulp_created',
|
64
|
+
:'base_path' => :'base_path',
|
65
|
+
:'hidden' => :'hidden',
|
66
66
|
:'remote' => :'remote',
|
67
67
|
:'distributions' => :'distributions',
|
68
68
|
:'namespace' => :'namespace',
|
@@ -75,13 +75,13 @@ module PulpContainerClient
|
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
77
|
:'content_guard' => :'String',
|
78
|
-
:'base_path' => :'String',
|
79
|
-
:'pulp_href' => :'String',
|
80
|
-
:'hidden' => :'Boolean',
|
81
78
|
:'pulp_labels' => :'Hash<String, String>',
|
79
|
+
:'pulp_href' => :'String',
|
82
80
|
:'name' => :'String',
|
83
81
|
:'repository' => :'String',
|
84
82
|
:'pulp_created' => :'DateTime',
|
83
|
+
:'base_path' => :'String',
|
84
|
+
:'hidden' => :'Boolean',
|
85
85
|
:'remote' => :'String',
|
86
86
|
:'distributions' => :'Array<String>',
|
87
87
|
:'namespace' => :'String',
|
@@ -117,26 +117,16 @@ module PulpContainerClient
|
|
117
117
|
self.content_guard = attributes[:'content_guard']
|
118
118
|
end
|
119
119
|
|
120
|
-
if attributes.key?(:'base_path')
|
121
|
-
self.base_path = attributes[:'base_path']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'pulp_href')
|
125
|
-
self.pulp_href = attributes[:'pulp_href']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'hidden')
|
129
|
-
self.hidden = attributes[:'hidden']
|
130
|
-
else
|
131
|
-
self.hidden = false
|
132
|
-
end
|
133
|
-
|
134
120
|
if attributes.key?(:'pulp_labels')
|
135
121
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
136
122
|
self.pulp_labels = value
|
137
123
|
end
|
138
124
|
end
|
139
125
|
|
126
|
+
if attributes.key?(:'pulp_href')
|
127
|
+
self.pulp_href = attributes[:'pulp_href']
|
128
|
+
end
|
129
|
+
|
140
130
|
if attributes.key?(:'name')
|
141
131
|
self.name = attributes[:'name']
|
142
132
|
end
|
@@ -149,6 +139,16 @@ module PulpContainerClient
|
|
149
139
|
self.pulp_created = attributes[:'pulp_created']
|
150
140
|
end
|
151
141
|
|
142
|
+
if attributes.key?(:'base_path')
|
143
|
+
self.base_path = attributes[:'base_path']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'hidden')
|
147
|
+
self.hidden = attributes[:'hidden']
|
148
|
+
else
|
149
|
+
self.hidden = false
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'remote')
|
153
153
|
self.remote = attributes[:'remote']
|
154
154
|
end
|
@@ -176,14 +176,14 @@ module PulpContainerClient
|
|
176
176
|
# @return Array for valid properties with the reasons
|
177
177
|
def list_invalid_properties
|
178
178
|
invalid_properties = Array.new
|
179
|
-
if @base_path.nil?
|
180
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
181
|
-
end
|
182
|
-
|
183
179
|
if @name.nil?
|
184
180
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
185
181
|
end
|
186
182
|
|
183
|
+
if @base_path.nil?
|
184
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
185
|
+
end
|
186
|
+
|
187
187
|
if @remote.nil?
|
188
188
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
189
189
|
end
|
@@ -194,8 +194,8 @@ module PulpContainerClient
|
|
194
194
|
# Check to see if the all the properties in the model are valid
|
195
195
|
# @return true if the model is valid
|
196
196
|
def valid?
|
197
|
-
return false if @base_path.nil?
|
198
197
|
return false if @name.nil?
|
198
|
+
return false if @base_path.nil?
|
199
199
|
return false if @remote.nil?
|
200
200
|
true
|
201
201
|
end
|
@@ -206,13 +206,13 @@ module PulpContainerClient
|
|
206
206
|
return true if self.equal?(o)
|
207
207
|
self.class == o.class &&
|
208
208
|
content_guard == o.content_guard &&
|
209
|
-
base_path == o.base_path &&
|
210
|
-
pulp_href == o.pulp_href &&
|
211
|
-
hidden == o.hidden &&
|
212
209
|
pulp_labels == o.pulp_labels &&
|
210
|
+
pulp_href == o.pulp_href &&
|
213
211
|
name == o.name &&
|
214
212
|
repository == o.repository &&
|
215
213
|
pulp_created == o.pulp_created &&
|
214
|
+
base_path == o.base_path &&
|
215
|
+
hidden == o.hidden &&
|
216
216
|
remote == o.remote &&
|
217
217
|
distributions == o.distributions &&
|
218
218
|
namespace == o.namespace &&
|
@@ -229,7 +229,7 @@ module PulpContainerClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[content_guard,
|
232
|
+
[content_guard, pulp_labels, pulp_href, name, repository, pulp_created, base_path, hidden, remote, distributions, namespace, private, description].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
18
18
|
# A reference to an associated signing service.
|
19
19
|
attr_accessor :manifest_signing_service
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :name
|
21
|
+
attr_accessor :pulp_labels
|
23
22
|
|
24
23
|
# Retain X versions of the repository. Default is null which retains all versions.
|
25
24
|
attr_accessor :retain_repo_versions
|
26
25
|
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
28
|
+
|
27
29
|
# An optional description.
|
28
30
|
attr_accessor :description
|
29
31
|
|
30
|
-
attr_accessor :pulp_labels
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
-
:'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'name' => :'name',
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'manifest_signing_service' => :'String',
|
47
|
-
:'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
48
|
:'retain_repo_versions' => :'Integer',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'name' => :'String',
|
50
|
+
:'description' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
Set.new([
|
57
57
|
:'manifest_signing_service',
|
58
58
|
:'retain_repo_versions',
|
59
|
-
:'description'
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,22 +79,22 @@ module PulpContainerClient
|
|
79
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
84
86
|
end
|
85
87
|
|
86
88
|
if attributes.key?(:'retain_repo_versions')
|
87
89
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
88
90
|
end
|
89
91
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
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
|
+
|
105
109
|
if @name.nil?
|
106
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
107
111
|
end
|
@@ -110,10 +114,6 @@ module PulpContainerClient
|
|
110
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
115
|
end
|
112
116
|
|
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
117
|
if !@description.nil? && @description.to_s.length < 1
|
118
118
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
119
|
end
|
@@ -124,13 +124,23 @@ module PulpContainerClient
|
|
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
|
127
128
|
return false if @name.nil?
|
128
129
|
return false if @name.to_s.length < 1
|
129
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
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] retain_repo_versions Value to be assigned
|
136
|
+
def retain_repo_versions=(retain_repo_versions)
|
137
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
138
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
139
|
+
end
|
140
|
+
|
141
|
+
@retain_repo_versions = retain_repo_versions
|
142
|
+
end
|
143
|
+
|
134
144
|
# Custom attribute writer method with validation
|
135
145
|
# @param [Object] name Value to be assigned
|
136
146
|
def name=(name)
|
@@ -145,16 +155,6 @@ module PulpContainerClient
|
|
145
155
|
@name = name
|
146
156
|
end
|
147
157
|
|
148
|
-
# Custom attribute writer method with validation
|
149
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
150
|
-
def retain_repo_versions=(retain_repo_versions)
|
151
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
152
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
153
|
-
end
|
154
|
-
|
155
|
-
@retain_repo_versions = retain_repo_versions
|
156
|
-
end
|
157
|
-
|
158
158
|
# Custom attribute writer method with validation
|
159
159
|
# @param [Object] description Value to be assigned
|
160
160
|
def description=(description)
|
@@ -171,10 +171,10 @@ module PulpContainerClient
|
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
173
|
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
|
174
|
+
pulp_labels == o.pulp_labels &&
|
175
175
|
retain_repo_versions == o.retain_repo_versions &&
|
176
|
-
|
177
|
-
|
176
|
+
name == o.name &&
|
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
|
-
[manifest_signing_service,
|
189
|
+
[manifest_signing_service, pulp_labels, retain_repo_versions, name, description].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|