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