pulp_container_client 2.21.2 → 2.22.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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/ContainerManifestResponse.md +11 -3
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/OCIBuildImage.md +4 -4
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- 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 +26 -26
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +26 -26
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- 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 +26 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +26 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- 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 +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- 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 +4 -4
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +64 -64
@@ -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
|
@@ -15,8 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for building an OCI container image from a Containerfile. The Containerfile can either be specified via an artifact url, or a new file can be uploaded. A repository must be specified, to which the container image content will be added.
|
17
17
|
class OCIBuildImage
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Name of the Containerfile, from build_context, that should be used to run podman-build.
|
19
|
+
attr_accessor :containerfile_name
|
20
20
|
|
21
21
|
# An uploaded Containerfile that should be used to run podman-build.
|
22
22
|
attr_accessor :containerfile
|
@@ -24,32 +24,33 @@ module PulpContainerClient
|
|
24
24
|
# A tag name for the new image being built.
|
25
25
|
attr_accessor :tag
|
26
26
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
27
|
+
# RepositoryVersion to be used as the build context for container images.
|
28
|
+
attr_accessor :build_context
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'
|
33
|
+
:'containerfile_name' => :'containerfile_name',
|
34
34
|
:'containerfile' => :'containerfile',
|
35
35
|
:'tag' => :'tag',
|
36
|
-
:'
|
36
|
+
:'build_context' => :'build_context'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
40
|
# Attribute type mapping.
|
41
41
|
def self.openapi_types
|
42
42
|
{
|
43
|
-
:'
|
43
|
+
:'containerfile_name' => :'String',
|
44
44
|
:'containerfile' => :'File',
|
45
45
|
:'tag' => :'String',
|
46
|
-
:'
|
46
|
+
:'build_context' => :'String'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
50
50
|
# List of attributes with nullable: true
|
51
51
|
def self.openapi_nullable
|
52
52
|
Set.new([
|
53
|
+
:'build_context'
|
53
54
|
])
|
54
55
|
end
|
55
56
|
|
@@ -68,8 +69,8 @@ module PulpContainerClient
|
|
68
69
|
h[k.to_sym] = v
|
69
70
|
}
|
70
71
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
self.
|
72
|
+
if attributes.key?(:'containerfile_name')
|
73
|
+
self.containerfile_name = attributes[:'containerfile_name']
|
73
74
|
end
|
74
75
|
|
75
76
|
if attributes.key?(:'containerfile')
|
@@ -82,8 +83,8 @@ module PulpContainerClient
|
|
82
83
|
self.tag = 'latest'
|
83
84
|
end
|
84
85
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
86
|
+
if attributes.key?(:'build_context')
|
87
|
+
self.build_context = attributes[:'build_context']
|
87
88
|
end
|
88
89
|
end
|
89
90
|
|
@@ -120,10 +121,10 @@ module PulpContainerClient
|
|
120
121
|
def ==(o)
|
121
122
|
return true if self.equal?(o)
|
122
123
|
self.class == o.class &&
|
123
|
-
|
124
|
+
containerfile_name == o.containerfile_name &&
|
124
125
|
containerfile == o.containerfile &&
|
125
126
|
tag == o.tag &&
|
126
|
-
|
127
|
+
build_context == o.build_context
|
127
128
|
end
|
128
129
|
|
129
130
|
# @see the `==` method
|
@@ -135,7 +136,7 @@ module PulpContainerClient
|
|
135
136
|
# Calculates hash code according to all attributes.
|
136
137
|
# @return [Integer] Hash code
|
137
138
|
def hash
|
138
|
-
[
|
139
|
+
[containerfile_name, containerfile, tag, build_context].hash
|
139
140
|
end
|
140
141
|
|
141
142
|
# Builds the object from hash
|
@@ -18,16 +18,16 @@ module PulpContainerClient
|
|
18
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
19
|
attr_accessor :base_path
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
-
attr_accessor :content_guard
|
21
|
+
attr_accessor :pulp_labels
|
26
22
|
|
27
23
|
# The latest RepositoryVersion for this Repository will be served.
|
28
24
|
attr_accessor :repository
|
29
25
|
|
30
|
-
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
31
|
|
32
32
|
# Whether this distribution should be shown in the content app.
|
33
33
|
attr_accessor :hidden
|
@@ -45,10 +45,10 @@ module PulpContainerClient
|
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
47
|
:'base_path' => :'base_path',
|
48
|
-
:'name' => :'name',
|
49
|
-
:'content_guard' => :'content_guard',
|
50
|
-
:'repository' => :'repository',
|
51
48
|
:'pulp_labels' => :'pulp_labels',
|
49
|
+
:'repository' => :'repository',
|
50
|
+
:'content_guard' => :'content_guard',
|
51
|
+
:'name' => :'name',
|
52
52
|
:'hidden' => :'hidden',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
@@ -60,10 +60,10 @@ module PulpContainerClient
|
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
62
|
:'base_path' => :'String',
|
63
|
-
:'name' => :'String',
|
64
|
-
:'content_guard' => :'String',
|
65
|
-
:'repository' => :'String',
|
66
63
|
:'pulp_labels' => :'Hash<String, String>',
|
64
|
+
:'repository' => :'String',
|
65
|
+
:'content_guard' => :'String',
|
66
|
+
:'name' => :'String',
|
67
67
|
:'hidden' => :'Boolean',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
@@ -99,22 +99,22 @@ module PulpContainerClient
|
|
99
99
|
self.base_path = attributes[:'base_path']
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
if attributes.key?(:'content_guard')
|
107
|
-
self.content_guard = attributes[:'content_guard']
|
102
|
+
if attributes.key?(:'pulp_labels')
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
|
+
self.pulp_labels = value
|
105
|
+
end
|
108
106
|
end
|
109
107
|
|
110
108
|
if attributes.key?(:'repository')
|
111
109
|
self.repository = attributes[:'repository']
|
112
110
|
end
|
113
111
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
|
116
|
-
|
117
|
-
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'name')
|
117
|
+
self.name = attributes[:'name']
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.key?(:'hidden')
|
@@ -200,10 +200,10 @@ module PulpContainerClient
|
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
202
|
base_path == o.base_path &&
|
203
|
-
name == o.name &&
|
204
|
-
content_guard == o.content_guard &&
|
205
|
-
repository == o.repository &&
|
206
203
|
pulp_labels == o.pulp_labels &&
|
204
|
+
repository == o.repository &&
|
205
|
+
content_guard == o.content_guard &&
|
206
|
+
name == o.name &&
|
207
207
|
hidden == o.hidden &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
@@ -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
|
-
[base_path,
|
222
|
+
[base_path, pulp_labels, repository, content_guard, name, hidden, 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
@@ -18,16 +18,16 @@ module PulpContainerClient
|
|
18
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
19
|
attr_accessor :base_path
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
25
|
-
attr_accessor :content_guard
|
21
|
+
attr_accessor :pulp_labels
|
26
22
|
|
27
23
|
# The latest RepositoryVersion for this Repository will be served.
|
28
24
|
attr_accessor :repository
|
29
25
|
|
30
|
-
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
31
|
|
32
32
|
# Whether this distribution should be shown in the content app.
|
33
33
|
attr_accessor :hidden
|
@@ -48,10 +48,10 @@ module PulpContainerClient
|
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
50
|
:'base_path' => :'base_path',
|
51
|
-
:'name' => :'name',
|
52
|
-
:'content_guard' => :'content_guard',
|
53
|
-
:'repository' => :'repository',
|
54
51
|
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'repository' => :'repository',
|
53
|
+
:'content_guard' => :'content_guard',
|
54
|
+
:'name' => :'name',
|
55
55
|
:'hidden' => :'hidden',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
@@ -64,10 +64,10 @@ module PulpContainerClient
|
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
66
|
:'base_path' => :'String',
|
67
|
-
:'name' => :'String',
|
68
|
-
:'content_guard' => :'String',
|
69
|
-
:'repository' => :'String',
|
70
67
|
:'pulp_labels' => :'Hash<String, String>',
|
68
|
+
:'repository' => :'String',
|
69
|
+
:'content_guard' => :'String',
|
70
|
+
:'name' => :'String',
|
71
71
|
:'hidden' => :'Boolean',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
@@ -103,22 +103,22 @@ module PulpContainerClient
|
|
103
103
|
self.base_path = attributes[:'base_path']
|
104
104
|
end
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
if attributes.key?(:'content_guard')
|
111
|
-
self.content_guard = attributes[:'content_guard']
|
106
|
+
if attributes.key?(:'pulp_labels')
|
107
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
108
|
+
self.pulp_labels = value
|
109
|
+
end
|
112
110
|
end
|
113
111
|
|
114
112
|
if attributes.key?(:'repository')
|
115
113
|
self.repository = attributes[:'repository']
|
116
114
|
end
|
117
115
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
|
120
|
-
|
121
|
-
|
116
|
+
if attributes.key?(:'content_guard')
|
117
|
+
self.content_guard = attributes[:'content_guard']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'name')
|
121
|
+
self.name = attributes[:'name']
|
122
122
|
end
|
123
123
|
|
124
124
|
if attributes.key?(:'hidden')
|
@@ -210,10 +210,10 @@ module PulpContainerClient
|
|
210
210
|
return true if self.equal?(o)
|
211
211
|
self.class == o.class &&
|
212
212
|
base_path == o.base_path &&
|
213
|
-
name == o.name &&
|
214
|
-
content_guard == o.content_guard &&
|
215
|
-
repository == o.repository &&
|
216
213
|
pulp_labels == o.pulp_labels &&
|
214
|
+
repository == o.repository &&
|
215
|
+
content_guard == o.content_guard &&
|
216
|
+
name == o.name &&
|
217
217
|
hidden == o.hidden &&
|
218
218
|
remote == o.remote &&
|
219
219
|
distributions == o.distributions &&
|
@@ -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
|
-
[base_path,
|
233
|
+
[base_path, pulp_labels, repository, content_guard, name, hidden, remote, distributions, private, description].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# Builds the object from hash
|
@@ -327,20 +327,20 @@ module PulpContainerClient
|
|
327
327
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
328
328
|
end
|
329
329
|
|
330
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
331
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
330
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
331
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
332
332
|
end
|
333
333
|
|
334
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
334
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
336
336
|
end
|
337
337
|
|
338
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
339
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
338
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
339
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
340
340
|
end
|
341
341
|
|
342
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
343
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
342
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
343
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
344
344
|
end
|
345
345
|
|
346
346
|
invalid_properties
|
@@ -360,10 +360,10 @@ module PulpContainerClient
|
|
360
360
|
return false if !@username.nil? && @username.to_s.length < 1
|
361
361
|
return false if !@password.nil? && @password.to_s.length < 1
|
362
362
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
363
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
364
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
365
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
363
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
364
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
365
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
367
367
|
true
|
368
368
|
end
|
369
369
|
|
@@ -480,8 +480,8 @@ module PulpContainerClient
|
|
480
480
|
# Custom attribute writer method with validation
|
481
481
|
# @param [Object] total_timeout Value to be assigned
|
482
482
|
def total_timeout=(total_timeout)
|
483
|
-
if !total_timeout.nil? && total_timeout < 0
|
484
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
483
|
+
if !total_timeout.nil? && total_timeout < 0
|
484
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
485
485
|
end
|
486
486
|
|
487
487
|
@total_timeout = total_timeout
|
@@ -490,8 +490,8 @@ module PulpContainerClient
|
|
490
490
|
# Custom attribute writer method with validation
|
491
491
|
# @param [Object] connect_timeout Value to be assigned
|
492
492
|
def connect_timeout=(connect_timeout)
|
493
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
494
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
493
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
494
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
495
495
|
end
|
496
496
|
|
497
497
|
@connect_timeout = connect_timeout
|
@@ -500,8 +500,8 @@ module PulpContainerClient
|
|
500
500
|
# Custom attribute writer method with validation
|
501
501
|
# @param [Object] sock_connect_timeout Value to be assigned
|
502
502
|
def sock_connect_timeout=(sock_connect_timeout)
|
503
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
504
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
503
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
504
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
505
505
|
end
|
506
506
|
|
507
507
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -510,8 +510,8 @@ module PulpContainerClient
|
|
510
510
|
# Custom attribute writer method with validation
|
511
511
|
# @param [Object] sock_read_timeout Value to be assigned
|
512
512
|
def sock_read_timeout=(sock_read_timeout)
|
513
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
514
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
513
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
514
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
515
515
|
end
|
516
516
|
|
517
517
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A reference to an associated signing service.
|
22
|
-
attr_accessor :manifest_signing_service
|
18
|
+
# An optional description.
|
19
|
+
attr_accessor :description
|
23
20
|
|
24
21
|
attr_accessor :pulp_labels
|
25
22
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
23
|
+
# A unique name for this repository.
|
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
|
-
:'name' => :'name',
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
38
35
|
:'description' => :'description',
|
39
|
-
:'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'name' => :'name',
|
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
|
-
:'name' => :'String',
|
47
|
-
:'manifest_signing_service' => :'String',
|
48
|
-
:'pulp_labels' => :'Hash<String, String>',
|
49
46
|
:'description' => :'String',
|
50
|
-
:'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'name' => :'String',
|
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,12 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'manifest_signing_service')
|
83
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
78
|
+
if attributes.key?(:'description')
|
79
|
+
self.description = attributes[:'description']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'pulp_labels')
|
@@ -89,27 +85,31 @@ module PulpContainerClient
|
|
89
85
|
end
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'name')
|
89
|
+
self.name = attributes[:'name']
|
94
90
|
end
|
95
91
|
|
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?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@name.nil? && @name.to_s.length < 1
|
106
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
105
|
if !@description.nil? && @description.to_s.length < 1
|
110
106
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
107
|
end
|
112
108
|
|
109
|
+
if !@name.nil? && @name.to_s.length < 1
|
110
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
|
+
end
|
112
|
+
|
113
113
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
114
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
115
|
end
|
@@ -120,22 +120,12 @@ module PulpContainerClient
|
|
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 !@name.nil? && @name.to_s.length < 1
|
124
123
|
return false if !@description.nil? && @description.to_s.length < 1
|
124
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
125
125
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] name Value to be assigned
|
131
|
-
def name=(name)
|
132
|
-
if !name.nil? && name.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@name = name
|
137
|
-
end
|
138
|
-
|
139
129
|
# Custom attribute writer method with validation
|
140
130
|
# @param [Object] description Value to be assigned
|
141
131
|
def description=(description)
|
@@ -146,6 +136,16 @@ module PulpContainerClient
|
|
146
136
|
@description = description
|
147
137
|
end
|
148
138
|
|
139
|
+
# Custom attribute writer method with validation
|
140
|
+
# @param [Object] name Value to be assigned
|
141
|
+
def name=(name)
|
142
|
+
if !name.nil? && name.to_s.length < 1
|
143
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
144
|
+
end
|
145
|
+
|
146
|
+
@name = name
|
147
|
+
end
|
148
|
+
|
149
149
|
# Custom attribute writer method with validation
|
150
150
|
# @param [Object] retain_repo_versions Value to be assigned
|
151
151
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -161,11 +161,11 @@ module PulpContainerClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
name == o.name &&
|
165
|
-
manifest_signing_service == o.manifest_signing_service &&
|
166
|
-
pulp_labels == o.pulp_labels &&
|
167
164
|
description == o.description &&
|
168
|
-
|
165
|
+
pulp_labels == o.pulp_labels &&
|
166
|
+
name == o.name &&
|
167
|
+
retain_repo_versions == o.retain_repo_versions &&
|
168
|
+
manifest_signing_service == o.manifest_signing_service
|
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
|
-
[
|
180
|
+
[description, pulp_labels, name, retain_repo_versions, manifest_signing_service].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|