pulp_container_client 2.18.1 → 2.19.1
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 +8 -8
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- 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 +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +9 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +56 -56
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +56 -56
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +44 -44
- data/lib/pulp_container_client/models/container_container_push_repository.rb +27 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -42
- data/lib/pulp_container_client/models/container_manifest_response.rb +48 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +27 -27
- 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 +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_manifest_response_spec.rb +24 -0
- 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,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
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
22
20
|
|
23
21
|
attr_accessor :pulp_href
|
24
22
|
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
24
|
+
attr_accessor :content_guard
|
25
|
+
|
25
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
26
27
|
attr_accessor :name
|
27
28
|
|
28
|
-
# The latest RepositoryVersion for this Repository will be served.
|
29
|
-
attr_accessor :repository
|
30
|
-
|
31
29
|
# Timestamp of creation.
|
32
30
|
attr_accessor :pulp_created
|
33
31
|
|
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
32
|
# Whether this distribution should be shown in the content app.
|
38
33
|
attr_accessor :hidden
|
39
34
|
|
35
|
+
attr_accessor :pulp_labels
|
36
|
+
|
37
|
+
# The latest RepositoryVersion for this Repository will be served.
|
38
|
+
attr_accessor :repository
|
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
|
-
:'
|
59
|
-
:'pulp_labels' => :'pulp_labels',
|
58
|
+
:'base_path' => :'base_path',
|
60
59
|
:'pulp_href' => :'pulp_href',
|
60
|
+
:'content_guard' => :'content_guard',
|
61
61
|
:'name' => :'name',
|
62
|
-
:'repository' => :'repository',
|
63
62
|
:'pulp_created' => :'pulp_created',
|
64
|
-
:'base_path' => :'base_path',
|
65
63
|
:'hidden' => :'hidden',
|
64
|
+
:'pulp_labels' => :'pulp_labels',
|
65
|
+
:'repository' => :'repository',
|
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
|
-
:'
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
77
|
+
:'base_path' => :'String',
|
79
78
|
:'pulp_href' => :'String',
|
79
|
+
:'content_guard' => :'String',
|
80
80
|
:'name' => :'String',
|
81
|
-
:'repository' => :'String',
|
82
81
|
:'pulp_created' => :'DateTime',
|
83
|
-
:'base_path' => :'String',
|
84
82
|
:'hidden' => :'Boolean',
|
83
|
+
:'pulp_labels' => :'Hash<String, String>',
|
84
|
+
:'repository' => :'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?(:'
|
117
|
-
self.
|
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
|
116
|
+
if attributes.key?(:'base_path')
|
117
|
+
self.base_path = attributes[:'base_path']
|
124
118
|
end
|
125
119
|
|
126
120
|
if attributes.key?(:'pulp_href')
|
127
121
|
self.pulp_href = attributes[:'pulp_href']
|
128
122
|
end
|
129
123
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
124
|
+
if attributes.key?(:'content_guard')
|
125
|
+
self.content_guard = attributes[:'content_guard']
|
132
126
|
end
|
133
127
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
128
|
+
if attributes.key?(:'name')
|
129
|
+
self.name = attributes[:'name']
|
136
130
|
end
|
137
131
|
|
138
132
|
if attributes.key?(:'pulp_created')
|
139
133
|
self.pulp_created = attributes[:'pulp_created']
|
140
134
|
end
|
141
135
|
|
142
|
-
if attributes.key?(:'base_path')
|
143
|
-
self.base_path = attributes[:'base_path']
|
144
|
-
end
|
145
|
-
|
146
136
|
if attributes.key?(:'hidden')
|
147
137
|
self.hidden = attributes[:'hidden']
|
148
138
|
else
|
149
139
|
self.hidden = false
|
150
140
|
end
|
151
141
|
|
142
|
+
if attributes.key?(:'pulp_labels')
|
143
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
144
|
+
self.pulp_labels = value
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'repository')
|
149
|
+
self.repository = attributes[:'repository']
|
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
|
-
|
209
|
-
pulp_labels == o.pulp_labels &&
|
208
|
+
base_path == o.base_path &&
|
210
209
|
pulp_href == o.pulp_href &&
|
210
|
+
content_guard == o.content_guard &&
|
211
211
|
name == o.name &&
|
212
|
-
repository == o.repository &&
|
213
212
|
pulp_created == o.pulp_created &&
|
214
|
-
base_path == o.base_path &&
|
215
213
|
hidden == o.hidden &&
|
214
|
+
pulp_labels == o.pulp_labels &&
|
215
|
+
repository == o.repository &&
|
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
|
+
[base_path, pulp_href, content_guard, name, pulp_created, hidden, pulp_labels, repository, remote, distributions, namespace, private, description].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# 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
|
-
# A reference to an associated signing service.
|
19
|
-
attr_accessor :manifest_signing_service
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
24
19
|
attr_accessor :retain_repo_versions
|
25
20
|
|
21
|
+
# A reference to an associated signing service.
|
22
|
+
attr_accessor :manifest_signing_service
|
23
|
+
|
26
24
|
# A unique name for this repository.
|
27
25
|
attr_accessor :name
|
28
26
|
|
29
27
|
# An optional description.
|
30
28
|
attr_accessor :description
|
31
29
|
|
30
|
+
attr_accessor :pulp_labels
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
36
|
-
:'pulp_labels' => :'pulp_labels',
|
37
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
38
37
|
:'name' => :'name',
|
39
|
-
:'description' => :'description'
|
38
|
+
:'description' => :'description',
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'manifest_signing_service' => :'String',
|
47
|
-
:'pulp_labels' => :'Hash<String, String>',
|
48
46
|
:'retain_repo_versions' => :'Integer',
|
47
|
+
:'manifest_signing_service' => :'String',
|
49
48
|
:'name' => :'String',
|
50
|
-
:'description' => :'String'
|
49
|
+
:'description' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, 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
|
:'retain_repo_versions',
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'description',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,20 +75,14 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
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
|
86
|
-
end
|
87
|
-
|
88
78
|
if attributes.key?(:'retain_repo_versions')
|
89
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
90
80
|
end
|
91
81
|
|
82
|
+
if attributes.key?(:'manifest_signing_service')
|
83
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
|
+
end
|
85
|
+
|
92
86
|
if attributes.key?(:'name')
|
93
87
|
self.name = attributes[:'name']
|
94
88
|
end
|
@@ -96,6 +90,12 @@ module PulpContainerClient
|
|
96
90
|
if attributes.key?(:'description')
|
97
91
|
self.description = attributes[:'description']
|
98
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
|
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
|
-
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
pulp_labels == o.pulp_labels &&
|
175
173
|
retain_repo_versions == o.retain_repo_versions &&
|
174
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
175
|
name == o.name &&
|
177
|
-
description == o.description
|
176
|
+
description == o.description &&
|
177
|
+
pulp_labels == o.pulp_labels
|
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
|
+
[retain_repo_versions, manifest_signing_service, name, description, pulp_labels].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
+
attr_accessor :retain_repo_versions
|
19
20
|
|
20
21
|
attr_accessor :versions_href
|
21
22
|
|
23
|
+
attr_accessor :latest_version_href
|
24
|
+
|
22
25
|
# A reference to an associated signing service.
|
23
26
|
attr_accessor :manifest_signing_service
|
24
27
|
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
-
attr_accessor :retain_repo_versions
|
28
|
+
attr_accessor :pulp_href
|
29
29
|
|
30
30
|
# A unique name for this repository.
|
31
31
|
attr_accessor :name
|
32
32
|
|
33
|
-
# Timestamp of creation.
|
34
|
-
attr_accessor :pulp_created
|
35
|
-
|
36
33
|
# An optional description.
|
37
34
|
attr_accessor :description
|
38
35
|
|
39
|
-
|
36
|
+
# Timestamp of creation.
|
37
|
+
attr_accessor :pulp_created
|
38
|
+
|
39
|
+
attr_accessor :pulp_labels
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
45
45
|
:'versions_href' => :'versions_href',
|
46
|
+
:'latest_version_href' => :'latest_version_href',
|
46
47
|
:'manifest_signing_service' => :'manifest_signing_service',
|
47
|
-
:'
|
48
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
+
:'pulp_href' => :'pulp_href',
|
49
49
|
:'name' => :'name',
|
50
|
-
:'pulp_created' => :'pulp_created',
|
51
50
|
:'description' => :'description',
|
52
|
-
:'
|
51
|
+
:'pulp_created' => :'pulp_created',
|
52
|
+
:'pulp_labels' => :'pulp_labels'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'retain_repo_versions' => :'Integer',
|
60
60
|
:'versions_href' => :'String',
|
61
|
+
:'latest_version_href' => :'String',
|
61
62
|
:'manifest_signing_service' => :'String',
|
62
|
-
:'
|
63
|
-
:'retain_repo_versions' => :'Integer',
|
63
|
+
:'pulp_href' => :'String',
|
64
64
|
:'name' => :'String',
|
65
|
-
:'pulp_created' => :'DateTime',
|
66
65
|
:'description' => :'String',
|
67
|
-
:'
|
66
|
+
:'pulp_created' => :'DateTime',
|
67
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'manifest_signing_service',
|
75
74
|
:'retain_repo_versions',
|
75
|
+
:'manifest_signing_service',
|
76
76
|
:'description',
|
77
77
|
])
|
78
78
|
end
|
@@ -92,42 +92,42 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
97
97
|
end
|
98
98
|
|
99
99
|
if attributes.key?(:'versions_href')
|
100
100
|
self.versions_href = attributes[:'versions_href']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'latest_version_href')
|
104
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
|
109
|
-
self.pulp_labels = value
|
110
|
-
end
|
107
|
+
if attributes.key?(:'manifest_signing_service')
|
108
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
111
109
|
end
|
112
110
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_href')
|
112
|
+
self.pulp_href = attributes[:'pulp_href']
|
115
113
|
end
|
116
114
|
|
117
115
|
if attributes.key?(:'name')
|
118
116
|
self.name = attributes[:'name']
|
119
117
|
end
|
120
118
|
|
121
|
-
if attributes.key?(:'pulp_created')
|
122
|
-
self.pulp_created = attributes[:'pulp_created']
|
123
|
-
end
|
124
|
-
|
125
119
|
if attributes.key?(:'description')
|
126
120
|
self.description = attributes[:'description']
|
127
121
|
end
|
128
122
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
123
|
+
if attributes.key?(:'pulp_created')
|
124
|
+
self.pulp_created = attributes[:'pulp_created']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'pulp_labels')
|
128
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
|
+
self.pulp_labels = value
|
130
|
+
end
|
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
|
-
|
172
|
+
retain_repo_versions == o.retain_repo_versions &&
|
173
173
|
versions_href == o.versions_href &&
|
174
|
+
latest_version_href == o.latest_version_href &&
|
174
175
|
manifest_signing_service == o.manifest_signing_service &&
|
175
|
-
|
176
|
-
retain_repo_versions == o.retain_repo_versions &&
|
176
|
+
pulp_href == o.pulp_href &&
|
177
177
|
name == o.name &&
|
178
|
-
pulp_created == o.pulp_created &&
|
179
178
|
description == o.description &&
|
180
|
-
|
179
|
+
pulp_created == o.pulp_created &&
|
180
|
+
pulp_labels == o.pulp_labels
|
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
|
+
[retain_repo_versions, versions_href, latest_version_href, manifest_signing_service, pulp_href, name, description, pulp_created, pulp_labels].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
|