pulp_container_client 2.5.5 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
- data/docs/ContainerContainerRepository.md +2 -0
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/ContentTagsApi.md +2 -2
- data/docs/ManifestCopy.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerRepository.md +2 -0
- data/docs/RecursiveManage.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TagCopy.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -6
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -6
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +1 -1
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +1 -1
- data/lib/pulp_container_client/api/remotes_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +1 -41
- data/lib/pulp_container_client/api/token_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +8 -12
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +1 -8
- data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
- data/lib/pulp_container_client/models/container_container_namespace.rb +1 -1
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +28 -2
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +28 -2
- data/lib/pulp_container_client/models/container_container_repository_response.rb +28 -2
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
- data/lib/pulp_container_client/models/content_summary.rb +13 -7
- data/lib/pulp_container_client/models/content_summary_response.rb +13 -7
- data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
- data/lib/pulp_container_client/models/media_types_enum.rb +1 -1
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_content_redirect_content_guard_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +30 -30
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +28 -2
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/policy_enum.rb +1 -1
- data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
- data/lib/pulp_container_client/models/remove_image.rb +1 -1
- data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/repository_version.rb +1 -1
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_container_client/models/tag_copy.rb +2 -2
- data/lib/pulp_container_client/models/tag_image.rb +1 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +1 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +1 -1
- data/pulp_container_client.gemspec +2 -2
- data/spec/api/content_blobs_api_spec.rb +2 -2
- data/spec/api/content_manifests_api_spec.rb +2 -2
- data/spec/api/content_tags_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/api/remotes_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/api/token_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_namespace_response_spec.rb +1 -1
- data/spec/models/container_container_namespace_spec.rb +1 -1
- data/spec/models/container_container_push_repository_response_spec.rb +7 -1
- data/spec/models/container_container_remote_response_spec.rb +1 -1
- data/spec/models/container_container_remote_spec.rb +1 -1
- data/spec/models/container_container_repository_response_spec.rb +7 -1
- data/spec/models/container_container_repository_spec.rb +7 -1
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/container_manifest_response_spec.rb +1 -1
- data/spec/models/container_tag_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/media_types_enum_spec.rb +1 -1
- data/spec/models/oci_build_image_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_blob_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_tag_response_list_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_remote_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +7 -1
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/remove_image_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +44 -50
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -204,26 +204,6 @@ module PulpContainerClient
|
|
204
204
|
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
205
205
|
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerVersionsApi.list"
|
206
206
|
end
|
207
|
-
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
208
|
-
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
209
|
-
end
|
210
|
-
|
211
|
-
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
212
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
213
|
-
end
|
214
|
-
|
215
|
-
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
216
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
217
|
-
end
|
218
|
-
|
219
|
-
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
220
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
221
|
-
end
|
222
|
-
|
223
|
-
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
224
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
225
|
-
end
|
226
|
-
|
227
207
|
# resource path
|
228
208
|
local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
229
209
|
|
@@ -343,26 +323,6 @@ module PulpContainerClient
|
|
343
323
|
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
344
324
|
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list_0"
|
345
325
|
end
|
346
|
-
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
347
|
-
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
348
|
-
end
|
349
|
-
|
350
|
-
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
351
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
352
|
-
end
|
353
|
-
|
354
|
-
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
355
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
356
|
-
end
|
357
|
-
|
358
|
-
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
359
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
360
|
-
end
|
361
|
-
|
362
|
-
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
363
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
364
|
-
end
|
365
|
-
|
366
326
|
# resource path
|
367
327
|
local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
368
328
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,10 +53,8 @@ module PulpContainerClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
58
|
-
}
|
59
|
-
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
56
|
+
|
57
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
60
58
|
conn.basic_auth(config.username, config.password)
|
61
59
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
62
60
|
conn.request :multipart
|
@@ -287,13 +285,11 @@ module PulpContainerClient
|
|
287
285
|
tempfile.write(chunk)
|
288
286
|
end
|
289
287
|
request.on_complete do |response|
|
290
|
-
if tempfile
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
"explicitly with `tempfile.delete`"
|
296
|
-
end
|
288
|
+
tempfile.close if tempfile
|
289
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
290
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
291
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
292
|
+
"explicitly with `tempfile.delete`"
|
297
293
|
end
|
298
294
|
end
|
299
295
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,12 +109,6 @@ module PulpContainerClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
-
# Set this to customize parameters encoder of array parameter.
|
113
|
-
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
-
#
|
115
|
-
# @see The params_encoder option of Faraday. Related source code:
|
116
|
-
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
-
attr_accessor :params_encoder
|
118
112
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
119
113
|
# Default to nil.
|
120
114
|
#
|
@@ -139,7 +133,6 @@ module PulpContainerClient
|
|
139
133
|
@ssl_ca_file = nil
|
140
134
|
@ssl_client_cert = nil
|
141
135
|
@ssl_client_key = nil
|
142
|
-
@params_encoder = nil
|
143
136
|
@debugging = false
|
144
137
|
@inject_format = false
|
145
138
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
18
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
19
24
|
attr_accessor :name
|
20
25
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
21
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
30
|
attr_accessor :base_path
|
23
31
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
32
|
# RepositoryVersion to be served
|
27
33
|
attr_accessor :repository_version
|
28
34
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
-
attr_accessor :content_guard
|
31
|
-
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
33
|
-
attr_accessor :repository
|
34
|
-
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
36
|
attr_accessor :private
|
37
37
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
+
:'repository' => :'repository',
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
44
46
|
:'name' => :'name',
|
47
|
+
:'content_guard' => :'content_guard',
|
45
48
|
:'base_path' => :'base_path',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
49
|
:'repository_version' => :'repository_version',
|
48
|
-
:'content_guard' => :'content_guard',
|
49
|
-
:'repository' => :'repository',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
52
52
|
}
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
+
:'repository' => :'String',
|
59
|
+
:'pulp_labels' => :'Object',
|
58
60
|
:'name' => :'String',
|
61
|
+
:'content_guard' => :'String',
|
59
62
|
:'base_path' => :'String',
|
60
|
-
:'pulp_labels' => :'Object',
|
61
63
|
:'repository_version' => :'String',
|
62
|
-
:'content_guard' => :'String',
|
63
|
-
:'repository' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
66
66
|
}
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
69
69
|
# List of attributes with nullable: true
|
70
70
|
def self.openapi_nullable
|
71
71
|
Set.new([
|
72
|
-
:'repository_version',
|
73
72
|
:'repository',
|
73
|
+
:'repository_version',
|
74
74
|
:'description'
|
75
75
|
])
|
76
76
|
end
|
@@ -90,28 +90,28 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'base_path')
|
98
|
-
self.base_path = attributes[:'base_path']
|
93
|
+
if attributes.key?(:'repository')
|
94
|
+
self.repository = attributes[:'repository']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
102
98
|
self.pulp_labels = attributes[:'pulp_labels']
|
103
99
|
end
|
104
100
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
101
|
+
if attributes.key?(:'name')
|
102
|
+
self.name = attributes[:'name']
|
107
103
|
end
|
108
104
|
|
109
105
|
if attributes.key?(:'content_guard')
|
110
106
|
self.content_guard = attributes[:'content_guard']
|
111
107
|
end
|
112
108
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
109
|
+
if attributes.key?(:'base_path')
|
110
|
+
self.base_path = attributes[:'base_path']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'repository_version')
|
114
|
+
self.repository_version = attributes[:'repository_version']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'private')
|
@@ -151,12 +151,12 @@ module PulpContainerClient
|
|
151
151
|
def ==(o)
|
152
152
|
return true if self.equal?(o)
|
153
153
|
self.class == o.class &&
|
154
|
+
repository == o.repository &&
|
155
|
+
pulp_labels == o.pulp_labels &&
|
154
156
|
name == o.name &&
|
157
|
+
content_guard == o.content_guard &&
|
155
158
|
base_path == o.base_path &&
|
156
|
-
pulp_labels == o.pulp_labels &&
|
157
159
|
repository_version == o.repository_version &&
|
158
|
-
content_guard == o.content_guard &&
|
159
|
-
repository == o.repository &&
|
160
160
|
private == o.private &&
|
161
161
|
description == o.description
|
162
162
|
end
|
@@ -170,7 +170,7 @@ module PulpContainerClient
|
|
170
170
|
# Calculates hash code according to all attributes.
|
171
171
|
# @return [Integer] Hash code
|
172
172
|
def hash
|
173
|
-
[
|
173
|
+
[repository, pulp_labels, name, content_guard, base_path, repository_version, private, description].hash
|
174
174
|
end
|
175
175
|
|
176
176
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,28 +15,28 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
23
|
+
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
18
26
|
attr_accessor :pulp_href
|
19
27
|
|
20
28
|
# A unique name. Ex, `rawhide` and `stable`.
|
21
29
|
attr_accessor :name
|
22
30
|
|
31
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
32
|
+
attr_accessor :content_guard
|
33
|
+
|
23
34
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
35
|
attr_accessor :base_path
|
25
36
|
|
26
|
-
attr_accessor :pulp_labels
|
27
|
-
|
28
37
|
# RepositoryVersion to be served
|
29
38
|
attr_accessor :repository_version
|
30
39
|
|
31
|
-
# Timestamp of creation.
|
32
|
-
attr_accessor :pulp_created
|
33
|
-
|
34
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
35
|
-
attr_accessor :content_guard
|
36
|
-
|
37
|
-
# The latest RepositoryVersion for this Repository will be served.
|
38
|
-
attr_accessor :repository
|
39
|
-
|
40
40
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
41
41
|
attr_accessor :registry_path
|
42
42
|
|
@@ -52,14 +52,14 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
+
:'repository' => :'repository',
|
56
|
+
:'pulp_created' => :'pulp_created',
|
57
|
+
:'pulp_labels' => :'pulp_labels',
|
55
58
|
:'pulp_href' => :'pulp_href',
|
56
59
|
:'name' => :'name',
|
60
|
+
:'content_guard' => :'content_guard',
|
57
61
|
:'base_path' => :'base_path',
|
58
|
-
:'pulp_labels' => :'pulp_labels',
|
59
62
|
:'repository_version' => :'repository_version',
|
60
|
-
:'pulp_created' => :'pulp_created',
|
61
|
-
:'content_guard' => :'content_guard',
|
62
|
-
:'repository' => :'repository',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
65
65
|
:'private' => :'private',
|
@@ -70,14 +70,14 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'repository' => :'String',
|
74
|
+
:'pulp_created' => :'DateTime',
|
75
|
+
:'pulp_labels' => :'Object',
|
73
76
|
:'pulp_href' => :'String',
|
74
77
|
:'name' => :'String',
|
78
|
+
:'content_guard' => :'String',
|
75
79
|
:'base_path' => :'String',
|
76
|
-
:'pulp_labels' => :'Object',
|
77
80
|
:'repository_version' => :'String',
|
78
|
-
:'pulp_created' => :'DateTime',
|
79
|
-
:'content_guard' => :'String',
|
80
|
-
:'repository' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
83
83
|
:'private' => :'Boolean',
|
@@ -88,8 +88,8 @@ module PulpContainerClient
|
|
88
88
|
# List of attributes with nullable: true
|
89
89
|
def self.openapi_nullable
|
90
90
|
Set.new([
|
91
|
-
:'repository_version',
|
92
91
|
:'repository',
|
92
|
+
:'repository_version',
|
93
93
|
:'description'
|
94
94
|
])
|
95
95
|
end
|
@@ -109,36 +109,36 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'name')
|
117
|
-
self.name = attributes[:'name']
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
118
114
|
end
|
119
115
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
116
|
+
if attributes.key?(:'pulp_created')
|
117
|
+
self.pulp_created = attributes[:'pulp_created']
|
122
118
|
end
|
123
119
|
|
124
120
|
if attributes.key?(:'pulp_labels')
|
125
121
|
self.pulp_labels = attributes[:'pulp_labels']
|
126
122
|
end
|
127
123
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
self.
|
124
|
+
if attributes.key?(:'pulp_href')
|
125
|
+
self.pulp_href = attributes[:'pulp_href']
|
130
126
|
end
|
131
127
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
128
|
+
if attributes.key?(:'name')
|
129
|
+
self.name = attributes[:'name']
|
134
130
|
end
|
135
131
|
|
136
132
|
if attributes.key?(:'content_guard')
|
137
133
|
self.content_guard = attributes[:'content_guard']
|
138
134
|
end
|
139
135
|
|
140
|
-
if attributes.key?(:'
|
141
|
-
self.
|
136
|
+
if attributes.key?(:'base_path')
|
137
|
+
self.base_path = attributes[:'base_path']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'repository_version')
|
141
|
+
self.repository_version = attributes[:'repository_version']
|
142
142
|
end
|
143
143
|
|
144
144
|
if attributes.key?(:'registry_path')
|
@@ -186,14 +186,14 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
+
repository == o.repository &&
|
190
|
+
pulp_created == o.pulp_created &&
|
191
|
+
pulp_labels == o.pulp_labels &&
|
189
192
|
pulp_href == o.pulp_href &&
|
190
193
|
name == o.name &&
|
194
|
+
content_guard == o.content_guard &&
|
191
195
|
base_path == o.base_path &&
|
192
|
-
pulp_labels == o.pulp_labels &&
|
193
196
|
repository_version == o.repository_version &&
|
194
|
-
pulp_created == o.pulp_created &&
|
195
|
-
content_guard == o.content_guard &&
|
196
|
-
repository == o.repository &&
|
197
197
|
registry_path == o.registry_path &&
|
198
198
|
namespace == o.namespace &&
|
199
199
|
private == o.private &&
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[repository, pulp_created, pulp_labels, pulp_href, name, content_guard, base_path, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,9 @@ module PulpContainerClient
|
|
32
32
|
# An optional description.
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
+
attr_accessor :retained_versions
|
37
|
+
|
35
38
|
attr_accessor :remote
|
36
39
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,6 +47,7 @@ module PulpContainerClient
|
|
44
47
|
:'latest_version_href' => :'latest_version_href',
|
45
48
|
:'name' => :'name',
|
46
49
|
:'description' => :'description',
|
50
|
+
:'retained_versions' => :'retained_versions',
|
47
51
|
:'remote' => :'remote'
|
48
52
|
}
|
49
53
|
end
|
@@ -58,6 +62,7 @@ module PulpContainerClient
|
|
58
62
|
:'latest_version_href' => :'String',
|
59
63
|
:'name' => :'String',
|
60
64
|
:'description' => :'String',
|
65
|
+
:'retained_versions' => :'Integer',
|
61
66
|
:'remote' => :'String'
|
62
67
|
}
|
63
68
|
end
|
@@ -66,6 +71,7 @@ module PulpContainerClient
|
|
66
71
|
def self.openapi_nullable
|
67
72
|
Set.new([
|
68
73
|
:'description',
|
74
|
+
:'retained_versions',
|
69
75
|
:'remote'
|
70
76
|
])
|
71
77
|
end
|
@@ -113,6 +119,10 @@ module PulpContainerClient
|
|
113
119
|
self.description = attributes[:'description']
|
114
120
|
end
|
115
121
|
|
122
|
+
if attributes.key?(:'retained_versions')
|
123
|
+
self.retained_versions = attributes[:'retained_versions']
|
124
|
+
end
|
125
|
+
|
116
126
|
if attributes.key?(:'remote')
|
117
127
|
self.remote = attributes[:'remote']
|
118
128
|
end
|
@@ -126,6 +136,10 @@ module PulpContainerClient
|
|
126
136
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
127
137
|
end
|
128
138
|
|
139
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
140
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
129
143
|
invalid_properties
|
130
144
|
end
|
131
145
|
|
@@ -133,9 +147,20 @@ module PulpContainerClient
|
|
133
147
|
# @return true if the model is valid
|
134
148
|
def valid?
|
135
149
|
return false if @name.nil?
|
150
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
136
151
|
true
|
137
152
|
end
|
138
153
|
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param [Object] retained_versions Value to be assigned
|
156
|
+
def retained_versions=(retained_versions)
|
157
|
+
if !retained_versions.nil? && retained_versions < 1
|
158
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@retained_versions = retained_versions
|
162
|
+
end
|
163
|
+
|
139
164
|
# Checks equality by comparing each attribute.
|
140
165
|
# @param [Object] Object to be compared
|
141
166
|
def ==(o)
|
@@ -148,6 +173,7 @@ module PulpContainerClient
|
|
148
173
|
latest_version_href == o.latest_version_href &&
|
149
174
|
name == o.name &&
|
150
175
|
description == o.description &&
|
176
|
+
retained_versions == o.retained_versions &&
|
151
177
|
remote == o.remote
|
152
178
|
end
|
153
179
|
|
@@ -160,7 +186,7 @@ module PulpContainerClient
|
|
160
186
|
# Calculates hash code according to all attributes.
|
161
187
|
# @return [Integer] Hash code
|
162
188
|
def hash
|
163
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
189
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
|
164
190
|
end
|
165
191
|
|
166
192
|
# Builds the object from hash
|