pulp_container_client 2.29.0 → 2.29.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 +8 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/ContainerRepositorySyncURL.md +1 -1
- data/docs/ContentBlobsApi.md +4 -0
- data/docs/ContentManifestsApi.md +4 -0
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/ContentTagsApi.md +4 -0
- 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/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +53 -53
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +53 -53
- data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +71 -71
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/nested_role.rb +1 -1
- data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -52
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +2 -0
- data/spec/api/content_manifests_api_spec.rb +2 -0
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/content_tags_api_spec.rb +2 -0
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +6 -6
- 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
- metadata +59 -59
|
@@ -19,23 +19,23 @@ module PulpContainerClient
|
|
|
19
19
|
# RepositoryVersion to be served
|
|
20
20
|
attr_accessor :repository_version
|
|
21
21
|
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
# Whether this distribution should be shown in the content app.
|
|
25
|
-
attr_accessor :hidden
|
|
26
|
-
|
|
27
22
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
23
|
attr_accessor :name
|
|
29
24
|
|
|
30
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
26
|
attr_accessor :repository
|
|
32
27
|
|
|
28
|
+
# The registry path exposed by this pull-through distribution.
|
|
29
|
+
attr_accessor :base_path
|
|
30
|
+
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
# Whether this distribution should be shown in the content app.
|
|
34
|
+
attr_accessor :hidden
|
|
35
|
+
|
|
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
|
-
# 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
|
-
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
54
|
:'repository_version' => :'repository_version',
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'hidden' => :'hidden',
|
|
57
55
|
:'name' => :'name',
|
|
58
56
|
:'repository' => :'repository',
|
|
59
|
-
:'content_guard' => :'content_guard',
|
|
60
57
|
:'base_path' => :'base_path',
|
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
|
59
|
+
:'hidden' => :'hidden',
|
|
60
|
+
:'content_guard' => :'content_guard',
|
|
61
61
|
:'remote' => :'remote',
|
|
62
62
|
:'distributions' => :'distributions',
|
|
63
63
|
:'private' => :'private',
|
|
@@ -74,12 +74,12 @@ module PulpContainerClient
|
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
76
|
:'repository_version' => :'String',
|
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
78
|
-
:'hidden' => :'Boolean',
|
|
79
77
|
:'name' => :'String',
|
|
80
78
|
:'repository' => :'String',
|
|
81
|
-
:'content_guard' => :'String',
|
|
82
79
|
:'base_path' => :'String',
|
|
80
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
81
|
+
:'hidden' => :'Boolean',
|
|
82
|
+
:'content_guard' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -115,18 +115,6 @@ module PulpContainerClient
|
|
|
115
115
|
self.repository_version = attributes[:'repository_version']
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if attributes.key?(:'pulp_labels')
|
|
119
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
120
|
-
self.pulp_labels = value
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
if attributes.key?(:'hidden')
|
|
125
|
-
self.hidden = attributes[:'hidden']
|
|
126
|
-
else
|
|
127
|
-
self.hidden = false
|
|
128
|
-
end
|
|
129
|
-
|
|
130
118
|
if attributes.key?(:'name')
|
|
131
119
|
self.name = attributes[:'name']
|
|
132
120
|
else
|
|
@@ -137,16 +125,28 @@ module PulpContainerClient
|
|
|
137
125
|
self.repository = attributes[:'repository']
|
|
138
126
|
end
|
|
139
127
|
|
|
140
|
-
if attributes.key?(:'content_guard')
|
|
141
|
-
self.content_guard = attributes[:'content_guard']
|
|
142
|
-
end
|
|
143
|
-
|
|
144
128
|
if attributes.key?(:'base_path')
|
|
145
129
|
self.base_path = attributes[:'base_path']
|
|
146
130
|
else
|
|
147
131
|
self.base_path = nil
|
|
148
132
|
end
|
|
149
133
|
|
|
134
|
+
if attributes.key?(:'pulp_labels')
|
|
135
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
136
|
+
self.pulp_labels = value
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'hidden')
|
|
141
|
+
self.hidden = attributes[:'hidden']
|
|
142
|
+
else
|
|
143
|
+
self.hidden = false
|
|
144
|
+
end
|
|
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
|
|
@@ -257,12 +257,12 @@ module PulpContainerClient
|
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
259
|
repository_version == o.repository_version &&
|
|
260
|
-
pulp_labels == o.pulp_labels &&
|
|
261
|
-
hidden == o.hidden &&
|
|
262
260
|
name == o.name &&
|
|
263
261
|
repository == o.repository &&
|
|
264
|
-
content_guard == o.content_guard &&
|
|
265
262
|
base_path == o.base_path &&
|
|
263
|
+
pulp_labels == o.pulp_labels &&
|
|
264
|
+
hidden == o.hidden &&
|
|
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
|
-
[repository_version,
|
|
281
|
+
[repository_version, name, repository, base_path, pulp_labels, hidden, 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
|
@@ -19,36 +19,36 @@ module PulpContainerClient
|
|
|
19
19
|
# RepositoryVersion to be served
|
|
20
20
|
attr_accessor :repository_version
|
|
21
21
|
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
# Whether this distribution should be shown in the content app.
|
|
25
|
-
attr_accessor :hidden
|
|
26
|
-
|
|
27
22
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
23
|
attr_accessor :name
|
|
29
24
|
|
|
30
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
26
|
attr_accessor :repository
|
|
32
27
|
|
|
28
|
+
attr_accessor :pulp_href
|
|
29
|
+
|
|
33
30
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
34
31
|
attr_accessor :content_guard_prn
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
# The registry path exposed by this pull-through distribution.
|
|
34
|
+
attr_accessor :base_path
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
attr_accessor :content_guard
|
|
36
|
+
attr_accessor :pulp_labels
|
|
40
37
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
38
|
+
# Whether this distribution should be shown in the content app.
|
|
39
|
+
attr_accessor :hidden
|
|
43
40
|
|
|
44
41
|
# Timestamp of creation.
|
|
45
42
|
attr_accessor :pulp_created
|
|
46
43
|
|
|
44
|
+
# The Pulp Resource Name (PRN).
|
|
45
|
+
attr_accessor :prn
|
|
46
|
+
|
|
47
47
|
# 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.
|
|
48
48
|
attr_accessor :pulp_last_updated
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
50
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
51
|
+
attr_accessor :content_guard
|
|
52
52
|
|
|
53
53
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
54
54
|
attr_accessor :no_content_change_since
|
|
@@ -72,17 +72,17 @@ module PulpContainerClient
|
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
74
|
:'repository_version' => :'repository_version',
|
|
75
|
-
:'pulp_labels' => :'pulp_labels',
|
|
76
|
-
:'hidden' => :'hidden',
|
|
77
75
|
:'name' => :'name',
|
|
78
76
|
:'repository' => :'repository',
|
|
79
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
80
77
|
:'pulp_href' => :'pulp_href',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
78
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
79
|
+
:'base_path' => :'base_path',
|
|
80
|
+
:'pulp_labels' => :'pulp_labels',
|
|
81
|
+
:'hidden' => :'hidden',
|
|
83
82
|
:'pulp_created' => :'pulp_created',
|
|
83
|
+
:'prn' => :'prn',
|
|
84
84
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
85
|
-
:'
|
|
85
|
+
:'content_guard' => :'content_guard',
|
|
86
86
|
:'no_content_change_since' => :'no_content_change_since',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
@@ -101,17 +101,17 @@ module PulpContainerClient
|
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
103
|
:'repository_version' => :'String',
|
|
104
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
105
|
-
:'hidden' => :'Boolean',
|
|
106
104
|
:'name' => :'String',
|
|
107
105
|
:'repository' => :'String',
|
|
108
|
-
:'content_guard_prn' => :'String',
|
|
109
106
|
:'pulp_href' => :'String',
|
|
110
|
-
:'
|
|
111
|
-
:'
|
|
107
|
+
:'content_guard_prn' => :'String',
|
|
108
|
+
:'base_path' => :'String',
|
|
109
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
110
|
+
:'hidden' => :'Boolean',
|
|
112
111
|
:'pulp_created' => :'Time',
|
|
112
|
+
:'prn' => :'String',
|
|
113
113
|
:'pulp_last_updated' => :'Time',
|
|
114
|
-
:'
|
|
114
|
+
:'content_guard' => :'String',
|
|
115
115
|
:'no_content_change_since' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
@@ -149,18 +149,6 @@ module PulpContainerClient
|
|
|
149
149
|
self.repository_version = attributes[:'repository_version']
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
if attributes.key?(:'pulp_labels')
|
|
153
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
154
|
-
self.pulp_labels = value
|
|
155
|
-
end
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if attributes.key?(:'hidden')
|
|
159
|
-
self.hidden = attributes[:'hidden']
|
|
160
|
-
else
|
|
161
|
-
self.hidden = false
|
|
162
|
-
end
|
|
163
|
-
|
|
164
152
|
if attributes.key?(:'name')
|
|
165
153
|
self.name = attributes[:'name']
|
|
166
154
|
else
|
|
@@ -171,34 +159,46 @@ module PulpContainerClient
|
|
|
171
159
|
self.repository = attributes[:'repository']
|
|
172
160
|
end
|
|
173
161
|
|
|
162
|
+
if attributes.key?(:'pulp_href')
|
|
163
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
164
|
+
end
|
|
165
|
+
|
|
174
166
|
if attributes.key?(:'content_guard_prn')
|
|
175
167
|
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
176
168
|
end
|
|
177
169
|
|
|
178
|
-
if attributes.key?(:'
|
|
179
|
-
self.
|
|
170
|
+
if attributes.key?(:'base_path')
|
|
171
|
+
self.base_path = attributes[:'base_path']
|
|
172
|
+
else
|
|
173
|
+
self.base_path = nil
|
|
180
174
|
end
|
|
181
175
|
|
|
182
|
-
if attributes.key?(:'
|
|
183
|
-
|
|
176
|
+
if attributes.key?(:'pulp_labels')
|
|
177
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
178
|
+
self.pulp_labels = value
|
|
179
|
+
end
|
|
184
180
|
end
|
|
185
181
|
|
|
186
|
-
if attributes.key?(:'
|
|
187
|
-
self.
|
|
182
|
+
if attributes.key?(:'hidden')
|
|
183
|
+
self.hidden = attributes[:'hidden']
|
|
184
|
+
else
|
|
185
|
+
self.hidden = false
|
|
188
186
|
end
|
|
189
187
|
|
|
190
188
|
if attributes.key?(:'pulp_created')
|
|
191
189
|
self.pulp_created = attributes[:'pulp_created']
|
|
192
190
|
end
|
|
193
191
|
|
|
192
|
+
if attributes.key?(:'prn')
|
|
193
|
+
self.prn = attributes[:'prn']
|
|
194
|
+
end
|
|
195
|
+
|
|
194
196
|
if attributes.key?(:'pulp_last_updated')
|
|
195
197
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
196
198
|
end
|
|
197
199
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
self.
|
|
200
|
-
else
|
|
201
|
-
self.base_path = nil
|
|
200
|
+
if attributes.key?(:'content_guard')
|
|
201
|
+
self.content_guard = attributes[:'content_guard']
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
if attributes.key?(:'no_content_change_since')
|
|
@@ -266,17 +266,17 @@ module PulpContainerClient
|
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
268
|
repository_version == o.repository_version &&
|
|
269
|
-
pulp_labels == o.pulp_labels &&
|
|
270
|
-
hidden == o.hidden &&
|
|
271
269
|
name == o.name &&
|
|
272
270
|
repository == o.repository &&
|
|
273
|
-
content_guard_prn == o.content_guard_prn &&
|
|
274
271
|
pulp_href == o.pulp_href &&
|
|
275
|
-
|
|
276
|
-
|
|
272
|
+
content_guard_prn == o.content_guard_prn &&
|
|
273
|
+
base_path == o.base_path &&
|
|
274
|
+
pulp_labels == o.pulp_labels &&
|
|
275
|
+
hidden == o.hidden &&
|
|
277
276
|
pulp_created == o.pulp_created &&
|
|
277
|
+
prn == o.prn &&
|
|
278
278
|
pulp_last_updated == o.pulp_last_updated &&
|
|
279
|
-
|
|
279
|
+
content_guard == o.content_guard &&
|
|
280
280
|
no_content_change_since == o.no_content_change_since &&
|
|
281
281
|
remote == o.remote &&
|
|
282
282
|
distributions == o.distributions &&
|
|
@@ -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
|
-
[repository_version,
|
|
297
|
+
[repository_version, name, repository, pulp_href, content_guard_prn, base_path, pulp_labels, hidden, pulp_created, prn, pulp_last_updated, content_guard, no_content_change_since, 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
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# A unique name for this repository.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# A reference to an associated signing service.
|
|
23
|
+
attr_accessor :manifest_signing_service
|
|
21
24
|
|
|
22
25
|
attr_accessor :pulp_labels
|
|
23
26
|
|
|
27
|
+
# An optional description.
|
|
28
|
+
attr_accessor :description
|
|
29
|
+
|
|
24
30
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
31
|
attr_accessor :retain_repo_versions
|
|
26
32
|
|
|
27
|
-
# A unique name for this repository.
|
|
28
|
-
attr_accessor :name
|
|
29
|
-
|
|
30
33
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
34
|
attr_accessor :retain_checkpoints
|
|
32
35
|
|
|
33
|
-
# A reference to an associated signing service.
|
|
34
|
-
attr_accessor :manifest_signing_service
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
39
|
+
:'name' => :'name',
|
|
40
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
41
|
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'description' => :'description',
|
|
41
43
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
|
-
:'
|
|
43
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
44
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
|
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
|
-
:'
|
|
56
|
+
:'name' => :'String',
|
|
57
|
+
:'manifest_signing_service' => :'String',
|
|
57
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'description' => :'String',
|
|
58
60
|
:'retain_repo_versions' => :'Integer',
|
|
59
|
-
:'
|
|
60
|
-
:'retain_checkpoints' => :'Integer',
|
|
61
|
-
:'manifest_signing_service' => :'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
|
+
:'manifest_signing_service',
|
|
68
69
|
:'description',
|
|
69
70
|
:'retain_repo_versions',
|
|
70
|
-
:'retain_checkpoints'
|
|
71
|
-
:'manifest_signing_service'
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,8 +87,14 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
90
|
+
if attributes.key?(:'name')
|
|
91
|
+
self.name = attributes[:'name']
|
|
92
|
+
else
|
|
93
|
+
self.name = nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
98
|
end
|
|
93
99
|
|
|
94
100
|
if attributes.key?(:'pulp_labels')
|
|
@@ -97,23 +103,17 @@ module PulpContainerClient
|
|
|
97
103
|
end
|
|
98
104
|
end
|
|
99
105
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
106
|
+
if attributes.key?(:'description')
|
|
107
|
+
self.description = attributes[:'description']
|
|
102
108
|
end
|
|
103
109
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
106
|
-
else
|
|
107
|
-
self.name = nil
|
|
110
|
+
if attributes.key?(:'retain_repo_versions')
|
|
111
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
108
112
|
end
|
|
109
113
|
|
|
110
114
|
if attributes.key?(:'retain_checkpoints')
|
|
111
115
|
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
112
116
|
end
|
|
113
|
-
|
|
114
|
-
if attributes.key?(:'manifest_signing_service')
|
|
115
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
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_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
124
|
if @name.nil?
|
|
133
125
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
134
126
|
end
|
|
@@ -137,6 +129,14 @@ module PulpContainerClient
|
|
|
137
129
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
138
130
|
end
|
|
139
131
|
|
|
132
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
133
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
137
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
140
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
141
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
142
|
end
|
|
@@ -148,14 +148,28 @@ 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_repo_versions.nil? && @retain_repo_versions < 1
|
|
153
151
|
return false if @name.nil?
|
|
154
152
|
return false if @name.to_s.length < 1
|
|
153
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
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] name Value to be assigned
|
|
161
|
+
def name=(name)
|
|
162
|
+
if name.nil?
|
|
163
|
+
fail ArgumentError, 'name cannot be nil'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if name.to_s.length < 1
|
|
167
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
@name = name
|
|
171
|
+
end
|
|
172
|
+
|
|
159
173
|
# Custom attribute writer method with validation
|
|
160
174
|
# @param [Object] description Value to be assigned
|
|
161
175
|
def description=(description)
|
|
@@ -176,20 +190,6 @@ module PulpContainerClient
|
|
|
176
190
|
@retain_repo_versions = retain_repo_versions
|
|
177
191
|
end
|
|
178
192
|
|
|
179
|
-
# Custom attribute writer method with validation
|
|
180
|
-
# @param [Object] name Value to be assigned
|
|
181
|
-
def name=(name)
|
|
182
|
-
if name.nil?
|
|
183
|
-
fail ArgumentError, 'name cannot be nil'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if name.to_s.length < 1
|
|
187
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
@name = name
|
|
191
|
-
end
|
|
192
|
-
|
|
193
193
|
# Custom attribute writer method with validation
|
|
194
194
|
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
195
|
def retain_checkpoints=(retain_checkpoints)
|
|
@@ -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
|
-
|
|
208
|
+
name == o.name &&
|
|
209
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
209
210
|
pulp_labels == o.pulp_labels &&
|
|
211
|
+
description == o.description &&
|
|
210
212
|
retain_repo_versions == o.retain_repo_versions &&
|
|
211
|
-
|
|
212
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
213
|
-
manifest_signing_service == o.manifest_signing_service
|
|
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
|
+
[name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|