pulp_container_client 2.25.0 → 2.25.1
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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +62 -62
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +62 -62
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_push_repository.rb +36 -36
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +59 -59
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +0 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- 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_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +60 -80
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -16,36 +16,36 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
20
|
+
attr_accessor :content_guard
|
21
21
|
|
22
22
|
attr_accessor :pulp_href
|
23
23
|
|
24
|
-
# Timestamp of
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# The latest RepositoryVersion for this Repository will be served.
|
28
|
-
attr_accessor :repository
|
24
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
25
|
+
attr_accessor :pulp_last_updated
|
29
26
|
|
30
27
|
# The Pulp Resource Name (PRN).
|
31
28
|
attr_accessor :prn
|
32
29
|
|
33
|
-
|
34
|
-
attr_accessor :content_guard
|
35
|
-
|
36
|
-
# Whether this distribution should be shown in the content app.
|
37
|
-
attr_accessor :hidden
|
30
|
+
attr_accessor :pulp_labels
|
38
31
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
32
|
+
# Timestamp of creation.
|
33
|
+
attr_accessor :pulp_created
|
41
34
|
|
42
|
-
# Timestamp
|
43
|
-
attr_accessor :
|
35
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
36
|
+
attr_accessor :no_content_change_since
|
44
37
|
|
45
38
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
46
39
|
attr_accessor :base_path
|
47
40
|
|
48
|
-
|
41
|
+
# The latest RepositoryVersion for this Repository will be served.
|
42
|
+
attr_accessor :repository
|
43
|
+
|
44
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
45
|
+
attr_accessor :name
|
46
|
+
|
47
|
+
# Whether this distribution should be shown in the content app.
|
48
|
+
attr_accessor :hidden
|
49
49
|
|
50
50
|
# Remote that can be used to fetch content when using pull-through caching.
|
51
51
|
attr_accessor :remote
|
@@ -65,17 +65,17 @@ module PulpContainerClient
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
66
|
def self.attribute_map
|
67
67
|
{
|
68
|
-
:'
|
68
|
+
:'content_guard' => :'content_guard',
|
69
69
|
:'pulp_href' => :'pulp_href',
|
70
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
71
|
+
:'prn' => :'prn',
|
72
|
+
:'pulp_labels' => :'pulp_labels',
|
70
73
|
:'pulp_created' => :'pulp_created',
|
74
|
+
:'no_content_change_since' => :'no_content_change_since',
|
75
|
+
:'base_path' => :'base_path',
|
71
76
|
:'repository' => :'repository',
|
72
|
-
:'prn' => :'prn',
|
73
|
-
:'content_guard' => :'content_guard',
|
74
|
-
:'hidden' => :'hidden',
|
75
77
|
:'name' => :'name',
|
76
|
-
:'
|
77
|
-
:'base_path' => :'base_path',
|
78
|
-
:'pulp_labels' => :'pulp_labels',
|
78
|
+
:'hidden' => :'hidden',
|
79
79
|
:'remote' => :'remote',
|
80
80
|
:'distributions' => :'distributions',
|
81
81
|
:'namespace' => :'namespace',
|
@@ -92,17 +92,17 @@ module PulpContainerClient
|
|
92
92
|
# Attribute type mapping.
|
93
93
|
def self.openapi_types
|
94
94
|
{
|
95
|
-
:'
|
95
|
+
:'content_guard' => :'String',
|
96
96
|
:'pulp_href' => :'String',
|
97
|
+
:'pulp_last_updated' => :'Time',
|
98
|
+
:'prn' => :'String',
|
99
|
+
:'pulp_labels' => :'Hash<String, String>',
|
97
100
|
:'pulp_created' => :'Time',
|
101
|
+
:'no_content_change_since' => :'String',
|
102
|
+
:'base_path' => :'String',
|
98
103
|
:'repository' => :'String',
|
99
|
-
:'prn' => :'String',
|
100
|
-
:'content_guard' => :'String',
|
101
|
-
:'hidden' => :'Boolean',
|
102
104
|
:'name' => :'String',
|
103
|
-
:'
|
104
|
-
:'base_path' => :'String',
|
105
|
-
:'pulp_labels' => :'Hash<String, String>',
|
105
|
+
:'hidden' => :'Boolean',
|
106
106
|
:'remote' => :'String',
|
107
107
|
:'distributions' => :'Array<String>',
|
108
108
|
:'namespace' => :'String',
|
@@ -134,44 +134,34 @@ module PulpContainerClient
|
|
134
134
|
h[k.to_sym] = v
|
135
135
|
}
|
136
136
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
137
|
+
if attributes.key?(:'content_guard')
|
138
|
+
self.content_guard = attributes[:'content_guard']
|
139
139
|
end
|
140
140
|
|
141
141
|
if attributes.key?(:'pulp_href')
|
142
142
|
self.pulp_href = attributes[:'pulp_href']
|
143
143
|
end
|
144
144
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
-
end
|
148
|
-
|
149
|
-
if attributes.key?(:'repository')
|
150
|
-
self.repository = attributes[:'repository']
|
145
|
+
if attributes.key?(:'pulp_last_updated')
|
146
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
151
147
|
end
|
152
148
|
|
153
149
|
if attributes.key?(:'prn')
|
154
150
|
self.prn = attributes[:'prn']
|
155
151
|
end
|
156
152
|
|
157
|
-
if attributes.key?(:'
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if attributes.key?(:'hidden')
|
162
|
-
self.hidden = attributes[:'hidden']
|
163
|
-
else
|
164
|
-
self.hidden = false
|
153
|
+
if attributes.key?(:'pulp_labels')
|
154
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
155
|
+
self.pulp_labels = value
|
156
|
+
end
|
165
157
|
end
|
166
158
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
self.
|
169
|
-
else
|
170
|
-
self.name = nil
|
159
|
+
if attributes.key?(:'pulp_created')
|
160
|
+
self.pulp_created = attributes[:'pulp_created']
|
171
161
|
end
|
172
162
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
self.
|
163
|
+
if attributes.key?(:'no_content_change_since')
|
164
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
175
165
|
end
|
176
166
|
|
177
167
|
if attributes.key?(:'base_path')
|
@@ -180,10 +170,20 @@ module PulpContainerClient
|
|
180
170
|
self.base_path = nil
|
181
171
|
end
|
182
172
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
|
185
|
-
|
186
|
-
|
173
|
+
if attributes.key?(:'repository')
|
174
|
+
self.repository = attributes[:'repository']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'name')
|
178
|
+
self.name = attributes[:'name']
|
179
|
+
else
|
180
|
+
self.name = nil
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.key?(:'hidden')
|
184
|
+
self.hidden = attributes[:'hidden']
|
185
|
+
else
|
186
|
+
self.hidden = false
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'remote')
|
@@ -216,14 +216,14 @@ module PulpContainerClient
|
|
216
216
|
def list_invalid_properties
|
217
217
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
218
218
|
invalid_properties = Array.new
|
219
|
-
if @name.nil?
|
220
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
221
|
-
end
|
222
|
-
|
223
219
|
if @base_path.nil?
|
224
220
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
225
221
|
end
|
226
222
|
|
223
|
+
if @name.nil?
|
224
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
225
|
+
end
|
226
|
+
|
227
227
|
if @remote.nil?
|
228
228
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
229
229
|
end
|
@@ -235,8 +235,8 @@ module PulpContainerClient
|
|
235
235
|
# @return true if the model is valid
|
236
236
|
def valid?
|
237
237
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
238
|
-
return false if @name.nil?
|
239
238
|
return false if @base_path.nil?
|
239
|
+
return false if @name.nil?
|
240
240
|
return false if @remote.nil?
|
241
241
|
true
|
242
242
|
end
|
@@ -246,17 +246,17 @@ module PulpContainerClient
|
|
246
246
|
def ==(o)
|
247
247
|
return true if self.equal?(o)
|
248
248
|
self.class == o.class &&
|
249
|
-
|
249
|
+
content_guard == o.content_guard &&
|
250
250
|
pulp_href == o.pulp_href &&
|
251
|
+
pulp_last_updated == o.pulp_last_updated &&
|
252
|
+
prn == o.prn &&
|
253
|
+
pulp_labels == o.pulp_labels &&
|
251
254
|
pulp_created == o.pulp_created &&
|
255
|
+
no_content_change_since == o.no_content_change_since &&
|
256
|
+
base_path == o.base_path &&
|
252
257
|
repository == o.repository &&
|
253
|
-
prn == o.prn &&
|
254
|
-
content_guard == o.content_guard &&
|
255
|
-
hidden == o.hidden &&
|
256
258
|
name == o.name &&
|
257
|
-
|
258
|
-
base_path == o.base_path &&
|
259
|
-
pulp_labels == o.pulp_labels &&
|
259
|
+
hidden == o.hidden &&
|
260
260
|
remote == o.remote &&
|
261
261
|
distributions == o.distributions &&
|
262
262
|
namespace == o.namespace &&
|
@@ -273,7 +273,7 @@ module PulpContainerClient
|
|
273
273
|
# Calculates hash code according to all attributes.
|
274
274
|
# @return [Integer] Hash code
|
275
275
|
def hash
|
276
|
-
[
|
276
|
+
[content_guard, pulp_href, pulp_last_updated, prn, pulp_labels, pulp_created, no_content_change_since, base_path, repository, name, hidden, remote, distributions, namespace, private, description].hash
|
277
277
|
end
|
278
278
|
|
279
279
|
# Builds the object from hash
|
@@ -16,28 +16,28 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepository
|
19
|
+
attr_accessor :pulp_labels
|
20
|
+
|
19
21
|
# Retain X versions of the repository. Default is null which retains all versions.
|
20
22
|
attr_accessor :retain_repo_versions
|
21
23
|
|
22
24
|
# A reference to an associated signing service.
|
23
25
|
attr_accessor :manifest_signing_service
|
24
26
|
|
25
|
-
# A unique name for this repository.
|
26
|
-
attr_accessor :name
|
27
|
-
|
28
27
|
# An optional description.
|
29
28
|
attr_accessor :description
|
30
29
|
|
31
|
-
|
30
|
+
# A unique name for this repository.
|
31
|
+
attr_accessor :name
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
36
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
37
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
-
:'name' => :'name',
|
39
39
|
:'description' => :'description',
|
40
|
-
:'
|
40
|
+
:'name' => :'name'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -49,11 +49,11 @@ module PulpContainerClient
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
+
:'pulp_labels' => :'Hash<String, String>',
|
52
53
|
:'retain_repo_versions' => :'Integer',
|
53
54
|
:'manifest_signing_service' => :'String',
|
54
|
-
:'name' => :'String',
|
55
55
|
:'description' => :'String',
|
56
|
-
:'
|
56
|
+
:'name' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -81,6 +81,12 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
+
if attributes.key?(:'pulp_labels')
|
85
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
86
|
+
self.pulp_labels = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
84
90
|
if attributes.key?(:'retain_repo_versions')
|
85
91
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
86
92
|
end
|
@@ -89,20 +95,14 @@ module PulpContainerClient
|
|
89
95
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
96
|
end
|
91
97
|
|
92
|
-
if attributes.key?(:'name')
|
93
|
-
self.name = attributes[:'name']
|
94
|
-
else
|
95
|
-
self.name = nil
|
96
|
-
end
|
97
|
-
|
98
98
|
if attributes.key?(:'description')
|
99
99
|
self.description = attributes[:'description']
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
|
104
|
-
|
105
|
-
|
102
|
+
if attributes.key?(:'name')
|
103
|
+
self.name = attributes[:'name']
|
104
|
+
else
|
105
|
+
self.name = nil
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -115,6 +115,10 @@ module PulpContainerClient
|
|
115
115
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
116
116
|
end
|
117
117
|
|
118
|
+
if !@description.nil? && @description.to_s.length < 1
|
119
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
120
|
+
end
|
121
|
+
|
118
122
|
if @name.nil?
|
119
123
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
120
124
|
end
|
@@ -123,10 +127,6 @@ module PulpContainerClient
|
|
123
127
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
124
128
|
end
|
125
129
|
|
126
|
-
if !@description.nil? && @description.to_s.length < 1
|
127
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
128
|
-
end
|
129
|
-
|
130
130
|
invalid_properties
|
131
131
|
end
|
132
132
|
|
@@ -135,9 +135,9 @@ module PulpContainerClient
|
|
135
135
|
def valid?
|
136
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
137
137
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
138
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
138
139
|
return false if @name.nil?
|
139
140
|
return false if @name.to_s.length < 1
|
140
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
141
141
|
true
|
142
142
|
end
|
143
143
|
|
@@ -151,6 +151,16 @@ module PulpContainerClient
|
|
151
151
|
@retain_repo_versions = retain_repo_versions
|
152
152
|
end
|
153
153
|
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param [Object] description Value to be assigned
|
156
|
+
def description=(description)
|
157
|
+
if !description.nil? && description.to_s.length < 1
|
158
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@description = description
|
162
|
+
end
|
163
|
+
|
154
164
|
# Custom attribute writer method with validation
|
155
165
|
# @param [Object] name Value to be assigned
|
156
166
|
def name=(name)
|
@@ -165,26 +175,16 @@ module PulpContainerClient
|
|
165
175
|
@name = name
|
166
176
|
end
|
167
177
|
|
168
|
-
# Custom attribute writer method with validation
|
169
|
-
# @param [Object] description Value to be assigned
|
170
|
-
def description=(description)
|
171
|
-
if !description.nil? && description.to_s.length < 1
|
172
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
173
|
-
end
|
174
|
-
|
175
|
-
@description = description
|
176
|
-
end
|
177
|
-
|
178
178
|
# Checks equality by comparing each attribute.
|
179
179
|
# @param [Object] Object to be compared
|
180
180
|
def ==(o)
|
181
181
|
return true if self.equal?(o)
|
182
182
|
self.class == o.class &&
|
183
|
+
pulp_labels == o.pulp_labels &&
|
183
184
|
retain_repo_versions == o.retain_repo_versions &&
|
184
185
|
manifest_signing_service == o.manifest_signing_service &&
|
185
|
-
name == o.name &&
|
186
186
|
description == o.description &&
|
187
|
-
|
187
|
+
name == o.name
|
188
188
|
end
|
189
189
|
|
190
190
|
# @see the `==` method
|
@@ -196,7 +196,7 @@ module PulpContainerClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[retain_repo_versions, manifest_signing_service,
|
199
|
+
[pulp_labels, retain_repo_versions, manifest_signing_service, description, name].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -16,49 +16,49 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :pulp_href
|
20
|
+
|
21
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
22
|
+
attr_accessor :pulp_last_updated
|
23
|
+
|
24
|
+
# The Pulp Resource Name (PRN).
|
25
|
+
attr_accessor :prn
|
26
|
+
|
27
|
+
attr_accessor :pulp_labels
|
20
28
|
|
21
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
22
30
|
attr_accessor :retain_repo_versions
|
23
31
|
|
24
|
-
attr_accessor :pulp_href
|
25
|
-
|
26
32
|
# Timestamp of creation.
|
27
33
|
attr_accessor :pulp_created
|
28
34
|
|
29
35
|
# A reference to an associated signing service.
|
30
36
|
attr_accessor :manifest_signing_service
|
31
37
|
|
32
|
-
|
33
|
-
attr_accessor :prn
|
34
|
-
|
35
|
-
# A unique name for this repository.
|
36
|
-
attr_accessor :name
|
38
|
+
attr_accessor :latest_version_href
|
37
39
|
|
38
40
|
# An optional description.
|
39
41
|
attr_accessor :description
|
40
42
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
attr_accessor :latest_version_href
|
43
|
+
# A unique name for this repository.
|
44
|
+
attr_accessor :name
|
45
45
|
|
46
|
-
attr_accessor :
|
46
|
+
attr_accessor :versions_href
|
47
47
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'versions_href' => :'versions_href',
|
52
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
53
51
|
:'pulp_href' => :'pulp_href',
|
52
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
53
|
+
:'prn' => :'prn',
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
54
56
|
:'pulp_created' => :'pulp_created',
|
55
57
|
:'manifest_signing_service' => :'manifest_signing_service',
|
56
|
-
:'prn' => :'prn',
|
57
|
-
:'name' => :'name',
|
58
|
-
:'description' => :'description',
|
59
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
60
58
|
:'latest_version_href' => :'latest_version_href',
|
61
|
-
:'
|
59
|
+
:'description' => :'description',
|
60
|
+
:'name' => :'name',
|
61
|
+
:'versions_href' => :'versions_href'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -70,17 +70,17 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'versions_href' => :'String',
|
74
|
-
:'retain_repo_versions' => :'Integer',
|
75
73
|
:'pulp_href' => :'String',
|
74
|
+
:'pulp_last_updated' => :'Time',
|
75
|
+
:'prn' => :'String',
|
76
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'retain_repo_versions' => :'Integer',
|
76
78
|
:'pulp_created' => :'Time',
|
77
79
|
:'manifest_signing_service' => :'String',
|
78
|
-
:'prn' => :'String',
|
79
|
-
:'name' => :'String',
|
80
|
-
:'description' => :'String',
|
81
|
-
:'pulp_last_updated' => :'Time',
|
82
80
|
:'latest_version_href' => :'String',
|
83
|
-
:'
|
81
|
+
:'description' => :'String',
|
82
|
+
:'name' => :'String',
|
83
|
+
:'versions_href' => :'String'
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
@@ -108,16 +108,26 @@ module PulpContainerClient
|
|
108
108
|
h[k.to_sym] = v
|
109
109
|
}
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_href')
|
112
|
+
self.pulp_href = attributes[:'pulp_href']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
115
|
+
if attributes.key?(:'pulp_last_updated')
|
116
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
117
117
|
end
|
118
118
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
119
|
+
if attributes.key?(:'prn')
|
120
|
+
self.prn = attributes[:'prn']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'pulp_labels')
|
124
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
125
|
+
self.pulp_labels = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'retain_repo_versions')
|
130
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
121
131
|
end
|
122
132
|
|
123
133
|
if attributes.key?(:'pulp_created')
|
@@ -128,32 +138,22 @@ module PulpContainerClient
|
|
128
138
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
129
139
|
end
|
130
140
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
133
|
-
end
|
134
|
-
|
135
|
-
if attributes.key?(:'name')
|
136
|
-
self.name = attributes[:'name']
|
137
|
-
else
|
138
|
-
self.name = nil
|
141
|
+
if attributes.key?(:'latest_version_href')
|
142
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
139
143
|
end
|
140
144
|
|
141
145
|
if attributes.key?(:'description')
|
142
146
|
self.description = attributes[:'description']
|
143
147
|
end
|
144
148
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
-
|
148
|
-
|
149
|
-
if attributes.key?(:'latest_version_href')
|
150
|
-
self.latest_version_href = attributes[:'latest_version_href']
|
149
|
+
if attributes.key?(:'name')
|
150
|
+
self.name = attributes[:'name']
|
151
|
+
else
|
152
|
+
self.name = nil
|
151
153
|
end
|
152
154
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
|
155
|
-
self.pulp_labels = value
|
156
|
-
end
|
155
|
+
if attributes.key?(:'versions_href')
|
156
|
+
self.versions_href = attributes[:'versions_href']
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
@@ -197,17 +197,17 @@ module PulpContainerClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
versions_href == o.versions_href &&
|
201
|
-
retain_repo_versions == o.retain_repo_versions &&
|
202
200
|
pulp_href == o.pulp_href &&
|
201
|
+
pulp_last_updated == o.pulp_last_updated &&
|
202
|
+
prn == o.prn &&
|
203
|
+
pulp_labels == o.pulp_labels &&
|
204
|
+
retain_repo_versions == o.retain_repo_versions &&
|
203
205
|
pulp_created == o.pulp_created &&
|
204
206
|
manifest_signing_service == o.manifest_signing_service &&
|
205
|
-
prn == o.prn &&
|
206
|
-
name == o.name &&
|
207
|
-
description == o.description &&
|
208
|
-
pulp_last_updated == o.pulp_last_updated &&
|
209
207
|
latest_version_href == o.latest_version_href &&
|
210
|
-
|
208
|
+
description == o.description &&
|
209
|
+
name == o.name &&
|
210
|
+
versions_href == o.versions_href
|
211
211
|
end
|
212
212
|
|
213
213
|
# @see the `==` method
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[
|
222
|
+
[pulp_href, pulp_last_updated, prn, pulp_labels, retain_repo_versions, pulp_created, manifest_signing_service, latest_version_href, description, name, versions_href].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|