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