pulp_container_client 2.27.9 → 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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- 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/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- 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 +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -62
- 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 +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -62
- data/lib/pulp_container_client/models/container_container_push_repository.rb +55 -55
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +82 -82
- 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 +29 -29
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +53 -53
- 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 +11 -11
- data/spec/models/container_container_distribution_spec.rb +5 -5
- 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 +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- 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 +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
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +60 -60
|
@@ -16,14 +16,13 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistribution
|
|
19
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
20
|
-
attr_accessor :base_path
|
|
21
|
-
|
|
22
19
|
# Whether this distribution should be shown in the content app.
|
|
23
20
|
attr_accessor :hidden
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
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
|
|
24
|
+
|
|
25
|
+
attr_accessor :pulp_labels
|
|
27
26
|
|
|
28
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
29
28
|
attr_accessor :name
|
|
@@ -31,11 +30,12 @@ module PulpContainerClient
|
|
|
31
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
32
31
|
attr_accessor :repository
|
|
33
32
|
|
|
34
|
-
attr_accessor :pulp_labels
|
|
35
|
-
|
|
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
|
-
:'base_path' => :'base_path',
|
|
55
54
|
:'hidden' => :'hidden',
|
|
56
|
-
:'
|
|
55
|
+
:'base_path' => :'base_path',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels',
|
|
57
57
|
:'name' => :'name',
|
|
58
58
|
:'repository' => :'repository',
|
|
59
|
-
:'pulp_labels' => :'pulp_labels',
|
|
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
|
-
:'base_path' => :'String',
|
|
77
76
|
:'hidden' => :'Boolean',
|
|
78
|
-
:'
|
|
77
|
+
:'base_path' => :'String',
|
|
78
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
79
79
|
:'name' => :'String',
|
|
80
80
|
:'repository' => :'String',
|
|
81
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
82
81
|
:'repository_version' => :'String',
|
|
82
|
+
:'content_guard' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,20 +111,22 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'base_path')
|
|
115
|
-
self.base_path = attributes[:'base_path']
|
|
116
|
-
else
|
|
117
|
-
self.base_path = nil
|
|
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']
|
|
122
|
+
else
|
|
123
|
+
self.base_path = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'pulp_labels')
|
|
127
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
128
|
+
self.pulp_labels = value
|
|
129
|
+
end
|
|
128
130
|
end
|
|
129
131
|
|
|
130
132
|
if attributes.key?(:'name')
|
|
@@ -137,16 +139,14 @@ module PulpContainerClient
|
|
|
137
139
|
self.repository = attributes[:'repository']
|
|
138
140
|
end
|
|
139
141
|
|
|
140
|
-
if attributes.key?(:'pulp_labels')
|
|
141
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
142
|
-
self.pulp_labels = value
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
142
|
if attributes.key?(:'repository_version')
|
|
147
143
|
self.repository_version = attributes[:'repository_version']
|
|
148
144
|
end
|
|
149
145
|
|
|
146
|
+
if attributes.key?(:'content_guard')
|
|
147
|
+
self.content_guard = attributes[:'content_guard']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
150
|
if attributes.key?(:'remote')
|
|
151
151
|
self.remote = attributes[:'remote']
|
|
152
152
|
else
|
|
@@ -256,13 +256,13 @@ module PulpContainerClient
|
|
|
256
256
|
def ==(o)
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
|
-
base_path == o.base_path &&
|
|
260
259
|
hidden == o.hidden &&
|
|
261
|
-
|
|
260
|
+
base_path == o.base_path &&
|
|
261
|
+
pulp_labels == o.pulp_labels &&
|
|
262
262
|
name == o.name &&
|
|
263
263
|
repository == o.repository &&
|
|
264
|
-
pulp_labels == o.pulp_labels &&
|
|
265
264
|
repository_version == o.repository_version &&
|
|
265
|
+
content_guard == o.content_guard &&
|
|
266
266
|
remote == o.remote &&
|
|
267
267
|
distributions == o.distributions &&
|
|
268
268
|
private == o.private &&
|
|
@@ -278,7 +278,7 @@ module PulpContainerClient
|
|
|
278
278
|
# Calculates hash code according to all attributes.
|
|
279
279
|
# @return [Integer] Hash code
|
|
280
280
|
def hash
|
|
281
|
-
[
|
|
281
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,28 +16,21 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
21
|
|
|
22
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
23
|
attr_accessor :base_path
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# The Pulp Resource Name (PRN).
|
|
26
|
+
attr_accessor :prn
|
|
27
27
|
|
|
28
28
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
29
29
|
attr_accessor :pulp_last_updated
|
|
30
30
|
|
|
31
|
-
attr_accessor :
|
|
32
|
-
|
|
33
|
-
# The Pulp Resource Name (PRN).
|
|
34
|
-
attr_accessor :prn
|
|
35
|
-
|
|
36
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
37
|
-
attr_accessor :content_guard
|
|
31
|
+
attr_accessor :pulp_labels
|
|
38
32
|
|
|
39
|
-
|
|
40
|
-
attr_accessor :content_guard_prn
|
|
33
|
+
attr_accessor :pulp_href
|
|
41
34
|
|
|
42
35
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
43
36
|
attr_accessor :name
|
|
@@ -45,14 +38,21 @@ module PulpContainerClient
|
|
|
45
38
|
# The latest RepositoryVersion for this Repository will be served.
|
|
46
39
|
attr_accessor :repository
|
|
47
40
|
|
|
48
|
-
# Timestamp
|
|
49
|
-
attr_accessor :
|
|
41
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
42
|
+
attr_accessor :no_content_change_since
|
|
50
43
|
|
|
51
|
-
|
|
44
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
45
|
+
attr_accessor :content_guard_prn
|
|
52
46
|
|
|
53
47
|
# RepositoryVersion to be served
|
|
54
48
|
attr_accessor :repository_version
|
|
55
49
|
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
52
|
+
|
|
53
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
54
|
+
attr_accessor :content_guard
|
|
55
|
+
|
|
56
56
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
57
57
|
attr_accessor :remote
|
|
58
58
|
|
|
@@ -71,19 +71,19 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
75
|
-
:'base_path' => :'base_path',
|
|
76
74
|
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
76
|
+
:'prn' => :'prn',
|
|
77
77
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
78
|
+
:'pulp_labels' => :'pulp_labels',
|
|
78
79
|
:'pulp_href' => :'pulp_href',
|
|
79
|
-
:'prn' => :'prn',
|
|
80
|
-
:'content_guard' => :'content_guard',
|
|
81
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
82
80
|
:'name' => :'name',
|
|
83
81
|
:'repository' => :'repository',
|
|
84
|
-
:'
|
|
85
|
-
:'
|
|
82
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
83
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
86
84
|
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
86
|
+
:'content_guard' => :'content_guard',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -100,19 +100,19 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'no_content_change_since' => :'String',
|
|
104
|
-
:'base_path' => :'String',
|
|
105
103
|
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
105
|
+
:'prn' => :'String',
|
|
106
106
|
:'pulp_last_updated' => :'Time',
|
|
107
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
107
108
|
:'pulp_href' => :'String',
|
|
108
|
-
:'prn' => :'String',
|
|
109
|
-
:'content_guard' => :'String',
|
|
110
|
-
:'content_guard_prn' => :'String',
|
|
111
109
|
:'name' => :'String',
|
|
112
110
|
:'repository' => :'String',
|
|
113
|
-
:'
|
|
114
|
-
:'
|
|
111
|
+
:'no_content_change_since' => :'String',
|
|
112
|
+
:'content_guard_prn' => :'String',
|
|
115
113
|
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
115
|
+
:'content_guard' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -145,8 +145,10 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'hidden')
|
|
149
|
+
self.hidden = attributes[:'hidden']
|
|
150
|
+
else
|
|
151
|
+
self.hidden = false
|
|
150
152
|
end
|
|
151
153
|
|
|
152
154
|
if attributes.key?(:'base_path')
|
|
@@ -155,30 +157,22 @@ module PulpContainerClient
|
|
|
155
157
|
self.base_path = nil
|
|
156
158
|
end
|
|
157
159
|
|
|
158
|
-
if attributes.key?(:'
|
|
159
|
-
self.
|
|
160
|
-
else
|
|
161
|
-
self.hidden = false
|
|
160
|
+
if attributes.key?(:'prn')
|
|
161
|
+
self.prn = attributes[:'prn']
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
if attributes.key?(:'pulp_last_updated')
|
|
165
165
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
if attributes.key?(:'
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if attributes.key?(:'prn')
|
|
173
|
-
self.prn = attributes[:'prn']
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if attributes.key?(:'content_guard')
|
|
177
|
-
self.content_guard = attributes[:'content_guard']
|
|
168
|
+
if attributes.key?(:'pulp_labels')
|
|
169
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
170
|
+
self.pulp_labels = value
|
|
171
|
+
end
|
|
178
172
|
end
|
|
179
173
|
|
|
180
|
-
if attributes.key?(:'
|
|
181
|
-
self.
|
|
174
|
+
if attributes.key?(:'pulp_href')
|
|
175
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
182
176
|
end
|
|
183
177
|
|
|
184
178
|
if attributes.key?(:'name')
|
|
@@ -191,20 +185,26 @@ module PulpContainerClient
|
|
|
191
185
|
self.repository = attributes[:'repository']
|
|
192
186
|
end
|
|
193
187
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
self.
|
|
188
|
+
if attributes.key?(:'no_content_change_since')
|
|
189
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
196
190
|
end
|
|
197
191
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
|
|
200
|
-
self.pulp_labels = value
|
|
201
|
-
end
|
|
192
|
+
if attributes.key?(:'content_guard_prn')
|
|
193
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
202
194
|
end
|
|
203
195
|
|
|
204
196
|
if attributes.key?(:'repository_version')
|
|
205
197
|
self.repository_version = attributes[:'repository_version']
|
|
206
198
|
end
|
|
207
199
|
|
|
200
|
+
if attributes.key?(:'pulp_created')
|
|
201
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'content_guard')
|
|
205
|
+
self.content_guard = attributes[:'content_guard']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
208
|
if attributes.key?(:'remote')
|
|
209
209
|
self.remote = attributes[:'remote']
|
|
210
210
|
else
|
|
@@ -265,19 +265,19 @@ module PulpContainerClient
|
|
|
265
265
|
def ==(o)
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
|
-
no_content_change_since == o.no_content_change_since &&
|
|
269
|
-
base_path == o.base_path &&
|
|
270
268
|
hidden == o.hidden &&
|
|
269
|
+
base_path == o.base_path &&
|
|
270
|
+
prn == o.prn &&
|
|
271
271
|
pulp_last_updated == o.pulp_last_updated &&
|
|
272
|
+
pulp_labels == o.pulp_labels &&
|
|
272
273
|
pulp_href == o.pulp_href &&
|
|
273
|
-
prn == o.prn &&
|
|
274
|
-
content_guard == o.content_guard &&
|
|
275
|
-
content_guard_prn == o.content_guard_prn &&
|
|
276
274
|
name == o.name &&
|
|
277
275
|
repository == o.repository &&
|
|
278
|
-
|
|
279
|
-
|
|
276
|
+
no_content_change_since == o.no_content_change_since &&
|
|
277
|
+
content_guard_prn == o.content_guard_prn &&
|
|
280
278
|
repository_version == o.repository_version &&
|
|
279
|
+
pulp_created == o.pulp_created &&
|
|
280
|
+
content_guard == o.content_guard &&
|
|
281
281
|
remote == o.remote &&
|
|
282
282
|
distributions == o.distributions &&
|
|
283
283
|
namespace == o.namespace &&
|
|
@@ -294,7 +294,7 @@ module PulpContainerClient
|
|
|
294
294
|
# Calculates hash code according to all attributes.
|
|
295
295
|
# @return [Integer] Hash code
|
|
296
296
|
def hash
|
|
297
|
-
[
|
|
297
|
+
[hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
# A unique name for this repository.
|
|
20
|
-
attr_accessor :name
|
|
21
|
-
|
|
22
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
23
|
-
attr_accessor :retain_checkpoints
|
|
24
|
-
|
|
25
19
|
# A reference to an associated signing service.
|
|
26
20
|
attr_accessor :manifest_signing_service
|
|
27
21
|
|
|
22
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
|
+
attr_accessor :retain_repo_versions
|
|
24
|
+
|
|
28
25
|
attr_accessor :pulp_labels
|
|
29
26
|
|
|
27
|
+
# A unique name for this repository.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
30
|
# An optional description.
|
|
31
31
|
attr_accessor :description
|
|
32
32
|
|
|
33
|
-
# Retain X
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
|
+
attr_accessor :retain_checkpoints
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'name' => :'name',
|
|
40
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
41
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
41
|
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'name' => :'name',
|
|
43
43
|
:'description' => :'description',
|
|
44
|
-
:'
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'name' => :'String',
|
|
57
|
-
:'retain_checkpoints' => :'Integer',
|
|
58
56
|
:'manifest_signing_service' => :'String',
|
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
|
59
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'name' => :'String',
|
|
60
60
|
:'description' => :'String',
|
|
61
|
-
:'
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
-
:'retain_checkpoints',
|
|
69
68
|
:'manifest_signing_service',
|
|
69
|
+
:'retain_repo_versions',
|
|
70
70
|
:'description',
|
|
71
|
-
:'
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,32 +87,32 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'name')
|
|
91
|
-
self.name = attributes[:'name']
|
|
92
|
-
else
|
|
93
|
-
self.name = nil
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'retain_checkpoints')
|
|
97
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
90
|
if attributes.key?(:'manifest_signing_service')
|
|
101
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
102
92
|
end
|
|
103
93
|
|
|
94
|
+
if attributes.key?(:'retain_repo_versions')
|
|
95
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
96
|
+
end
|
|
97
|
+
|
|
104
98
|
if attributes.key?(:'pulp_labels')
|
|
105
99
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
106
100
|
self.pulp_labels = value
|
|
107
101
|
end
|
|
108
102
|
end
|
|
109
103
|
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
else
|
|
107
|
+
self.name = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
110
|
if attributes.key?(:'description')
|
|
111
111
|
self.description = attributes[:'description']
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -121,6 +121,10 @@ module PulpContainerClient
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
126
|
+
end
|
|
127
|
+
|
|
124
128
|
if @name.nil?
|
|
125
129
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
126
130
|
end
|
|
@@ -129,16 +133,12 @@ module PulpContainerClient
|
|
|
129
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
130
134
|
end
|
|
131
135
|
|
|
132
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
133
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
134
|
-
end
|
|
135
|
-
|
|
136
136
|
if !@description.nil? && @description.to_s.length < 1
|
|
137
137
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
if !@
|
|
141
|
-
invalid_properties.push('invalid value for "
|
|
140
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
invalid_properties
|
|
@@ -148,14 +148,24 @@ module PulpContainerClient
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
151
152
|
return false if @name.nil?
|
|
152
153
|
return false if @name.to_s.length < 1
|
|
153
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
154
154
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
155
|
-
return false if !@
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
+
# Custom attribute writer method with validation
|
|
160
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
161
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
162
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
163
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@retain_repo_versions = retain_repo_versions
|
|
167
|
+
end
|
|
168
|
+
|
|
159
169
|
# Custom attribute writer method with validation
|
|
160
170
|
# @param [Object] name Value to be assigned
|
|
161
171
|
def name=(name)
|
|
@@ -170,16 +180,6 @@ module PulpContainerClient
|
|
|
170
180
|
@name = name
|
|
171
181
|
end
|
|
172
182
|
|
|
173
|
-
# Custom attribute writer method with validation
|
|
174
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
175
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
176
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
177
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
@retain_checkpoints = retain_checkpoints
|
|
181
|
-
end
|
|
182
|
-
|
|
183
183
|
# Custom attribute writer method with validation
|
|
184
184
|
# @param [Object] description Value to be assigned
|
|
185
185
|
def description=(description)
|
|
@@ -191,13 +191,13 @@ module PulpContainerClient
|
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# Custom attribute writer method with validation
|
|
194
|
-
# @param [Object]
|
|
195
|
-
def
|
|
196
|
-
if !
|
|
197
|
-
fail ArgumentError, 'invalid value for "
|
|
194
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
196
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
@
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
@@ -205,12 +205,12 @@ module PulpContainerClient
|
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
name == o.name &&
|
|
209
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
210
208
|
manifest_signing_service == o.manifest_signing_service &&
|
|
209
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
211
210
|
pulp_labels == o.pulp_labels &&
|
|
211
|
+
name == o.name &&
|
|
212
212
|
description == o.description &&
|
|
213
|
-
|
|
213
|
+
retain_checkpoints == o.retain_checkpoints
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|