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