pulp_container_client 2.27.3 → 2.27.4
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 -12
- data/docs/ContainerContainerPullThroughDistribution.md +8 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -12
- data/docs/ContainerContainerPushRepository.md +8 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -14
- data/docs/ContainerContainerRepository.md +2 -0
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -6
- data/docs/PatchedcontainerContainerPushRepository.md +8 -6
- 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 +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +73 -63
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +45 -34
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -61
- data/lib/pulp_container_client/models/container_container_push_repository.rb +60 -34
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +86 -60
- 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 +34 -34
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +43 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +58 -32
- 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 +12 -6
- 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 +12 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- metadata +59 -59
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -16,14 +16,6 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
-
attr_accessor :pulp_labels
|
|
20
|
-
|
|
21
|
-
# Whether this distribution should be shown in the content app.
|
|
22
|
-
attr_accessor :hidden
|
|
23
|
-
|
|
24
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
25
|
-
attr_accessor :repository
|
|
26
|
-
|
|
27
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\")
|
|
28
20
|
attr_accessor :base_path
|
|
29
21
|
|
|
@@ -33,6 +25,17 @@ module PulpContainerClient
|
|
|
33
25
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
26
|
attr_accessor :content_guard
|
|
35
27
|
|
|
28
|
+
attr_accessor :pulp_labels
|
|
29
|
+
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
32
|
+
|
|
33
|
+
# RepositoryVersion to be served
|
|
34
|
+
attr_accessor :repository_version
|
|
35
|
+
|
|
36
|
+
# Whether this distribution should be shown in the content app.
|
|
37
|
+
attr_accessor :hidden
|
|
38
|
+
|
|
36
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
37
40
|
attr_accessor :remote
|
|
38
41
|
|
|
@@ -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
|
{
|
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
|
52
|
-
:'hidden' => :'hidden',
|
|
53
|
-
:'repository' => :'repository',
|
|
54
54
|
:'base_path' => :'base_path',
|
|
55
55
|
:'name' => :'name',
|
|
56
56
|
:'content_guard' => :'content_guard',
|
|
57
|
+
:'pulp_labels' => :'pulp_labels',
|
|
58
|
+
:'repository' => :'repository',
|
|
59
|
+
:'repository_version' => :'repository_version',
|
|
60
|
+
:'hidden' => :'hidden',
|
|
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
|
{
|
|
72
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
73
|
-
:'hidden' => :'Boolean',
|
|
74
|
-
:'repository' => :'String',
|
|
75
76
|
:'base_path' => :'String',
|
|
76
77
|
:'name' => :'String',
|
|
77
78
|
:'content_guard' => :'String',
|
|
79
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
80
|
+
:'repository' => :'String',
|
|
81
|
+
:'repository_version' => :'String',
|
|
82
|
+
:'hidden' => :'Boolean',
|
|
78
83
|
:'remote' => :'String',
|
|
79
84
|
:'distributions' => :'Array<String>',
|
|
80
85
|
:'private' => :'Boolean',
|
|
@@ -86,6 +91,7 @@ module PulpContainerClient
|
|
|
86
91
|
def self.openapi_nullable
|
|
87
92
|
Set.new([
|
|
88
93
|
:'repository',
|
|
94
|
+
:'repository_version',
|
|
89
95
|
:'description'
|
|
90
96
|
])
|
|
91
97
|
end
|
|
@@ -105,32 +111,36 @@ 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
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'content_guard')
|
|
123
|
+
self.content_guard = attributes[:'content_guard']
|
|
124
|
+
end
|
|
125
|
+
|
|
108
126
|
if attributes.key?(:'pulp_labels')
|
|
109
127
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
128
|
self.pulp_labels = value
|
|
111
129
|
end
|
|
112
130
|
end
|
|
113
131
|
|
|
114
|
-
if attributes.key?(:'hidden')
|
|
115
|
-
self.hidden = attributes[:'hidden']
|
|
116
|
-
else
|
|
117
|
-
self.hidden = false
|
|
118
|
-
end
|
|
119
|
-
|
|
120
132
|
if attributes.key?(:'repository')
|
|
121
133
|
self.repository = attributes[:'repository']
|
|
122
134
|
end
|
|
123
135
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'name')
|
|
129
|
-
self.name = attributes[:'name']
|
|
136
|
+
if attributes.key?(:'repository_version')
|
|
137
|
+
self.repository_version = attributes[:'repository_version']
|
|
130
138
|
end
|
|
131
139
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
140
|
+
if attributes.key?(:'hidden')
|
|
141
|
+
self.hidden = attributes[:'hidden']
|
|
142
|
+
else
|
|
143
|
+
self.hidden = false
|
|
134
144
|
end
|
|
135
145
|
|
|
136
146
|
if attributes.key?(:'remote')
|
|
@@ -225,12 +235,13 @@ module PulpContainerClient
|
|
|
225
235
|
def ==(o)
|
|
226
236
|
return true if self.equal?(o)
|
|
227
237
|
self.class == o.class &&
|
|
228
|
-
pulp_labels == o.pulp_labels &&
|
|
229
|
-
hidden == o.hidden &&
|
|
230
|
-
repository == o.repository &&
|
|
231
238
|
base_path == o.base_path &&
|
|
232
239
|
name == o.name &&
|
|
233
240
|
content_guard == o.content_guard &&
|
|
241
|
+
pulp_labels == o.pulp_labels &&
|
|
242
|
+
repository == o.repository &&
|
|
243
|
+
repository_version == o.repository_version &&
|
|
244
|
+
hidden == o.hidden &&
|
|
234
245
|
remote == o.remote &&
|
|
235
246
|
distributions == o.distributions &&
|
|
236
247
|
private == o.private &&
|
|
@@ -246,7 +257,7 @@ module PulpContainerClient
|
|
|
246
257
|
# Calculates hash code according to all attributes.
|
|
247
258
|
# @return [Integer] Hash code
|
|
248
259
|
def hash
|
|
249
|
-
[
|
|
260
|
+
[base_path, name, content_guard, pulp_labels, repository, repository_version, hidden, remote, distributions, private, description].hash
|
|
250
261
|
end
|
|
251
262
|
|
|
252
263
|
# Builds the object from hash
|
|
@@ -16,28 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
|
|
19
|
+
# A unique name for this repository.
|
|
20
|
+
attr_accessor :name
|
|
20
21
|
|
|
21
22
|
# A reference to an associated signing service.
|
|
22
23
|
attr_accessor :manifest_signing_service
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# An optional description.
|
|
28
|
+
attr_accessor :description
|
|
26
29
|
|
|
27
30
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
31
|
attr_accessor :retain_repo_versions
|
|
29
32
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
33
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
|
+
attr_accessor :retain_checkpoints
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
36
|
-
:'pulp_labels' => :'pulp_labels',
|
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
39
|
:'name' => :'name',
|
|
40
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'description' => :'description',
|
|
39
43
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
40
|
-
:'
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -49,11 +53,12 @@ module PulpContainerClient
|
|
|
49
53
|
# Attribute type mapping.
|
|
50
54
|
def self.openapi_types
|
|
51
55
|
{
|
|
52
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
53
|
-
:'manifest_signing_service' => :'String',
|
|
54
56
|
:'name' => :'String',
|
|
57
|
+
:'manifest_signing_service' => :'String',
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'description' => :'String',
|
|
55
60
|
:'retain_repo_versions' => :'Integer',
|
|
56
|
-
:'
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
@@ -61,8 +66,9 @@ module PulpContainerClient
|
|
|
61
66
|
def self.openapi_nullable
|
|
62
67
|
Set.new([
|
|
63
68
|
:'manifest_signing_service',
|
|
69
|
+
:'description',
|
|
64
70
|
:'retain_repo_versions',
|
|
65
|
-
:'
|
|
71
|
+
:'retain_checkpoints'
|
|
66
72
|
])
|
|
67
73
|
end
|
|
68
74
|
|
|
@@ -81,26 +87,30 @@ module PulpContainerClient
|
|
|
81
87
|
h[k.to_sym] = v
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
|
|
86
|
-
self.pulp_labels = value
|
|
87
|
-
end
|
|
90
|
+
if attributes.key?(:'name')
|
|
91
|
+
self.name = attributes[:'name']
|
|
88
92
|
end
|
|
89
93
|
|
|
90
94
|
if attributes.key?(:'manifest_signing_service')
|
|
91
95
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
96
|
end
|
|
93
97
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
|
|
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
|
+
|
|
104
|
+
if attributes.key?(:'description')
|
|
105
|
+
self.description = attributes[:'description']
|
|
96
106
|
end
|
|
97
107
|
|
|
98
108
|
if attributes.key?(:'retain_repo_versions')
|
|
99
109
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
100
110
|
end
|
|
101
111
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
112
|
+
if attributes.key?(:'retain_checkpoints')
|
|
113
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
104
114
|
end
|
|
105
115
|
end
|
|
106
116
|
|
|
@@ -113,12 +123,16 @@ module PulpContainerClient
|
|
|
113
123
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
114
124
|
end
|
|
115
125
|
|
|
126
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
127
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
128
|
+
end
|
|
129
|
+
|
|
116
130
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
117
131
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
118
132
|
end
|
|
119
133
|
|
|
120
|
-
if !@
|
|
121
|
-
invalid_properties.push('invalid value for "
|
|
134
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
135
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
122
136
|
end
|
|
123
137
|
|
|
124
138
|
invalid_properties
|
|
@@ -129,8 +143,9 @@ module PulpContainerClient
|
|
|
129
143
|
def valid?
|
|
130
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
145
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
132
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
133
146
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
147
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
148
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
134
149
|
true
|
|
135
150
|
end
|
|
136
151
|
|
|
@@ -148,6 +163,16 @@ module PulpContainerClient
|
|
|
148
163
|
@name = name
|
|
149
164
|
end
|
|
150
165
|
|
|
166
|
+
# Custom attribute writer method with validation
|
|
167
|
+
# @param [Object] description Value to be assigned
|
|
168
|
+
def description=(description)
|
|
169
|
+
if !description.nil? && description.to_s.length < 1
|
|
170
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
@description = description
|
|
174
|
+
end
|
|
175
|
+
|
|
151
176
|
# Custom attribute writer method with validation
|
|
152
177
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
153
178
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -159,13 +184,13 @@ module PulpContainerClient
|
|
|
159
184
|
end
|
|
160
185
|
|
|
161
186
|
# Custom attribute writer method with validation
|
|
162
|
-
# @param [Object]
|
|
163
|
-
def
|
|
164
|
-
if !
|
|
165
|
-
fail ArgumentError, 'invalid value for "
|
|
187
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
188
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
189
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
166
191
|
end
|
|
167
192
|
|
|
168
|
-
@
|
|
193
|
+
@retain_checkpoints = retain_checkpoints
|
|
169
194
|
end
|
|
170
195
|
|
|
171
196
|
# Checks equality by comparing each attribute.
|
|
@@ -173,11 +198,12 @@ module PulpContainerClient
|
|
|
173
198
|
def ==(o)
|
|
174
199
|
return true if self.equal?(o)
|
|
175
200
|
self.class == o.class &&
|
|
176
|
-
pulp_labels == o.pulp_labels &&
|
|
177
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
178
201
|
name == o.name &&
|
|
202
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
203
|
+
pulp_labels == o.pulp_labels &&
|
|
204
|
+
description == o.description &&
|
|
179
205
|
retain_repo_versions == o.retain_repo_versions &&
|
|
180
|
-
|
|
206
|
+
retain_checkpoints == o.retain_checkpoints
|
|
181
207
|
end
|
|
182
208
|
|
|
183
209
|
# @see the `==` method
|
|
@@ -189,7 +215,7 @@ module PulpContainerClient
|
|
|
189
215
|
# Calculates hash code according to all attributes.
|
|
190
216
|
# @return [Integer] Hash code
|
|
191
217
|
def hash
|
|
192
|
-
[
|
|
218
|
+
[name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
|
|
193
219
|
end
|
|
194
220
|
|
|
195
221
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpContainerClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -40,6 +43,7 @@ module PulpContainerClient
|
|
|
40
43
|
:'name' => :'name',
|
|
41
44
|
:'description' => :'description',
|
|
42
45
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
46
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
47
|
:'remote' => :'remote',
|
|
44
48
|
:'manifest_signing_service' => :'manifest_signing_service'
|
|
45
49
|
}
|
|
@@ -57,6 +61,7 @@ module PulpContainerClient
|
|
|
57
61
|
:'name' => :'String',
|
|
58
62
|
:'description' => :'String',
|
|
59
63
|
:'retain_repo_versions' => :'Integer',
|
|
64
|
+
:'retain_checkpoints' => :'Integer',
|
|
60
65
|
:'remote' => :'String',
|
|
61
66
|
:'manifest_signing_service' => :'String'
|
|
62
67
|
}
|
|
@@ -67,6 +72,7 @@ module PulpContainerClient
|
|
|
67
72
|
Set.new([
|
|
68
73
|
:'description',
|
|
69
74
|
:'retain_repo_versions',
|
|
75
|
+
:'retain_checkpoints',
|
|
70
76
|
:'remote',
|
|
71
77
|
:'manifest_signing_service'
|
|
72
78
|
])
|
|
@@ -105,6 +111,10 @@ module PulpContainerClient
|
|
|
105
111
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
106
112
|
end
|
|
107
113
|
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
|
+
end
|
|
117
|
+
|
|
108
118
|
if attributes.key?(:'remote')
|
|
109
119
|
self.remote = attributes[:'remote']
|
|
110
120
|
end
|
|
@@ -131,6 +141,10 @@ module PulpContainerClient
|
|
|
131
141
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
132
142
|
end
|
|
133
143
|
|
|
144
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
145
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
146
|
+
end
|
|
147
|
+
|
|
134
148
|
invalid_properties
|
|
135
149
|
end
|
|
136
150
|
|
|
@@ -141,6 +155,7 @@ module PulpContainerClient
|
|
|
141
155
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
142
156
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
143
157
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
158
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
144
159
|
true
|
|
145
160
|
end
|
|
146
161
|
|
|
@@ -178,6 +193,16 @@ module PulpContainerClient
|
|
|
178
193
|
@retain_repo_versions = retain_repo_versions
|
|
179
194
|
end
|
|
180
195
|
|
|
196
|
+
# Custom attribute writer method with validation
|
|
197
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
198
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
199
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
200
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
@retain_checkpoints = retain_checkpoints
|
|
204
|
+
end
|
|
205
|
+
|
|
181
206
|
# Checks equality by comparing each attribute.
|
|
182
207
|
# @param [Object] Object to be compared
|
|
183
208
|
def ==(o)
|
|
@@ -187,6 +212,7 @@ module PulpContainerClient
|
|
|
187
212
|
name == o.name &&
|
|
188
213
|
description == o.description &&
|
|
189
214
|
retain_repo_versions == o.retain_repo_versions &&
|
|
215
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
190
216
|
remote == o.remote &&
|
|
191
217
|
manifest_signing_service == o.manifest_signing_service
|
|
192
218
|
end
|
|
@@ -200,7 +226,7 @@ module PulpContainerClient
|
|
|
200
226
|
# Calculates hash code according to all attributes.
|
|
201
227
|
# @return [Integer] Hash code
|
|
202
228
|
def hash
|
|
203
|
-
[pulp_labels, name, description, retain_repo_versions, remote, manifest_signing_service].hash
|
|
229
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, manifest_signing_service].hash
|
|
204
230
|
end
|
|
205
231
|
|
|
206
232
|
# Builds the object from hash
|
|
@@ -148,13 +148,21 @@ describe 'RepositoriesContainerApi' do
|
|
|
148
148
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
149
149
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
150
150
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
151
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
151
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
152
152
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
153
153
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
154
154
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
155
155
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
156
156
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
157
157
|
# @option opts [String] :remote
|
|
158
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
159
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
160
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
161
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
162
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
163
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
164
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
165
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
158
166
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
159
167
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
160
168
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -63,13 +63,21 @@ describe 'RepositoriesContainerPushApi' do
|
|
|
63
63
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
64
64
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
65
65
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
66
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
66
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `retain_checkpoints` - Retain checkpoints * `-retain_checkpoints` - Retain checkpoints (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
67
67
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
68
68
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
69
69
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
70
70
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
71
71
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
72
72
|
# @option opts [String] :remote
|
|
73
|
+
# @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
|
|
74
|
+
# @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
|
|
75
|
+
# @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
|
|
76
|
+
# @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
|
|
77
|
+
# @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
|
|
78
|
+
# @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
|
|
79
|
+
# @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
|
|
80
|
+
# @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
|
|
73
81
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
|
74
82
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
|
75
83
|
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
|
@@ -27,67 +27,67 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "no_content_change_since"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "prn"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "base_path"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "name"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "content_guard"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "content_guard_prn"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "pulp_labels"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
describe 'test attribute "
|
|
72
|
+
describe 'test attribute "pulp_href"' do
|
|
73
73
|
it 'should work' do
|
|
74
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
describe 'test attribute "
|
|
78
|
+
describe 'test attribute "pulp_created"' do
|
|
79
79
|
it 'should work' do
|
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
describe 'test attribute "
|
|
84
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
85
85
|
it 'should work' do
|
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "repository"' do
|
|
91
91
|
it 'should work' do
|
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
93
|
end
|
|
@@ -99,6 +99,12 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
describe 'test attribute "hidden"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
102
108
|
describe 'test attribute "registry_path"' do
|
|
103
109
|
it 'should work' do
|
|
104
110
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -27,43 +27,43 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "base_path"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "name"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "content_guard"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "pulp_labels"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "repository"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "repository_version"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "hidden"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|