pulp_container_client 2.27.2 → 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 +29 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +63 -53
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +39 -28
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +73 -52
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +81 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +100 -59
- data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +42 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +42 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +27 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +77 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +42 -1
- data/lib/pulp_container_client/models/set_label.rb +0 -11
- data/lib/pulp_container_client/models/set_label_response.rb +0 -21
- data/lib/pulp_container_client/models/unset_label.rb +0 -11
- data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
- 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 +16 -10
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +21 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +12 -6
- data/spec/models/container_container_push_repository_response_spec.rb +16 -10
- data/spec/models/container_container_push_repository_spec.rb +10 -4
- 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 +10 -4
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- metadata +60 -60
|
@@ -16,49 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# The Pulp Resource Name (PRN).
|
|
20
|
+
attr_accessor :prn
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
attr_accessor :pulp_created
|
|
22
|
+
attr_accessor :latest_version_href
|
|
24
23
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
24
|
+
# A unique name for this repository.
|
|
25
|
+
attr_accessor :name
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
27
|
+
# A reference to an associated signing service.
|
|
28
|
+
attr_accessor :manifest_signing_service
|
|
30
29
|
|
|
31
30
|
attr_accessor :versions_href
|
|
32
31
|
|
|
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
|
|
35
|
-
|
|
36
32
|
attr_accessor :pulp_labels
|
|
37
33
|
|
|
38
34
|
attr_accessor :pulp_href
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
# Timestamp of creation.
|
|
37
|
+
attr_accessor :pulp_created
|
|
41
38
|
|
|
42
|
-
#
|
|
43
|
-
attr_accessor :
|
|
39
|
+
# 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.
|
|
40
|
+
attr_accessor :pulp_last_updated
|
|
44
41
|
|
|
45
|
-
#
|
|
46
|
-
attr_accessor :
|
|
42
|
+
# An optional description.
|
|
43
|
+
attr_accessor :description
|
|
44
|
+
|
|
45
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
46
|
+
attr_accessor :retain_repo_versions
|
|
47
|
+
|
|
48
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
49
|
+
attr_accessor :retain_checkpoints
|
|
47
50
|
|
|
48
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
52
|
def self.attribute_map
|
|
50
53
|
{
|
|
51
|
-
:'description' => :'description',
|
|
52
|
-
:'pulp_created' => :'pulp_created',
|
|
53
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
54
54
|
:'prn' => :'prn',
|
|
55
|
+
:'latest_version_href' => :'latest_version_href',
|
|
56
|
+
:'name' => :'name',
|
|
57
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
58
|
:'versions_href' => :'versions_href',
|
|
56
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
57
59
|
:'pulp_labels' => :'pulp_labels',
|
|
58
60
|
:'pulp_href' => :'pulp_href',
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
-
:'
|
|
61
|
+
:'pulp_created' => :'pulp_created',
|
|
62
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
+
:'description' => :'description',
|
|
64
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
65
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
62
66
|
}
|
|
63
67
|
end
|
|
64
68
|
|
|
@@ -70,26 +74,28 @@ module PulpContainerClient
|
|
|
70
74
|
# Attribute type mapping.
|
|
71
75
|
def self.openapi_types
|
|
72
76
|
{
|
|
73
|
-
:'description' => :'String',
|
|
74
|
-
:'pulp_created' => :'Time',
|
|
75
|
-
:'retain_repo_versions' => :'Integer',
|
|
76
77
|
:'prn' => :'String',
|
|
78
|
+
:'latest_version_href' => :'String',
|
|
79
|
+
:'name' => :'String',
|
|
80
|
+
:'manifest_signing_service' => :'String',
|
|
77
81
|
:'versions_href' => :'String',
|
|
78
|
-
:'pulp_last_updated' => :'Time',
|
|
79
82
|
:'pulp_labels' => :'Hash<String, String>',
|
|
80
83
|
:'pulp_href' => :'String',
|
|
81
|
-
:'
|
|
82
|
-
:'
|
|
83
|
-
:'
|
|
84
|
+
:'pulp_created' => :'Time',
|
|
85
|
+
:'pulp_last_updated' => :'Time',
|
|
86
|
+
:'description' => :'String',
|
|
87
|
+
:'retain_repo_versions' => :'Integer',
|
|
88
|
+
:'retain_checkpoints' => :'Integer'
|
|
84
89
|
}
|
|
85
90
|
end
|
|
86
91
|
|
|
87
92
|
# List of attributes with nullable: true
|
|
88
93
|
def self.openapi_nullable
|
|
89
94
|
Set.new([
|
|
95
|
+
:'manifest_signing_service',
|
|
90
96
|
:'description',
|
|
91
97
|
:'retain_repo_versions',
|
|
92
|
-
:'
|
|
98
|
+
:'retain_checkpoints'
|
|
93
99
|
])
|
|
94
100
|
end
|
|
95
101
|
|
|
@@ -108,30 +114,28 @@ module PulpContainerClient
|
|
|
108
114
|
h[k.to_sym] = v
|
|
109
115
|
}
|
|
110
116
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
117
|
+
if attributes.key?(:'prn')
|
|
118
|
+
self.prn = attributes[:'prn']
|
|
113
119
|
end
|
|
114
120
|
|
|
115
|
-
if attributes.key?(:'
|
|
116
|
-
self.
|
|
121
|
+
if attributes.key?(:'latest_version_href')
|
|
122
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
117
123
|
end
|
|
118
124
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
self.
|
|
125
|
+
if attributes.key?(:'name')
|
|
126
|
+
self.name = attributes[:'name']
|
|
127
|
+
else
|
|
128
|
+
self.name = nil
|
|
121
129
|
end
|
|
122
130
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
131
|
+
if attributes.key?(:'manifest_signing_service')
|
|
132
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
125
133
|
end
|
|
126
134
|
|
|
127
135
|
if attributes.key?(:'versions_href')
|
|
128
136
|
self.versions_href = attributes[:'versions_href']
|
|
129
137
|
end
|
|
130
138
|
|
|
131
|
-
if attributes.key?(:'pulp_last_updated')
|
|
132
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
133
|
-
end
|
|
134
|
-
|
|
135
139
|
if attributes.key?(:'pulp_labels')
|
|
136
140
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
137
141
|
self.pulp_labels = value
|
|
@@ -142,18 +146,24 @@ module PulpContainerClient
|
|
|
142
146
|
self.pulp_href = attributes[:'pulp_href']
|
|
143
147
|
end
|
|
144
148
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
149
|
+
if attributes.key?(:'pulp_created')
|
|
150
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
147
151
|
end
|
|
148
152
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
153
|
+
if attributes.key?(:'pulp_last_updated')
|
|
154
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
151
155
|
end
|
|
152
156
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
self.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
if attributes.key?(:'description')
|
|
158
|
+
self.description = attributes[:'description']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'retain_repo_versions')
|
|
162
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'retain_checkpoints')
|
|
166
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
157
167
|
end
|
|
158
168
|
end
|
|
159
169
|
|
|
@@ -166,6 +176,14 @@ module PulpContainerClient
|
|
|
166
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
177
|
end
|
|
168
178
|
|
|
179
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
184
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
185
|
+
end
|
|
186
|
+
|
|
169
187
|
invalid_properties
|
|
170
188
|
end
|
|
171
189
|
|
|
@@ -174,25 +192,48 @@ module PulpContainerClient
|
|
|
174
192
|
def valid?
|
|
175
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
194
|
return false if @name.nil?
|
|
195
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
177
197
|
true
|
|
178
198
|
end
|
|
179
199
|
|
|
200
|
+
# Custom attribute writer method with validation
|
|
201
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
202
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
203
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
204
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@retain_repo_versions = retain_repo_versions
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
212
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
213
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@retain_checkpoints = retain_checkpoints
|
|
218
|
+
end
|
|
219
|
+
|
|
180
220
|
# Checks equality by comparing each attribute.
|
|
181
221
|
# @param [Object] Object to be compared
|
|
182
222
|
def ==(o)
|
|
183
223
|
return true if self.equal?(o)
|
|
184
224
|
self.class == o.class &&
|
|
185
|
-
description == o.description &&
|
|
186
|
-
pulp_created == o.pulp_created &&
|
|
187
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
188
225
|
prn == o.prn &&
|
|
226
|
+
latest_version_href == o.latest_version_href &&
|
|
227
|
+
name == o.name &&
|
|
228
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
189
229
|
versions_href == o.versions_href &&
|
|
190
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
191
230
|
pulp_labels == o.pulp_labels &&
|
|
192
231
|
pulp_href == o.pulp_href &&
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
232
|
+
pulp_created == o.pulp_created &&
|
|
233
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
234
|
+
description == o.description &&
|
|
235
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
236
|
+
retain_checkpoints == o.retain_checkpoints
|
|
196
237
|
end
|
|
197
238
|
|
|
198
239
|
# @see the `==` method
|
|
@@ -204,7 +245,7 @@ module PulpContainerClient
|
|
|
204
245
|
# Calculates hash code according to all attributes.
|
|
205
246
|
# @return [Integer] Hash code
|
|
206
247
|
def hash
|
|
207
|
-
[
|
|
248
|
+
[prn, latest_version_href, name, manifest_signing_service, versions_href, pulp_labels, pulp_href, pulp_created, pulp_last_updated, description, retain_repo_versions, retain_checkpoints].hash
|
|
208
249
|
end
|
|
209
250
|
|
|
210
251
|
# Builds the object from hash
|
|
@@ -401,6 +401,10 @@ module PulpContainerClient
|
|
|
401
401
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
402
402
|
end
|
|
403
403
|
|
|
404
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
405
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
406
|
+
end
|
|
407
|
+
|
|
404
408
|
if @upstream_name.nil?
|
|
405
409
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
406
410
|
end
|
|
@@ -436,6 +440,7 @@ module PulpContainerClient
|
|
|
436
440
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
437
441
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
438
442
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
443
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
439
444
|
return false if @upstream_name.nil?
|
|
440
445
|
return false if @upstream_name.to_s.length < 1
|
|
441
446
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
|
@@ -590,6 +595,16 @@ module PulpContainerClient
|
|
|
590
595
|
@sock_read_timeout = sock_read_timeout
|
|
591
596
|
end
|
|
592
597
|
|
|
598
|
+
# Custom attribute writer method with validation
|
|
599
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
600
|
+
def download_concurrency=(download_concurrency)
|
|
601
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
602
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
@download_concurrency = download_concurrency
|
|
606
|
+
end
|
|
607
|
+
|
|
593
608
|
# Custom attribute writer method with validation
|
|
594
609
|
# @param [Object] upstream_name Value to be assigned
|
|
595
610
|
def upstream_name=(upstream_name)
|
|
@@ -357,6 +357,10 @@ module PulpContainerClient
|
|
|
357
357
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
358
358
|
end
|
|
359
359
|
|
|
360
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
361
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
362
|
+
end
|
|
363
|
+
|
|
360
364
|
if @upstream_name.nil?
|
|
361
365
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
362
366
|
end
|
|
@@ -374,6 +378,7 @@ module PulpContainerClient
|
|
|
374
378
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
375
379
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
376
380
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
381
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
377
382
|
return false if @upstream_name.nil?
|
|
378
383
|
true
|
|
379
384
|
end
|
|
@@ -418,6 +423,16 @@ module PulpContainerClient
|
|
|
418
423
|
@sock_read_timeout = sock_read_timeout
|
|
419
424
|
end
|
|
420
425
|
|
|
426
|
+
# Custom attribute writer method with validation
|
|
427
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
428
|
+
def download_concurrency=(download_concurrency)
|
|
429
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
430
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
@download_concurrency = download_concurrency
|
|
434
|
+
end
|
|
435
|
+
|
|
421
436
|
# Checks equality by comparing each attribute.
|
|
422
437
|
# @param [Object] Object to be compared
|
|
423
438
|
def ==(o)
|
|
@@ -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
|
])
|
|
@@ -107,6 +113,10 @@ module PulpContainerClient
|
|
|
107
113
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
108
114
|
end
|
|
109
115
|
|
|
116
|
+
if attributes.key?(:'retain_checkpoints')
|
|
117
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
118
|
+
end
|
|
119
|
+
|
|
110
120
|
if attributes.key?(:'remote')
|
|
111
121
|
self.remote = attributes[:'remote']
|
|
112
122
|
end
|
|
@@ -133,6 +143,14 @@ module PulpContainerClient
|
|
|
133
143
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
134
144
|
end
|
|
135
145
|
|
|
146
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
147
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
151
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
152
|
+
end
|
|
153
|
+
|
|
136
154
|
invalid_properties
|
|
137
155
|
end
|
|
138
156
|
|
|
@@ -143,6 +161,8 @@ module PulpContainerClient
|
|
|
143
161
|
return false if @name.nil?
|
|
144
162
|
return false if @name.to_s.length < 1
|
|
145
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
164
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
165
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
146
166
|
true
|
|
147
167
|
end
|
|
148
168
|
|
|
@@ -170,6 +190,26 @@ module PulpContainerClient
|
|
|
170
190
|
@description = description
|
|
171
191
|
end
|
|
172
192
|
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
195
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
196
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@retain_repo_versions = retain_repo_versions
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Custom attribute writer method with validation
|
|
204
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
205
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
206
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
207
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
@retain_checkpoints = retain_checkpoints
|
|
211
|
+
end
|
|
212
|
+
|
|
173
213
|
# Checks equality by comparing each attribute.
|
|
174
214
|
# @param [Object] Object to be compared
|
|
175
215
|
def ==(o)
|
|
@@ -179,6 +219,7 @@ module PulpContainerClient
|
|
|
179
219
|
name == o.name &&
|
|
180
220
|
description == o.description &&
|
|
181
221
|
retain_repo_versions == o.retain_repo_versions &&
|
|
222
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
182
223
|
remote == o.remote &&
|
|
183
224
|
manifest_signing_service == o.manifest_signing_service
|
|
184
225
|
end
|
|
@@ -192,7 +233,7 @@ module PulpContainerClient
|
|
|
192
233
|
# Calculates hash code according to all attributes.
|
|
193
234
|
# @return [Integer] Hash code
|
|
194
235
|
def hash
|
|
195
|
-
[pulp_labels, name, description, retain_repo_versions, remote, manifest_signing_service].hash
|
|
236
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, manifest_signing_service].hash
|
|
196
237
|
end
|
|
197
238
|
|
|
198
239
|
# Builds the object from hash
|
|
@@ -42,6 +42,9 @@ module PulpContainerClient
|
|
|
42
42
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
43
|
attr_accessor :retain_repo_versions
|
|
44
44
|
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
|
+
|
|
45
48
|
# An optional remote to use by default when syncing.
|
|
46
49
|
attr_accessor :remote
|
|
47
50
|
|
|
@@ -61,6 +64,7 @@ module PulpContainerClient
|
|
|
61
64
|
:'name' => :'name',
|
|
62
65
|
:'description' => :'description',
|
|
63
66
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
67
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
64
68
|
:'remote' => :'remote',
|
|
65
69
|
:'manifest_signing_service' => :'manifest_signing_service'
|
|
66
70
|
}
|
|
@@ -84,6 +88,7 @@ module PulpContainerClient
|
|
|
84
88
|
:'name' => :'String',
|
|
85
89
|
:'description' => :'String',
|
|
86
90
|
:'retain_repo_versions' => :'Integer',
|
|
91
|
+
:'retain_checkpoints' => :'Integer',
|
|
87
92
|
:'remote' => :'String',
|
|
88
93
|
:'manifest_signing_service' => :'String'
|
|
89
94
|
}
|
|
@@ -94,6 +99,7 @@ module PulpContainerClient
|
|
|
94
99
|
Set.new([
|
|
95
100
|
:'description',
|
|
96
101
|
:'retain_repo_versions',
|
|
102
|
+
:'retain_checkpoints',
|
|
97
103
|
:'remote',
|
|
98
104
|
:'manifest_signing_service'
|
|
99
105
|
])
|
|
@@ -158,6 +164,10 @@ module PulpContainerClient
|
|
|
158
164
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
159
165
|
end
|
|
160
166
|
|
|
167
|
+
if attributes.key?(:'retain_checkpoints')
|
|
168
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
169
|
+
end
|
|
170
|
+
|
|
161
171
|
if attributes.key?(:'remote')
|
|
162
172
|
self.remote = attributes[:'remote']
|
|
163
173
|
end
|
|
@@ -176,6 +186,14 @@ module PulpContainerClient
|
|
|
176
186
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
177
187
|
end
|
|
178
188
|
|
|
189
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
190
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
194
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
195
|
+
end
|
|
196
|
+
|
|
179
197
|
invalid_properties
|
|
180
198
|
end
|
|
181
199
|
|
|
@@ -184,9 +202,31 @@ module PulpContainerClient
|
|
|
184
202
|
def valid?
|
|
185
203
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
204
|
return false if @name.nil?
|
|
205
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
206
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
187
207
|
true
|
|
188
208
|
end
|
|
189
209
|
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
212
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
213
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@retain_repo_versions = retain_repo_versions
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Custom attribute writer method with validation
|
|
221
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
222
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
223
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
224
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
@retain_checkpoints = retain_checkpoints
|
|
228
|
+
end
|
|
229
|
+
|
|
190
230
|
# Checks equality by comparing each attribute.
|
|
191
231
|
# @param [Object] Object to be compared
|
|
192
232
|
def ==(o)
|
|
@@ -202,6 +242,7 @@ module PulpContainerClient
|
|
|
202
242
|
name == o.name &&
|
|
203
243
|
description == o.description &&
|
|
204
244
|
retain_repo_versions == o.retain_repo_versions &&
|
|
245
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
205
246
|
remote == o.remote &&
|
|
206
247
|
manifest_signing_service == o.manifest_signing_service
|
|
207
248
|
end
|
|
@@ -215,7 +256,7 @@ module PulpContainerClient
|
|
|
215
256
|
# Calculates hash code according to all attributes.
|
|
216
257
|
# @return [Integer] Hash code
|
|
217
258
|
def hash
|
|
218
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, manifest_signing_service].hash
|
|
259
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, manifest_signing_service].hash
|
|
219
260
|
end
|
|
220
261
|
|
|
221
262
|
# Builds the object from hash
|