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
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -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 PatchedcontainerContainerPullThroughDistribution
|
|
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,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
|
+
|
|
108
118
|
if attributes.key?(:'pulp_labels')
|
|
109
119
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
120
|
self.pulp_labels = value
|
|
111
121
|
end
|
|
112
122
|
end
|
|
113
123
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
116
|
-
else
|
|
117
|
-
self.hidden = false
|
|
124
|
+
if attributes.key?(:'repository_version')
|
|
125
|
+
self.repository_version = attributes[:'repository_version']
|
|
118
126
|
end
|
|
119
127
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
128
|
+
if attributes.key?(:'content_guard')
|
|
129
|
+
self.content_guard = attributes[:'content_guard']
|
|
122
130
|
end
|
|
123
131
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
132
|
+
if attributes.key?(:'hidden')
|
|
133
|
+
self.hidden = attributes[:'hidden']
|
|
134
|
+
else
|
|
135
|
+
self.hidden = false
|
|
126
136
|
end
|
|
127
137
|
|
|
128
138
|
if attributes.key?(:'name')
|
|
129
139
|
self.name = attributes[:'name']
|
|
130
140
|
end
|
|
131
141
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
142
|
+
if attributes.key?(:'repository')
|
|
143
|
+
self.repository = attributes[:'repository']
|
|
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 &&
|
|
238
|
+
base_path == o.base_path &&
|
|
228
239
|
pulp_labels == o.pulp_labels &&
|
|
240
|
+
repository_version == o.repository_version &&
|
|
241
|
+
content_guard == o.content_guard &&
|
|
229
242
|
hidden == o.hidden &&
|
|
230
|
-
repository == o.repository &&
|
|
231
|
-
base_path == o.base_path &&
|
|
232
243
|
name == o.name &&
|
|
233
|
-
|
|
244
|
+
repository == o.repository &&
|
|
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
|
-
[pulp_labels,
|
|
260
|
+
[base_path, pulp_labels, repository_version, content_guard, hidden, name, repository, remote, distributions, private, description].hash
|
|
250
261
|
end
|
|
251
262
|
|
|
252
263
|
# 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 PatchedcontainerContainerPushRepository
|
|
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
|
|
@@ -95,10 +109,6 @@ module PulpContainerClient
|
|
|
95
109
|
self.name = attributes[:'name']
|
|
96
110
|
end
|
|
97
111
|
|
|
98
|
-
if attributes.key?(:'retain_repo_versions')
|
|
99
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
100
|
-
end
|
|
101
|
-
|
|
102
112
|
if attributes.key?(:'description')
|
|
103
113
|
self.description = attributes[:'description']
|
|
104
114
|
end
|
|
@@ -109,14 +119,18 @@ module PulpContainerClient
|
|
|
109
119
|
def list_invalid_properties
|
|
110
120
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
111
121
|
invalid_properties = Array.new
|
|
112
|
-
if !@
|
|
113
|
-
invalid_properties.push('invalid value for "
|
|
122
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
123
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
114
124
|
end
|
|
115
125
|
|
|
116
126
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
117
127
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
118
128
|
end
|
|
119
129
|
|
|
130
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
131
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
132
|
+
end
|
|
133
|
+
|
|
120
134
|
if !@description.nil? && @description.to_s.length < 1
|
|
121
135
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
122
136
|
end
|
|
@@ -128,24 +142,21 @@ module PulpContainerClient
|
|
|
128
142
|
# @return true if the model is valid
|
|
129
143
|
def valid?
|
|
130
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
|
-
return false if !@
|
|
145
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
132
146
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
147
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
133
148
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
134
149
|
true
|
|
135
150
|
end
|
|
136
151
|
|
|
137
152
|
# Custom attribute writer method with validation
|
|
138
|
-
# @param [Object]
|
|
139
|
-
def
|
|
140
|
-
if
|
|
141
|
-
fail ArgumentError, '
|
|
153
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
154
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
155
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
156
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
142
157
|
end
|
|
143
158
|
|
|
144
|
-
|
|
145
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
@name = name
|
|
159
|
+
@retain_checkpoints = retain_checkpoints
|
|
149
160
|
end
|
|
150
161
|
|
|
151
162
|
# Custom attribute writer method with validation
|
|
@@ -158,6 +169,20 @@ module PulpContainerClient
|
|
|
158
169
|
@retain_repo_versions = retain_repo_versions
|
|
159
170
|
end
|
|
160
171
|
|
|
172
|
+
# Custom attribute writer method with validation
|
|
173
|
+
# @param [Object] name Value to be assigned
|
|
174
|
+
def name=(name)
|
|
175
|
+
if name.nil?
|
|
176
|
+
fail ArgumentError, 'name cannot be nil'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if name.to_s.length < 1
|
|
180
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
@name = name
|
|
184
|
+
end
|
|
185
|
+
|
|
161
186
|
# Custom attribute writer method with validation
|
|
162
187
|
# @param [Object] description Value to be assigned
|
|
163
188
|
def description=(description)
|
|
@@ -173,10 +198,11 @@ module PulpContainerClient
|
|
|
173
198
|
def ==(o)
|
|
174
199
|
return true if self.equal?(o)
|
|
175
200
|
self.class == o.class &&
|
|
201
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
176
202
|
pulp_labels == o.pulp_labels &&
|
|
203
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
177
204
|
manifest_signing_service == o.manifest_signing_service &&
|
|
178
205
|
name == o.name &&
|
|
179
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
180
206
|
description == o.description
|
|
181
207
|
end
|
|
182
208
|
|
|
@@ -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
|
-
[pulp_labels, manifest_signing_service, name,
|
|
218
|
+
[retain_checkpoints, pulp_labels, retain_repo_versions, manifest_signing_service, name, description].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,55 +27,55 @@ describe PulpContainerClient::ContainerContainerDistributionResponse 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 "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 "pulp_last_updated"' 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 "pulp_created"' 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 "no_content_change_since"' 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 "content_guard"' 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 "hidden"' 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
|
|
@@ -87,13 +87,19 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "pulp_href"' 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
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
describe 'test attribute "
|
|
96
|
+
describe 'test attribute "repository"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'test attribute "content_guard_prn"' do
|
|
97
103
|
it 'should work' do
|
|
98
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
105
|
end
|
|
@@ -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 "pulp_labels"' 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 "repository_version"' 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 "content_guard"' 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 "hidden"' 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 "name"' 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 "repository"' 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
|