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,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
# Whether this distribution should be shown in the content app.
|
|
20
|
-
attr_accessor :hidden
|
|
21
|
-
|
|
22
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\")
|
|
23
20
|
attr_accessor :base_path
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
23
|
+
attr_accessor :name
|
|
27
24
|
|
|
28
25
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
29
26
|
attr_accessor :content_guard
|
|
30
27
|
|
|
31
28
|
attr_accessor :pulp_labels
|
|
32
29
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
35
32
|
|
|
36
33
|
# RepositoryVersion to be served
|
|
37
34
|
attr_accessor :repository_version
|
|
38
35
|
|
|
36
|
+
# Whether this distribution should be shown in the content app.
|
|
37
|
+
attr_accessor :hidden
|
|
38
|
+
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'hidden' => :'hidden',
|
|
49
48
|
:'base_path' => :'base_path',
|
|
50
|
-
:'
|
|
49
|
+
:'name' => :'name',
|
|
51
50
|
:'content_guard' => :'content_guard',
|
|
52
51
|
:'pulp_labels' => :'pulp_labels',
|
|
53
|
-
:'
|
|
52
|
+
:'repository' => :'repository',
|
|
54
53
|
:'repository_version' => :'repository_version',
|
|
54
|
+
:'hidden' => :'hidden',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'hidden' => :'Boolean',
|
|
69
68
|
:'base_path' => :'String',
|
|
70
|
-
:'
|
|
69
|
+
:'name' => :'String',
|
|
71
70
|
:'content_guard' => :'String',
|
|
72
71
|
:'pulp_labels' => :'Hash<String, String>',
|
|
73
|
-
:'
|
|
72
|
+
:'repository' => :'String',
|
|
74
73
|
:'repository_version' => :'String',
|
|
74
|
+
:'hidden' => :'Boolean',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,18 +101,12 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'hidden')
|
|
105
|
-
self.hidden = attributes[:'hidden']
|
|
106
|
-
else
|
|
107
|
-
self.hidden = false
|
|
108
|
-
end
|
|
109
|
-
|
|
110
104
|
if attributes.key?(:'base_path')
|
|
111
105
|
self.base_path = attributes[:'base_path']
|
|
112
106
|
end
|
|
113
107
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
108
|
+
if attributes.key?(:'name')
|
|
109
|
+
self.name = attributes[:'name']
|
|
116
110
|
end
|
|
117
111
|
|
|
118
112
|
if attributes.key?(:'content_guard')
|
|
@@ -125,14 +119,20 @@ module PulpContainerClient
|
|
|
125
119
|
end
|
|
126
120
|
end
|
|
127
121
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
122
|
+
if attributes.key?(:'repository')
|
|
123
|
+
self.repository = attributes[:'repository']
|
|
130
124
|
end
|
|
131
125
|
|
|
132
126
|
if attributes.key?(:'repository_version')
|
|
133
127
|
self.repository_version = attributes[:'repository_version']
|
|
134
128
|
end
|
|
135
129
|
|
|
130
|
+
if attributes.key?(:'hidden')
|
|
131
|
+
self.hidden = attributes[:'hidden']
|
|
132
|
+
else
|
|
133
|
+
self.hidden = false
|
|
134
|
+
end
|
|
135
|
+
|
|
136
136
|
if attributes.key?(:'private')
|
|
137
137
|
self.private = attributes[:'private']
|
|
138
138
|
end
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
hidden == o.hidden &&
|
|
219
218
|
base_path == o.base_path &&
|
|
220
|
-
|
|
219
|
+
name == o.name &&
|
|
221
220
|
content_guard == o.content_guard &&
|
|
222
221
|
pulp_labels == o.pulp_labels &&
|
|
223
|
-
|
|
222
|
+
repository == o.repository &&
|
|
224
223
|
repository_version == o.repository_version &&
|
|
224
|
+
hidden == o.hidden &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[base_path, name, content_guard, pulp_labels, repository, repository_version, hidden, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|
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
|
-
# Whether this distribution should be shown in the content app.
|
|
20
|
-
attr_accessor :hidden
|
|
21
|
-
|
|
22
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\")
|
|
23
20
|
attr_accessor :base_path
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
23
|
+
attr_accessor :name
|
|
27
24
|
|
|
28
25
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
29
26
|
attr_accessor :content_guard
|
|
30
27
|
|
|
31
28
|
attr_accessor :pulp_labels
|
|
32
29
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
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
|
|
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
|
{
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
54
|
:'base_path' => :'base_path',
|
|
53
|
-
:'
|
|
55
|
+
:'name' => :'name',
|
|
54
56
|
:'content_guard' => :'content_guard',
|
|
55
57
|
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'
|
|
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
|
-
:'hidden' => :'Boolean',
|
|
73
76
|
:'base_path' => :'String',
|
|
74
|
-
:'
|
|
77
|
+
:'name' => :'String',
|
|
75
78
|
:'content_guard' => :'String',
|
|
76
79
|
:'pulp_labels' => :'Hash<String, String>',
|
|
77
|
-
:'
|
|
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,18 +111,12 @@ module PulpContainerClient
|
|
|
105
111
|
h[k.to_sym] = v
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
if attributes.key?(:'hidden')
|
|
109
|
-
self.hidden = attributes[:'hidden']
|
|
110
|
-
else
|
|
111
|
-
self.hidden = false
|
|
112
|
-
end
|
|
113
|
-
|
|
114
114
|
if attributes.key?(:'base_path')
|
|
115
115
|
self.base_path = attributes[:'base_path']
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
if attributes.key?(:'content_guard')
|
|
@@ -129,8 +129,18 @@ module PulpContainerClient
|
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
132
|
+
if attributes.key?(:'repository')
|
|
133
|
+
self.repository = attributes[:'repository']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'repository_version')
|
|
137
|
+
self.repository_version = attributes[:'repository_version']
|
|
138
|
+
end
|
|
139
|
+
|
|
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
|
-
hidden == o.hidden &&
|
|
229
238
|
base_path == o.base_path &&
|
|
230
|
-
|
|
239
|
+
name == o.name &&
|
|
231
240
|
content_guard == o.content_guard &&
|
|
232
241
|
pulp_labels == o.pulp_labels &&
|
|
233
|
-
|
|
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
|
|
@@ -368,6 +368,10 @@ module PulpContainerClient
|
|
|
368
368
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
369
369
|
end
|
|
370
370
|
|
|
371
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
372
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
373
|
+
end
|
|
374
|
+
|
|
371
375
|
invalid_properties
|
|
372
376
|
end
|
|
373
377
|
|
|
@@ -389,6 +393,7 @@ module PulpContainerClient
|
|
|
389
393
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
390
394
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
391
395
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
396
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
392
397
|
true
|
|
393
398
|
end
|
|
394
399
|
|
|
@@ -540,6 +545,16 @@ module PulpContainerClient
|
|
|
540
545
|
@sock_read_timeout = sock_read_timeout
|
|
541
546
|
end
|
|
542
547
|
|
|
548
|
+
# Custom attribute writer method with validation
|
|
549
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
550
|
+
def download_concurrency=(download_concurrency)
|
|
551
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
552
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
@download_concurrency = download_concurrency
|
|
556
|
+
end
|
|
557
|
+
|
|
543
558
|
# Checks equality by comparing each attribute.
|
|
544
559
|
# @param [Object] Object to be compared
|
|
545
560
|
def ==(o)
|
|
@@ -16,28 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
+
# A unique name for this repository.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# A reference to an associated signing service.
|
|
23
|
+
attr_accessor :manifest_signing_service
|
|
24
|
+
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
19
27
|
# An optional description.
|
|
20
28
|
attr_accessor :description
|
|
21
29
|
|
|
22
30
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
31
|
attr_accessor :retain_repo_versions
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# A reference to an associated signing service.
|
|
28
|
-
attr_accessor :manifest_signing_service
|
|
29
|
-
|
|
30
|
-
# A unique name for this repository.
|
|
31
|
-
attr_accessor :name
|
|
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
|
{
|
|
39
|
+
:'name' => :'name',
|
|
40
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
36
42
|
:'description' => :'description',
|
|
37
43
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
|
-
:'
|
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
-
:'name' => :'name'
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -49,20 +53,22 @@ module PulpContainerClient
|
|
|
49
53
|
# Attribute type mapping.
|
|
50
54
|
def self.openapi_types
|
|
51
55
|
{
|
|
56
|
+
:'name' => :'String',
|
|
57
|
+
:'manifest_signing_service' => :'String',
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
52
59
|
:'description' => :'String',
|
|
53
60
|
:'retain_repo_versions' => :'Integer',
|
|
54
|
-
:'
|
|
55
|
-
:'manifest_signing_service' => :'String',
|
|
56
|
-
:'name' => :'String'
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
60
65
|
# List of attributes with nullable: true
|
|
61
66
|
def self.openapi_nullable
|
|
62
67
|
Set.new([
|
|
68
|
+
:'manifest_signing_service',
|
|
63
69
|
:'description',
|
|
64
70
|
:'retain_repo_versions',
|
|
65
|
-
:'
|
|
71
|
+
:'retain_checkpoints'
|
|
66
72
|
])
|
|
67
73
|
end
|
|
68
74
|
|
|
@@ -81,12 +87,12 @@ module PulpContainerClient
|
|
|
81
87
|
h[k.to_sym] = v
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
90
|
+
if attributes.key?(:'name')
|
|
91
|
+
self.name = attributes[:'name']
|
|
86
92
|
end
|
|
87
93
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
self.
|
|
94
|
+
if attributes.key?(:'manifest_signing_service')
|
|
95
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
90
96
|
end
|
|
91
97
|
|
|
92
98
|
if attributes.key?(:'pulp_labels')
|
|
@@ -95,12 +101,16 @@ module PulpContainerClient
|
|
|
95
101
|
end
|
|
96
102
|
end
|
|
97
103
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
self.
|
|
104
|
+
if attributes.key?(:'description')
|
|
105
|
+
self.description = attributes[:'description']
|
|
100
106
|
end
|
|
101
107
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
108
|
+
if attributes.key?(:'retain_repo_versions')
|
|
109
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'retain_checkpoints')
|
|
113
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
104
114
|
end
|
|
105
115
|
end
|
|
106
116
|
|
|
@@ -109,12 +119,20 @@ 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
|
|
122
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
123
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
124
|
+
end
|
|
125
|
+
|
|
112
126
|
if !@description.nil? && @description.to_s.length < 1
|
|
113
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
114
128
|
end
|
|
115
129
|
|
|
116
|
-
if !@
|
|
117
|
-
invalid_properties.push('invalid value for "
|
|
130
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
132
|
+
end
|
|
133
|
+
|
|
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.')
|
|
118
136
|
end
|
|
119
137
|
|
|
120
138
|
invalid_properties
|
|
@@ -124,11 +142,27 @@ module PulpContainerClient
|
|
|
124
142
|
# @return true if the model is valid
|
|
125
143
|
def valid?
|
|
126
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
145
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
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
|
|
129
149
|
true
|
|
130
150
|
end
|
|
131
151
|
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] name Value to be assigned
|
|
154
|
+
def name=(name)
|
|
155
|
+
if name.nil?
|
|
156
|
+
fail ArgumentError, 'name cannot be nil'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if name.to_s.length < 1
|
|
160
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@name = name
|
|
164
|
+
end
|
|
165
|
+
|
|
132
166
|
# Custom attribute writer method with validation
|
|
133
167
|
# @param [Object] description Value to be assigned
|
|
134
168
|
def description=(description)
|
|
@@ -140,17 +174,23 @@ module PulpContainerClient
|
|
|
140
174
|
end
|
|
141
175
|
|
|
142
176
|
# Custom attribute writer method with validation
|
|
143
|
-
# @param [Object]
|
|
144
|
-
def
|
|
145
|
-
if
|
|
146
|
-
fail ArgumentError, '
|
|
177
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
178
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
179
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
180
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
147
181
|
end
|
|
148
182
|
|
|
149
|
-
|
|
150
|
-
|
|
183
|
+
@retain_repo_versions = retain_repo_versions
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Custom attribute writer method with validation
|
|
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.'
|
|
151
191
|
end
|
|
152
192
|
|
|
153
|
-
@
|
|
193
|
+
@retain_checkpoints = retain_checkpoints
|
|
154
194
|
end
|
|
155
195
|
|
|
156
196
|
# Checks equality by comparing each attribute.
|
|
@@ -158,11 +198,12 @@ module PulpContainerClient
|
|
|
158
198
|
def ==(o)
|
|
159
199
|
return true if self.equal?(o)
|
|
160
200
|
self.class == o.class &&
|
|
201
|
+
name == o.name &&
|
|
202
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
203
|
+
pulp_labels == o.pulp_labels &&
|
|
161
204
|
description == o.description &&
|
|
162
205
|
retain_repo_versions == o.retain_repo_versions &&
|
|
163
|
-
|
|
164
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
165
|
-
name == o.name
|
|
206
|
+
retain_checkpoints == o.retain_checkpoints
|
|
166
207
|
end
|
|
167
208
|
|
|
168
209
|
# @see the `==` method
|
|
@@ -174,7 +215,7 @@ module PulpContainerClient
|
|
|
174
215
|
# Calculates hash code according to all attributes.
|
|
175
216
|
# @return [Integer] Hash code
|
|
176
217
|
def hash
|
|
177
|
-
[
|
|
218
|
+
[name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
|
|
178
219
|
end
|
|
179
220
|
|
|
180
221
|
# Builds the object from hash
|
|
@@ -387,6 +387,10 @@ module PulpContainerClient
|
|
|
387
387
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
388
388
|
end
|
|
389
389
|
|
|
390
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
391
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
392
|
+
end
|
|
393
|
+
|
|
390
394
|
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
|
391
395
|
invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
|
|
392
396
|
end
|
|
@@ -416,6 +420,7 @@ module PulpContainerClient
|
|
|
416
420
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
417
421
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
418
422
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
423
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
419
424
|
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
|
420
425
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
|
421
426
|
true
|
|
@@ -569,6 +574,16 @@ module PulpContainerClient
|
|
|
569
574
|
@sock_read_timeout = sock_read_timeout
|
|
570
575
|
end
|
|
571
576
|
|
|
577
|
+
# Custom attribute writer method with validation
|
|
578
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
579
|
+
def download_concurrency=(download_concurrency)
|
|
580
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
581
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
@download_concurrency = download_concurrency
|
|
585
|
+
end
|
|
586
|
+
|
|
572
587
|
# Custom attribute writer method with validation
|
|
573
588
|
# @param [Object] upstream_name Value to be assigned
|
|
574
589
|
def upstream_name=(upstream_name)
|
|
@@ -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
|
|
@@ -127,6 +137,14 @@ module PulpContainerClient
|
|
|
127
137
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
128
138
|
end
|
|
129
139
|
|
|
140
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
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
|
+
|
|
130
148
|
invalid_properties
|
|
131
149
|
end
|
|
132
150
|
|
|
@@ -136,6 +154,8 @@ module PulpContainerClient
|
|
|
136
154
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
155
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
138
156
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
157
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
158
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
139
159
|
true
|
|
140
160
|
end
|
|
141
161
|
|
|
@@ -163,6 +183,26 @@ module PulpContainerClient
|
|
|
163
183
|
@description = description
|
|
164
184
|
end
|
|
165
185
|
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
188
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
189
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@retain_repo_versions = retain_repo_versions
|
|
194
|
+
end
|
|
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
|
+
|
|
166
206
|
# Checks equality by comparing each attribute.
|
|
167
207
|
# @param [Object] Object to be compared
|
|
168
208
|
def ==(o)
|
|
@@ -172,6 +212,7 @@ module PulpContainerClient
|
|
|
172
212
|
name == o.name &&
|
|
173
213
|
description == o.description &&
|
|
174
214
|
retain_repo_versions == o.retain_repo_versions &&
|
|
215
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
175
216
|
remote == o.remote &&
|
|
176
217
|
manifest_signing_service == o.manifest_signing_service
|
|
177
218
|
end
|
|
@@ -185,7 +226,7 @@ module PulpContainerClient
|
|
|
185
226
|
# Calculates hash code according to all attributes.
|
|
186
227
|
# @return [Integer] Hash code
|
|
187
228
|
def hash
|
|
188
|
-
[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
|
|
189
230
|
end
|
|
190
231
|
|
|
191
232
|
# Builds the object from hash
|