pulp_container_client 2.14.15 → 2.14.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +15 -15
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +37 -37
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +15 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +66 -66
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
19
20
|
|
20
21
|
# The latest RepositoryVersion for this Repository will be served.
|
21
22
|
attr_accessor :repository
|
22
23
|
|
24
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
+
attr_accessor :content_guard
|
26
|
+
|
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
|
29
|
+
|
23
30
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
31
|
attr_accessor :name
|
25
32
|
|
26
33
|
attr_accessor :pulp_labels
|
27
34
|
|
28
|
-
|
29
|
-
attr_accessor :pulp_created
|
30
|
-
|
31
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
|
-
attr_accessor :base_path
|
33
|
-
|
34
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
35
|
-
attr_accessor :content_guard
|
35
|
+
attr_accessor :pulp_href
|
36
36
|
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'
|
55
|
+
:'pulp_created' => :'pulp_created',
|
56
56
|
:'repository' => :'repository',
|
57
|
+
:'content_guard' => :'content_guard',
|
58
|
+
:'base_path' => :'base_path',
|
57
59
|
:'name' => :'name',
|
58
60
|
:'pulp_labels' => :'pulp_labels',
|
59
|
-
:'
|
60
|
-
:'base_path' => :'base_path',
|
61
|
-
:'content_guard' => :'content_guard',
|
61
|
+
:'pulp_href' => :'pulp_href',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
73
|
+
:'pulp_created' => :'DateTime',
|
74
74
|
:'repository' => :'String',
|
75
|
+
:'content_guard' => :'String',
|
76
|
+
:'base_path' => :'String',
|
75
77
|
:'name' => :'String',
|
76
78
|
:'pulp_labels' => :'Hash<String, String>',
|
77
|
-
:'
|
78
|
-
:'base_path' => :'String',
|
79
|
-
:'content_guard' => :'String',
|
79
|
+
:'pulp_href' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,14 +109,22 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'pulp_created')
|
113
|
+
self.pulp_created = attributes[:'pulp_created']
|
114
114
|
end
|
115
115
|
|
116
116
|
if attributes.key?(:'repository')
|
117
117
|
self.repository = attributes[:'repository']
|
118
118
|
end
|
119
119
|
|
120
|
+
if attributes.key?(:'content_guard')
|
121
|
+
self.content_guard = attributes[:'content_guard']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'base_path')
|
125
|
+
self.base_path = attributes[:'base_path']
|
126
|
+
end
|
127
|
+
|
120
128
|
if attributes.key?(:'name')
|
121
129
|
self.name = attributes[:'name']
|
122
130
|
end
|
@@ -127,16 +135,8 @@ module PulpContainerClient
|
|
127
135
|
end
|
128
136
|
end
|
129
137
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'base_path')
|
135
|
-
self.base_path = attributes[:'base_path']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.key?(:'content_guard')
|
139
|
-
self.content_guard = attributes[:'content_guard']
|
138
|
+
if attributes.key?(:'pulp_href')
|
139
|
+
self.pulp_href = attributes[:'pulp_href']
|
140
140
|
end
|
141
141
|
|
142
142
|
if attributes.key?(:'repository_version')
|
@@ -164,22 +164,22 @@ module PulpContainerClient
|
|
164
164
|
# @return Array for valid properties with the reasons
|
165
165
|
def list_invalid_properties
|
166
166
|
invalid_properties = Array.new
|
167
|
-
if @name.nil?
|
168
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
167
|
if @base_path.nil?
|
172
168
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
173
169
|
end
|
174
170
|
|
171
|
+
if @name.nil?
|
172
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
175
|
invalid_properties
|
176
176
|
end
|
177
177
|
|
178
178
|
# Check to see if the all the properties in the model are valid
|
179
179
|
# @return true if the model is valid
|
180
180
|
def valid?
|
181
|
-
return false if @name.nil?
|
182
181
|
return false if @base_path.nil?
|
182
|
+
return false if @name.nil?
|
183
183
|
true
|
184
184
|
end
|
185
185
|
|
@@ -188,13 +188,13 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
|
191
|
+
pulp_created == o.pulp_created &&
|
192
192
|
repository == o.repository &&
|
193
|
+
content_guard == o.content_guard &&
|
194
|
+
base_path == o.base_path &&
|
193
195
|
name == o.name &&
|
194
196
|
pulp_labels == o.pulp_labels &&
|
195
|
-
|
196
|
-
base_path == o.base_path &&
|
197
|
-
content_guard == o.content_guard &&
|
197
|
+
pulp_href == o.pulp_href &&
|
198
198
|
repository_version == o.repository_version &&
|
199
199
|
registry_path == o.registry_path &&
|
200
200
|
namespace == o.namespace &&
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
211
211
|
# Calculates hash code according to all attributes.
|
212
212
|
# @return [Integer] Hash code
|
213
213
|
def hash
|
214
|
-
[
|
214
|
+
[pulp_created, repository, content_guard, base_path, name, pulp_labels, pulp_href, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module PulpContainerClient
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
+
# A reference to an associated signing service.
|
22
|
+
attr_accessor :manifest_signing_service
|
23
|
+
|
21
24
|
# An optional description.
|
22
25
|
attr_accessor :description
|
23
26
|
|
@@ -26,17 +29,14 @@ module PulpContainerClient
|
|
26
29
|
|
27
30
|
attr_accessor :pulp_labels
|
28
31
|
|
29
|
-
# A reference to an associated signing service.
|
30
|
-
attr_accessor :manifest_signing_service
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
36
37
|
:'description' => :'description',
|
37
38
|
:'name' => :'name',
|
38
|
-
:'pulp_labels' => :'pulp_labels'
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
47
|
+
:'manifest_signing_service' => :'String',
|
47
48
|
:'description' => :'String',
|
48
49
|
:'name' => :'String',
|
49
|
-
:'pulp_labels' => :'Hash<String, String>'
|
50
|
-
:'manifest_signing_service' => :'String'
|
50
|
+
:'pulp_labels' => :'Hash<String, String>'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'retain_repo_versions',
|
58
|
+
:'manifest_signing_service',
|
58
59
|
:'description',
|
59
|
-
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,6 +79,10 @@ module PulpContainerClient
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
|
+
if attributes.key?(:'manifest_signing_service')
|
83
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
|
+
end
|
85
|
+
|
82
86
|
if attributes.key?(:'description')
|
83
87
|
self.description = attributes[:'description']
|
84
88
|
end
|
@@ -92,10 +96,6 @@ module PulpContainerClient
|
|
92
96
|
self.pulp_labels = value
|
93
97
|
end
|
94
98
|
end
|
95
|
-
|
96
|
-
if attributes.key?(:'manifest_signing_service')
|
97
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
|
-
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -171,10 +171,10 @@ module PulpContainerClient
|
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
173
|
retain_repo_versions == o.retain_repo_versions &&
|
174
|
+
manifest_signing_service == o.manifest_signing_service &&
|
174
175
|
description == o.description &&
|
175
176
|
name == o.name &&
|
176
|
-
pulp_labels == o.pulp_labels
|
177
|
-
manifest_signing_service == o.manifest_signing_service
|
177
|
+
pulp_labels == o.pulp_labels
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[retain_repo_versions, description, name, pulp_labels
|
189
|
+
[retain_repo_versions, manifest_signing_service, description, name, pulp_labels].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,56 +15,56 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :pulp_href
|
19
|
-
|
20
18
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
21
19
|
attr_accessor :retain_repo_versions
|
22
20
|
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
23
|
+
|
24
|
+
# A reference to an associated signing service.
|
25
|
+
attr_accessor :manifest_signing_service
|
26
|
+
|
23
27
|
attr_accessor :latest_version_href
|
24
28
|
|
25
29
|
# An optional description.
|
26
30
|
attr_accessor :description
|
27
31
|
|
32
|
+
attr_accessor :versions_href
|
33
|
+
|
28
34
|
# A unique name for this repository.
|
29
35
|
attr_accessor :name
|
30
36
|
|
31
37
|
attr_accessor :pulp_labels
|
32
38
|
|
33
|
-
|
34
|
-
attr_accessor :manifest_signing_service
|
35
|
-
|
36
|
-
attr_accessor :versions_href
|
37
|
-
|
38
|
-
# Timestamp of creation.
|
39
|
-
attr_accessor :pulp_created
|
39
|
+
attr_accessor :pulp_href
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'pulp_href' => :'pulp_href',
|
45
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
45
|
+
:'pulp_created' => :'pulp_created',
|
46
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
46
47
|
:'latest_version_href' => :'latest_version_href',
|
47
48
|
:'description' => :'description',
|
49
|
+
:'versions_href' => :'versions_href',
|
48
50
|
:'name' => :'name',
|
49
51
|
:'pulp_labels' => :'pulp_labels',
|
50
|
-
:'
|
51
|
-
:'versions_href' => :'versions_href',
|
52
|
-
:'pulp_created' => :'pulp_created'
|
52
|
+
:'pulp_href' => :'pulp_href'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'pulp_href' => :'String',
|
60
59
|
:'retain_repo_versions' => :'Integer',
|
60
|
+
:'pulp_created' => :'DateTime',
|
61
|
+
:'manifest_signing_service' => :'String',
|
61
62
|
:'latest_version_href' => :'String',
|
62
63
|
:'description' => :'String',
|
64
|
+
:'versions_href' => :'String',
|
63
65
|
:'name' => :'String',
|
64
66
|
:'pulp_labels' => :'Hash<String, String>',
|
65
|
-
:'
|
66
|
-
:'versions_href' => :'String',
|
67
|
-
:'pulp_created' => :'DateTime'
|
67
|
+
:'pulp_href' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
@@ -72,8 +72,8 @@ module PulpContainerClient
|
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
74
|
:'retain_repo_versions',
|
75
|
-
:'description',
|
76
75
|
:'manifest_signing_service',
|
76
|
+
:'description',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,14 +92,18 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'pulp_href')
|
96
|
-
self.pulp_href = attributes[:'pulp_href']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'retain_repo_versions')
|
100
96
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'pulp_created')
|
100
|
+
self.pulp_created = attributes[:'pulp_created']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'manifest_signing_service')
|
104
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
105
|
+
end
|
106
|
+
|
103
107
|
if attributes.key?(:'latest_version_href')
|
104
108
|
self.latest_version_href = attributes[:'latest_version_href']
|
105
109
|
end
|
@@ -108,6 +112,10 @@ module PulpContainerClient
|
|
108
112
|
self.description = attributes[:'description']
|
109
113
|
end
|
110
114
|
|
115
|
+
if attributes.key?(:'versions_href')
|
116
|
+
self.versions_href = attributes[:'versions_href']
|
117
|
+
end
|
118
|
+
|
111
119
|
if attributes.key?(:'name')
|
112
120
|
self.name = attributes[:'name']
|
113
121
|
end
|
@@ -118,16 +126,8 @@ module PulpContainerClient
|
|
118
126
|
end
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'versions_href')
|
126
|
-
self.versions_href = attributes[:'versions_href']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'pulp_created')
|
130
|
-
self.pulp_created = attributes[:'pulp_created']
|
129
|
+
if attributes.key?(:'pulp_href')
|
130
|
+
self.pulp_href = attributes[:'pulp_href']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
pulp_href == o.pulp_href &&
|
173
172
|
retain_repo_versions == o.retain_repo_versions &&
|
173
|
+
pulp_created == o.pulp_created &&
|
174
|
+
manifest_signing_service == o.manifest_signing_service &&
|
174
175
|
latest_version_href == o.latest_version_href &&
|
175
176
|
description == o.description &&
|
177
|
+
versions_href == o.versions_href &&
|
176
178
|
name == o.name &&
|
177
179
|
pulp_labels == o.pulp_labels &&
|
178
|
-
|
179
|
-
versions_href == o.versions_href &&
|
180
|
-
pulp_created == o.pulp_created
|
180
|
+
pulp_href == o.pulp_href
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[retain_repo_versions, pulp_created, manifest_signing_service, latest_version_href, description, versions_href, name, pulp_labels, pulp_href].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -354,20 +354,20 @@ module PulpContainerClient
|
|
354
354
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
357
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
358
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
361
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
362
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
363
363
|
end
|
364
364
|
|
365
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
365
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
366
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
367
367
|
end
|
368
368
|
|
369
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
370
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
369
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
370
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
371
371
|
end
|
372
372
|
|
373
373
|
if @upstream_name.nil?
|
@@ -401,10 +401,10 @@ module PulpContainerClient
|
|
401
401
|
return false if !@username.nil? && @username.to_s.length < 1
|
402
402
|
return false if !@password.nil? && @password.to_s.length < 1
|
403
403
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
404
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
405
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
406
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
407
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
404
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
405
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
406
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
407
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
408
408
|
return false if @upstream_name.nil?
|
409
409
|
return false if @upstream_name.to_s.length < 1
|
410
410
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
@@ -532,8 +532,8 @@ module PulpContainerClient
|
|
532
532
|
# Custom attribute writer method with validation
|
533
533
|
# @param [Object] total_timeout Value to be assigned
|
534
534
|
def total_timeout=(total_timeout)
|
535
|
-
if !total_timeout.nil? && total_timeout < 0
|
536
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
535
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
536
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
537
537
|
end
|
538
538
|
|
539
539
|
@total_timeout = total_timeout
|
@@ -542,8 +542,8 @@ module PulpContainerClient
|
|
542
542
|
# Custom attribute writer method with validation
|
543
543
|
# @param [Object] connect_timeout Value to be assigned
|
544
544
|
def connect_timeout=(connect_timeout)
|
545
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
546
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
545
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
546
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
547
547
|
end
|
548
548
|
|
549
549
|
@connect_timeout = connect_timeout
|
@@ -552,8 +552,8 @@ module PulpContainerClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] sock_connect_timeout Value to be assigned
|
554
554
|
def sock_connect_timeout=(sock_connect_timeout)
|
555
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
555
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -562,8 +562,8 @@ module PulpContainerClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] sock_read_timeout Value to be assigned
|
564
564
|
def sock_read_timeout=(sock_read_timeout)
|
565
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
565
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@sock_read_timeout = sock_read_timeout
|
@@ -301,20 +301,20 @@ module PulpContainerClient
|
|
301
301
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
302
|
end
|
303
303
|
|
304
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
304
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
306
|
end
|
307
307
|
|
308
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
308
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
309
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
312
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
313
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
316
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
317
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
318
318
|
end
|
319
319
|
|
320
320
|
if @upstream_name.nil?
|
@@ -330,10 +330,10 @@ module PulpContainerClient
|
|
330
330
|
return false if @name.nil?
|
331
331
|
return false if @url.nil?
|
332
332
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
333
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
334
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
335
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
336
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
337
337
|
return false if @upstream_name.nil?
|
338
338
|
true
|
339
339
|
end
|
@@ -351,8 +351,8 @@ module PulpContainerClient
|
|
351
351
|
# Custom attribute writer method with validation
|
352
352
|
# @param [Object] total_timeout Value to be assigned
|
353
353
|
def total_timeout=(total_timeout)
|
354
|
-
if !total_timeout.nil? && total_timeout < 0
|
355
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
354
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
355
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
356
356
|
end
|
357
357
|
|
358
358
|
@total_timeout = total_timeout
|
@@ -361,8 +361,8 @@ module PulpContainerClient
|
|
361
361
|
# Custom attribute writer method with validation
|
362
362
|
# @param [Object] connect_timeout Value to be assigned
|
363
363
|
def connect_timeout=(connect_timeout)
|
364
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
364
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
365
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
366
366
|
end
|
367
367
|
|
368
368
|
@connect_timeout = connect_timeout
|
@@ -371,8 +371,8 @@ module PulpContainerClient
|
|
371
371
|
# Custom attribute writer method with validation
|
372
372
|
# @param [Object] sock_connect_timeout Value to be assigned
|
373
373
|
def sock_connect_timeout=(sock_connect_timeout)
|
374
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
374
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
375
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
376
376
|
end
|
377
377
|
|
378
378
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -381,8 +381,8 @@ module PulpContainerClient
|
|
381
381
|
# Custom attribute writer method with validation
|
382
382
|
# @param [Object] sock_read_timeout Value to be assigned
|
383
383
|
def sock_read_timeout=(sock_read_timeout)
|
384
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
384
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
385
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
386
386
|
end
|
387
387
|
|
388
388
|
@sock_read_timeout = sock_read_timeout
|
@@ -68,12 +68,22 @@ module PulpContainerClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|