pulp_container_client 2.27.2 → 2.27.3
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 +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
- 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 +56 -41
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +72 -57
- 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 +15 -0
- data/lib/pulp_container_client/models/container_container_repository_response.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
- 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 +56 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +15 -0
- 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/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +59 -59
|
@@ -16,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
+
attr_accessor :pulp_labels
|
|
20
|
+
|
|
19
21
|
# Whether this distribution should be shown in the content app.
|
|
20
22
|
attr_accessor :hidden
|
|
21
23
|
|
|
22
|
-
# 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
|
-
attr_accessor :base_path
|
|
24
|
-
|
|
25
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
26
25
|
attr_accessor :repository
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
30
|
-
|
|
31
|
-
attr_accessor :pulp_labels
|
|
27
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
28
|
+
attr_accessor :base_path
|
|
32
29
|
|
|
33
30
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
34
31
|
attr_accessor :name
|
|
35
32
|
|
|
33
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
+
attr_accessor :content_guard
|
|
35
|
+
|
|
36
36
|
# RepositoryVersion to be served
|
|
37
37
|
attr_accessor :repository_version
|
|
38
38
|
|
|
@@ -45,12 +45,12 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
|
48
49
|
:'hidden' => :'hidden',
|
|
49
|
-
:'base_path' => :'base_path',
|
|
50
50
|
:'repository' => :'repository',
|
|
51
|
-
:'
|
|
52
|
-
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'base_path' => :'base_path',
|
|
53
52
|
:'name' => :'name',
|
|
53
|
+
:'content_guard' => :'content_guard',
|
|
54
54
|
:'repository_version' => :'repository_version',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
@@ -65,12 +65,12 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
69
|
:'hidden' => :'Boolean',
|
|
69
|
-
:'base_path' => :'String',
|
|
70
70
|
:'repository' => :'String',
|
|
71
|
-
:'
|
|
72
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'base_path' => :'String',
|
|
73
72
|
:'name' => :'String',
|
|
73
|
+
:'content_guard' => :'String',
|
|
74
74
|
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
@@ -101,34 +101,34 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
if attributes.key?(:'pulp_labels')
|
|
105
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
106
|
+
self.pulp_labels = value
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
104
110
|
if attributes.key?(:'hidden')
|
|
105
111
|
self.hidden = attributes[:'hidden']
|
|
106
112
|
else
|
|
107
113
|
self.hidden = false
|
|
108
114
|
end
|
|
109
115
|
|
|
110
|
-
if attributes.key?(:'base_path')
|
|
111
|
-
self.base_path = attributes[:'base_path']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
116
|
if attributes.key?(:'repository')
|
|
115
117
|
self.repository = attributes[:'repository']
|
|
116
118
|
end
|
|
117
119
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
if attributes.key?(:'pulp_labels')
|
|
123
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
124
|
-
self.pulp_labels = value
|
|
125
|
-
end
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
126
122
|
end
|
|
127
123
|
|
|
128
124
|
if attributes.key?(:'name')
|
|
129
125
|
self.name = attributes[:'name']
|
|
130
126
|
end
|
|
131
127
|
|
|
128
|
+
if attributes.key?(:'content_guard')
|
|
129
|
+
self.content_guard = attributes[:'content_guard']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
132
|
if attributes.key?(:'repository_version')
|
|
133
133
|
self.repository_version = attributes[:'repository_version']
|
|
134
134
|
end
|
|
@@ -215,12 +215,12 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
+
pulp_labels == o.pulp_labels &&
|
|
218
219
|
hidden == o.hidden &&
|
|
219
|
-
base_path == o.base_path &&
|
|
220
220
|
repository == o.repository &&
|
|
221
|
-
|
|
222
|
-
pulp_labels == o.pulp_labels &&
|
|
221
|
+
base_path == o.base_path &&
|
|
223
222
|
name == o.name &&
|
|
223
|
+
content_guard == o.content_guard &&
|
|
224
224
|
repository_version == o.repository_version &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
@@ -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
|
+
[pulp_labels, hidden, repository, base_path, name, content_guard, repository_version, 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,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
+
attr_accessor :pulp_labels
|
|
20
|
+
|
|
19
21
|
# Whether this distribution should be shown in the content app.
|
|
20
22
|
attr_accessor :hidden
|
|
21
23
|
|
|
22
|
-
# 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
|
-
attr_accessor :base_path
|
|
24
|
-
|
|
25
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
26
25
|
attr_accessor :repository
|
|
27
26
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
30
|
-
|
|
31
|
-
attr_accessor :pulp_labels
|
|
27
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
28
|
+
attr_accessor :base_path
|
|
32
29
|
|
|
33
30
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
34
31
|
attr_accessor :name
|
|
35
32
|
|
|
33
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
+
attr_accessor :content_guard
|
|
35
|
+
|
|
36
36
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
37
37
|
attr_accessor :remote
|
|
38
38
|
|
|
@@ -48,12 +48,12 @@ module PulpContainerClient
|
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
52
|
:'hidden' => :'hidden',
|
|
52
|
-
:'base_path' => :'base_path',
|
|
53
53
|
:'repository' => :'repository',
|
|
54
|
-
:'
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
54
|
+
:'base_path' => :'base_path',
|
|
56
55
|
:'name' => :'name',
|
|
56
|
+
:'content_guard' => :'content_guard',
|
|
57
57
|
:'remote' => :'remote',
|
|
58
58
|
:'distributions' => :'distributions',
|
|
59
59
|
:'private' => :'private',
|
|
@@ -69,12 +69,12 @@ module PulpContainerClient
|
|
|
69
69
|
# Attribute type mapping.
|
|
70
70
|
def self.openapi_types
|
|
71
71
|
{
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
72
73
|
:'hidden' => :'Boolean',
|
|
73
|
-
:'base_path' => :'String',
|
|
74
74
|
:'repository' => :'String',
|
|
75
|
-
:'
|
|
76
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
75
|
+
:'base_path' => :'String',
|
|
77
76
|
:'name' => :'String',
|
|
77
|
+
:'content_guard' => :'String',
|
|
78
78
|
:'remote' => :'String',
|
|
79
79
|
:'distributions' => :'Array<String>',
|
|
80
80
|
:'private' => :'Boolean',
|
|
@@ -105,34 +105,34 @@ module PulpContainerClient
|
|
|
105
105
|
h[k.to_sym] = v
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
if attributes.key?(:'pulp_labels')
|
|
109
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
|
+
self.pulp_labels = value
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
108
114
|
if attributes.key?(:'hidden')
|
|
109
115
|
self.hidden = attributes[:'hidden']
|
|
110
116
|
else
|
|
111
117
|
self.hidden = false
|
|
112
118
|
end
|
|
113
119
|
|
|
114
|
-
if attributes.key?(:'base_path')
|
|
115
|
-
self.base_path = attributes[:'base_path']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
120
|
if attributes.key?(:'repository')
|
|
119
121
|
self.repository = attributes[:'repository']
|
|
120
122
|
end
|
|
121
123
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'pulp_labels')
|
|
127
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
128
|
-
self.pulp_labels = value
|
|
129
|
-
end
|
|
124
|
+
if attributes.key?(:'base_path')
|
|
125
|
+
self.base_path = attributes[:'base_path']
|
|
130
126
|
end
|
|
131
127
|
|
|
132
128
|
if attributes.key?(:'name')
|
|
133
129
|
self.name = attributes[:'name']
|
|
134
130
|
end
|
|
135
131
|
|
|
132
|
+
if attributes.key?(:'content_guard')
|
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
136
|
if attributes.key?(:'remote')
|
|
137
137
|
self.remote = attributes[:'remote']
|
|
138
138
|
end
|
|
@@ -225,12 +225,12 @@ module PulpContainerClient
|
|
|
225
225
|
def ==(o)
|
|
226
226
|
return true if self.equal?(o)
|
|
227
227
|
self.class == o.class &&
|
|
228
|
+
pulp_labels == o.pulp_labels &&
|
|
228
229
|
hidden == o.hidden &&
|
|
229
|
-
base_path == o.base_path &&
|
|
230
230
|
repository == o.repository &&
|
|
231
|
-
|
|
232
|
-
pulp_labels == o.pulp_labels &&
|
|
231
|
+
base_path == o.base_path &&
|
|
233
232
|
name == o.name &&
|
|
233
|
+
content_guard == o.content_guard &&
|
|
234
234
|
remote == o.remote &&
|
|
235
235
|
distributions == o.distributions &&
|
|
236
236
|
private == o.private &&
|
|
@@ -246,7 +246,7 @@ module PulpContainerClient
|
|
|
246
246
|
# Calculates hash code according to all attributes.
|
|
247
247
|
# @return [Integer] Hash code
|
|
248
248
|
def hash
|
|
249
|
-
[
|
|
249
|
+
[pulp_labels, hidden, repository, base_path, name, content_guard, remote, distributions, private, description].hash
|
|
250
250
|
end
|
|
251
251
|
|
|
252
252
|
# 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,12 +16,6 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
# An optional description.
|
|
20
|
-
attr_accessor :description
|
|
21
|
-
|
|
22
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
23
|
-
attr_accessor :retain_repo_versions
|
|
24
|
-
|
|
25
19
|
attr_accessor :pulp_labels
|
|
26
20
|
|
|
27
21
|
# A reference to an associated signing service.
|
|
@@ -30,14 +24,20 @@ module PulpContainerClient
|
|
|
30
24
|
# A unique name for this repository.
|
|
31
25
|
attr_accessor :name
|
|
32
26
|
|
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
|
+
attr_accessor :retain_repo_versions
|
|
29
|
+
|
|
30
|
+
# An optional description.
|
|
31
|
+
attr_accessor :description
|
|
32
|
+
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
-
:'description' => :'description',
|
|
37
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
36
|
:'pulp_labels' => :'pulp_labels',
|
|
39
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
-
:'name' => :'name'
|
|
38
|
+
:'name' => :'name',
|
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
40
|
+
:'description' => :'description'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
|
49
49
|
# Attribute type mapping.
|
|
50
50
|
def self.openapi_types
|
|
51
51
|
{
|
|
52
|
-
:'description' => :'String',
|
|
53
|
-
:'retain_repo_versions' => :'Integer',
|
|
54
52
|
:'pulp_labels' => :'Hash<String, String>',
|
|
55
53
|
:'manifest_signing_service' => :'String',
|
|
56
|
-
:'name' => :'String'
|
|
54
|
+
:'name' => :'String',
|
|
55
|
+
:'retain_repo_versions' => :'Integer',
|
|
56
|
+
:'description' => :'String'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# List of attributes with nullable: true
|
|
61
61
|
def self.openapi_nullable
|
|
62
62
|
Set.new([
|
|
63
|
-
:'description',
|
|
64
|
-
:'retain_repo_versions',
|
|
65
63
|
:'manifest_signing_service',
|
|
64
|
+
:'retain_repo_versions',
|
|
65
|
+
:'description'
|
|
66
66
|
])
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -81,14 +81,6 @@ module PulpContainerClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'description')
|
|
85
|
-
self.description = attributes[:'description']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'retain_repo_versions')
|
|
89
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
84
|
if attributes.key?(:'pulp_labels')
|
|
93
85
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
94
86
|
self.pulp_labels = value
|
|
@@ -102,6 +94,14 @@ module PulpContainerClient
|
|
|
102
94
|
if attributes.key?(:'name')
|
|
103
95
|
self.name = attributes[:'name']
|
|
104
96
|
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'retain_repo_versions')
|
|
99
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'description')
|
|
103
|
+
self.description = attributes[:'description']
|
|
104
|
+
end
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,14 +109,18 @@ module PulpContainerClient
|
|
|
109
109
|
def list_invalid_properties
|
|
110
110
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
111
111
|
invalid_properties = Array.new
|
|
112
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
113
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
114
|
-
end
|
|
115
|
-
|
|
116
112
|
if !@name.nil? && @name.to_s.length < 1
|
|
117
113
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
118
114
|
end
|
|
119
115
|
|
|
116
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
117
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
121
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
invalid_properties
|
|
121
125
|
end
|
|
122
126
|
|
|
@@ -124,21 +128,12 @@ module PulpContainerClient
|
|
|
124
128
|
# @return true if the model is valid
|
|
125
129
|
def valid?
|
|
126
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
131
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
132
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
133
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
129
134
|
true
|
|
130
135
|
end
|
|
131
136
|
|
|
132
|
-
# Custom attribute writer method with validation
|
|
133
|
-
# @param [Object] description Value to be assigned
|
|
134
|
-
def description=(description)
|
|
135
|
-
if !description.nil? && description.to_s.length < 1
|
|
136
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
@description = description
|
|
140
|
-
end
|
|
141
|
-
|
|
142
137
|
# Custom attribute writer method with validation
|
|
143
138
|
# @param [Object] name Value to be assigned
|
|
144
139
|
def name=(name)
|
|
@@ -153,16 +148,36 @@ module PulpContainerClient
|
|
|
153
148
|
@name = name
|
|
154
149
|
end
|
|
155
150
|
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
153
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
154
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
155
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
@retain_repo_versions = retain_repo_versions
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Custom attribute writer method with validation
|
|
162
|
+
# @param [Object] description Value to be assigned
|
|
163
|
+
def description=(description)
|
|
164
|
+
if !description.nil? && description.to_s.length < 1
|
|
165
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@description = description
|
|
169
|
+
end
|
|
170
|
+
|
|
156
171
|
# Checks equality by comparing each attribute.
|
|
157
172
|
# @param [Object] Object to be compared
|
|
158
173
|
def ==(o)
|
|
159
174
|
return true if self.equal?(o)
|
|
160
175
|
self.class == o.class &&
|
|
161
|
-
description == o.description &&
|
|
162
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
163
176
|
pulp_labels == o.pulp_labels &&
|
|
164
177
|
manifest_signing_service == o.manifest_signing_service &&
|
|
165
|
-
name == o.name
|
|
178
|
+
name == o.name &&
|
|
179
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
180
|
+
description == o.description
|
|
166
181
|
end
|
|
167
182
|
|
|
168
183
|
# @see the `==` method
|
|
@@ -174,7 +189,7 @@ module PulpContainerClient
|
|
|
174
189
|
# Calculates hash code according to all attributes.
|
|
175
190
|
# @return [Integer] Hash code
|
|
176
191
|
def hash
|
|
177
|
-
[
|
|
192
|
+
[pulp_labels, manifest_signing_service, name, retain_repo_versions, description].hash
|
|
178
193
|
end
|
|
179
194
|
|
|
180
195
|
# 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)
|
|
@@ -127,6 +127,10 @@ module PulpContainerClient
|
|
|
127
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
128
128
|
end
|
|
129
129
|
|
|
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
|
+
|
|
130
134
|
invalid_properties
|
|
131
135
|
end
|
|
132
136
|
|
|
@@ -136,6 +140,7 @@ module PulpContainerClient
|
|
|
136
140
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
141
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
138
142
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
143
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
139
144
|
true
|
|
140
145
|
end
|
|
141
146
|
|
|
@@ -163,6 +168,16 @@ module PulpContainerClient
|
|
|
163
168
|
@description = description
|
|
164
169
|
end
|
|
165
170
|
|
|
171
|
+
# Custom attribute writer method with validation
|
|
172
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
173
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
174
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
175
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
@retain_repo_versions = retain_repo_versions
|
|
179
|
+
end
|
|
180
|
+
|
|
166
181
|
# Checks equality by comparing each attribute.
|
|
167
182
|
# @param [Object] Object to be compared
|
|
168
183
|
def ==(o)
|
|
@@ -89,11 +89,6 @@ module PulpContainerClient
|
|
|
89
89
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
93
|
-
if @key !~ pattern
|
|
94
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
95
|
-
end
|
|
96
|
-
|
|
97
92
|
invalid_properties
|
|
98
93
|
end
|
|
99
94
|
|
|
@@ -103,7 +98,6 @@ module PulpContainerClient
|
|
|
103
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
99
|
return false if @key.nil?
|
|
105
100
|
return false if @key.to_s.length < 1
|
|
106
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
@@ -118,11 +112,6 @@ module PulpContainerClient
|
|
|
118
112
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
119
113
|
end
|
|
120
114
|
|
|
121
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
122
|
-
if key !~ pattern
|
|
123
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
124
|
-
end
|
|
125
|
-
|
|
126
115
|
@key = key
|
|
127
116
|
end
|
|
128
117
|
|
|
@@ -85,11 +85,6 @@ module PulpContainerClient
|
|
|
85
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
89
|
-
if @key !~ pattern
|
|
90
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
91
|
-
end
|
|
92
|
-
|
|
93
88
|
invalid_properties
|
|
94
89
|
end
|
|
95
90
|
|
|
@@ -98,25 +93,9 @@ module PulpContainerClient
|
|
|
98
93
|
def valid?
|
|
99
94
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
95
|
return false if @key.nil?
|
|
101
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
102
96
|
true
|
|
103
97
|
end
|
|
104
98
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] key Value to be assigned
|
|
107
|
-
def key=(key)
|
|
108
|
-
if key.nil?
|
|
109
|
-
fail ArgumentError, 'key cannot be nil'
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
113
|
-
if key !~ pattern
|
|
114
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@key = key
|
|
118
|
-
end
|
|
119
|
-
|
|
120
99
|
# Checks equality by comparing each attribute.
|
|
121
100
|
# @param [Object] Object to be compared
|
|
122
101
|
def ==(o)
|
|
@@ -78,11 +78,6 @@ module PulpContainerClient
|
|
|
78
78
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
82
|
-
if @key !~ pattern
|
|
83
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
84
|
-
end
|
|
85
|
-
|
|
86
81
|
invalid_properties
|
|
87
82
|
end
|
|
88
83
|
|
|
@@ -92,7 +87,6 @@ module PulpContainerClient
|
|
|
92
87
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
88
|
return false if @key.nil?
|
|
94
89
|
return false if @key.to_s.length < 1
|
|
95
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
96
90
|
true
|
|
97
91
|
end
|
|
98
92
|
|
|
@@ -107,11 +101,6 @@ module PulpContainerClient
|
|
|
107
101
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
108
102
|
end
|
|
109
103
|
|
|
110
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
111
|
-
if key !~ pattern
|
|
112
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
113
|
-
end
|
|
114
|
-
|
|
115
104
|
@key = key
|
|
116
105
|
end
|
|
117
106
|
|