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