pulp_container_client 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -13
- data/docs/ContainerContainerDistribution.md +11 -5
- data/docs/ContainerContainerDistributionResponse.md +16 -10
- data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
- data/docs/ContainerContainerRemote.md +4 -0
- data/docs/ContainerContainerRemoteResponse.md +4 -0
- data/docs/ContainerContainerRepository.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +25 -19
- data/docs/DistributionsContainerApi.md +8 -0
- data/docs/PatchedcontainerContainerDistribution.md +11 -5
- data/docs/PatchedcontainerContainerRemote.md +4 -0
- data/docs/PatchedcontainerContainerRepository.md +3 -1
- data/docs/PulpContainerNamespacesApi.md +16 -5
- data/docs/RemotesContainerApi.md +8 -0
- data/docs/RepositoriesContainerApi.md +8 -0
- data/docs/RepositoriesContainerPushApi.md +73 -61
- data/docs/RepositoriesContainerVersionsApi.md +2 -2
- data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +31 -22
- data/lib/pulp_container_client/api/distributions_container_api.rb +12 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
- data/lib/pulp_container_client/api/remotes_container_api.rb +12 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +12 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +120 -94
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +51 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -47
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +10 -1
- data/lib/pulp_container_client/models/container_container_remote.rb +21 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +10 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +10 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -16
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +10 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +1 -2
- data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +9 -6
- data/spec/api/distributions_container_api_spec.rb +4 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
- data/spec/api/remotes_container_api_spec.rb +4 -0
- data/spec/api/repositories_container_api_spec.rb +4 -0
- data/spec/api/repositories_container_push_api_spec.rb +32 -26
- data/spec/api/repositories_container_versions_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +25 -7
- data/spec/models/container_container_distribution_spec.rb +20 -2
- data/spec/models/container_container_push_repository_response_spec.rb +6 -0
- data/spec/models/container_container_remote_response_spec.rb +12 -0
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -2
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- metadata +43 -47
- data/docs/ContainerContainerPushRepository.md +0 -21
- data/lib/pulp_container_client/models/container_container_push_repository.rb +0 -234
- data/spec/models/container_container_push_repository_spec.rb +0 -53
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Repositories.
|
17
17
|
class ContainerContainerRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -26,6 +28,7 @@ module PulpContainerClient
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
31
|
+
:'pulp_labels' => :'pulp_labels',
|
29
32
|
:'name' => :'name',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'remote' => :'remote'
|
@@ -35,6 +38,7 @@ module PulpContainerClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'pulp_labels' => :'Object',
|
38
42
|
:'name' => :'String',
|
39
43
|
:'description' => :'String',
|
40
44
|
:'remote' => :'String'
|
@@ -64,6 +68,10 @@ module PulpContainerClient
|
|
64
68
|
h[k.to_sym] = v
|
65
69
|
}
|
66
70
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
72
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
73
|
+
end
|
74
|
+
|
67
75
|
if attributes.key?(:'name')
|
68
76
|
self.name = attributes[:'name']
|
69
77
|
end
|
@@ -100,6 +108,7 @@ module PulpContainerClient
|
|
100
108
|
def ==(o)
|
101
109
|
return true if self.equal?(o)
|
102
110
|
self.class == o.class &&
|
111
|
+
pulp_labels == o.pulp_labels &&
|
103
112
|
name == o.name &&
|
104
113
|
description == o.description &&
|
105
114
|
remote == o.remote
|
@@ -114,7 +123,7 @@ module PulpContainerClient
|
|
114
123
|
# Calculates hash code according to all attributes.
|
115
124
|
# @return [Integer] Hash code
|
116
125
|
def hash
|
117
|
-
[name, description, remote].hash
|
126
|
+
[pulp_labels, name, description, remote].hash
|
118
127
|
end
|
119
128
|
|
120
129
|
# Builds the object from hash
|
@@ -22,6 +22,8 @@ module PulpContainerClient
|
|
22
22
|
|
23
23
|
attr_accessor :versions_href
|
24
24
|
|
25
|
+
attr_accessor :pulp_labels
|
26
|
+
|
25
27
|
attr_accessor :latest_version_href
|
26
28
|
|
27
29
|
# A unique name for this repository.
|
@@ -38,6 +40,7 @@ module PulpContainerClient
|
|
38
40
|
:'pulp_href' => :'pulp_href',
|
39
41
|
:'pulp_created' => :'pulp_created',
|
40
42
|
:'versions_href' => :'versions_href',
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
41
44
|
:'latest_version_href' => :'latest_version_href',
|
42
45
|
:'name' => :'name',
|
43
46
|
:'description' => :'description',
|
@@ -51,6 +54,7 @@ module PulpContainerClient
|
|
51
54
|
:'pulp_href' => :'String',
|
52
55
|
:'pulp_created' => :'DateTime',
|
53
56
|
:'versions_href' => :'String',
|
57
|
+
:'pulp_labels' => :'Object',
|
54
58
|
:'latest_version_href' => :'String',
|
55
59
|
:'name' => :'String',
|
56
60
|
:'description' => :'String',
|
@@ -93,6 +97,10 @@ module PulpContainerClient
|
|
93
97
|
self.versions_href = attributes[:'versions_href']
|
94
98
|
end
|
95
99
|
|
100
|
+
if attributes.key?(:'pulp_labels')
|
101
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
102
|
+
end
|
103
|
+
|
96
104
|
if attributes.key?(:'latest_version_href')
|
97
105
|
self.latest_version_href = attributes[:'latest_version_href']
|
98
106
|
end
|
@@ -136,6 +144,7 @@ module PulpContainerClient
|
|
136
144
|
pulp_href == o.pulp_href &&
|
137
145
|
pulp_created == o.pulp_created &&
|
138
146
|
versions_href == o.versions_href &&
|
147
|
+
pulp_labels == o.pulp_labels &&
|
139
148
|
latest_version_href == o.latest_version_href &&
|
140
149
|
name == o.name &&
|
141
150
|
description == o.description &&
|
@@ -151,7 +160,7 @@ module PulpContainerClient
|
|
151
160
|
# Calculates hash code according to all attributes.
|
152
161
|
# @return [Integer] Hash code
|
153
162
|
def hash
|
154
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
|
163
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
155
164
|
end
|
156
165
|
|
157
166
|
# Builds the object from hash
|
@@ -15,6 +15,14 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
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
|
+
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
23
|
+
# RepositoryVersion to be served
|
24
|
+
attr_accessor :repository_version
|
25
|
+
|
18
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
27
|
attr_accessor :content_guard
|
20
28
|
|
@@ -24,39 +32,46 @@ module PulpContainerClient
|
|
24
32
|
# The latest RepositoryVersion for this Repository will be served.
|
25
33
|
attr_accessor :repository
|
26
34
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
35
|
+
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
|
+
attr_accessor :private
|
29
37
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
32
40
|
|
33
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
42
|
def self.attribute_map
|
35
43
|
{
|
44
|
+
:'base_path' => :'base_path',
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
46
|
+
:'repository_version' => :'repository_version',
|
36
47
|
:'content_guard' => :'content_guard',
|
37
48
|
:'name' => :'name',
|
38
49
|
:'repository' => :'repository',
|
39
|
-
:'
|
40
|
-
:'
|
50
|
+
:'private' => :'private',
|
51
|
+
:'description' => :'description'
|
41
52
|
}
|
42
53
|
end
|
43
54
|
|
44
55
|
# Attribute type mapping.
|
45
56
|
def self.openapi_types
|
46
57
|
{
|
58
|
+
:'base_path' => :'String',
|
59
|
+
:'pulp_labels' => :'Object',
|
60
|
+
:'repository_version' => :'String',
|
47
61
|
:'content_guard' => :'String',
|
48
62
|
:'name' => :'String',
|
49
63
|
:'repository' => :'String',
|
50
|
-
:'
|
51
|
-
:'
|
64
|
+
:'private' => :'Boolean',
|
65
|
+
:'description' => :'String'
|
52
66
|
}
|
53
67
|
end
|
54
68
|
|
55
69
|
# List of attributes with nullable: true
|
56
70
|
def self.openapi_nullable
|
57
71
|
Set.new([
|
72
|
+
:'repository_version',
|
58
73
|
:'repository',
|
59
|
-
:'
|
74
|
+
:'description'
|
60
75
|
])
|
61
76
|
end
|
62
77
|
|
@@ -75,6 +90,18 @@ module PulpContainerClient
|
|
75
90
|
h[k.to_sym] = v
|
76
91
|
}
|
77
92
|
|
93
|
+
if attributes.key?(:'base_path')
|
94
|
+
self.base_path = attributes[:'base_path']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'pulp_labels')
|
98
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'repository_version')
|
102
|
+
self.repository_version = attributes[:'repository_version']
|
103
|
+
end
|
104
|
+
|
78
105
|
if attributes.key?(:'content_guard')
|
79
106
|
self.content_guard = attributes[:'content_guard']
|
80
107
|
end
|
@@ -87,12 +114,12 @@ module PulpContainerClient
|
|
87
114
|
self.repository = attributes[:'repository']
|
88
115
|
end
|
89
116
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
117
|
+
if attributes.key?(:'private')
|
118
|
+
self.private = attributes[:'private']
|
92
119
|
end
|
93
120
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
121
|
+
if attributes.key?(:'description')
|
122
|
+
self.description = attributes[:'description']
|
96
123
|
end
|
97
124
|
end
|
98
125
|
|
@@ -114,11 +141,14 @@ module PulpContainerClient
|
|
114
141
|
def ==(o)
|
115
142
|
return true if self.equal?(o)
|
116
143
|
self.class == o.class &&
|
144
|
+
base_path == o.base_path &&
|
145
|
+
pulp_labels == o.pulp_labels &&
|
146
|
+
repository_version == o.repository_version &&
|
117
147
|
content_guard == o.content_guard &&
|
118
148
|
name == o.name &&
|
119
149
|
repository == o.repository &&
|
120
|
-
|
121
|
-
|
150
|
+
private == o.private &&
|
151
|
+
description == o.description
|
122
152
|
end
|
123
153
|
|
124
154
|
# @see the `==` method
|
@@ -130,7 +160,7 @@ module PulpContainerClient
|
|
130
160
|
# Calculates hash code according to all attributes.
|
131
161
|
# @return [Integer] Hash code
|
132
162
|
def hash
|
133
|
-
[content_guard, name, repository,
|
163
|
+
[base_path, pulp_labels, repository_version, content_guard, name, repository, private, description].hash
|
134
164
|
end
|
135
165
|
|
136
166
|
# Builds the object from hash
|
@@ -42,6 +42,8 @@ module PulpContainerClient
|
|
42
42
|
# The password to be used for authentication when syncing.
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
|
+
attr_accessor :pulp_labels
|
46
|
+
|
45
47
|
# Total number of simultaneous connections.
|
46
48
|
attr_accessor :download_concurrency
|
47
49
|
|
@@ -60,6 +62,9 @@ module PulpContainerClient
|
|
60
62
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
63
|
attr_accessor :sock_read_timeout
|
62
64
|
|
65
|
+
# Limits total download rate in requests per second
|
66
|
+
attr_accessor :rate_limit
|
67
|
+
|
63
68
|
# Name of the upstream repository
|
64
69
|
attr_accessor :upstream_name
|
65
70
|
|
@@ -81,12 +86,14 @@ module PulpContainerClient
|
|
81
86
|
:'proxy_url' => :'proxy_url',
|
82
87
|
:'username' => :'username',
|
83
88
|
:'password' => :'password',
|
89
|
+
:'pulp_labels' => :'pulp_labels',
|
84
90
|
:'download_concurrency' => :'download_concurrency',
|
85
91
|
:'policy' => :'policy',
|
86
92
|
:'total_timeout' => :'total_timeout',
|
87
93
|
:'connect_timeout' => :'connect_timeout',
|
88
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
95
|
:'sock_read_timeout' => :'sock_read_timeout',
|
96
|
+
:'rate_limit' => :'rate_limit',
|
90
97
|
:'upstream_name' => :'upstream_name',
|
91
98
|
:'include_tags' => :'include_tags',
|
92
99
|
:'exclude_tags' => :'exclude_tags'
|
@@ -105,12 +112,14 @@ module PulpContainerClient
|
|
105
112
|
:'proxy_url' => :'String',
|
106
113
|
:'username' => :'String',
|
107
114
|
:'password' => :'String',
|
115
|
+
:'pulp_labels' => :'Object',
|
108
116
|
:'download_concurrency' => :'Integer',
|
109
117
|
:'policy' => :'PolicyEnum',
|
110
118
|
:'total_timeout' => :'Float',
|
111
119
|
:'connect_timeout' => :'Float',
|
112
120
|
:'sock_connect_timeout' => :'Float',
|
113
121
|
:'sock_read_timeout' => :'Float',
|
122
|
+
:'rate_limit' => :'Integer',
|
114
123
|
:'upstream_name' => :'String',
|
115
124
|
:'include_tags' => :'Array<String>',
|
116
125
|
:'exclude_tags' => :'Array<String>'
|
@@ -130,6 +139,7 @@ module PulpContainerClient
|
|
130
139
|
:'connect_timeout',
|
131
140
|
:'sock_connect_timeout',
|
132
141
|
:'sock_read_timeout',
|
142
|
+
:'rate_limit',
|
133
143
|
:'include_tags',
|
134
144
|
:'exclude_tags'
|
135
145
|
])
|
@@ -186,6 +196,10 @@ module PulpContainerClient
|
|
186
196
|
self.password = attributes[:'password']
|
187
197
|
end
|
188
198
|
|
199
|
+
if attributes.key?(:'pulp_labels')
|
200
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
201
|
+
end
|
202
|
+
|
189
203
|
if attributes.key?(:'download_concurrency')
|
190
204
|
self.download_concurrency = attributes[:'download_concurrency']
|
191
205
|
end
|
@@ -210,6 +224,10 @@ module PulpContainerClient
|
|
210
224
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
211
225
|
end
|
212
226
|
|
227
|
+
if attributes.key?(:'rate_limit')
|
228
|
+
self.rate_limit = attributes[:'rate_limit']
|
229
|
+
end
|
230
|
+
|
213
231
|
if attributes.key?(:'upstream_name')
|
214
232
|
self.upstream_name = attributes[:'upstream_name']
|
215
233
|
end
|
@@ -329,12 +347,14 @@ module PulpContainerClient
|
|
329
347
|
proxy_url == o.proxy_url &&
|
330
348
|
username == o.username &&
|
331
349
|
password == o.password &&
|
350
|
+
pulp_labels == o.pulp_labels &&
|
332
351
|
download_concurrency == o.download_concurrency &&
|
333
352
|
policy == o.policy &&
|
334
353
|
total_timeout == o.total_timeout &&
|
335
354
|
connect_timeout == o.connect_timeout &&
|
336
355
|
sock_connect_timeout == o.sock_connect_timeout &&
|
337
356
|
sock_read_timeout == o.sock_read_timeout &&
|
357
|
+
rate_limit == o.rate_limit &&
|
338
358
|
upstream_name == o.upstream_name &&
|
339
359
|
include_tags == o.include_tags &&
|
340
360
|
exclude_tags == o.exclude_tags
|
@@ -349,7 +369,7 @@ module PulpContainerClient
|
|
349
369
|
# Calculates hash code according to all attributes.
|
350
370
|
# @return [Integer] Hash code
|
351
371
|
def 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
|
372
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, upstream_name, include_tags, exclude_tags].hash
|
353
373
|
end
|
354
374
|
|
355
375
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Repositories.
|
17
17
|
class PatchedcontainerContainerRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -26,6 +28,7 @@ module PulpContainerClient
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
31
|
+
:'pulp_labels' => :'pulp_labels',
|
29
32
|
:'name' => :'name',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'remote' => :'remote'
|
@@ -35,6 +38,7 @@ module PulpContainerClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'pulp_labels' => :'Object',
|
38
42
|
:'name' => :'String',
|
39
43
|
:'description' => :'String',
|
40
44
|
:'remote' => :'String'
|
@@ -64,6 +68,10 @@ module PulpContainerClient
|
|
64
68
|
h[k.to_sym] = v
|
65
69
|
}
|
66
70
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
72
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
73
|
+
end
|
74
|
+
|
67
75
|
if attributes.key?(:'name')
|
68
76
|
self.name = attributes[:'name']
|
69
77
|
end
|
@@ -95,6 +103,7 @@ module PulpContainerClient
|
|
95
103
|
def ==(o)
|
96
104
|
return true if self.equal?(o)
|
97
105
|
self.class == o.class &&
|
106
|
+
pulp_labels == o.pulp_labels &&
|
98
107
|
name == o.name &&
|
99
108
|
description == o.description &&
|
100
109
|
remote == o.remote
|
@@ -109,7 +118,7 @@ module PulpContainerClient
|
|
109
118
|
# Calculates hash code according to all attributes.
|
110
119
|
# @return [Integer] Hash code
|
111
120
|
def hash
|
112
|
-
[name, description, remote].hash
|
121
|
+
[pulp_labels, name, description, remote].hash
|
113
122
|
end
|
114
123
|
|
115
124
|
# Builds the object from hash
|
@@ -23,7 +23,6 @@ require 'pulp_container_client/models/container_container_distribution'
|
|
23
23
|
require 'pulp_container_client/models/container_container_distribution_response'
|
24
24
|
require 'pulp_container_client/models/container_container_namespace'
|
25
25
|
require 'pulp_container_client/models/container_container_namespace_response'
|
26
|
-
require 'pulp_container_client/models/container_container_push_repository'
|
27
26
|
require 'pulp_container_client/models/container_container_push_repository_response'
|
28
27
|
require 'pulp_container_client/models/container_container_remote'
|
29
28
|
require 'pulp_container_client/models/container_container_remote_response'
|
@@ -62,9 +61,9 @@ require 'pulp_container_client/models/un_tag_image'
|
|
62
61
|
|
63
62
|
# APIs
|
64
63
|
require 'pulp_container_client/api/content_blobs_api'
|
64
|
+
require 'pulp_container_client/api/content_guards_content_redirect_api'
|
65
65
|
require 'pulp_container_client/api/content_manifests_api'
|
66
66
|
require 'pulp_container_client/api/content_tags_api'
|
67
|
-
require 'pulp_container_client/api/contentguards_content_redirect_api'
|
68
67
|
require 'pulp_container_client/api/distributions_container_api'
|
69
68
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
70
69
|
require 'pulp_container_client/api/remotes_container_api'
|
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpContainerClient::
|
16
|
+
# Unit tests for PulpContainerClient::ContentGuardsContentRedirectApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ContentGuardsContentRedirectApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpContainerClient::
|
22
|
+
@api_instance = PulpContainerClient::ContentGuardsContentRedirectApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpContainerClient::
|
29
|
+
describe 'test an instance of ContentGuardsContentRedirectApi' do
|
30
|
+
it 'should create an instance of ContentGuardsContentRedirectApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpContainerClient::ContentGuardsContentRedirectApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -62,7 +62,10 @@ describe 'ContentguardsContentRedirectApi' do
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
64
|
# @option opts [String] :name name
|
65
|
+
# @option opts [String] :name__contains name__contains
|
66
|
+
# @option opts [String] :name__icontains name__icontains
|
65
67
|
# @option opts [String] :name__in name__in
|
68
|
+
# @option opts [String] :name__startswith name__startswith
|
66
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
68
71
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -66,10 +66,14 @@ describe 'DistributionsContainerApi' do
|
|
66
66
|
# @option opts [String] :base_path__in base_path__in
|
67
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
68
|
# @option opts [String] :name name
|
69
|
+
# @option opts [String] :name__contains name__contains
|
70
|
+
# @option opts [String] :name__icontains name__icontains
|
69
71
|
# @option opts [String] :name__in name__in
|
72
|
+
# @option opts [String] :name__startswith name__startswith
|
70
73
|
# @option opts [String] :namespace__name namespace__name
|
71
74
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
72
75
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
76
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
73
77
|
# @option opts [String] :fields A list of fields to include in the response.
|
74
78
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
75
79
|
# @return [PaginatedcontainerContainerDistributionResponseList]
|
@@ -46,10 +46,10 @@ describe 'PulpContainerNamespacesApi' do
|
|
46
46
|
|
47
47
|
# unit tests for delete
|
48
48
|
# Delete a container namespace
|
49
|
-
#
|
49
|
+
# Trigger an asynchronous delete task
|
50
50
|
# @param container_container_namespace_href
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [
|
52
|
+
# @return [AsyncOperationResponse]
|
53
53
|
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -61,6 +61,11 @@ describe 'PulpContainerNamespacesApi' do
|
|
61
61
|
# ViewSet for ContainerNamespaces.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
+
# @option opts [String] :name name
|
65
|
+
# @option opts [String] :name__contains name__contains
|
66
|
+
# @option opts [String] :name__icontains name__icontains
|
67
|
+
# @option opts [String] :name__in name__in
|
68
|
+
# @option opts [String] :name__startswith name__startswith
|
64
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
65
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
66
71
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -62,9 +62,13 @@ describe 'RemotesContainerApi' do
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
64
|
# @option opts [String] :name name
|
65
|
+
# @option opts [String] :name__contains name__contains
|
66
|
+
# @option opts [String] :name__icontains name__icontains
|
65
67
|
# @option opts [String] :name__in name__in
|
68
|
+
# @option opts [String] :name__startswith name__startswith
|
66
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
71
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
68
72
|
# @option opts [String] :pulp_last_updated pulp_last_updated
|
69
73
|
# @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
|
70
74
|
# @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
|
@@ -117,9 +117,13 @@ describe 'RepositoriesContainerApi' do
|
|
117
117
|
# @param [Hash] opts the optional parameters
|
118
118
|
# @option opts [Integer] :limit Number of results to return per page.
|
119
119
|
# @option opts [String] :name name
|
120
|
+
# @option opts [String] :name__contains name__contains
|
121
|
+
# @option opts [String] :name__icontains name__icontains
|
120
122
|
# @option opts [String] :name__in name__in
|
123
|
+
# @option opts [String] :name__startswith name__startswith
|
121
124
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
122
125
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
126
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
123
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
124
128
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
125
129
|
# @return [PaginatedcontainerContainerRepositoryResponseList]
|
@@ -32,39 +32,19 @@ describe 'RepositoriesContainerPushApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for create
|
36
|
-
# Create a container push repository
|
37
|
-
# ViewSet for a container push repository.
|
38
|
-
# @param container_container_push_repository
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [ContainerContainerPushRepositoryResponse]
|
41
|
-
describe 'create test' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for delete
|
48
|
-
# Delete a container push repository
|
49
|
-
# Trigger an asynchronous delete task
|
50
|
-
# @param container_container_push_repository_href
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [AsyncOperationResponse]
|
53
|
-
describe 'delete test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
35
|
# unit tests for list
|
60
36
|
# List container push repositorys
|
61
|
-
# ViewSet for a container push repository.
|
37
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
62
38
|
# @param [Hash] opts the optional parameters
|
63
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
40
|
# @option opts [String] :name name
|
41
|
+
# @option opts [String] :name__contains name__contains
|
42
|
+
# @option opts [String] :name__icontains name__icontains
|
65
43
|
# @option opts [String] :name__in name__in
|
44
|
+
# @option opts [String] :name__startswith name__startswith
|
66
45
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
46
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
47
|
+
# @option opts [String] :pulp_label_select pulp_label_select
|
68
48
|
# @option opts [String] :fields A list of fields to include in the response.
|
69
49
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
50
|
# @return [PaginatedcontainerContainerPushRepositoryResponseList]
|
@@ -76,7 +56,7 @@ describe 'RepositoriesContainerPushApi' do
|
|
76
56
|
|
77
57
|
# unit tests for read
|
78
58
|
# Inspect a container push repository
|
79
|
-
# ViewSet for a container push repository.
|
59
|
+
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
80
60
|
# @param container_container_push_repository_href
|
81
61
|
# @param [Hash] opts the optional parameters
|
82
62
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -88,4 +68,30 @@ describe 'RepositoriesContainerPushApi' do
|
|
88
68
|
end
|
89
69
|
end
|
90
70
|
|
71
|
+
# unit tests for tag
|
72
|
+
# Create a Tag
|
73
|
+
# Trigger an asynchronous task to tag an image in the repository
|
74
|
+
# @param container_container_push_repository_href
|
75
|
+
# @param tag_image
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [AsyncOperationResponse]
|
78
|
+
describe 'tag test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for untag
|
85
|
+
# Delete a tag
|
86
|
+
# Trigger an asynchronous task to untag an image in the repository
|
87
|
+
# @param container_container_push_repository_href
|
88
|
+
# @param un_tag_image
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [AsyncOperationResponse]
|
91
|
+
describe 'untag test' do
|
92
|
+
it 'should work' do
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
91
97
|
end
|
@@ -58,7 +58,7 @@ describe 'RepositoriesContainerVersionsApi' do
|
|
58
58
|
|
59
59
|
# unit tests for list
|
60
60
|
# List repository versions
|
61
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
61
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
62
62
|
# @param container_container_push_repository_href
|
63
63
|
# @param [Hash] opts the optional parameters
|
64
64
|
# @option opts [String] :content content
|
@@ -120,7 +120,7 @@ describe 'RepositoriesContainerVersionsApi' do
|
|
120
120
|
|
121
121
|
# unit tests for read
|
122
122
|
# Inspect a repository version
|
123
|
-
# ContainerPushRepositoryVersion represents a single container push repository version.
|
123
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
124
124
|
# @param container_container_push_repository_version_href
|
125
125
|
# @param [Hash] opts the optional parameters
|
126
126
|
# @option opts [String] :fields A list of fields to include in the response.
|