pulp_container_client 2.1.3 → 2.2.0.post0
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 +20 -13
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespace.md +17 -0
- data/docs/ContainerContainerNamespaceResponse.md +21 -0
- data/docs/ContainerContainerRemote.md +8 -0
- data/docs/ContainerContainerRemoteResponse.md +8 -0
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/ContentguardsContentRedirectApi.md +2 -2
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/ManifestCopy.md +1 -1
- data/docs/{InlineResponse2008.md → PaginatedRepositoryVersionResponseList.md} +4 -4
- data/docs/{InlineResponse200.md → PaginatedcontainerBlobResponseList.md} +4 -4
- data/docs/{InlineResponse2004.md → PaginatedcontainerContainerDistributionResponseList.md} +4 -4
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +23 -0
- data/docs/{InlineResponse2007.md → PaginatedcontainerContainerPushRepositoryResponseList.md} +4 -4
- data/docs/{InlineResponse2005.md → PaginatedcontainerContainerRemoteResponseList.md} +4 -4
- data/docs/{InlineResponse2006.md → PaginatedcontainerContainerRepositoryResponseList.md} +4 -4
- data/docs/{InlineResponse2003.md → PaginatedcontainerContentRedirectContentGuardResponseList.md} +4 -4
- data/docs/{InlineResponse2001.md → PaginatedcontainerManifestResponseList.md} +4 -4
- data/docs/{InlineResponse2002.md → PaginatedcontainerTagResponseList.md} +4 -4
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +8 -0
- data/docs/PulpContainerNamespacesApi.md +239 -0
- data/docs/RecursiveManage.md +1 -1
- data/docs/RemotesContainerApi.md +2 -2
- data/docs/RepositoriesContainerApi.md +2 -2
- data/docs/RepositoriesContainerPushApi.md +2 -2
- data/docs/RepositoriesContainerVersionsApi.md +8 -8
- data/docs/TagCopy.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +4 -4
- data/lib/pulp_container_client/api/content_manifests_api.rb +4 -4
- data/lib/pulp_container_client/api/content_tags_api.rb +4 -4
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +4 -4
- data/lib/pulp_container_client/api/distributions_container_api.rb +7 -4
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +285 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -15
- data/lib/pulp_container_client/api/token_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +12 -13
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +1 -9
- 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 +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +42 -32
- data/lib/pulp_container_client/models/container_container_namespace.rb +231 -0
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +250 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote.rb +106 -2
- data/lib/pulp_container_client/models/container_container_remote_response.rb +106 -2
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- 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 +1 -1
- data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/{inline_response2008.rb → paginated_repository_version_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response200.rb → paginatedcontainer_blob_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2004.rb → paginatedcontainer_container_distribution_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +237 -0
- data/lib/pulp_container_client/models/{inline_response2007.rb → paginatedcontainer_container_push_repository_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2005.rb → paginatedcontainer_container_remote_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2006.rb → paginatedcontainer_container_repository_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2003.rb → paginatedcontainer_content_redirect_content_guard_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2001.rb → paginatedcontainer_manifest_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/{inline_response2002.rb → paginatedcontainer_tag_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +106 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- 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/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 +1 -1
- data/lib/pulp_container_client/models/tag_copy.rb +2 -2
- data/lib/pulp_container_client/models/tag_image.rb +22 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +22 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +14 -10
- 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 +2 -2
- data/spec/api/distributions_container_api_spec.rb +3 -2
- data/spec/api/pulp_container_namespaces_api_spec.rb +89 -0
- data/spec/api/remotes_container_api_spec.rb +2 -2
- data/spec/api/repositories_container_api_spec.rb +2 -2
- data/spec/api/repositories_container_push_api_spec.rb +2 -2
- data/spec/api/repositories_container_versions_api_spec.rb +7 -7
- 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 +13 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/{inline_response200_spec.rb → container_container_namespace_response_spec.rb} +10 -16
- data/spec/models/container_container_namespace_spec.rb +41 -0
- data/spec/models/container_container_push_repository_response_spec.rb +1 -1
- data/spec/models/container_container_push_repository_spec.rb +1 -1
- data/spec/models/container_container_remote_response_spec.rb +25 -1
- data/spec/models/container_container_remote_spec.rb +25 -1
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -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/oci_build_image_spec.rb +1 -1
- data/spec/models/{inline_response2003_spec.rb → paginated_repository_version_response_list_spec.rb} +7 -7
- data/spec/models/{inline_response2002_spec.rb → paginatedcontainer_blob_response_list_spec.rb} +7 -7
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +59 -0
- data/spec/models/{inline_response2004_spec.rb → paginatedcontainer_manifest_response_list_spec.rb} +7 -7
- data/spec/models/{inline_response2001_spec.rb → paginatedcontainer_tag_response_list_spec.rb} +7 -7
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +25 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -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/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -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 +87 -77
- data/spec/models/inline_response2005_spec.rb +0 -59
- data/spec/models/inline_response2006_spec.rb +0 -59
- data/spec/models/inline_response2007_spec.rb +0 -59
- data/spec/models/inline_response2008_spec.rb +0 -59
@@ -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,40 +15,40 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
20
20
|
|
21
21
|
# RepositoryVersion to be served
|
22
22
|
attr_accessor :repository_version
|
23
23
|
|
24
|
-
# The latest RepositoryVersion for this Repository will be served.
|
25
|
-
attr_accessor :repository
|
26
|
-
|
27
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
28
|
-
attr_accessor :base_path
|
29
|
-
|
30
24
|
# A unique name. Ex, `rawhide` and `stable`.
|
31
25
|
attr_accessor :name
|
32
26
|
|
27
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
28
|
+
attr_accessor :content_guard
|
29
|
+
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
31
|
+
attr_accessor :repository
|
32
|
+
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'content_guard' => :'content_guard',
|
37
|
-
:'repository_version' => :'repository_version',
|
38
|
-
:'repository' => :'repository',
|
39
36
|
:'base_path' => :'base_path',
|
40
|
-
:'
|
37
|
+
:'repository_version' => :'repository_version',
|
38
|
+
:'name' => :'name',
|
39
|
+
:'content_guard' => :'content_guard',
|
40
|
+
:'repository' => :'repository'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'content_guard' => :'String',
|
48
|
-
:'repository_version' => :'String',
|
49
|
-
:'repository' => :'String',
|
50
47
|
:'base_path' => :'String',
|
51
|
-
:'
|
48
|
+
:'repository_version' => :'String',
|
49
|
+
:'name' => :'String',
|
50
|
+
:'content_guard' => :'String',
|
51
|
+
:'repository' => :'String'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
58
|
:'repository_version',
|
59
|
-
:'repository'
|
59
|
+
:'repository'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,24 +75,24 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'base_path')
|
79
|
+
self.base_path = attributes[:'base_path']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'repository_version')
|
83
83
|
self.repository_version = attributes[:'repository_version']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
86
|
+
if attributes.key?(:'name')
|
87
|
+
self.name = attributes[:'name']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
90
|
+
if attributes.key?(:'content_guard')
|
91
|
+
self.content_guard = attributes[:'content_guard']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'repository')
|
95
|
+
self.repository = attributes[:'repository']
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
@@ -114,11 +114,11 @@ module PulpContainerClient
|
|
114
114
|
def ==(o)
|
115
115
|
return true if self.equal?(o)
|
116
116
|
self.class == o.class &&
|
117
|
-
content_guard == o.content_guard &&
|
118
|
-
repository_version == o.repository_version &&
|
119
|
-
repository == o.repository &&
|
120
117
|
base_path == o.base_path &&
|
121
|
-
|
118
|
+
repository_version == o.repository_version &&
|
119
|
+
name == o.name &&
|
120
|
+
content_guard == o.content_guard &&
|
121
|
+
repository == o.repository
|
122
122
|
end
|
123
123
|
|
124
124
|
# @see the `==` method
|
@@ -130,7 +130,7 @@ module PulpContainerClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[
|
133
|
+
[base_path, repository_version, name, content_guard, repository].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# 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
|
|
@@ -48,6 +48,18 @@ module PulpContainerClient
|
|
48
48
|
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
49
49
|
attr_accessor :policy
|
50
50
|
|
51
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
52
|
+
attr_accessor :total_timeout
|
53
|
+
|
54
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
55
|
+
attr_accessor :connect_timeout
|
56
|
+
|
57
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
58
|
+
attr_accessor :sock_connect_timeout
|
59
|
+
|
60
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
|
+
attr_accessor :sock_read_timeout
|
62
|
+
|
51
63
|
# Name of the upstream repository
|
52
64
|
attr_accessor :upstream_name
|
53
65
|
|
@@ -71,6 +83,10 @@ module PulpContainerClient
|
|
71
83
|
:'password' => :'password',
|
72
84
|
:'download_concurrency' => :'download_concurrency',
|
73
85
|
:'policy' => :'policy',
|
86
|
+
:'total_timeout' => :'total_timeout',
|
87
|
+
:'connect_timeout' => :'connect_timeout',
|
88
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
74
90
|
:'upstream_name' => :'upstream_name',
|
75
91
|
:'include_tags' => :'include_tags',
|
76
92
|
:'exclude_tags' => :'exclude_tags'
|
@@ -91,6 +107,10 @@ module PulpContainerClient
|
|
91
107
|
:'password' => :'String',
|
92
108
|
:'download_concurrency' => :'Integer',
|
93
109
|
:'policy' => :'PolicyEnum',
|
110
|
+
:'total_timeout' => :'Float',
|
111
|
+
:'connect_timeout' => :'Float',
|
112
|
+
:'sock_connect_timeout' => :'Float',
|
113
|
+
:'sock_read_timeout' => :'Float',
|
94
114
|
:'upstream_name' => :'String',
|
95
115
|
:'include_tags' => :'Array<String>',
|
96
116
|
:'exclude_tags' => :'Array<String>'
|
@@ -106,6 +126,10 @@ module PulpContainerClient
|
|
106
126
|
:'proxy_url',
|
107
127
|
:'username',
|
108
128
|
:'password',
|
129
|
+
:'total_timeout',
|
130
|
+
:'connect_timeout',
|
131
|
+
:'sock_connect_timeout',
|
132
|
+
:'sock_read_timeout',
|
109
133
|
:'include_tags',
|
110
134
|
:'exclude_tags'
|
111
135
|
])
|
@@ -170,6 +194,22 @@ module PulpContainerClient
|
|
170
194
|
self.policy = attributes[:'policy']
|
171
195
|
end
|
172
196
|
|
197
|
+
if attributes.key?(:'total_timeout')
|
198
|
+
self.total_timeout = attributes[:'total_timeout']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'connect_timeout')
|
202
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'sock_connect_timeout')
|
206
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'sock_read_timeout')
|
210
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
211
|
+
end
|
212
|
+
|
173
213
|
if attributes.key?(:'upstream_name')
|
174
214
|
self.upstream_name = attributes[:'upstream_name']
|
175
215
|
end
|
@@ -195,6 +235,22 @@ module PulpContainerClient
|
|
195
235
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
196
236
|
end
|
197
237
|
|
238
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
239
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
240
|
+
end
|
241
|
+
|
242
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
243
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
244
|
+
end
|
245
|
+
|
246
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
247
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
248
|
+
end
|
249
|
+
|
250
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
251
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
252
|
+
end
|
253
|
+
|
198
254
|
invalid_properties
|
199
255
|
end
|
200
256
|
|
@@ -202,6 +258,10 @@ module PulpContainerClient
|
|
202
258
|
# @return true if the model is valid
|
203
259
|
def valid?
|
204
260
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
261
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
262
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
263
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
264
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
205
265
|
true
|
206
266
|
end
|
207
267
|
|
@@ -215,6 +275,46 @@ module PulpContainerClient
|
|
215
275
|
@download_concurrency = download_concurrency
|
216
276
|
end
|
217
277
|
|
278
|
+
# Custom attribute writer method with validation
|
279
|
+
# @param [Object] total_timeout Value to be assigned
|
280
|
+
def total_timeout=(total_timeout)
|
281
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
282
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
283
|
+
end
|
284
|
+
|
285
|
+
@total_timeout = total_timeout
|
286
|
+
end
|
287
|
+
|
288
|
+
# Custom attribute writer method with validation
|
289
|
+
# @param [Object] connect_timeout Value to be assigned
|
290
|
+
def connect_timeout=(connect_timeout)
|
291
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
292
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
293
|
+
end
|
294
|
+
|
295
|
+
@connect_timeout = connect_timeout
|
296
|
+
end
|
297
|
+
|
298
|
+
# Custom attribute writer method with validation
|
299
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
300
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
301
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
302
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
303
|
+
end
|
304
|
+
|
305
|
+
@sock_connect_timeout = sock_connect_timeout
|
306
|
+
end
|
307
|
+
|
308
|
+
# Custom attribute writer method with validation
|
309
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
310
|
+
def sock_read_timeout=(sock_read_timeout)
|
311
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
312
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
313
|
+
end
|
314
|
+
|
315
|
+
@sock_read_timeout = sock_read_timeout
|
316
|
+
end
|
317
|
+
|
218
318
|
# Checks equality by comparing each attribute.
|
219
319
|
# @param [Object] Object to be compared
|
220
320
|
def ==(o)
|
@@ -231,6 +331,10 @@ module PulpContainerClient
|
|
231
331
|
password == o.password &&
|
232
332
|
download_concurrency == o.download_concurrency &&
|
233
333
|
policy == o.policy &&
|
334
|
+
total_timeout == o.total_timeout &&
|
335
|
+
connect_timeout == o.connect_timeout &&
|
336
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
337
|
+
sock_read_timeout == o.sock_read_timeout &&
|
234
338
|
upstream_name == o.upstream_name &&
|
235
339
|
include_tags == o.include_tags &&
|
236
340
|
exclude_tags == o.exclude_tags
|
@@ -245,7 +349,7 @@ module PulpContainerClient
|
|
245
349
|
# Calculates hash code according to all attributes.
|
246
350
|
# @return [Integer] Hash code
|
247
351
|
def hash
|
248
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, upstream_name, include_tags, exclude_tags].hash
|
352
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, upstream_name, include_tags, exclude_tags].hash
|
249
353
|
end
|
250
354
|
|
251
355
|
# 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
|
|
@@ -28,7 +28,7 @@ module PulpContainerClient
|
|
28
28
|
# Attribute type mapping.
|
29
29
|
def self.openapi_types
|
30
30
|
{
|
31
|
-
:'content_units' => :'Array<
|
31
|
+
:'content_units' => :'Array<Object>'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -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
|
|
@@ -38,7 +38,7 @@ module PulpContainerClient
|
|
38
38
|
{
|
39
39
|
:'source_repository' => :'String',
|
40
40
|
:'source_repository_version' => :'String',
|
41
|
-
:'names' => :'Array<
|
41
|
+
:'names' => :'Array<Object>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -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
|
|
@@ -75,6 +75,11 @@ module PulpContainerClient
|
|
75
75
|
invalid_properties.push('invalid value for "tag", tag cannot be nil.')
|
76
76
|
end
|
77
77
|
|
78
|
+
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
79
|
+
if @tag !~ pattern
|
80
|
+
invalid_properties.push("invalid value for \"tag\", must conform to the pattern #{pattern}.")
|
81
|
+
end
|
82
|
+
|
78
83
|
if @digest.nil?
|
79
84
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
80
85
|
end
|
@@ -86,10 +91,26 @@ module PulpContainerClient
|
|
86
91
|
# @return true if the model is valid
|
87
92
|
def valid?
|
88
93
|
return false if @tag.nil?
|
94
|
+
return false if @tag !~ Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
89
95
|
return false if @digest.nil?
|
90
96
|
true
|
91
97
|
end
|
92
98
|
|
99
|
+
# Custom attribute writer method with validation
|
100
|
+
# @param [Object] tag Value to be assigned
|
101
|
+
def tag=(tag)
|
102
|
+
if tag.nil?
|
103
|
+
fail ArgumentError, 'tag cannot be nil'
|
104
|
+
end
|
105
|
+
|
106
|
+
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
107
|
+
if tag !~ pattern
|
108
|
+
fail ArgumentError, "invalid value for \"tag\", must conform to the pattern #{pattern}."
|
109
|
+
end
|
110
|
+
|
111
|
+
@tag = tag
|
112
|
+
end
|
113
|
+
|
93
114
|
# Checks equality by comparing each attribute.
|
94
115
|
# @param [Object] Object to be compared
|
95
116
|
def ==(o)
|
@@ -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
|
|
@@ -66,6 +66,11 @@ module PulpContainerClient
|
|
66
66
|
invalid_properties.push('invalid value for "tag", tag cannot be nil.')
|
67
67
|
end
|
68
68
|
|
69
|
+
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
70
|
+
if @tag !~ pattern
|
71
|
+
invalid_properties.push("invalid value for \"tag\", must conform to the pattern #{pattern}.")
|
72
|
+
end
|
73
|
+
|
69
74
|
invalid_properties
|
70
75
|
end
|
71
76
|
|
@@ -73,9 +78,25 @@ module PulpContainerClient
|
|
73
78
|
# @return true if the model is valid
|
74
79
|
def valid?
|
75
80
|
return false if @tag.nil?
|
81
|
+
return false if @tag !~ Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
76
82
|
true
|
77
83
|
end
|
78
84
|
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param [Object] tag Value to be assigned
|
87
|
+
def tag=(tag)
|
88
|
+
if tag.nil?
|
89
|
+
fail ArgumentError, 'tag cannot be nil'
|
90
|
+
end
|
91
|
+
|
92
|
+
pattern = Regexp.new(/^[A-Za-z0-9][A-Za-z0-9._-]*$/)
|
93
|
+
if tag !~ pattern
|
94
|
+
fail ArgumentError, "invalid value for \"tag\", must conform to the pattern #{pattern}."
|
95
|
+
end
|
96
|
+
|
97
|
+
@tag = tag
|
98
|
+
end
|
99
|
+
|
79
100
|
# Checks equality by comparing each attribute.
|
80
101
|
# @param [Object] Object to be compared
|
81
102
|
def ==(o)
|
@@ -6,10 +6,10 @@
|
|
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
|
|
13
13
|
module PulpContainerClient
|
14
|
-
VERSION = '2.
|
14
|
+
VERSION = '2.2.0.post0'
|
15
15
|
end
|
@@ -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
|
|
@@ -21,6 +21,8 @@ require 'pulp_container_client/models/async_operation_response'
|
|
21
21
|
require 'pulp_container_client/models/container_blob_response'
|
22
22
|
require 'pulp_container_client/models/container_container_distribution'
|
23
23
|
require 'pulp_container_client/models/container_container_distribution_response'
|
24
|
+
require 'pulp_container_client/models/container_container_namespace'
|
25
|
+
require 'pulp_container_client/models/container_container_namespace_response'
|
24
26
|
require 'pulp_container_client/models/container_container_push_repository'
|
25
27
|
require 'pulp_container_client/models/container_container_push_repository_response'
|
26
28
|
require 'pulp_container_client/models/container_container_remote'
|
@@ -33,17 +35,18 @@ require 'pulp_container_client/models/container_manifest_response'
|
|
33
35
|
require 'pulp_container_client/models/container_tag_response'
|
34
36
|
require 'pulp_container_client/models/content_summary'
|
35
37
|
require 'pulp_container_client/models/content_summary_response'
|
36
|
-
require 'pulp_container_client/models/inline_response200'
|
37
|
-
require 'pulp_container_client/models/inline_response2001'
|
38
|
-
require 'pulp_container_client/models/inline_response2002'
|
39
|
-
require 'pulp_container_client/models/inline_response2003'
|
40
|
-
require 'pulp_container_client/models/inline_response2004'
|
41
|
-
require 'pulp_container_client/models/inline_response2005'
|
42
|
-
require 'pulp_container_client/models/inline_response2006'
|
43
|
-
require 'pulp_container_client/models/inline_response2007'
|
44
|
-
require 'pulp_container_client/models/inline_response2008'
|
45
38
|
require 'pulp_container_client/models/manifest_copy'
|
46
39
|
require 'pulp_container_client/models/oci_build_image'
|
40
|
+
require 'pulp_container_client/models/paginated_repository_version_response_list'
|
41
|
+
require 'pulp_container_client/models/paginatedcontainer_blob_response_list'
|
42
|
+
require 'pulp_container_client/models/paginatedcontainer_container_distribution_response_list'
|
43
|
+
require 'pulp_container_client/models/paginatedcontainer_container_namespace_response_list'
|
44
|
+
require 'pulp_container_client/models/paginatedcontainer_container_push_repository_response_list'
|
45
|
+
require 'pulp_container_client/models/paginatedcontainer_container_remote_response_list'
|
46
|
+
require 'pulp_container_client/models/paginatedcontainer_container_repository_response_list'
|
47
|
+
require 'pulp_container_client/models/paginatedcontainer_content_redirect_content_guard_response_list'
|
48
|
+
require 'pulp_container_client/models/paginatedcontainer_manifest_response_list'
|
49
|
+
require 'pulp_container_client/models/paginatedcontainer_tag_response_list'
|
47
50
|
require 'pulp_container_client/models/patchedcontainer_container_distribution'
|
48
51
|
require 'pulp_container_client/models/patchedcontainer_container_remote'
|
49
52
|
require 'pulp_container_client/models/patchedcontainer_container_repository'
|
@@ -63,6 +66,7 @@ require 'pulp_container_client/api/content_manifests_api'
|
|
63
66
|
require 'pulp_container_client/api/content_tags_api'
|
64
67
|
require 'pulp_container_client/api/contentguards_content_redirect_api'
|
65
68
|
require 'pulp_container_client/api/distributions_container_api'
|
69
|
+
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
66
70
|
require 'pulp_container_client/api/remotes_container_api'
|
67
71
|
require 'pulp_container_client/api/repositories_container_api'
|
68
72
|
require 'pulp_container_client/api/repositories_container_push_api'
|
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: v3
|
9
9
|
Contact: pulp-list@redhat.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 4.3
|
11
|
+
OpenAPI Generator version: 4.2.3
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.14.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -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
|
|
@@ -47,7 +47,7 @@ describe 'ContentBlobsApi' do
|
|
47
47
|
# @option opts [String] :repository_version_removed repository_version_removed
|
48
48
|
# @option opts [String] :fields A list of fields to include in the response.
|
49
49
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
50
|
-
# @return [
|
50
|
+
# @return [PaginatedcontainerBlobResponseList]
|
51
51
|
describe 'list test' do
|
52
52
|
it 'should work' do
|
53
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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
|
|
@@ -47,7 +47,7 @@ describe 'ContentManifestsApi' do
|
|
47
47
|
# @option opts [String] :repository_version_removed repository_version_removed
|
48
48
|
# @option opts [String] :fields A list of fields to include in the response.
|
49
49
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
50
|
-
# @return [
|
50
|
+
# @return [PaginatedcontainerManifestResponseList]
|
51
51
|
describe 'list test' do
|
52
52
|
it 'should work' do
|
53
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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
|
|
@@ -48,7 +48,7 @@ describe 'ContentTagsApi' do
|
|
48
48
|
# @option opts [String] :repository_version_removed repository_version_removed
|
49
49
|
# @option opts [String] :fields A list of fields to include in the response.
|
50
50
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
51
|
-
# @return [
|
51
|
+
# @return [PaginatedcontainerTagResponseList]
|
52
52
|
describe 'list test' do
|
53
53
|
it 'should work' do
|
54
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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
|
|
@@ -67,7 +67,7 @@ describe 'ContentguardsContentRedirectApi' do
|
|
67
67
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
68
68
|
# @option opts [String] :fields A list of fields to include in the response.
|
69
69
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
|
-
# @return [
|
70
|
+
# @return [PaginatedcontainerContentRedirectContentGuardResponseList]
|
71
71
|
describe 'list test' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|