pulp_container_client 2.18.1 → 2.19.0
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerManifestResponse.md +9 -1
- data/docs/ContentManifestsApi.md +6 -2
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +9 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +51 -51
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +51 -51
- data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +41 -41
- data/lib/pulp_container_client/models/container_manifest_response.rb +48 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +3 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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/container_manifest_response_spec.rb +24 -0
- 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 +1 -1
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -15,28 +15,28 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
attr_accessor :pulp_href
|
24
19
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
20
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
21
|
+
attr_accessor :base_path
|
27
22
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
24
|
+
attr_accessor :content_guard
|
30
25
|
|
31
26
|
# Timestamp of creation.
|
32
27
|
attr_accessor :pulp_created
|
33
28
|
|
34
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
-
attr_accessor :base_path
|
36
|
-
|
37
29
|
# Whether this distribution should be shown in the content app.
|
38
30
|
attr_accessor :hidden
|
39
31
|
|
32
|
+
attr_accessor :pulp_labels
|
33
|
+
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
35
|
+
attr_accessor :repository
|
36
|
+
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
39
|
+
|
40
40
|
# Remote that can be used to fetch content when using pull-through caching.
|
41
41
|
attr_accessor :remote
|
42
42
|
|
@@ -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_labels' => :'pulp_labels',
|
60
58
|
:'pulp_href' => :'pulp_href',
|
61
|
-
:'name' => :'name',
|
62
|
-
:'repository' => :'repository',
|
63
|
-
:'pulp_created' => :'pulp_created',
|
64
59
|
:'base_path' => :'base_path',
|
60
|
+
:'content_guard' => :'content_guard',
|
61
|
+
:'pulp_created' => :'pulp_created',
|
65
62
|
:'hidden' => :'hidden',
|
63
|
+
:'pulp_labels' => :'pulp_labels',
|
64
|
+
:'repository' => :'repository',
|
65
|
+
:'name' => :'name',
|
66
66
|
:'remote' => :'remote',
|
67
67
|
:'distributions' => :'distributions',
|
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_labels' => :'Hash<String, String>',
|
79
77
|
:'pulp_href' => :'String',
|
80
|
-
:'name' => :'String',
|
81
|
-
:'repository' => :'String',
|
82
|
-
:'pulp_created' => :'DateTime',
|
83
78
|
:'base_path' => :'String',
|
79
|
+
:'content_guard' => :'String',
|
80
|
+
:'pulp_created' => :'DateTime',
|
84
81
|
:'hidden' => :'Boolean',
|
82
|
+
:'pulp_labels' => :'Hash<String, String>',
|
83
|
+
:'repository' => :'String',
|
84
|
+
:'name' => :'String',
|
85
85
|
:'remote' => :'String',
|
86
86
|
:'distributions' => :'Array<String>',
|
87
87
|
:'namespace' => :'String',
|
@@ -113,42 +113,42 @@ module PulpContainerClient
|
|
113
113
|
h[k.to_sym] = v
|
114
114
|
}
|
115
115
|
|
116
|
-
if attributes.key?(:'content_guard')
|
117
|
-
self.content_guard = attributes[:'content_guard']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'pulp_labels')
|
121
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
-
self.pulp_labels = value
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
116
|
if attributes.key?(:'pulp_href')
|
127
117
|
self.pulp_href = attributes[:'pulp_href']
|
128
118
|
end
|
129
119
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
120
|
+
if attributes.key?(:'base_path')
|
121
|
+
self.base_path = attributes[:'base_path']
|
132
122
|
end
|
133
123
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
124
|
+
if attributes.key?(:'content_guard')
|
125
|
+
self.content_guard = attributes[:'content_guard']
|
136
126
|
end
|
137
127
|
|
138
128
|
if attributes.key?(:'pulp_created')
|
139
129
|
self.pulp_created = attributes[:'pulp_created']
|
140
130
|
end
|
141
131
|
|
142
|
-
if attributes.key?(:'base_path')
|
143
|
-
self.base_path = attributes[:'base_path']
|
144
|
-
end
|
145
|
-
|
146
132
|
if attributes.key?(:'hidden')
|
147
133
|
self.hidden = attributes[:'hidden']
|
148
134
|
else
|
149
135
|
self.hidden = false
|
150
136
|
end
|
151
137
|
|
138
|
+
if attributes.key?(:'pulp_labels')
|
139
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
140
|
+
self.pulp_labels = value
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'repository')
|
145
|
+
self.repository = attributes[:'repository']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'name')
|
149
|
+
self.name = attributes[:'name']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'remote')
|
153
153
|
self.remote = attributes[:'remote']
|
154
154
|
end
|
@@ -176,14 +176,14 @@ module PulpContainerClient
|
|
176
176
|
# @return Array for valid properties with the reasons
|
177
177
|
def list_invalid_properties
|
178
178
|
invalid_properties = Array.new
|
179
|
-
if @name.nil?
|
180
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
181
|
-
end
|
182
|
-
|
183
179
|
if @base_path.nil?
|
184
180
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
185
181
|
end
|
186
182
|
|
183
|
+
if @name.nil?
|
184
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
185
|
+
end
|
186
|
+
|
187
187
|
if @remote.nil?
|
188
188
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
189
189
|
end
|
@@ -194,8 +194,8 @@ module PulpContainerClient
|
|
194
194
|
# Check to see if the all the properties in the model are valid
|
195
195
|
# @return true if the model is valid
|
196
196
|
def valid?
|
197
|
-
return false if @name.nil?
|
198
197
|
return false if @base_path.nil?
|
198
|
+
return false if @name.nil?
|
199
199
|
return false if @remote.nil?
|
200
200
|
true
|
201
201
|
end
|
@@ -205,14 +205,14 @@ module PulpContainerClient
|
|
205
205
|
def ==(o)
|
206
206
|
return true if self.equal?(o)
|
207
207
|
self.class == o.class &&
|
208
|
-
content_guard == o.content_guard &&
|
209
|
-
pulp_labels == o.pulp_labels &&
|
210
208
|
pulp_href == o.pulp_href &&
|
211
|
-
name == o.name &&
|
212
|
-
repository == o.repository &&
|
213
|
-
pulp_created == o.pulp_created &&
|
214
209
|
base_path == o.base_path &&
|
210
|
+
content_guard == o.content_guard &&
|
211
|
+
pulp_created == o.pulp_created &&
|
215
212
|
hidden == o.hidden &&
|
213
|
+
pulp_labels == o.pulp_labels &&
|
214
|
+
repository == o.repository &&
|
215
|
+
name == o.name &&
|
216
216
|
remote == o.remote &&
|
217
217
|
distributions == o.distributions &&
|
218
218
|
namespace == o.namespace &&
|
@@ -229,7 +229,7 @@ module PulpContainerClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[pulp_href, base_path, content_guard, pulp_created, hidden, pulp_labels, repository, name, remote, distributions, namespace, private, description].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module PulpContainerClient
|
|
18
18
|
# A reference to an associated signing service.
|
19
19
|
attr_accessor :manifest_signing_service
|
20
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
23
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
@@ -26,17 +29,14 @@ module PulpContainerClient
|
|
26
29
|
# A unique name for this repository.
|
27
30
|
attr_accessor :name
|
28
31
|
|
29
|
-
# An optional description.
|
30
|
-
attr_accessor :description
|
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
|
+
:'description' => :'description',
|
36
37
|
:'pulp_labels' => :'pulp_labels',
|
37
38
|
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
-
:'name' => :'name'
|
39
|
-
:'description' => :'description'
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'manifest_signing_service' => :'String',
|
47
|
+
:'description' => :'String',
|
47
48
|
:'pulp_labels' => :'Hash<String, String>',
|
48
49
|
:'retain_repo_versions' => :'Integer',
|
49
|
-
:'name' => :'String'
|
50
|
-
:'description' => :'String'
|
50
|
+
:'name' => :'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
|
:'manifest_signing_service',
|
58
|
+
:'description',
|
58
59
|
:'retain_repo_versions',
|
59
|
-
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,6 +79,10 @@ module PulpContainerClient
|
|
79
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
80
|
end
|
81
81
|
|
82
|
+
if attributes.key?(:'description')
|
83
|
+
self.description = attributes[:'description']
|
84
|
+
end
|
85
|
+
|
82
86
|
if attributes.key?(:'pulp_labels')
|
83
87
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
88
|
self.pulp_labels = value
|
@@ -92,16 +96,16 @@ module PulpContainerClient
|
|
92
96
|
if attributes.key?(:'name')
|
93
97
|
self.name = attributes[:'name']
|
94
98
|
end
|
95
|
-
|
96
|
-
if attributes.key?(:'description')
|
97
|
-
self.description = attributes[:'description']
|
98
|
-
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
+
|
105
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
111
|
end
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
114
118
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
119
|
end
|
116
120
|
|
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
|
127
128
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
129
|
return false if @name.nil?
|
129
130
|
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
|
+
|
134
144
|
# Custom attribute writer method with validation
|
135
145
|
# @param [Object] retain_repo_versions Value to be assigned
|
136
146
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
155
165
|
@name = name
|
156
166
|
end
|
157
167
|
|
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
|
+
description == o.description &&
|
174
175
|
pulp_labels == o.pulp_labels &&
|
175
176
|
retain_repo_versions == o.retain_repo_versions &&
|
176
|
-
name == o.name
|
177
|
-
description == o.description
|
177
|
+
name == o.name
|
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
|
-
[manifest_signing_service, pulp_labels, retain_repo_versions, name
|
189
|
+
[manifest_signing_service, description, pulp_labels, retain_repo_versions, name].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,13 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :versions_href
|
18
|
+
attr_accessor :pulp_href
|
21
19
|
|
22
20
|
# A reference to an associated signing service.
|
23
21
|
attr_accessor :manifest_signing_service
|
24
22
|
|
23
|
+
attr_accessor :versions_href
|
24
|
+
|
25
|
+
# An optional description.
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
# Timestamp of creation.
|
29
|
+
attr_accessor :pulp_created
|
30
|
+
|
25
31
|
attr_accessor :pulp_labels
|
26
32
|
|
27
33
|
# Retain X versions of the repository. Default is null which retains all versions.
|
@@ -30,41 +36,35 @@ module PulpContainerClient
|
|
30
36
|
# A unique name for this repository.
|
31
37
|
attr_accessor :name
|
32
38
|
|
33
|
-
|
34
|
-
attr_accessor :pulp_created
|
35
|
-
|
36
|
-
# An optional description.
|
37
|
-
attr_accessor :description
|
38
|
-
|
39
|
-
attr_accessor :pulp_href
|
39
|
+
attr_accessor :latest_version_href
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
45
|
-
:'versions_href' => :'versions_href',
|
44
|
+
:'pulp_href' => :'pulp_href',
|
46
45
|
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
+
:'versions_href' => :'versions_href',
|
47
|
+
:'description' => :'description',
|
48
|
+
:'pulp_created' => :'pulp_created',
|
47
49
|
:'pulp_labels' => :'pulp_labels',
|
48
50
|
:'retain_repo_versions' => :'retain_repo_versions',
|
49
51
|
:'name' => :'name',
|
50
|
-
:'
|
51
|
-
:'description' => :'description',
|
52
|
-
:'pulp_href' => :'pulp_href'
|
52
|
+
:'latest_version_href' => :'latest_version_href'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
60
|
-
:'versions_href' => :'String',
|
59
|
+
:'pulp_href' => :'String',
|
61
60
|
:'manifest_signing_service' => :'String',
|
61
|
+
:'versions_href' => :'String',
|
62
|
+
:'description' => :'String',
|
63
|
+
:'pulp_created' => :'DateTime',
|
62
64
|
:'pulp_labels' => :'Hash<String, String>',
|
63
65
|
:'retain_repo_versions' => :'Integer',
|
64
66
|
:'name' => :'String',
|
65
|
-
:'
|
66
|
-
:'description' => :'String',
|
67
|
-
:'pulp_href' => :'String'
|
67
|
+
:'latest_version_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
|
:'manifest_signing_service',
|
75
|
-
:'retain_repo_versions',
|
76
75
|
:'description',
|
76
|
+
:'retain_repo_versions',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,16 +92,24 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'pulp_href')
|
96
|
+
self.pulp_href = attributes[:'pulp_href']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'manifest_signing_service')
|
100
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
97
101
|
end
|
98
102
|
|
99
103
|
if attributes.key?(:'versions_href')
|
100
104
|
self.versions_href = attributes[:'versions_href']
|
101
105
|
end
|
102
106
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
107
|
+
if attributes.key?(:'description')
|
108
|
+
self.description = attributes[:'description']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
105
113
|
end
|
106
114
|
|
107
115
|
if attributes.key?(:'pulp_labels')
|
@@ -118,16 +126,8 @@ module PulpContainerClient
|
|
118
126
|
self.name = attributes[:'name']
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'description')
|
126
|
-
self.description = attributes[:'description']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'pulp_href')
|
130
|
-
self.pulp_href = attributes[:'pulp_href']
|
129
|
+
if attributes.key?(:'latest_version_href')
|
130
|
+
self.latest_version_href = attributes[:'latest_version_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
|
-
|
173
|
-
versions_href == o.versions_href &&
|
172
|
+
pulp_href == o.pulp_href &&
|
174
173
|
manifest_signing_service == o.manifest_signing_service &&
|
174
|
+
versions_href == o.versions_href &&
|
175
|
+
description == o.description &&
|
176
|
+
pulp_created == o.pulp_created &&
|
175
177
|
pulp_labels == o.pulp_labels &&
|
176
178
|
retain_repo_versions == o.retain_repo_versions &&
|
177
179
|
name == o.name &&
|
178
|
-
|
179
|
-
description == o.description &&
|
180
|
-
pulp_href == o.pulp_href
|
180
|
+
latest_version_href == o.latest_version_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
|
+
[pulp_href, manifest_signing_service, versions_href, description, pulp_created, pulp_labels, retain_repo_versions, name, latest_version_href].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -41,6 +41,18 @@ module PulpContainerClient
|
|
41
41
|
# Blobs that are referenced by this Manifest
|
42
42
|
attr_accessor :blobs
|
43
43
|
|
44
|
+
# Property that contains arbitrary metadata stored inside the image manifest.
|
45
|
+
attr_accessor :annotations
|
46
|
+
|
47
|
+
# Property describing metadata stored inside the image configuration
|
48
|
+
attr_accessor :labels
|
49
|
+
|
50
|
+
# A boolean determining whether users can boot from an image or not.
|
51
|
+
attr_accessor :is_bootable
|
52
|
+
|
53
|
+
# A boolean determining whether the image bundles a Flatpak application
|
54
|
+
attr_accessor :is_flatpak
|
55
|
+
|
44
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
57
|
def self.attribute_map
|
46
58
|
{
|
@@ -52,7 +64,11 @@ module PulpContainerClient
|
|
52
64
|
:'media_type' => :'media_type',
|
53
65
|
:'listed_manifests' => :'listed_manifests',
|
54
66
|
:'config_blob' => :'config_blob',
|
55
|
-
:'blobs' => :'blobs'
|
67
|
+
:'blobs' => :'blobs',
|
68
|
+
:'annotations' => :'annotations',
|
69
|
+
:'labels' => :'labels',
|
70
|
+
:'is_bootable' => :'is_bootable',
|
71
|
+
:'is_flatpak' => :'is_flatpak'
|
56
72
|
}
|
57
73
|
end
|
58
74
|
|
@@ -67,7 +83,11 @@ module PulpContainerClient
|
|
67
83
|
:'media_type' => :'String',
|
68
84
|
:'listed_manifests' => :'Array<String>',
|
69
85
|
:'config_blob' => :'String',
|
70
|
-
:'blobs' => :'Array<String>'
|
86
|
+
:'blobs' => :'Array<String>',
|
87
|
+
:'annotations' => :'Object',
|
88
|
+
:'labels' => :'Object',
|
89
|
+
:'is_bootable' => :'Boolean',
|
90
|
+
:'is_flatpak' => :'Boolean'
|
71
91
|
}
|
72
92
|
end
|
73
93
|
|
@@ -131,6 +151,26 @@ module PulpContainerClient
|
|
131
151
|
self.blobs = value
|
132
152
|
end
|
133
153
|
end
|
154
|
+
|
155
|
+
if attributes.key?(:'annotations')
|
156
|
+
self.annotations = attributes[:'annotations']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'labels')
|
160
|
+
self.labels = attributes[:'labels']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'is_bootable')
|
164
|
+
self.is_bootable = attributes[:'is_bootable']
|
165
|
+
else
|
166
|
+
self.is_bootable = false
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'is_flatpak')
|
170
|
+
self.is_flatpak = attributes[:'is_flatpak']
|
171
|
+
else
|
172
|
+
self.is_flatpak = false
|
173
|
+
end
|
134
174
|
end
|
135
175
|
|
136
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -189,7 +229,11 @@ module PulpContainerClient
|
|
189
229
|
media_type == o.media_type &&
|
190
230
|
listed_manifests == o.listed_manifests &&
|
191
231
|
config_blob == o.config_blob &&
|
192
|
-
blobs == o.blobs
|
232
|
+
blobs == o.blobs &&
|
233
|
+
annotations == o.annotations &&
|
234
|
+
labels == o.labels &&
|
235
|
+
is_bootable == o.is_bootable &&
|
236
|
+
is_flatpak == o.is_flatpak
|
193
237
|
end
|
194
238
|
|
195
239
|
# @see the `==` method
|
@@ -201,7 +245,7 @@ module PulpContainerClient
|
|
201
245
|
# Calculates hash code according to all attributes.
|
202
246
|
# @return [Integer] Hash code
|
203
247
|
def hash
|
204
|
-
[pulp_href, pulp_created, artifact, digest, schema_version, media_type, listed_manifests, config_blob, blobs].hash
|
248
|
+
[pulp_href, pulp_created, artifact, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
|
205
249
|
end
|
206
250
|
|
207
251
|
# Builds the object from hash
|