pulp_container_client 2.16.9 → 2.16.11
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 +5 -7
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- 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 +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- 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 +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository.rb +52 -52
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
- 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 +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +68 -76
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# The latest RepositoryVersion for this Repository will be served.
|
22
|
+
attr_accessor :repository
|
23
23
|
|
24
|
-
|
24
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
|
+
attr_accessor :base_path
|
25
26
|
|
26
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
28
|
attr_accessor :name
|
28
29
|
|
29
|
-
|
30
|
-
attr_accessor :hidden
|
30
|
+
attr_accessor :pulp_href
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
+
attr_accessor :content_guard
|
34
34
|
|
35
|
-
|
35
|
+
# Timestamp of creation.
|
36
|
+
attr_accessor :pulp_created
|
36
37
|
|
37
|
-
|
38
|
-
attr_accessor :repository
|
38
|
+
attr_accessor :pulp_labels
|
39
39
|
|
40
40
|
# RepositoryVersion to be served
|
41
41
|
attr_accessor :repository_version
|
@@ -55,14 +55,14 @@ module PulpContainerClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'content_guard' => :'content_guard',
|
59
|
-
:'pulp_created' => :'pulp_created',
|
60
|
-
:'pulp_href' => :'pulp_href',
|
61
|
-
:'name' => :'name',
|
62
58
|
:'hidden' => :'hidden',
|
59
|
+
:'repository' => :'repository',
|
63
60
|
:'base_path' => :'base_path',
|
61
|
+
:'name' => :'name',
|
62
|
+
:'pulp_href' => :'pulp_href',
|
63
|
+
:'content_guard' => :'content_guard',
|
64
|
+
:'pulp_created' => :'pulp_created',
|
64
65
|
:'pulp_labels' => :'pulp_labels',
|
65
|
-
:'repository' => :'repository',
|
66
66
|
:'repository_version' => :'repository_version',
|
67
67
|
:'registry_path' => :'registry_path',
|
68
68
|
:'namespace' => :'namespace',
|
@@ -74,14 +74,14 @@ module PulpContainerClient
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:'content_guard' => :'String',
|
78
|
-
:'pulp_created' => :'DateTime',
|
79
|
-
:'pulp_href' => :'String',
|
80
|
-
:'name' => :'String',
|
81
77
|
:'hidden' => :'Boolean',
|
78
|
+
:'repository' => :'String',
|
82
79
|
:'base_path' => :'String',
|
80
|
+
:'name' => :'String',
|
81
|
+
:'pulp_href' => :'String',
|
82
|
+
:'content_guard' => :'String',
|
83
|
+
:'pulp_created' => :'DateTime',
|
83
84
|
:'pulp_labels' => :'Hash<String, String>',
|
84
|
-
:'repository' => :'String',
|
85
85
|
:'repository_version' => :'String',
|
86
86
|
:'registry_path' => :'String',
|
87
87
|
:'namespace' => :'String',
|
@@ -114,30 +114,34 @@ module PulpContainerClient
|
|
114
114
|
h[k.to_sym] = v
|
115
115
|
}
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'hidden')
|
118
|
+
self.hidden = attributes[:'hidden']
|
119
|
+
else
|
120
|
+
self.hidden = false
|
119
121
|
end
|
120
122
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
+
if attributes.key?(:'repository')
|
124
|
+
self.repository = attributes[:'repository']
|
123
125
|
end
|
124
126
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
127
|
+
if attributes.key?(:'base_path')
|
128
|
+
self.base_path = attributes[:'base_path']
|
127
129
|
end
|
128
130
|
|
129
131
|
if attributes.key?(:'name')
|
130
132
|
self.name = attributes[:'name']
|
131
133
|
end
|
132
134
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
135
|
-
else
|
136
|
-
self.hidden = false
|
135
|
+
if attributes.key?(:'pulp_href')
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
137
137
|
end
|
138
138
|
|
139
|
-
if attributes.key?(:'
|
140
|
-
self.
|
139
|
+
if attributes.key?(:'content_guard')
|
140
|
+
self.content_guard = attributes[:'content_guard']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'pulp_created')
|
144
|
+
self.pulp_created = attributes[:'pulp_created']
|
141
145
|
end
|
142
146
|
|
143
147
|
if attributes.key?(:'pulp_labels')
|
@@ -146,10 +150,6 @@ module PulpContainerClient
|
|
146
150
|
end
|
147
151
|
end
|
148
152
|
|
149
|
-
if attributes.key?(:'repository')
|
150
|
-
self.repository = attributes[:'repository']
|
151
|
-
end
|
152
|
-
|
153
153
|
if attributes.key?(:'repository_version')
|
154
154
|
self.repository_version = attributes[:'repository_version']
|
155
155
|
end
|
@@ -175,22 +175,22 @@ module PulpContainerClient
|
|
175
175
|
# @return Array for valid properties with the reasons
|
176
176
|
def list_invalid_properties
|
177
177
|
invalid_properties = Array.new
|
178
|
-
if @name.nil?
|
179
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
180
|
-
end
|
181
|
-
|
182
178
|
if @base_path.nil?
|
183
179
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
184
180
|
end
|
185
181
|
|
182
|
+
if @name.nil?
|
183
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
184
|
+
end
|
185
|
+
|
186
186
|
invalid_properties
|
187
187
|
end
|
188
188
|
|
189
189
|
# Check to see if the all the properties in the model are valid
|
190
190
|
# @return true if the model is valid
|
191
191
|
def valid?
|
192
|
-
return false if @name.nil?
|
193
192
|
return false if @base_path.nil?
|
193
|
+
return false if @name.nil?
|
194
194
|
true
|
195
195
|
end
|
196
196
|
|
@@ -199,14 +199,14 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
content_guard == o.content_guard &&
|
203
|
-
pulp_created == o.pulp_created &&
|
204
|
-
pulp_href == o.pulp_href &&
|
205
|
-
name == o.name &&
|
206
202
|
hidden == o.hidden &&
|
203
|
+
repository == o.repository &&
|
207
204
|
base_path == o.base_path &&
|
205
|
+
name == o.name &&
|
206
|
+
pulp_href == o.pulp_href &&
|
207
|
+
content_guard == o.content_guard &&
|
208
|
+
pulp_created == o.pulp_created &&
|
208
209
|
pulp_labels == o.pulp_labels &&
|
209
|
-
repository == o.repository &&
|
210
210
|
repository_version == o.repository_version &&
|
211
211
|
registry_path == o.registry_path &&
|
212
212
|
namespace == o.namespace &&
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[hidden, repository, base_path, name, pulp_href, content_guard, pulp_created, pulp_labels, repository_version, registry_path, namespace, private, description].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
# An optional description.
|
19
|
-
attr_accessor :description
|
20
|
-
|
21
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
22
|
-
attr_accessor :retain_repo_versions
|
23
|
-
|
24
18
|
# A unique name for this repository.
|
25
19
|
attr_accessor :name
|
26
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
23
|
+
# An optional description.
|
24
|
+
attr_accessor :description
|
25
|
+
|
27
26
|
# A reference to an associated signing service.
|
28
27
|
attr_accessor :manifest_signing_service
|
29
28
|
|
30
|
-
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
30
|
+
attr_accessor :retain_repo_versions
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'description' => :'description',
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
35
|
:'name' => :'name',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'description' => :'description',
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'description' => :'String',
|
47
|
-
:'retain_repo_versions' => :'Integer',
|
48
46
|
:'name' => :'String',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'description' => :'String',
|
49
49
|
:'manifest_signing_service' => :'String',
|
50
|
-
:'
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
:'description',
|
58
|
-
:'retain_repo_versions',
|
59
58
|
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'name')
|
79
|
+
self.name = attributes[:'name']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
84
86
|
end
|
85
87
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
+
if attributes.key?(:'description')
|
89
|
+
self.description = attributes[:'description']
|
88
90
|
end
|
89
91
|
|
90
92
|
if attributes.key?(:'manifest_signing_service')
|
91
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,14 +102,6 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@description.nil? && @description.to_s.length < 1
|
106
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
|
-
end
|
112
|
-
|
113
105
|
if @name.nil?
|
114
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
107
|
end
|
@@ -118,19 +110,41 @@ module PulpContainerClient
|
|
118
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
119
111
|
end
|
120
112
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
118
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
119
|
+
end
|
120
|
+
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
128
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
129
127
|
return false if @name.nil?
|
130
128
|
return false if @name.to_s.length < 1
|
129
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
130
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] name Value to be assigned
|
136
|
+
def name=(name)
|
137
|
+
if name.nil?
|
138
|
+
fail ArgumentError, 'name cannot be nil'
|
139
|
+
end
|
140
|
+
|
141
|
+
if name.to_s.length < 1
|
142
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
143
|
+
end
|
144
|
+
|
145
|
+
@name = name
|
146
|
+
end
|
147
|
+
|
134
148
|
# Custom attribute writer method with validation
|
135
149
|
# @param [Object] description Value to be assigned
|
136
150
|
def description=(description)
|
@@ -151,30 +165,16 @@ module PulpContainerClient
|
|
151
165
|
@retain_repo_versions = retain_repo_versions
|
152
166
|
end
|
153
167
|
|
154
|
-
# Custom attribute writer method with validation
|
155
|
-
# @param [Object] name Value to be assigned
|
156
|
-
def name=(name)
|
157
|
-
if name.nil?
|
158
|
-
fail ArgumentError, 'name cannot be nil'
|
159
|
-
end
|
160
|
-
|
161
|
-
if name.to_s.length < 1
|
162
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
163
|
-
end
|
164
|
-
|
165
|
-
@name = name
|
166
|
-
end
|
167
|
-
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
description == o.description &&
|
174
|
-
retain_repo_versions == o.retain_repo_versions &&
|
175
173
|
name == o.name &&
|
174
|
+
pulp_labels == o.pulp_labels &&
|
175
|
+
description == o.description &&
|
176
176
|
manifest_signing_service == o.manifest_signing_service &&
|
177
|
-
|
177
|
+
retain_repo_versions == o.retain_repo_versions
|
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
|
-
[
|
189
|
+
[name, pulp_labels, description, manifest_signing_service, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -17,39 +17,39 @@ module PulpContainerClient
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
18
|
attr_accessor :latest_version_href
|
19
19
|
|
20
|
-
|
21
|
-
attr_accessor :description
|
20
|
+
attr_accessor :versions_href
|
22
21
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
22
|
+
# A unique name for this repository.
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
attr_accessor :pulp_href
|
25
26
|
|
26
27
|
# Timestamp of creation.
|
27
28
|
attr_accessor :pulp_created
|
28
29
|
|
29
|
-
attr_accessor :
|
30
|
-
|
31
|
-
# A unique name for this repository.
|
32
|
-
attr_accessor :name
|
30
|
+
attr_accessor :pulp_labels
|
33
31
|
|
34
|
-
|
32
|
+
# An optional description.
|
33
|
+
attr_accessor :description
|
35
34
|
|
36
35
|
# A reference to an associated signing service.
|
37
36
|
attr_accessor :manifest_signing_service
|
38
37
|
|
39
|
-
|
38
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
39
|
+
attr_accessor :retain_repo_versions
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'latest_version_href' => :'latest_version_href',
|
45
|
-
:'description' => :'description',
|
46
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
47
|
-
:'pulp_created' => :'pulp_created',
|
48
|
-
:'pulp_href' => :'pulp_href',
|
49
|
-
:'name' => :'name',
|
50
45
|
:'versions_href' => :'versions_href',
|
46
|
+
:'name' => :'name',
|
47
|
+
:'pulp_href' => :'pulp_href',
|
48
|
+
:'pulp_created' => :'pulp_created',
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
50
|
+
:'description' => :'description',
|
51
51
|
:'manifest_signing_service' => :'manifest_signing_service',
|
52
|
-
:'
|
52
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -57,14 +57,14 @@ module PulpContainerClient
|
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
59
|
:'latest_version_href' => :'String',
|
60
|
-
:'description' => :'String',
|
61
|
-
:'retain_repo_versions' => :'Integer',
|
62
|
-
:'pulp_created' => :'DateTime',
|
63
|
-
:'pulp_href' => :'String',
|
64
|
-
:'name' => :'String',
|
65
60
|
:'versions_href' => :'String',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'pulp_href' => :'String',
|
63
|
+
:'pulp_created' => :'DateTime',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
65
|
+
:'description' => :'String',
|
66
66
|
:'manifest_signing_service' => :'String',
|
67
|
-
:'
|
67
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
:'description',
|
75
|
-
:'retain_repo_versions',
|
76
75
|
:'manifest_signing_service',
|
76
|
+
:'retain_repo_versions'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -96,38 +96,38 @@ module PulpContainerClient
|
|
96
96
|
self.latest_version_href = attributes[:'latest_version_href']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'retain_repo_versions')
|
104
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
99
|
+
if attributes.key?(:'versions_href')
|
100
|
+
self.versions_href = attributes[:'versions_href']
|
105
101
|
end
|
106
102
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
103
|
+
if attributes.key?(:'name')
|
104
|
+
self.name = attributes[:'name']
|
109
105
|
end
|
110
106
|
|
111
107
|
if attributes.key?(:'pulp_href')
|
112
108
|
self.pulp_href = attributes[:'pulp_href']
|
113
109
|
end
|
114
110
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
117
113
|
end
|
118
114
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
|
115
|
+
if attributes.key?(:'pulp_labels')
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
117
|
+
self.pulp_labels = value
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
121
123
|
end
|
122
124
|
|
123
125
|
if attributes.key?(:'manifest_signing_service')
|
124
126
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
125
127
|
end
|
126
128
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
129
|
-
self.pulp_labels = value
|
130
|
-
end
|
129
|
+
if attributes.key?(:'retain_repo_versions')
|
130
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -135,22 +135,22 @@ module PulpContainerClient
|
|
135
135
|
# @return Array for valid properties with the reasons
|
136
136
|
def list_invalid_properties
|
137
137
|
invalid_properties = Array.new
|
138
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
139
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
140
|
-
end
|
141
|
-
|
142
138
|
if @name.nil?
|
143
139
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
140
|
end
|
145
141
|
|
142
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
143
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
144
|
+
end
|
145
|
+
|
146
146
|
invalid_properties
|
147
147
|
end
|
148
148
|
|
149
149
|
# Check to see if the all the properties in the model are valid
|
150
150
|
# @return true if the model is valid
|
151
151
|
def valid?
|
152
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
152
|
return false if @name.nil?
|
153
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -170,14 +170,14 @@ module PulpContainerClient
|
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
172
|
latest_version_href == o.latest_version_href &&
|
173
|
-
description == o.description &&
|
174
|
-
retain_repo_versions == o.retain_repo_versions &&
|
175
|
-
pulp_created == o.pulp_created &&
|
176
|
-
pulp_href == o.pulp_href &&
|
177
|
-
name == o.name &&
|
178
173
|
versions_href == o.versions_href &&
|
174
|
+
name == o.name &&
|
175
|
+
pulp_href == o.pulp_href &&
|
176
|
+
pulp_created == o.pulp_created &&
|
177
|
+
pulp_labels == o.pulp_labels &&
|
178
|
+
description == o.description &&
|
179
179
|
manifest_signing_service == o.manifest_signing_service &&
|
180
|
-
|
180
|
+
retain_repo_versions == o.retain_repo_versions
|
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
|
-
[latest_version_href,
|
192
|
+
[latest_version_href, versions_href, name, pulp_href, pulp_created, pulp_labels, description, manifest_signing_service, retain_repo_versions].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
|