pulp_container_client 2.25.0 → 2.26.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 +5 -4
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +20 -8
- data/docs/ContentManifestsApi.md +20 -8
- data/docs/ContentSignaturesApi.md +20 -8
- data/docs/ContentTagsApi.md +20 -8
- data/docs/DistributionsContainerApi.md +72 -32
- data/docs/DistributionsPullThroughApi.md +72 -32
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +40 -16
- data/docs/RemotesContainerApi.md +72 -32
- data/docs/RemotesPullThroughApi.md +72 -32
- data/docs/RepositoriesContainerApi.md +138 -64
- data/docs/RepositoriesContainerPushApi.md +80 -36
- data/docs/RepositoriesContainerPushVersionsApi.md +22 -10
- data/docs/RepositoriesContainerVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/TokenApi.md +14 -5
- data/lib/pulp_container_client/api/content_blobs_api.rb +12 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +12 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +12 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +12 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +63 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -3
- data/lib/pulp_container_client/api/token_api.rb +9 -0
- data/lib/pulp_container_client/models/container_blob_response.rb +10 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_push_repository.rb +33 -48
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -81
- data/lib/pulp_container_client/models/container_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/container_container_remote_response.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/container_container_repository_response.rb +0 -15
- data/lib/pulp_container_client/models/container_manifest_response.rb +10 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +10 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +10 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +0 -2
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +0 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +31 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +0 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +0 -15
- data/lib/pulp_container_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +0 -1
- data/spec/api/content_blobs_api_spec.rb +4 -0
- data/spec/api/content_manifests_api_spec.rb +4 -0
- data/spec/api/content_signatures_api_spec.rb +4 -0
- data/spec/api/content_tags_api_spec.rb +4 -0
- data/spec/api/distributions_container_api_spec.rb +12 -0
- data/spec/api/distributions_pull_through_api_spec.rb +12 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
- data/spec/api/remotes_container_api_spec.rb +12 -0
- data/spec/api/remotes_pull_through_api_spec.rb +12 -0
- data/spec/api/repositories_container_api_spec.rb +21 -0
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +5 -1
- data/spec/api/repositories_container_versions_api_spec.rb +5 -1
- data/spec/api/token_api_spec.rb +3 -0
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- 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 +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- 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
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +62 -82
@@ -16,22 +16,22 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for ContainerDistribution.
|
18
18
|
class PatchedcontainerContainerDistribution
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
20
|
+
attr_accessor :name
|
21
21
|
|
22
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
23
23
|
attr_accessor :content_guard
|
24
24
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
26
|
+
attr_accessor :repository
|
27
27
|
|
28
|
-
|
29
|
-
attr_accessor :name
|
28
|
+
attr_accessor :pulp_labels
|
30
29
|
|
31
30
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
31
|
attr_accessor :base_path
|
33
32
|
|
34
|
-
|
33
|
+
# Whether this distribution should be shown in the content app.
|
34
|
+
attr_accessor :hidden
|
35
35
|
|
36
36
|
# RepositoryVersion to be served
|
37
37
|
attr_accessor :repository_version
|
@@ -45,12 +45,12 @@ module PulpContainerClient
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
|
-
:'repository' => :'repository',
|
49
|
-
:'content_guard' => :'content_guard',
|
50
|
-
:'hidden' => :'hidden',
|
51
48
|
:'name' => :'name',
|
52
|
-
:'
|
49
|
+
:'content_guard' => :'content_guard',
|
50
|
+
:'repository' => :'repository',
|
53
51
|
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'base_path' => :'base_path',
|
53
|
+
:'hidden' => :'hidden',
|
54
54
|
:'repository_version' => :'repository_version',
|
55
55
|
:'private' => :'private',
|
56
56
|
:'description' => :'description'
|
@@ -65,12 +65,12 @@ module PulpContainerClient
|
|
65
65
|
# Attribute type mapping.
|
66
66
|
def self.openapi_types
|
67
67
|
{
|
68
|
-
:'repository' => :'String',
|
69
|
-
:'content_guard' => :'String',
|
70
|
-
:'hidden' => :'Boolean',
|
71
68
|
:'name' => :'String',
|
72
|
-
:'
|
69
|
+
:'content_guard' => :'String',
|
70
|
+
:'repository' => :'String',
|
73
71
|
:'pulp_labels' => :'Hash<String, String>',
|
72
|
+
:'base_path' => :'String',
|
73
|
+
:'hidden' => :'Boolean',
|
74
74
|
:'repository_version' => :'String',
|
75
75
|
:'private' => :'Boolean',
|
76
76
|
:'description' => :'String'
|
@@ -101,32 +101,32 @@ module PulpContainerClient
|
|
101
101
|
h[k.to_sym] = v
|
102
102
|
}
|
103
103
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
104
|
+
if attributes.key?(:'name')
|
105
|
+
self.name = attributes[:'name']
|
106
106
|
end
|
107
107
|
|
108
108
|
if attributes.key?(:'content_guard')
|
109
109
|
self.content_guard = attributes[:'content_guard']
|
110
110
|
end
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
else
|
115
|
-
self.hidden = false
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
116
114
|
end
|
117
115
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
|
116
|
+
if attributes.key?(:'pulp_labels')
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
+
self.pulp_labels = value
|
119
|
+
end
|
120
120
|
end
|
121
121
|
|
122
122
|
if attributes.key?(:'base_path')
|
123
123
|
self.base_path = attributes[:'base_path']
|
124
124
|
end
|
125
125
|
|
126
|
-
if attributes.key?(:'
|
127
|
-
|
128
|
-
|
129
|
-
|
126
|
+
if attributes.key?(:'hidden')
|
127
|
+
self.hidden = attributes[:'hidden']
|
128
|
+
else
|
129
|
+
self.hidden = false
|
130
130
|
end
|
131
131
|
|
132
132
|
if attributes.key?(:'repository_version')
|
@@ -215,12 +215,12 @@ module PulpContainerClient
|
|
215
215
|
def ==(o)
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
|
-
repository == o.repository &&
|
219
|
-
content_guard == o.content_guard &&
|
220
|
-
hidden == o.hidden &&
|
221
218
|
name == o.name &&
|
222
|
-
|
219
|
+
content_guard == o.content_guard &&
|
220
|
+
repository == o.repository &&
|
223
221
|
pulp_labels == o.pulp_labels &&
|
222
|
+
base_path == o.base_path &&
|
223
|
+
hidden == o.hidden &&
|
224
224
|
repository_version == o.repository_version &&
|
225
225
|
private == o.private &&
|
226
226
|
description == o.description
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
235
235
|
# Calculates hash code according to all attributes.
|
236
236
|
# @return [Integer] Hash code
|
237
237
|
def hash
|
238
|
-
[
|
238
|
+
[name, content_guard, repository, pulp_labels, base_path, hidden, repository_version, private, description].hash
|
239
239
|
end
|
240
240
|
|
241
241
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -16,22 +16,22 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
20
|
+
attr_accessor :name
|
21
21
|
|
22
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
23
23
|
attr_accessor :content_guard
|
24
24
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
26
|
+
attr_accessor :repository
|
27
27
|
|
28
|
-
|
29
|
-
attr_accessor :name
|
28
|
+
attr_accessor :pulp_labels
|
30
29
|
|
31
30
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
32
31
|
attr_accessor :base_path
|
33
32
|
|
34
|
-
|
33
|
+
# Whether this distribution should be shown in the content app.
|
34
|
+
attr_accessor :hidden
|
35
35
|
|
36
36
|
# Remote that can be used to fetch content when using pull-through caching.
|
37
37
|
attr_accessor :remote
|
@@ -48,12 +48,12 @@ module PulpContainerClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'repository' => :'repository',
|
52
|
-
:'content_guard' => :'content_guard',
|
53
|
-
:'hidden' => :'hidden',
|
54
51
|
:'name' => :'name',
|
55
|
-
:'
|
52
|
+
:'content_guard' => :'content_guard',
|
53
|
+
:'repository' => :'repository',
|
56
54
|
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'base_path' => :'base_path',
|
56
|
+
:'hidden' => :'hidden',
|
57
57
|
:'remote' => :'remote',
|
58
58
|
:'distributions' => :'distributions',
|
59
59
|
:'private' => :'private',
|
@@ -69,12 +69,12 @@ module PulpContainerClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
-
:'repository' => :'String',
|
73
|
-
:'content_guard' => :'String',
|
74
|
-
:'hidden' => :'Boolean',
|
75
72
|
:'name' => :'String',
|
76
|
-
:'
|
73
|
+
:'content_guard' => :'String',
|
74
|
+
:'repository' => :'String',
|
77
75
|
:'pulp_labels' => :'Hash<String, String>',
|
76
|
+
:'base_path' => :'String',
|
77
|
+
:'hidden' => :'Boolean',
|
78
78
|
:'remote' => :'String',
|
79
79
|
:'distributions' => :'Array<String>',
|
80
80
|
:'private' => :'Boolean',
|
@@ -105,32 +105,32 @@ module PulpContainerClient
|
|
105
105
|
h[k.to_sym] = v
|
106
106
|
}
|
107
107
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
108
|
+
if attributes.key?(:'name')
|
109
|
+
self.name = attributes[:'name']
|
110
110
|
end
|
111
111
|
|
112
112
|
if attributes.key?(:'content_guard')
|
113
113
|
self.content_guard = attributes[:'content_guard']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
118
|
-
else
|
119
|
-
self.hidden = false
|
116
|
+
if attributes.key?(:'repository')
|
117
|
+
self.repository = attributes[:'repository']
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'base_path')
|
127
127
|
self.base_path = attributes[:'base_path']
|
128
128
|
end
|
129
129
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
if attributes.key?(:'hidden')
|
131
|
+
self.hidden = attributes[:'hidden']
|
132
|
+
else
|
133
|
+
self.hidden = false
|
134
134
|
end
|
135
135
|
|
136
136
|
if attributes.key?(:'remote')
|
@@ -225,12 +225,12 @@ module PulpContainerClient
|
|
225
225
|
def ==(o)
|
226
226
|
return true if self.equal?(o)
|
227
227
|
self.class == o.class &&
|
228
|
-
repository == o.repository &&
|
229
|
-
content_guard == o.content_guard &&
|
230
|
-
hidden == o.hidden &&
|
231
228
|
name == o.name &&
|
232
|
-
|
229
|
+
content_guard == o.content_guard &&
|
230
|
+
repository == o.repository &&
|
233
231
|
pulp_labels == o.pulp_labels &&
|
232
|
+
base_path == o.base_path &&
|
233
|
+
hidden == o.hidden &&
|
234
234
|
remote == o.remote &&
|
235
235
|
distributions == o.distributions &&
|
236
236
|
private == o.private &&
|
@@ -246,7 +246,7 @@ module PulpContainerClient
|
|
246
246
|
# Calculates hash code according to all attributes.
|
247
247
|
# @return [Integer] Hash code
|
248
248
|
def hash
|
249
|
-
[
|
249
|
+
[name, content_guard, repository, pulp_labels, base_path, hidden, remote, distributions, private, description].hash
|
250
250
|
end
|
251
251
|
|
252
252
|
# Builds the object from hash
|
@@ -352,10 +352,6 @@ module PulpContainerClient
|
|
352
352
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
353
353
|
end
|
354
354
|
|
355
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
356
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
357
|
-
end
|
358
|
-
|
359
355
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
360
356
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
361
357
|
end
|
@@ -389,7 +385,6 @@ module PulpContainerClient
|
|
389
385
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
390
386
|
return false if !@username.nil? && @username.to_s.length < 1
|
391
387
|
return false if !@password.nil? && @password.to_s.length < 1
|
392
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
393
388
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
394
389
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
395
390
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -505,16 +500,6 @@ module PulpContainerClient
|
|
505
500
|
@password = password
|
506
501
|
end
|
507
502
|
|
508
|
-
# Custom attribute writer method with validation
|
509
|
-
# @param [Object] download_concurrency Value to be assigned
|
510
|
-
def download_concurrency=(download_concurrency)
|
511
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
512
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
513
|
-
end
|
514
|
-
|
515
|
-
@download_concurrency = download_concurrency
|
516
|
-
end
|
517
|
-
|
518
503
|
# Custom attribute writer method with validation
|
519
504
|
# @param [Object] total_timeout Value to be assigned
|
520
505
|
def total_timeout=(total_timeout)
|
@@ -16,28 +16,28 @@ require 'time'
|
|
16
16
|
module PulpContainerClient
|
17
17
|
# Serializer for Container Push Repositories.
|
18
18
|
class PatchedcontainerContainerPushRepository
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A unique name for this repository.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
attr_accessor :pulp_labels
|
21
23
|
|
22
24
|
# A reference to an associated signing service.
|
23
25
|
attr_accessor :manifest_signing_service
|
24
26
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
27
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
28
|
+
attr_accessor :retain_repo_versions
|
27
29
|
|
28
30
|
# An optional description.
|
29
31
|
attr_accessor :description
|
30
32
|
|
31
|
-
attr_accessor :pulp_labels
|
32
|
-
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
38
36
|
:'name' => :'name',
|
39
|
-
:'
|
40
|
-
:'
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
40
|
+
:'description' => :'description'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
@@ -49,20 +49,20 @@ module PulpContainerClient
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.openapi_types
|
51
51
|
{
|
52
|
-
:'retain_repo_versions' => :'Integer',
|
53
|
-
:'manifest_signing_service' => :'String',
|
54
52
|
:'name' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
53
|
+
:'pulp_labels' => :'Hash<String, String>',
|
54
|
+
:'manifest_signing_service' => :'String',
|
55
|
+
:'retain_repo_versions' => :'Integer',
|
56
|
+
:'description' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
60
|
# List of attributes with nullable: true
|
61
61
|
def self.openapi_nullable
|
62
62
|
Set.new([
|
63
|
-
:'retain_repo_versions',
|
64
63
|
:'manifest_signing_service',
|
65
|
-
:'
|
64
|
+
:'retain_repo_versions',
|
65
|
+
:'description'
|
66
66
|
])
|
67
67
|
end
|
68
68
|
|
@@ -81,27 +81,27 @@ module PulpContainerClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'pulp_labels')
|
89
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
90
|
+
self.pulp_labels = value
|
91
|
+
end
|
86
92
|
end
|
87
93
|
|
88
94
|
if attributes.key?(:'manifest_signing_service')
|
89
95
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
96
|
end
|
91
97
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
98
|
+
if attributes.key?(:'retain_repo_versions')
|
99
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
100
|
end
|
95
101
|
|
96
102
|
if attributes.key?(:'description')
|
97
103
|
self.description = attributes[:'description']
|
98
104
|
end
|
99
|
-
|
100
|
-
if attributes.key?(:'pulp_labels')
|
101
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
102
|
-
self.pulp_labels = value
|
103
|
-
end
|
104
|
-
end
|
105
105
|
end
|
106
106
|
|
107
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -109,10 +109,6 @@ module PulpContainerClient
|
|
109
109
|
def list_invalid_properties
|
110
110
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
111
111
|
invalid_properties = Array.new
|
112
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
113
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
114
|
-
end
|
115
|
-
|
116
112
|
if !@name.nil? && @name.to_s.length < 1
|
117
113
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
118
114
|
end
|
@@ -128,22 +124,11 @@ module PulpContainerClient
|
|
128
124
|
# @return true if the model is valid
|
129
125
|
def valid?
|
130
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
131
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
132
127
|
return false if !@name.nil? && @name.to_s.length < 1
|
133
128
|
return false if !@description.nil? && @description.to_s.length < 1
|
134
129
|
true
|
135
130
|
end
|
136
131
|
|
137
|
-
# Custom attribute writer method with validation
|
138
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
139
|
-
def retain_repo_versions=(retain_repo_versions)
|
140
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
141
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
142
|
-
end
|
143
|
-
|
144
|
-
@retain_repo_versions = retain_repo_versions
|
145
|
-
end
|
146
|
-
|
147
132
|
# Custom attribute writer method with validation
|
148
133
|
# @param [Object] name Value to be assigned
|
149
134
|
def name=(name)
|
@@ -173,11 +158,11 @@ module PulpContainerClient
|
|
173
158
|
def ==(o)
|
174
159
|
return true if self.equal?(o)
|
175
160
|
self.class == o.class &&
|
176
|
-
retain_repo_versions == o.retain_repo_versions &&
|
177
|
-
manifest_signing_service == o.manifest_signing_service &&
|
178
161
|
name == o.name &&
|
179
|
-
|
180
|
-
|
162
|
+
pulp_labels == o.pulp_labels &&
|
163
|
+
manifest_signing_service == o.manifest_signing_service &&
|
164
|
+
retain_repo_versions == o.retain_repo_versions &&
|
165
|
+
description == o.description
|
181
166
|
end
|
182
167
|
|
183
168
|
# @see the `==` method
|
@@ -189,7 +174,7 @@ module PulpContainerClient
|
|
189
174
|
# Calculates hash code according to all attributes.
|
190
175
|
# @return [Integer] Hash code
|
191
176
|
def hash
|
192
|
-
[
|
177
|
+
[name, pulp_labels, manifest_signing_service, retain_repo_versions, description].hash
|
193
178
|
end
|
194
179
|
|
195
180
|
# Builds the object from hash
|
@@ -371,10 +371,6 @@ module PulpContainerClient
|
|
371
371
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
372
372
|
end
|
373
373
|
|
374
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
375
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
376
|
-
end
|
377
|
-
|
378
374
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
379
375
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
380
376
|
end
|
@@ -416,7 +412,6 @@ module PulpContainerClient
|
|
416
412
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
417
413
|
return false if !@username.nil? && @username.to_s.length < 1
|
418
414
|
return false if !@password.nil? && @password.to_s.length < 1
|
419
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
420
415
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
421
416
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
422
417
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -534,16 +529,6 @@ module PulpContainerClient
|
|
534
529
|
@password = password
|
535
530
|
end
|
536
531
|
|
537
|
-
# Custom attribute writer method with validation
|
538
|
-
# @param [Object] download_concurrency Value to be assigned
|
539
|
-
def download_concurrency=(download_concurrency)
|
540
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
541
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
542
|
-
end
|
543
|
-
|
544
|
-
@download_concurrency = download_concurrency
|
545
|
-
end
|
546
|
-
|
547
532
|
# Custom attribute writer method with validation
|
548
533
|
# @param [Object] total_timeout Value to be assigned
|
549
534
|
def total_timeout=(total_timeout)
|
@@ -127,10 +127,6 @@ module PulpContainerClient
|
|
127
127
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
128
128
|
end
|
129
129
|
|
130
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
130
|
invalid_properties
|
135
131
|
end
|
136
132
|
|
@@ -140,7 +136,6 @@ module PulpContainerClient
|
|
140
136
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
141
137
|
return false if !@name.nil? && @name.to_s.length < 1
|
142
138
|
return false if !@description.nil? && @description.to_s.length < 1
|
143
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
144
139
|
true
|
145
140
|
end
|
146
141
|
|
@@ -168,16 +163,6 @@ module PulpContainerClient
|
|
168
163
|
@description = description
|
169
164
|
end
|
170
165
|
|
171
|
-
# Custom attribute writer method with validation
|
172
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
173
|
-
def retain_repo_versions=(retain_repo_versions)
|
174
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
175
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
176
|
-
end
|
177
|
-
|
178
|
-
@retain_repo_versions = retain_repo_versions
|
179
|
-
end
|
180
|
-
|
181
166
|
# Checks equality by comparing each attribute.
|
182
167
|
# @param [Object] Object to be compared
|
183
168
|
def ==(o)
|
@@ -37,6 +37,8 @@ module PulpContainerClient
|
|
37
37
|
# Various count summaries of the content in the version and the HREF to view them.
|
38
38
|
attr_accessor :content_summary
|
39
39
|
|
40
|
+
attr_accessor :vuln_report
|
41
|
+
|
40
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
43
|
def self.attribute_map
|
42
44
|
{
|
@@ -47,7 +49,8 @@ module PulpContainerClient
|
|
47
49
|
:'number' => :'number',
|
48
50
|
:'repository' => :'repository',
|
49
51
|
:'base_version' => :'base_version',
|
50
|
-
:'content_summary' => :'content_summary'
|
52
|
+
:'content_summary' => :'content_summary',
|
53
|
+
:'vuln_report' => :'vuln_report'
|
51
54
|
}
|
52
55
|
end
|
53
56
|
|
@@ -66,7 +69,8 @@ module PulpContainerClient
|
|
66
69
|
:'number' => :'Integer',
|
67
70
|
:'repository' => :'String',
|
68
71
|
:'base_version' => :'String',
|
69
|
-
:'content_summary' => :'ContentSummaryResponse'
|
72
|
+
:'content_summary' => :'ContentSummaryResponse',
|
73
|
+
:'vuln_report' => :'String'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -122,6 +126,10 @@ module PulpContainerClient
|
|
122
126
|
if attributes.key?(:'content_summary')
|
123
127
|
self.content_summary = attributes[:'content_summary']
|
124
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'vuln_report')
|
131
|
+
self.vuln_report = attributes[:'vuln_report']
|
132
|
+
end
|
125
133
|
end
|
126
134
|
|
127
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,7 +159,8 @@ module PulpContainerClient
|
|
151
159
|
number == o.number &&
|
152
160
|
repository == o.repository &&
|
153
161
|
base_version == o.base_version &&
|
154
|
-
content_summary == o.content_summary
|
162
|
+
content_summary == o.content_summary &&
|
163
|
+
vuln_report == o.vuln_report
|
155
164
|
end
|
156
165
|
|
157
166
|
# @see the `==` method
|
@@ -163,7 +172,7 @@ module PulpContainerClient
|
|
163
172
|
# Calculates hash code according to all attributes.
|
164
173
|
# @return [Integer] Hash code
|
165
174
|
def hash
|
166
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
175
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary, vuln_report].hash
|
167
176
|
end
|
168
177
|
|
169
178
|
# Builds the object from hash
|
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = {}
|
30
30
|
|
31
|
-
s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
|
32
31
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
|
33
32
|
s.add_runtime_dependency 'faraday-multipart'
|
34
33
|
s.add_runtime_dependency 'marcel'
|
@@ -36,6 +36,7 @@ describe 'ContentBlobsApi' do
|
|
36
36
|
# List blobs
|
37
37
|
# ViewSet for Blobs.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
39
40
|
# @option opts [String] :digest Filter results where digest matches value
|
40
41
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
41
42
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -64,6 +65,7 @@ describe 'ContentBlobsApi' do
|
|
64
65
|
# ViewSet for Blobs.
|
65
66
|
# @param container_blob_href
|
66
67
|
# @param [Hash] opts the optional parameters
|
68
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
67
69
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
68
70
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
69
71
|
# @return [ContainerBlobResponse]
|
@@ -79,6 +81,7 @@ describe 'ContentBlobsApi' do
|
|
79
81
|
# @param container_blob_href
|
80
82
|
# @param set_label
|
81
83
|
# @param [Hash] opts the optional parameters
|
84
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
82
85
|
# @return [SetLabelResponse]
|
83
86
|
describe 'set_label test' do
|
84
87
|
it 'should work' do
|
@@ -92,6 +95,7 @@ describe 'ContentBlobsApi' do
|
|
92
95
|
# @param container_blob_href
|
93
96
|
# @param unset_label
|
94
97
|
# @param [Hash] opts the optional parameters
|
98
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
95
99
|
# @return [UnsetLabelResponse]
|
96
100
|
describe 'unset_label test' do
|
97
101
|
it 'should work' do
|