pulp_container_client 2.5.4 → 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 +2 -2
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- 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 +2 -2
- 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 +12 -12
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +28 -28
- 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 +12 -12
- 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 +1 -1
- 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 +8 -8
- data/spec/models/container_container_distribution_spec.rb +4 -4
- 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 +4 -4
- 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 +42 -42
@@ -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
|
|
@@ -23,15 +23,15 @@ module PulpContainerClient
|
|
23
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
26
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\")
|
27
30
|
attr_accessor :base_path
|
28
31
|
|
29
32
|
# RepositoryVersion to be served
|
30
33
|
attr_accessor :repository_version
|
31
34
|
|
32
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
-
attr_accessor :content_guard
|
34
|
-
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
36
|
attr_accessor :private
|
37
37
|
|
@@ -44,9 +44,9 @@ module PulpContainerClient
|
|
44
44
|
:'repository' => :'repository',
|
45
45
|
:'pulp_labels' => :'pulp_labels',
|
46
46
|
:'name' => :'name',
|
47
|
+
:'content_guard' => :'content_guard',
|
47
48
|
:'base_path' => :'base_path',
|
48
49
|
:'repository_version' => :'repository_version',
|
49
|
-
:'content_guard' => :'content_guard',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
52
52
|
}
|
@@ -58,9 +58,9 @@ module PulpContainerClient
|
|
58
58
|
:'repository' => :'String',
|
59
59
|
:'pulp_labels' => :'Object',
|
60
60
|
:'name' => :'String',
|
61
|
+
:'content_guard' => :'String',
|
61
62
|
:'base_path' => :'String',
|
62
63
|
:'repository_version' => :'String',
|
63
|
-
:'content_guard' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
66
66
|
}
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
102
102
|
self.name = attributes[:'name']
|
103
103
|
end
|
104
104
|
|
105
|
+
if attributes.key?(:'content_guard')
|
106
|
+
self.content_guard = attributes[:'content_guard']
|
107
|
+
end
|
108
|
+
|
105
109
|
if attributes.key?(:'base_path')
|
106
110
|
self.base_path = attributes[:'base_path']
|
107
111
|
end
|
@@ -110,10 +114,6 @@ module PulpContainerClient
|
|
110
114
|
self.repository_version = attributes[:'repository_version']
|
111
115
|
end
|
112
116
|
|
113
|
-
if attributes.key?(:'content_guard')
|
114
|
-
self.content_guard = attributes[:'content_guard']
|
115
|
-
end
|
116
|
-
|
117
117
|
if attributes.key?(:'private')
|
118
118
|
self.private = attributes[:'private']
|
119
119
|
end
|
@@ -154,9 +154,9 @@ module PulpContainerClient
|
|
154
154
|
repository == o.repository &&
|
155
155
|
pulp_labels == o.pulp_labels &&
|
156
156
|
name == o.name &&
|
157
|
+
content_guard == o.content_guard &&
|
157
158
|
base_path == o.base_path &&
|
158
159
|
repository_version == o.repository_version &&
|
159
|
-
content_guard == o.content_guard &&
|
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
|
-
[repository, pulp_labels, name, base_path, repository_version,
|
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
|
|
@@ -18,13 +18,18 @@ module PulpContainerClient
|
|
18
18
|
# The latest RepositoryVersion for this Repository will be served.
|
19
19
|
attr_accessor :repository
|
20
20
|
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
23
|
+
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
26
|
+
attr_accessor :pulp_href
|
27
|
+
|
23
28
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
29
|
attr_accessor :name
|
25
30
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
31
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
32
|
+
attr_accessor :content_guard
|
28
33
|
|
29
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\")
|
30
35
|
attr_accessor :base_path
|
@@ -32,11 +37,6 @@ module PulpContainerClient
|
|
32
37
|
# RepositoryVersion to be served
|
33
38
|
attr_accessor :repository_version
|
34
39
|
|
35
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
36
|
-
attr_accessor :content_guard
|
37
|
-
|
38
|
-
attr_accessor :pulp_href
|
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
|
|
@@ -53,13 +53,13 @@ module PulpContainerClient
|
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
55
|
:'repository' => :'repository',
|
56
|
+
:'pulp_created' => :'pulp_created',
|
56
57
|
:'pulp_labels' => :'pulp_labels',
|
58
|
+
:'pulp_href' => :'pulp_href',
|
57
59
|
:'name' => :'name',
|
58
|
-
:'
|
60
|
+
:'content_guard' => :'content_guard',
|
59
61
|
:'base_path' => :'base_path',
|
60
62
|
:'repository_version' => :'repository_version',
|
61
|
-
:'content_guard' => :'content_guard',
|
62
|
-
:'pulp_href' => :'pulp_href',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
65
65
|
:'private' => :'private',
|
@@ -71,13 +71,13 @@ module PulpContainerClient
|
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
73
|
:'repository' => :'String',
|
74
|
+
:'pulp_created' => :'DateTime',
|
74
75
|
:'pulp_labels' => :'Object',
|
76
|
+
:'pulp_href' => :'String',
|
75
77
|
:'name' => :'String',
|
76
|
-
:'
|
78
|
+
:'content_guard' => :'String',
|
77
79
|
:'base_path' => :'String',
|
78
80
|
:'repository_version' => :'String',
|
79
|
-
:'content_guard' => :'String',
|
80
|
-
:'pulp_href' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
83
83
|
:'private' => :'Boolean',
|
@@ -113,16 +113,24 @@ module PulpContainerClient
|
|
113
113
|
self.repository = attributes[:'repository']
|
114
114
|
end
|
115
115
|
|
116
|
+
if attributes.key?(:'pulp_created')
|
117
|
+
self.pulp_created = attributes[:'pulp_created']
|
118
|
+
end
|
119
|
+
|
116
120
|
if attributes.key?(:'pulp_labels')
|
117
121
|
self.pulp_labels = attributes[:'pulp_labels']
|
118
122
|
end
|
119
123
|
|
124
|
+
if attributes.key?(:'pulp_href')
|
125
|
+
self.pulp_href = attributes[:'pulp_href']
|
126
|
+
end
|
127
|
+
|
120
128
|
if attributes.key?(:'name')
|
121
129
|
self.name = attributes[:'name']
|
122
130
|
end
|
123
131
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
132
|
+
if attributes.key?(:'content_guard')
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
126
134
|
end
|
127
135
|
|
128
136
|
if attributes.key?(:'base_path')
|
@@ -133,14 +141,6 @@ module PulpContainerClient
|
|
133
141
|
self.repository_version = attributes[:'repository_version']
|
134
142
|
end
|
135
143
|
|
136
|
-
if attributes.key?(:'content_guard')
|
137
|
-
self.content_guard = attributes[:'content_guard']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.key?(:'pulp_href')
|
141
|
-
self.pulp_href = attributes[:'pulp_href']
|
142
|
-
end
|
143
|
-
|
144
144
|
if attributes.key?(:'registry_path')
|
145
145
|
self.registry_path = attributes[:'registry_path']
|
146
146
|
end
|
@@ -187,13 +187,13 @@ module PulpContainerClient
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
repository == o.repository &&
|
190
|
+
pulp_created == o.pulp_created &&
|
190
191
|
pulp_labels == o.pulp_labels &&
|
192
|
+
pulp_href == o.pulp_href &&
|
191
193
|
name == o.name &&
|
192
|
-
|
194
|
+
content_guard == o.content_guard &&
|
193
195
|
base_path == o.base_path &&
|
194
196
|
repository_version == o.repository_version &&
|
195
|
-
content_guard == o.content_guard &&
|
196
|
-
pulp_href == o.pulp_href &&
|
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
|
-
[repository, pulp_labels, name,
|
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
|
@@ -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
|
|
@@ -23,6 +23,9 @@ module PulpContainerClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
+
# 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.
|
27
|
+
attr_accessor :retained_versions
|
28
|
+
|
26
29
|
attr_accessor :remote
|
27
30
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,6 +34,7 @@ module PulpContainerClient
|
|
31
34
|
:'pulp_labels' => :'pulp_labels',
|
32
35
|
:'name' => :'name',
|
33
36
|
:'description' => :'description',
|
37
|
+
:'retained_versions' => :'retained_versions',
|
34
38
|
:'remote' => :'remote'
|
35
39
|
}
|
36
40
|
end
|
@@ -41,6 +45,7 @@ module PulpContainerClient
|
|
41
45
|
:'pulp_labels' => :'Object',
|
42
46
|
:'name' => :'String',
|
43
47
|
:'description' => :'String',
|
48
|
+
:'retained_versions' => :'Integer',
|
44
49
|
:'remote' => :'String'
|
45
50
|
}
|
46
51
|
end
|
@@ -49,6 +54,7 @@ module PulpContainerClient
|
|
49
54
|
def self.openapi_nullable
|
50
55
|
Set.new([
|
51
56
|
:'description',
|
57
|
+
:'retained_versions',
|
52
58
|
:'remote'
|
53
59
|
])
|
54
60
|
end
|
@@ -80,6 +86,10 @@ module PulpContainerClient
|
|
80
86
|
self.description = attributes[:'description']
|
81
87
|
end
|
82
88
|
|
89
|
+
if attributes.key?(:'retained_versions')
|
90
|
+
self.retained_versions = attributes[:'retained_versions']
|
91
|
+
end
|
92
|
+
|
83
93
|
if attributes.key?(:'remote')
|
84
94
|
self.remote = attributes[:'remote']
|
85
95
|
end
|
@@ -93,6 +103,10 @@ module PulpContainerClient
|
|
93
103
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
94
104
|
end
|
95
105
|
|
106
|
+
if !@retained_versions.nil? && @retained_versions < 1
|
107
|
+
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
108
|
+
end
|
109
|
+
|
96
110
|
invalid_properties
|
97
111
|
end
|
98
112
|
|
@@ -100,9 +114,20 @@ module PulpContainerClient
|
|
100
114
|
# @return true if the model is valid
|
101
115
|
def valid?
|
102
116
|
return false if @name.nil?
|
117
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
103
118
|
true
|
104
119
|
end
|
105
120
|
|
121
|
+
# Custom attribute writer method with validation
|
122
|
+
# @param [Object] retained_versions Value to be assigned
|
123
|
+
def retained_versions=(retained_versions)
|
124
|
+
if !retained_versions.nil? && retained_versions < 1
|
125
|
+
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
126
|
+
end
|
127
|
+
|
128
|
+
@retained_versions = retained_versions
|
129
|
+
end
|
130
|
+
|
106
131
|
# Checks equality by comparing each attribute.
|
107
132
|
# @param [Object] Object to be compared
|
108
133
|
def ==(o)
|
@@ -111,6 +136,7 @@ module PulpContainerClient
|
|
111
136
|
pulp_labels == o.pulp_labels &&
|
112
137
|
name == o.name &&
|
113
138
|
description == o.description &&
|
139
|
+
retained_versions == o.retained_versions &&
|
114
140
|
remote == o.remote
|
115
141
|
end
|
116
142
|
|
@@ -123,7 +149,7 @@ module PulpContainerClient
|
|
123
149
|
# Calculates hash code according to all attributes.
|
124
150
|
# @return [Integer] Hash code
|
125
151
|
def hash
|
126
|
-
[pulp_labels, name, description, remote].hash
|
152
|
+
[pulp_labels, name, description, retained_versions, remote].hash
|
127
153
|
end
|
128
154
|
|
129
155
|
# 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
|