pulp_container_client 2.27.14 → 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 +6 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- 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/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- 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/distributions_pull_through_api.rb +8 -4
- 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 +61 -61
- 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 +61 -61
- data/lib/pulp_container_client/models/container_container_push_repository.rb +67 -67
- 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 +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +65 -65
- 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/distributions_pull_through_api_spec.rb +4 -2
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_distribution_spec.rb +6 -6
- 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 +13 -13
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- data/spec/models/container_container_push_repository_spec.rb +6 -6
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +62 -62
|
@@ -16,16 +16,19 @@ 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 latest RepositoryVersion for this Repository will be served.
|
|
20
|
-
attr_accessor :repository
|
|
21
|
-
|
|
22
19
|
# Whether this distribution should be shown in the content app.
|
|
23
20
|
attr_accessor :hidden
|
|
24
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
|
|
24
|
+
|
|
25
25
|
attr_accessor :pulp_labels
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
29
32
|
|
|
30
33
|
# RepositoryVersion to be served
|
|
31
34
|
attr_accessor :repository_version
|
|
@@ -33,9 +36,6 @@ module PulpContainerClient
|
|
|
33
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
37
|
attr_accessor :content_guard
|
|
35
38
|
|
|
36
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
37
|
-
attr_accessor :name
|
|
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
|
-
:'repository' => :'repository',
|
|
55
54
|
:'hidden' => :'hidden',
|
|
56
|
-
:'pulp_labels' => :'pulp_labels',
|
|
57
55
|
:'base_path' => :'base_path',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels',
|
|
57
|
+
:'name' => :'name',
|
|
58
|
+
:'repository' => :'repository',
|
|
58
59
|
:'repository_version' => :'repository_version',
|
|
59
60
|
:'content_guard' => :'content_guard',
|
|
60
|
-
:'name' => :'name',
|
|
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
|
-
:'repository' => :'String',
|
|
77
76
|
:'hidden' => :'Boolean',
|
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
79
77
|
:'base_path' => :'String',
|
|
78
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'name' => :'String',
|
|
80
|
+
:'repository' => :'String',
|
|
80
81
|
:'repository_version' => :'String',
|
|
81
82
|
:'content_guard' => :'String',
|
|
82
|
-
:'name' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,26 +111,32 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'repository')
|
|
115
|
-
self.repository = attributes[:'repository']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
114
|
if attributes.key?(:'hidden')
|
|
119
115
|
self.hidden = attributes[:'hidden']
|
|
120
116
|
else
|
|
121
117
|
self.hidden = false
|
|
122
118
|
end
|
|
123
119
|
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
122
|
+
else
|
|
123
|
+
self.base_path = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
124
126
|
if attributes.key?(:'pulp_labels')
|
|
125
127
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
128
|
self.pulp_labels = value
|
|
127
129
|
end
|
|
128
130
|
end
|
|
129
131
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
132
|
+
if attributes.key?(:'name')
|
|
133
|
+
self.name = attributes[:'name']
|
|
132
134
|
else
|
|
133
|
-
self.
|
|
135
|
+
self.name = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'repository')
|
|
139
|
+
self.repository = attributes[:'repository']
|
|
134
140
|
end
|
|
135
141
|
|
|
136
142
|
if attributes.key?(:'repository_version')
|
|
@@ -141,12 +147,6 @@ module PulpContainerClient
|
|
|
141
147
|
self.content_guard = attributes[:'content_guard']
|
|
142
148
|
end
|
|
143
149
|
|
|
144
|
-
if attributes.key?(:'name')
|
|
145
|
-
self.name = attributes[:'name']
|
|
146
|
-
else
|
|
147
|
-
self.name = nil
|
|
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
|
-
repository == o.repository &&
|
|
260
259
|
hidden == o.hidden &&
|
|
261
|
-
pulp_labels == o.pulp_labels &&
|
|
262
260
|
base_path == o.base_path &&
|
|
261
|
+
pulp_labels == o.pulp_labels &&
|
|
262
|
+
name == o.name &&
|
|
263
|
+
repository == o.repository &&
|
|
263
264
|
repository_version == o.repository_version &&
|
|
264
265
|
content_guard == o.content_guard &&
|
|
265
|
-
name == o.name &&
|
|
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,21 +16,27 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
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
|
|
24
|
+
|
|
19
25
|
# The Pulp Resource Name (PRN).
|
|
20
26
|
attr_accessor :prn
|
|
21
27
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
24
|
-
|
|
25
|
-
# Whether this distribution should be shown in the content app.
|
|
26
|
-
attr_accessor :hidden
|
|
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
|
+
attr_accessor :pulp_last_updated
|
|
27
30
|
|
|
28
31
|
attr_accessor :pulp_labels
|
|
29
32
|
|
|
30
33
|
attr_accessor :pulp_href
|
|
31
34
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
35
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
|
|
38
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
39
|
+
attr_accessor :repository
|
|
34
40
|
|
|
35
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.
|
|
36
42
|
attr_accessor :no_content_change_since
|
|
@@ -38,21 +44,15 @@ module PulpContainerClient
|
|
|
38
44
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
39
45
|
attr_accessor :content_guard_prn
|
|
40
46
|
|
|
41
|
-
# The registry path exposed by this pull-through distribution.
|
|
42
|
-
attr_accessor :base_path
|
|
43
|
-
|
|
44
47
|
# RepositoryVersion to be served
|
|
45
48
|
attr_accessor :repository_version
|
|
46
49
|
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
52
|
+
|
|
47
53
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
48
54
|
attr_accessor :content_guard
|
|
49
55
|
|
|
50
|
-
# 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.
|
|
51
|
-
attr_accessor :pulp_last_updated
|
|
52
|
-
|
|
53
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
54
|
-
attr_accessor :name
|
|
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
|
-
:'prn' => :'prn',
|
|
75
|
-
:'repository' => :'repository',
|
|
76
74
|
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
76
|
+
:'prn' => :'prn',
|
|
77
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
77
78
|
:'pulp_labels' => :'pulp_labels',
|
|
78
79
|
:'pulp_href' => :'pulp_href',
|
|
79
|
-
:'
|
|
80
|
+
:'name' => :'name',
|
|
81
|
+
:'repository' => :'repository',
|
|
80
82
|
:'no_content_change_since' => :'no_content_change_since',
|
|
81
83
|
:'content_guard_prn' => :'content_guard_prn',
|
|
82
|
-
:'base_path' => :'base_path',
|
|
83
84
|
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
84
86
|
:'content_guard' => :'content_guard',
|
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
|
-
:'name' => :'name',
|
|
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
|
-
:'prn' => :'String',
|
|
104
|
-
:'repository' => :'String',
|
|
105
103
|
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
105
|
+
:'prn' => :'String',
|
|
106
|
+
:'pulp_last_updated' => :'Time',
|
|
106
107
|
:'pulp_labels' => :'Hash<String, String>',
|
|
107
108
|
:'pulp_href' => :'String',
|
|
108
|
-
:'
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
:'repository' => :'String',
|
|
109
111
|
:'no_content_change_since' => :'String',
|
|
110
112
|
:'content_guard_prn' => :'String',
|
|
111
|
-
:'base_path' => :'String',
|
|
112
113
|
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
113
115
|
:'content_guard' => :'String',
|
|
114
|
-
:'pulp_last_updated' => :'Time',
|
|
115
|
-
:'name' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -145,20 +145,26 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'prn')
|
|
149
|
-
self.prn = attributes[:'prn']
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
if attributes.key?(:'repository')
|
|
153
|
-
self.repository = attributes[:'repository']
|
|
154
|
-
end
|
|
155
|
-
|
|
156
148
|
if attributes.key?(:'hidden')
|
|
157
149
|
self.hidden = attributes[:'hidden']
|
|
158
150
|
else
|
|
159
151
|
self.hidden = false
|
|
160
152
|
end
|
|
161
153
|
|
|
154
|
+
if attributes.key?(:'base_path')
|
|
155
|
+
self.base_path = attributes[:'base_path']
|
|
156
|
+
else
|
|
157
|
+
self.base_path = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'prn')
|
|
161
|
+
self.prn = attributes[:'prn']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'pulp_last_updated')
|
|
165
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
166
|
+
end
|
|
167
|
+
|
|
162
168
|
if attributes.key?(:'pulp_labels')
|
|
163
169
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
164
170
|
self.pulp_labels = value
|
|
@@ -169,8 +175,14 @@ module PulpContainerClient
|
|
|
169
175
|
self.pulp_href = attributes[:'pulp_href']
|
|
170
176
|
end
|
|
171
177
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
180
|
+
else
|
|
181
|
+
self.name = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'repository')
|
|
185
|
+
self.repository = attributes[:'repository']
|
|
174
186
|
end
|
|
175
187
|
|
|
176
188
|
if attributes.key?(:'no_content_change_since')
|
|
@@ -181,28 +193,16 @@ module PulpContainerClient
|
|
|
181
193
|
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
182
194
|
end
|
|
183
195
|
|
|
184
|
-
if attributes.key?(:'base_path')
|
|
185
|
-
self.base_path = attributes[:'base_path']
|
|
186
|
-
else
|
|
187
|
-
self.base_path = nil
|
|
188
|
-
end
|
|
189
|
-
|
|
190
196
|
if attributes.key?(:'repository_version')
|
|
191
197
|
self.repository_version = attributes[:'repository_version']
|
|
192
198
|
end
|
|
193
199
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
self.
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
if attributes.key?(:'pulp_last_updated')
|
|
199
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
200
|
+
if attributes.key?(:'pulp_created')
|
|
201
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
200
202
|
end
|
|
201
203
|
|
|
202
|
-
if attributes.key?(:'
|
|
203
|
-
self.
|
|
204
|
-
else
|
|
205
|
-
self.name = nil
|
|
204
|
+
if attributes.key?(:'content_guard')
|
|
205
|
+
self.content_guard = attributes[:'content_guard']
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
if attributes.key?(:'remote')
|
|
@@ -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
|
-
prn == o.prn &&
|
|
269
|
-
repository == o.repository &&
|
|
270
268
|
hidden == o.hidden &&
|
|
269
|
+
base_path == o.base_path &&
|
|
270
|
+
prn == o.prn &&
|
|
271
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
271
272
|
pulp_labels == o.pulp_labels &&
|
|
272
273
|
pulp_href == o.pulp_href &&
|
|
273
|
-
|
|
274
|
+
name == o.name &&
|
|
275
|
+
repository == o.repository &&
|
|
274
276
|
no_content_change_since == o.no_content_change_since &&
|
|
275
277
|
content_guard_prn == o.content_guard_prn &&
|
|
276
|
-
base_path == o.base_path &&
|
|
277
278
|
repository_version == o.repository_version &&
|
|
279
|
+
pulp_created == o.pulp_created &&
|
|
278
280
|
content_guard == o.content_guard &&
|
|
279
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
280
|
-
name == o.name &&
|
|
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
|
-
attr_accessor :pulp_labels
|
|
20
|
-
|
|
21
|
-
# An optional description.
|
|
22
|
-
attr_accessor :description
|
|
23
|
-
|
|
24
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
25
|
-
attr_accessor :retain_checkpoints
|
|
26
|
-
|
|
27
19
|
# A reference to an associated signing service.
|
|
28
20
|
attr_accessor :manifest_signing_service
|
|
29
21
|
|
|
30
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
31
23
|
attr_accessor :retain_repo_versions
|
|
32
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
33
27
|
# A unique name for this repository.
|
|
34
28
|
attr_accessor :name
|
|
35
29
|
|
|
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
|
-
:'pulp_labels' => :'pulp_labels',
|
|
40
|
-
:'description' => :'description',
|
|
41
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
42
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
43
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
44
|
-
:'
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'description' => :'description',
|
|
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
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
57
|
-
:'description' => :'String',
|
|
58
|
-
:'retain_checkpoints' => :'Integer',
|
|
59
56
|
:'manifest_signing_service' => :'String',
|
|
60
57
|
:'retain_repo_versions' => :'Integer',
|
|
61
|
-
:'
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'name' => :'String',
|
|
60
|
+
:'description' => :'String',
|
|
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
|
-
:'description',
|
|
69
|
-
:'retain_checkpoints',
|
|
70
68
|
:'manifest_signing_service',
|
|
71
69
|
:'retain_repo_versions',
|
|
70
|
+
:'description',
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,20 +87,6 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'pulp_labels')
|
|
91
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
|
-
self.pulp_labels = value
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'description')
|
|
97
|
-
self.description = attributes[:'description']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'retain_checkpoints')
|
|
101
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
102
|
-
end
|
|
103
|
-
|
|
104
90
|
if attributes.key?(:'manifest_signing_service')
|
|
105
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
106
92
|
end
|
|
@@ -109,11 +95,25 @@ module PulpContainerClient
|
|
|
109
95
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
110
96
|
end
|
|
111
97
|
|
|
98
|
+
if attributes.key?(:'pulp_labels')
|
|
99
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
100
|
+
self.pulp_labels = value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
112
104
|
if attributes.key?(:'name')
|
|
113
105
|
self.name = attributes[:'name']
|
|
114
106
|
else
|
|
115
107
|
self.name = nil
|
|
116
108
|
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'description')
|
|
111
|
+
self.description = attributes[:'description']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
|
+
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -121,14 +121,6 @@ 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 !@description.nil? && @description.to_s.length < 1
|
|
125
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
129
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
124
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
133
125
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
134
126
|
end
|
|
@@ -141,6 +133,14 @@ module PulpContainerClient
|
|
|
141
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
142
134
|
end
|
|
143
135
|
|
|
136
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
137
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
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
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -148,34 +148,14 @@ 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 !@description.nil? && @description.to_s.length < 1
|
|
152
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
153
151
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
154
152
|
return false if @name.nil?
|
|
155
153
|
return false if @name.to_s.length < 1
|
|
154
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
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] description Value to be assigned
|
|
161
|
-
def description=(description)
|
|
162
|
-
if !description.nil? && description.to_s.length < 1
|
|
163
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
@description = description
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
171
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
172
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
173
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
@retain_checkpoints = retain_checkpoints
|
|
177
|
-
end
|
|
178
|
-
|
|
179
159
|
# Custom attribute writer method with validation
|
|
180
160
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
181
161
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -200,17 +180,37 @@ module PulpContainerClient
|
|
|
200
180
|
@name = name
|
|
201
181
|
end
|
|
202
182
|
|
|
183
|
+
# Custom attribute writer method with validation
|
|
184
|
+
# @param [Object] description Value to be assigned
|
|
185
|
+
def description=(description)
|
|
186
|
+
if !description.nil? && description.to_s.length < 1
|
|
187
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
@description = description
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Custom attribute writer method with validation
|
|
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
|
+
end
|
|
199
|
+
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
pulp_labels == o.pulp_labels &&
|
|
209
|
-
description == o.description &&
|
|
210
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
211
208
|
manifest_signing_service == o.manifest_signing_service &&
|
|
212
209
|
retain_repo_versions == o.retain_repo_versions &&
|
|
213
|
-
|
|
210
|
+
pulp_labels == o.pulp_labels &&
|
|
211
|
+
name == o.name &&
|
|
212
|
+
description == o.description &&
|
|
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
|