pulp_container_client 2.19.2 → 2.20.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 +3 -3
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPullThroughDistribution.md +3 -3
- data/docs/ContainerContainerPullThroughDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerManifestResponse.md +0 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +30 -30
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
- data/lib/pulp_container_client/models/container_manifest_response.rb +1 -16
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
- 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 +5 -5
- data/spec/models/container_manifest_response_spec.rb +0 -6
- 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 +5 -5
- metadata +64 -64
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
+
attr_accessor :retain_repo_versions
|
22
20
|
|
23
|
-
|
24
|
-
attr_accessor :description
|
21
|
+
attr_accessor :pulp_href
|
25
22
|
|
26
|
-
|
23
|
+
# A reference to an associated signing service.
|
24
|
+
attr_accessor :manifest_signing_service
|
27
25
|
|
28
26
|
# Timestamp of creation.
|
29
27
|
attr_accessor :pulp_created
|
30
28
|
|
31
29
|
attr_accessor :latest_version_href
|
32
30
|
|
33
|
-
|
34
|
-
attr_accessor :retain_repo_versions
|
35
|
-
|
36
|
-
attr_accessor :pulp_href
|
31
|
+
attr_accessor :pulp_labels
|
37
32
|
|
38
33
|
# A unique name for this repository.
|
39
34
|
attr_accessor :name
|
40
35
|
|
36
|
+
attr_accessor :versions_href
|
37
|
+
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
40
|
+
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
45
|
+
:'pulp_href' => :'pulp_href',
|
44
46
|
:'manifest_signing_service' => :'manifest_signing_service',
|
45
|
-
:'pulp_labels' => :'pulp_labels',
|
46
|
-
:'description' => :'description',
|
47
|
-
:'versions_href' => :'versions_href',
|
48
47
|
:'pulp_created' => :'pulp_created',
|
49
48
|
:'latest_version_href' => :'latest_version_href',
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
50
|
+
:'name' => :'name',
|
51
|
+
:'versions_href' => :'versions_href',
|
52
|
+
:'description' => :'description'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
+
:'retain_repo_versions' => :'Integer',
|
60
|
+
:'pulp_href' => :'String',
|
59
61
|
:'manifest_signing_service' => :'String',
|
60
|
-
:'pulp_labels' => :'Hash<String, String>',
|
61
|
-
:'description' => :'String',
|
62
|
-
:'versions_href' => :'String',
|
63
62
|
:'pulp_created' => :'DateTime',
|
64
63
|
:'latest_version_href' => :'String',
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
65
|
+
:'name' => :'String',
|
66
|
+
:'versions_href' => :'String',
|
67
|
+
:'description' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'manifest_signing_service',
|
75
|
-
:'description',
|
76
74
|
:'retain_repo_versions',
|
75
|
+
:'manifest_signing_service',
|
76
|
+
:'description'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,22 +92,16 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'pulp_labels')
|
100
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
101
|
-
self.pulp_labels = value
|
102
|
-
end
|
95
|
+
if attributes.key?(:'retain_repo_versions')
|
96
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
103
97
|
end
|
104
98
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
99
|
+
if attributes.key?(:'pulp_href')
|
100
|
+
self.pulp_href = attributes[:'pulp_href']
|
107
101
|
end
|
108
102
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
103
|
+
if attributes.key?(:'manifest_signing_service')
|
104
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
111
105
|
end
|
112
106
|
|
113
107
|
if attributes.key?(:'pulp_created')
|
@@ -118,17 +112,23 @@ module PulpContainerClient
|
|
118
112
|
self.latest_version_href = attributes[:'latest_version_href']
|
119
113
|
end
|
120
114
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
if attributes.key?(:'pulp_href')
|
126
|
-
self.pulp_href = attributes[:'pulp_href']
|
115
|
+
if attributes.key?(:'pulp_labels')
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
117
|
+
self.pulp_labels = value
|
118
|
+
end
|
127
119
|
end
|
128
120
|
|
129
121
|
if attributes.key?(:'name')
|
130
122
|
self.name = attributes[:'name']
|
131
123
|
end
|
124
|
+
|
125
|
+
if attributes.key?(:'versions_href')
|
126
|
+
self.versions_href = attributes[:'versions_href']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'description')
|
130
|
+
self.description = attributes[:'description']
|
131
|
+
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
+
retain_repo_versions == o.retain_repo_versions &&
|
173
|
+
pulp_href == o.pulp_href &&
|
172
174
|
manifest_signing_service == o.manifest_signing_service &&
|
173
|
-
pulp_labels == o.pulp_labels &&
|
174
|
-
description == o.description &&
|
175
|
-
versions_href == o.versions_href &&
|
176
175
|
pulp_created == o.pulp_created &&
|
177
176
|
latest_version_href == o.latest_version_href &&
|
178
|
-
|
179
|
-
|
180
|
-
|
177
|
+
pulp_labels == o.pulp_labels &&
|
178
|
+
name == o.name &&
|
179
|
+
versions_href == o.versions_href &&
|
180
|
+
description == o.description
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[retain_repo_versions, pulp_href, manifest_signing_service, pulp_created, latest_version_href, pulp_labels, name, versions_href, description].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -20,9 +20,6 @@ module PulpContainerClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
-
# Artifact file representing the physical content
|
24
|
-
attr_accessor :artifact
|
25
|
-
|
26
23
|
# sha256 of the Manifest file
|
27
24
|
attr_accessor :digest
|
28
25
|
|
@@ -58,7 +55,6 @@ module PulpContainerClient
|
|
58
55
|
{
|
59
56
|
:'pulp_href' => :'pulp_href',
|
60
57
|
:'pulp_created' => :'pulp_created',
|
61
|
-
:'artifact' => :'artifact',
|
62
58
|
:'digest' => :'digest',
|
63
59
|
:'schema_version' => :'schema_version',
|
64
60
|
:'media_type' => :'media_type',
|
@@ -77,7 +73,6 @@ module PulpContainerClient
|
|
77
73
|
{
|
78
74
|
:'pulp_href' => :'String',
|
79
75
|
:'pulp_created' => :'DateTime',
|
80
|
-
:'artifact' => :'String',
|
81
76
|
:'digest' => :'String',
|
82
77
|
:'schema_version' => :'Integer',
|
83
78
|
:'media_type' => :'String',
|
@@ -120,10 +115,6 @@ module PulpContainerClient
|
|
120
115
|
self.pulp_created = attributes[:'pulp_created']
|
121
116
|
end
|
122
117
|
|
123
|
-
if attributes.key?(:'artifact')
|
124
|
-
self.artifact = attributes[:'artifact']
|
125
|
-
end
|
126
|
-
|
127
118
|
if attributes.key?(:'digest')
|
128
119
|
self.digest = attributes[:'digest']
|
129
120
|
end
|
@@ -177,10 +168,6 @@ module PulpContainerClient
|
|
177
168
|
# @return Array for valid properties with the reasons
|
178
169
|
def list_invalid_properties
|
179
170
|
invalid_properties = Array.new
|
180
|
-
if @artifact.nil?
|
181
|
-
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
182
|
-
end
|
183
|
-
|
184
171
|
if @digest.nil?
|
185
172
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
186
173
|
end
|
@@ -207,7 +194,6 @@ module PulpContainerClient
|
|
207
194
|
# Check to see if the all the properties in the model are valid
|
208
195
|
# @return true if the model is valid
|
209
196
|
def valid?
|
210
|
-
return false if @artifact.nil?
|
211
197
|
return false if @digest.nil?
|
212
198
|
return false if @schema_version.nil?
|
213
199
|
return false if @media_type.nil?
|
@@ -223,7 +209,6 @@ module PulpContainerClient
|
|
223
209
|
self.class == o.class &&
|
224
210
|
pulp_href == o.pulp_href &&
|
225
211
|
pulp_created == o.pulp_created &&
|
226
|
-
artifact == o.artifact &&
|
227
212
|
digest == o.digest &&
|
228
213
|
schema_version == o.schema_version &&
|
229
214
|
media_type == o.media_type &&
|
@@ -245,7 +230,7 @@ module PulpContainerClient
|
|
245
230
|
# Calculates hash code according to all attributes.
|
246
231
|
# @return [Integer] Hash code
|
247
232
|
def hash
|
248
|
-
[pulp_href, pulp_created,
|
233
|
+
[pulp_href, pulp_created, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
|
249
234
|
end
|
250
235
|
|
251
236
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
18
21
|
# Whether this distribution should be shown in the content app.
|
19
22
|
attr_accessor :hidden
|
20
23
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
29
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
33
|
attr_accessor :name
|
31
34
|
|
32
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
-
attr_accessor :content_guard
|
34
|
-
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
+
:'content_guard' => :'content_guard',
|
47
48
|
:'hidden' => :'hidden',
|
48
49
|
:'pulp_labels' => :'pulp_labels',
|
49
50
|
:'repository' => :'repository',
|
50
51
|
:'base_path' => :'base_path',
|
51
52
|
:'name' => :'name',
|
52
|
-
:'content_guard' => :'content_guard',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
+
:'content_guard' => :'String',
|
62
63
|
:'hidden' => :'Boolean',
|
63
64
|
:'pulp_labels' => :'Hash<String, String>',
|
64
65
|
:'repository' => :'String',
|
65
66
|
:'base_path' => :'String',
|
66
67
|
:'name' => :'String',
|
67
|
-
:'content_guard' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,6 +95,10 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
+
if attributes.key?(:'content_guard')
|
99
|
+
self.content_guard = attributes[:'content_guard']
|
100
|
+
end
|
101
|
+
|
98
102
|
if attributes.key?(:'hidden')
|
99
103
|
self.hidden = attributes[:'hidden']
|
100
104
|
else
|
@@ -119,10 +123,6 @@ module PulpContainerClient
|
|
119
123
|
self.name = attributes[:'name']
|
120
124
|
end
|
121
125
|
|
122
|
-
if attributes.key?(:'content_guard')
|
123
|
-
self.content_guard = attributes[:'content_guard']
|
124
|
-
end
|
125
|
-
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
+
content_guard == o.content_guard &&
|
202
203
|
hidden == o.hidden &&
|
203
204
|
pulp_labels == o.pulp_labels &&
|
204
205
|
repository == o.repository &&
|
205
206
|
base_path == o.base_path &&
|
206
207
|
name == o.name &&
|
207
|
-
content_guard == o.content_guard &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -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
|
-
[hidden, pulp_labels, repository, base_path, name,
|
222
|
+
[content_guard, hidden, pulp_labels, repository, base_path, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
18
21
|
# Whether this distribution should be shown in the content app.
|
19
22
|
attr_accessor :hidden
|
20
23
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
29
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
33
|
attr_accessor :name
|
31
34
|
|
32
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
-
attr_accessor :content_guard
|
34
|
-
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
37
37
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
+
:'content_guard' => :'content_guard',
|
50
51
|
:'hidden' => :'hidden',
|
51
52
|
:'pulp_labels' => :'pulp_labels',
|
52
53
|
:'repository' => :'repository',
|
53
54
|
:'base_path' => :'base_path',
|
54
55
|
:'name' => :'name',
|
55
|
-
:'content_guard' => :'content_guard',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
+
:'content_guard' => :'String',
|
66
67
|
:'hidden' => :'Boolean',
|
67
68
|
:'pulp_labels' => :'Hash<String, String>',
|
68
69
|
:'repository' => :'String',
|
69
70
|
:'base_path' => :'String',
|
70
71
|
:'name' => :'String',
|
71
|
-
:'content_guard' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,6 +99,10 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
+
if attributes.key?(:'content_guard')
|
103
|
+
self.content_guard = attributes[:'content_guard']
|
104
|
+
end
|
105
|
+
|
102
106
|
if attributes.key?(:'hidden')
|
103
107
|
self.hidden = attributes[:'hidden']
|
104
108
|
else
|
@@ -123,10 +127,6 @@ module PulpContainerClient
|
|
123
127
|
self.name = attributes[:'name']
|
124
128
|
end
|
125
129
|
|
126
|
-
if attributes.key?(:'content_guard')
|
127
|
-
self.content_guard = attributes[:'content_guard']
|
128
|
-
end
|
129
|
-
|
130
130
|
if attributes.key?(:'remote')
|
131
131
|
self.remote = attributes[:'remote']
|
132
132
|
end
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
209
209
|
def ==(o)
|
210
210
|
return true if self.equal?(o)
|
211
211
|
self.class == o.class &&
|
212
|
+
content_guard == o.content_guard &&
|
212
213
|
hidden == o.hidden &&
|
213
214
|
pulp_labels == o.pulp_labels &&
|
214
215
|
repository == o.repository &&
|
215
216
|
base_path == o.base_path &&
|
216
217
|
name == o.name &&
|
217
|
-
content_guard == o.content_guard &&
|
218
218
|
remote == o.remote &&
|
219
219
|
distributions == o.distributions &&
|
220
220
|
private == o.private &&
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
230
230
|
# Calculates hash code according to all attributes.
|
231
231
|
# @return [Integer] Hash code
|
232
232
|
def hash
|
233
|
-
[hidden, pulp_labels, repository, base_path, name,
|
233
|
+
[content_guard, hidden, pulp_labels, repository, base_path, name, remote, distributions, private, description].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# 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 PatchedcontainerContainerPushRepository
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
+
attr_accessor :retain_repo_versions
|
20
|
+
|
18
21
|
# A reference to an associated signing service.
|
19
22
|
attr_accessor :manifest_signing_service
|
20
23
|
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
23
|
-
# An optional description.
|
24
|
-
attr_accessor :description
|
25
|
-
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
-
attr_accessor :retain_repo_versions
|
28
|
-
|
29
26
|
# A unique name for this repository.
|
30
27
|
attr_accessor :name
|
31
28
|
|
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
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
35
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
36
37
|
:'pulp_labels' => :'pulp_labels',
|
37
|
-
:'
|
38
|
-
:'
|
39
|
-
:'name' => :'name'
|
38
|
+
:'name' => :'name',
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
+
:'retain_repo_versions' => :'Integer',
|
46
47
|
:'manifest_signing_service' => :'String',
|
47
48
|
:'pulp_labels' => :'Hash<String, String>',
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'name' => :'String'
|
49
|
+
:'name' => :'String',
|
50
|
+
:'description' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'manifest_signing_service',
|
58
|
-
:'description',
|
59
57
|
:'retain_repo_versions',
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,6 +75,10 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'manifest_signing_service')
|
79
83
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
80
84
|
end
|
@@ -85,27 +89,19 @@ module PulpContainerClient
|
|
85
89
|
end
|
86
90
|
end
|
87
91
|
|
88
|
-
if attributes.key?(:'description')
|
89
|
-
self.description = attributes[:'description']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'retain_repo_versions')
|
93
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
|
-
end
|
95
|
-
|
96
92
|
if attributes.key?(:'name')
|
97
93
|
self.name = attributes[:'name']
|
98
94
|
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
|
-
|
109
105
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
107
|
end
|
@@ -114,28 +110,22 @@ module PulpContainerClient
|
|
114
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
124
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] description Value to be assigned
|
131
|
-
def description=(description)
|
132
|
-
if !description.nil? && description.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@description = description
|
137
|
-
end
|
138
|
-
|
139
129
|
# Custom attribute writer method with validation
|
140
130
|
# @param [Object] retain_repo_versions Value to be assigned
|
141
131
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
156
146
|
@name = name
|
157
147
|
end
|
158
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] description Value to be assigned
|
151
|
+
def description=(description)
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@description = description
|
157
|
+
end
|
158
|
+
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
retain_repo_versions == o.retain_repo_versions &&
|
164
165
|
manifest_signing_service == o.manifest_signing_service &&
|
165
166
|
pulp_labels == o.pulp_labels &&
|
166
|
-
|
167
|
-
|
168
|
-
name == o.name
|
167
|
+
name == o.name &&
|
168
|
+
description == o.description
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[manifest_signing_service, pulp_labels,
|
180
|
+
[retain_repo_versions, manifest_signing_service, pulp_labels, name, description].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -43,7 +43,7 @@ describe 'ContentManifestsApi' do
|
|
43
43
|
# @option opts [Integer] :limit Number of results to return per page.
|
44
44
|
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
45
45
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
46
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `annotations` - Annotations * `-annotations` - Annotations (descending) * `labels` - Labels * `-labels` - Labels (descending) * `is_bootable` - Is bootable * `-is_bootable` - Is bootable (descending) * `is_flatpak` - Is flatpak * `-is_flatpak` - Is flatpak (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
46
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `data` - Data * `-data` - Data (descending) * `annotations` - Annotations * `-annotations` - Annotations (descending) * `labels` - Labels * `-labels` - Labels (descending) * `is_bootable` - Is bootable * `-is_bootable` - Is bootable (descending) * `is_flatpak` - Is flatpak * `-is_flatpak` - Is flatpak (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
47
47
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
48
48
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
49
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|