pulp_container_client 2.21.1 → 2.22.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/ContainerManifestResponse.md +11 -3
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/OCIBuildImage.md +4 -4
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/RepositoriesContainerApi.md +4 -4
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
- data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +56 -56
- 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 +56 -56
- data/lib/pulp_container_client/models/container_container_push_repository.rb +25 -25
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +56 -56
- data/lib/pulp_container_client/models/container_manifest_response.rb +46 -6
- data/lib/pulp_container_client/models/oci_build_image.rb +16 -15
- 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 +25 -25
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_manifest_response_spec.rb +24 -0
- data/spec/models/oci_build_image_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +2 -2
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -15,11 +15,26 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
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
|
23
|
+
|
18
24
|
attr_accessor :pulp_labels
|
19
25
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
27
|
+
attr_accessor :repository
|
28
|
+
|
20
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
21
30
|
attr_accessor :content_guard
|
22
31
|
|
32
|
+
# The Pulp Resource Name (PRN).
|
33
|
+
attr_accessor :prn
|
34
|
+
|
35
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
36
|
+
attr_accessor :name
|
37
|
+
|
23
38
|
# Whether this distribution should be shown in the content app.
|
24
39
|
attr_accessor :hidden
|
25
40
|
|
@@ -28,24 +43,9 @@ module PulpContainerClient
|
|
28
43
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
29
44
|
attr_accessor :no_content_change_since
|
30
45
|
|
31
|
-
# Timestamp of creation.
|
32
|
-
attr_accessor :pulp_created
|
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
46
|
# 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.
|
41
47
|
attr_accessor :pulp_last_updated
|
42
48
|
|
43
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
44
|
-
attr_accessor :base_path
|
45
|
-
|
46
|
-
# The Pulp Resource Name (PRN).
|
47
|
-
attr_accessor :prn
|
48
|
-
|
49
49
|
# Remote that can be used to fetch content when using pull-through caching.
|
50
50
|
attr_accessor :remote
|
51
51
|
|
@@ -64,17 +64,17 @@ module PulpContainerClient
|
|
64
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
65
|
def self.attribute_map
|
66
66
|
{
|
67
|
+
:'pulp_created' => :'pulp_created',
|
68
|
+
:'base_path' => :'base_path',
|
67
69
|
:'pulp_labels' => :'pulp_labels',
|
70
|
+
:'repository' => :'repository',
|
68
71
|
:'content_guard' => :'content_guard',
|
72
|
+
:'prn' => :'prn',
|
73
|
+
:'name' => :'name',
|
69
74
|
:'hidden' => :'hidden',
|
70
75
|
:'pulp_href' => :'pulp_href',
|
71
76
|
:'no_content_change_since' => :'no_content_change_since',
|
72
|
-
:'pulp_created' => :'pulp_created',
|
73
|
-
:'repository' => :'repository',
|
74
|
-
:'name' => :'name',
|
75
77
|
:'pulp_last_updated' => :'pulp_last_updated',
|
76
|
-
:'base_path' => :'base_path',
|
77
|
-
:'prn' => :'prn',
|
78
78
|
:'remote' => :'remote',
|
79
79
|
:'distributions' => :'distributions',
|
80
80
|
:'namespace' => :'namespace',
|
@@ -86,17 +86,17 @@ module PulpContainerClient
|
|
86
86
|
# Attribute type mapping.
|
87
87
|
def self.openapi_types
|
88
88
|
{
|
89
|
+
:'pulp_created' => :'DateTime',
|
90
|
+
:'base_path' => :'String',
|
89
91
|
:'pulp_labels' => :'Hash<String, String>',
|
92
|
+
:'repository' => :'String',
|
90
93
|
:'content_guard' => :'String',
|
94
|
+
:'prn' => :'String',
|
95
|
+
:'name' => :'String',
|
91
96
|
:'hidden' => :'Boolean',
|
92
97
|
:'pulp_href' => :'String',
|
93
98
|
:'no_content_change_since' => :'String',
|
94
|
-
:'pulp_created' => :'DateTime',
|
95
|
-
:'repository' => :'String',
|
96
|
-
:'name' => :'String',
|
97
99
|
:'pulp_last_updated' => :'DateTime',
|
98
|
-
:'base_path' => :'String',
|
99
|
-
:'prn' => :'String',
|
100
100
|
:'remote' => :'String',
|
101
101
|
:'distributions' => :'Array<String>',
|
102
102
|
:'namespace' => :'String',
|
@@ -128,16 +128,36 @@ module PulpContainerClient
|
|
128
128
|
h[k.to_sym] = v
|
129
129
|
}
|
130
130
|
|
131
|
+
if attributes.key?(:'pulp_created')
|
132
|
+
self.pulp_created = attributes[:'pulp_created']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'base_path')
|
136
|
+
self.base_path = attributes[:'base_path']
|
137
|
+
end
|
138
|
+
|
131
139
|
if attributes.key?(:'pulp_labels')
|
132
140
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
133
141
|
self.pulp_labels = value
|
134
142
|
end
|
135
143
|
end
|
136
144
|
|
145
|
+
if attributes.key?(:'repository')
|
146
|
+
self.repository = attributes[:'repository']
|
147
|
+
end
|
148
|
+
|
137
149
|
if attributes.key?(:'content_guard')
|
138
150
|
self.content_guard = attributes[:'content_guard']
|
139
151
|
end
|
140
152
|
|
153
|
+
if attributes.key?(:'prn')
|
154
|
+
self.prn = attributes[:'prn']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'name')
|
158
|
+
self.name = attributes[:'name']
|
159
|
+
end
|
160
|
+
|
141
161
|
if attributes.key?(:'hidden')
|
142
162
|
self.hidden = attributes[:'hidden']
|
143
163
|
else
|
@@ -152,30 +172,10 @@ module PulpContainerClient
|
|
152
172
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
153
173
|
end
|
154
174
|
|
155
|
-
if attributes.key?(:'pulp_created')
|
156
|
-
self.pulp_created = attributes[:'pulp_created']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.key?(:'repository')
|
160
|
-
self.repository = attributes[:'repository']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes.key?(:'name')
|
164
|
-
self.name = attributes[:'name']
|
165
|
-
end
|
166
|
-
|
167
175
|
if attributes.key?(:'pulp_last_updated')
|
168
176
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
169
177
|
end
|
170
178
|
|
171
|
-
if attributes.key?(:'base_path')
|
172
|
-
self.base_path = attributes[:'base_path']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes.key?(:'prn')
|
176
|
-
self.prn = attributes[:'prn']
|
177
|
-
end
|
178
|
-
|
179
179
|
if attributes.key?(:'remote')
|
180
180
|
self.remote = attributes[:'remote']
|
181
181
|
end
|
@@ -203,14 +203,14 @@ module PulpContainerClient
|
|
203
203
|
# @return Array for valid properties with the reasons
|
204
204
|
def list_invalid_properties
|
205
205
|
invalid_properties = Array.new
|
206
|
-
if @name.nil?
|
207
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
208
|
-
end
|
209
|
-
|
210
206
|
if @base_path.nil?
|
211
207
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
212
208
|
end
|
213
209
|
|
210
|
+
if @name.nil?
|
211
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
212
|
+
end
|
213
|
+
|
214
214
|
if @remote.nil?
|
215
215
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
216
216
|
end
|
@@ -221,8 +221,8 @@ module PulpContainerClient
|
|
221
221
|
# Check to see if the all the properties in the model are valid
|
222
222
|
# @return true if the model is valid
|
223
223
|
def valid?
|
224
|
-
return false if @name.nil?
|
225
224
|
return false if @base_path.nil?
|
225
|
+
return false if @name.nil?
|
226
226
|
return false if @remote.nil?
|
227
227
|
true
|
228
228
|
end
|
@@ -232,17 +232,17 @@ module PulpContainerClient
|
|
232
232
|
def ==(o)
|
233
233
|
return true if self.equal?(o)
|
234
234
|
self.class == o.class &&
|
235
|
+
pulp_created == o.pulp_created &&
|
236
|
+
base_path == o.base_path &&
|
235
237
|
pulp_labels == o.pulp_labels &&
|
238
|
+
repository == o.repository &&
|
236
239
|
content_guard == o.content_guard &&
|
240
|
+
prn == o.prn &&
|
241
|
+
name == o.name &&
|
237
242
|
hidden == o.hidden &&
|
238
243
|
pulp_href == o.pulp_href &&
|
239
244
|
no_content_change_since == o.no_content_change_since &&
|
240
|
-
pulp_created == o.pulp_created &&
|
241
|
-
repository == o.repository &&
|
242
|
-
name == o.name &&
|
243
245
|
pulp_last_updated == o.pulp_last_updated &&
|
244
|
-
base_path == o.base_path &&
|
245
|
-
prn == o.prn &&
|
246
246
|
remote == o.remote &&
|
247
247
|
distributions == o.distributions &&
|
248
248
|
namespace == o.namespace &&
|
@@ -259,7 +259,7 @@ module PulpContainerClient
|
|
259
259
|
# Calculates hash code according to all attributes.
|
260
260
|
# @return [Integer] Hash code
|
261
261
|
def hash
|
262
|
-
[
|
262
|
+
[pulp_created, base_path, pulp_labels, repository, content_guard, prn, name, hidden, pulp_href, no_content_change_since, pulp_last_updated, remote, distributions, namespace, private, description].hash
|
263
263
|
end
|
264
264
|
|
265
265
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
|
-
# A reference to an associated signing service.
|
21
|
-
attr_accessor :manifest_signing_service
|
22
|
-
|
23
18
|
# An optional description.
|
24
19
|
attr_accessor :description
|
25
20
|
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
26
23
|
# A unique name for this repository.
|
27
24
|
attr_accessor :name
|
28
25
|
|
29
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
30
27
|
attr_accessor :retain_repo_versions
|
31
28
|
|
29
|
+
# A reference to an associated signing service.
|
30
|
+
attr_accessor :manifest_signing_service
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_labels' => :'pulp_labels',
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
37
35
|
:'description' => :'description',
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
38
37
|
:'name' => :'name',
|
39
|
-
:'retain_repo_versions' => :'retain_repo_versions'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'Hash<String, String>',
|
47
|
-
:'manifest_signing_service' => :'String',
|
48
46
|
:'description' => :'String',
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
49
48
|
:'name' => :'String',
|
50
|
-
:'retain_repo_versions' => :'Integer'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
50
|
+
:'manifest_signing_service' => :'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
|
-
:'manifest_signing_service',
|
58
57
|
:'description',
|
59
|
-
:'retain_repo_versions'
|
58
|
+
:'retain_repo_versions',
|
59
|
+
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,20 +75,16 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'description')
|
79
|
+
self.description = attributes[:'description']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'pulp_labels')
|
79
83
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
84
|
self.pulp_labels = value
|
81
85
|
end
|
82
86
|
end
|
83
87
|
|
84
|
-
if attributes.key?(:'manifest_signing_service')
|
85
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'description')
|
89
|
-
self.description = attributes[:'description']
|
90
|
-
end
|
91
|
-
|
92
88
|
if attributes.key?(:'name')
|
93
89
|
self.name = attributes[:'name']
|
94
90
|
end
|
@@ -96,6 +92,10 @@ module PulpContainerClient
|
|
96
92
|
if attributes.key?(:'retain_repo_versions')
|
97
93
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
pulp_labels == o.pulp_labels &&
|
174
|
-
manifest_signing_service == o.manifest_signing_service &&
|
175
173
|
description == o.description &&
|
174
|
+
pulp_labels == o.pulp_labels &&
|
176
175
|
name == o.name &&
|
177
|
-
retain_repo_versions == o.retain_repo_versions
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
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
|
+
[description, pulp_labels, name, retain_repo_versions, manifest_signing_service].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,75 +15,75 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
18
24
|
attr_accessor :pulp_labels
|
19
25
|
|
20
26
|
attr_accessor :versions_href
|
21
27
|
|
28
|
+
# The Pulp Resource Name (PRN).
|
29
|
+
attr_accessor :prn
|
30
|
+
|
31
|
+
# A unique name for this repository.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
35
|
+
attr_accessor :retain_repo_versions
|
36
|
+
|
22
37
|
# A reference to an associated signing service.
|
23
38
|
attr_accessor :manifest_signing_service
|
24
39
|
|
25
40
|
attr_accessor :pulp_href
|
26
41
|
|
27
|
-
|
28
|
-
attr_accessor :description
|
29
|
-
|
30
|
-
# Timestamp of creation.
|
31
|
-
attr_accessor :pulp_created
|
32
|
-
|
33
|
-
# A unique name for this repository.
|
34
|
-
attr_accessor :name
|
42
|
+
attr_accessor :latest_version_href
|
35
43
|
|
36
44
|
# 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.
|
37
45
|
attr_accessor :pulp_last_updated
|
38
46
|
|
39
|
-
attr_accessor :latest_version_href
|
40
|
-
|
41
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
42
|
-
attr_accessor :retain_repo_versions
|
43
|
-
|
44
|
-
# The Pulp Resource Name (PRN).
|
45
|
-
attr_accessor :prn
|
46
|
-
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
+
:'pulp_created' => :'pulp_created',
|
51
|
+
:'description' => :'description',
|
50
52
|
:'pulp_labels' => :'pulp_labels',
|
51
53
|
:'versions_href' => :'versions_href',
|
54
|
+
:'prn' => :'prn',
|
55
|
+
:'name' => :'name',
|
56
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
52
57
|
:'manifest_signing_service' => :'manifest_signing_service',
|
53
58
|
:'pulp_href' => :'pulp_href',
|
54
|
-
:'description' => :'description',
|
55
|
-
:'pulp_created' => :'pulp_created',
|
56
|
-
:'name' => :'name',
|
57
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
58
59
|
:'latest_version_href' => :'latest_version_href',
|
59
|
-
:'
|
60
|
-
:'prn' => :'prn'
|
60
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
64
64
|
# Attribute type mapping.
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
|
+
:'pulp_created' => :'DateTime',
|
68
|
+
:'description' => :'String',
|
67
69
|
:'pulp_labels' => :'Hash<String, String>',
|
68
70
|
:'versions_href' => :'String',
|
71
|
+
:'prn' => :'String',
|
72
|
+
:'name' => :'String',
|
73
|
+
:'retain_repo_versions' => :'Integer',
|
69
74
|
:'manifest_signing_service' => :'String',
|
70
75
|
:'pulp_href' => :'String',
|
71
|
-
:'description' => :'String',
|
72
|
-
:'pulp_created' => :'DateTime',
|
73
|
-
:'name' => :'String',
|
74
|
-
:'pulp_last_updated' => :'DateTime',
|
75
76
|
:'latest_version_href' => :'String',
|
76
|
-
:'
|
77
|
-
:'prn' => :'String'
|
77
|
+
:'pulp_last_updated' => :'DateTime'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
81
81
|
# List of attributes with nullable: true
|
82
82
|
def self.openapi_nullable
|
83
83
|
Set.new([
|
84
|
-
:'manifest_signing_service',
|
85
84
|
:'description',
|
86
85
|
:'retain_repo_versions',
|
86
|
+
:'manifest_signing_service',
|
87
87
|
])
|
88
88
|
end
|
89
89
|
|
@@ -102,6 +102,14 @@ module PulpContainerClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
+
if attributes.key?(:'pulp_created')
|
106
|
+
self.pulp_created = attributes[:'pulp_created']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'description')
|
110
|
+
self.description = attributes[:'description']
|
111
|
+
end
|
112
|
+
|
105
113
|
if attributes.key?(:'pulp_labels')
|
106
114
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
107
115
|
self.pulp_labels = value
|
@@ -112,40 +120,32 @@ module PulpContainerClient
|
|
112
120
|
self.versions_href = attributes[:'versions_href']
|
113
121
|
end
|
114
122
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'pulp_href')
|
120
|
-
self.pulp_href = attributes[:'pulp_href']
|
123
|
+
if attributes.key?(:'prn')
|
124
|
+
self.prn = attributes[:'prn']
|
121
125
|
end
|
122
126
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
self.
|
127
|
+
if attributes.key?(:'name')
|
128
|
+
self.name = attributes[:'name']
|
125
129
|
end
|
126
130
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
131
|
+
if attributes.key?(:'retain_repo_versions')
|
132
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
129
133
|
end
|
130
134
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
135
|
+
if attributes.key?(:'manifest_signing_service')
|
136
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
133
137
|
end
|
134
138
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
self.
|
139
|
+
if attributes.key?(:'pulp_href')
|
140
|
+
self.pulp_href = attributes[:'pulp_href']
|
137
141
|
end
|
138
142
|
|
139
143
|
if attributes.key?(:'latest_version_href')
|
140
144
|
self.latest_version_href = attributes[:'latest_version_href']
|
141
145
|
end
|
142
146
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.key?(:'prn')
|
148
|
-
self.prn = attributes[:'prn']
|
147
|
+
if attributes.key?(:'pulp_last_updated')
|
148
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -187,17 +187,17 @@ module PulpContainerClient
|
|
187
187
|
def ==(o)
|
188
188
|
return true if self.equal?(o)
|
189
189
|
self.class == o.class &&
|
190
|
+
pulp_created == o.pulp_created &&
|
191
|
+
description == o.description &&
|
190
192
|
pulp_labels == o.pulp_labels &&
|
191
193
|
versions_href == o.versions_href &&
|
194
|
+
prn == o.prn &&
|
195
|
+
name == o.name &&
|
196
|
+
retain_repo_versions == o.retain_repo_versions &&
|
192
197
|
manifest_signing_service == o.manifest_signing_service &&
|
193
198
|
pulp_href == o.pulp_href &&
|
194
|
-
description == o.description &&
|
195
|
-
pulp_created == o.pulp_created &&
|
196
|
-
name == o.name &&
|
197
|
-
pulp_last_updated == o.pulp_last_updated &&
|
198
199
|
latest_version_href == o.latest_version_href &&
|
199
|
-
|
200
|
-
prn == o.prn
|
200
|
+
pulp_last_updated == o.pulp_last_updated
|
201
201
|
end
|
202
202
|
|
203
203
|
# @see the `==` method
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[pulp_created, description, pulp_labels, versions_href, prn, name, retain_repo_versions, manifest_signing_service, pulp_href, latest_version_href, pulp_last_updated].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -50,12 +50,24 @@ module PulpContainerClient
|
|
50
50
|
# Property describing metadata stored inside the image configuration
|
51
51
|
attr_accessor :labels
|
52
52
|
|
53
|
-
# A boolean determining whether users can boot from an image or not.
|
53
|
+
# A boolean determining whether users can boot from an image or not.[deprecated] check type field instead
|
54
54
|
attr_accessor :is_bootable
|
55
55
|
|
56
|
-
# A boolean determining whether the image bundles a Flatpak application
|
56
|
+
# A boolean determining whether the image bundles a Flatpak application.[deprecated] check type field instead
|
57
57
|
attr_accessor :is_flatpak
|
58
58
|
|
59
|
+
# Manifest type (flatpak, bootable, signature, etc.).
|
60
|
+
attr_accessor :type
|
61
|
+
|
62
|
+
# The CPU architecture which the binaries in this image are built to run on.
|
63
|
+
attr_accessor :architecture
|
64
|
+
|
65
|
+
# The name of the operating system which the image is built to run on.
|
66
|
+
attr_accessor :os
|
67
|
+
|
68
|
+
# Specifies the sum of the sizes, in bytes, of all compressed layers
|
69
|
+
attr_accessor :compressed_image_size
|
70
|
+
|
59
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
72
|
def self.attribute_map
|
61
73
|
{
|
@@ -72,7 +84,11 @@ module PulpContainerClient
|
|
72
84
|
:'annotations' => :'annotations',
|
73
85
|
:'labels' => :'labels',
|
74
86
|
:'is_bootable' => :'is_bootable',
|
75
|
-
:'is_flatpak' => :'is_flatpak'
|
87
|
+
:'is_flatpak' => :'is_flatpak',
|
88
|
+
:'type' => :'type',
|
89
|
+
:'architecture' => :'architecture',
|
90
|
+
:'os' => :'os',
|
91
|
+
:'compressed_image_size' => :'compressed_image_size'
|
76
92
|
}
|
77
93
|
end
|
78
94
|
|
@@ -92,7 +108,11 @@ module PulpContainerClient
|
|
92
108
|
:'annotations' => :'Object',
|
93
109
|
:'labels' => :'Object',
|
94
110
|
:'is_bootable' => :'Boolean',
|
95
|
-
:'is_flatpak' => :'Boolean'
|
111
|
+
:'is_flatpak' => :'Boolean',
|
112
|
+
:'type' => :'String',
|
113
|
+
:'architecture' => :'String',
|
114
|
+
:'os' => :'String',
|
115
|
+
:'compressed_image_size' => :'Integer'
|
96
116
|
}
|
97
117
|
end
|
98
118
|
|
@@ -180,6 +200,22 @@ module PulpContainerClient
|
|
180
200
|
else
|
181
201
|
self.is_flatpak = false
|
182
202
|
end
|
203
|
+
|
204
|
+
if attributes.key?(:'type')
|
205
|
+
self.type = attributes[:'type']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'architecture')
|
209
|
+
self.architecture = attributes[:'architecture']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'os')
|
213
|
+
self.os = attributes[:'os']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'compressed_image_size')
|
217
|
+
self.compressed_image_size = attributes[:'compressed_image_size']
|
218
|
+
end
|
183
219
|
end
|
184
220
|
|
185
221
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -238,7 +274,11 @@ module PulpContainerClient
|
|
238
274
|
annotations == o.annotations &&
|
239
275
|
labels == o.labels &&
|
240
276
|
is_bootable == o.is_bootable &&
|
241
|
-
is_flatpak == o.is_flatpak
|
277
|
+
is_flatpak == o.is_flatpak &&
|
278
|
+
type == o.type &&
|
279
|
+
architecture == o.architecture &&
|
280
|
+
os == o.os &&
|
281
|
+
compressed_image_size == o.compressed_image_size
|
242
282
|
end
|
243
283
|
|
244
284
|
# @see the `==` method
|
@@ -250,7 +290,7 @@ module PulpContainerClient
|
|
250
290
|
# Calculates hash code according to all attributes.
|
251
291
|
# @return [Integer] Hash code
|
252
292
|
def hash
|
253
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
|
293
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak, type, architecture, os, compressed_image_size].hash
|
254
294
|
end
|
255
295
|
|
256
296
|
# Builds the object from hash
|