pulp_container_client 2.27.11 → 2.28.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 +4 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContainerContainerRemote.md +6 -2
- data/docs/ContainerContainerRemoteResponse.md +4 -4
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContentSignaturesApi.md +2 -2
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +6 -2
- data/docs/PulpContainerNamespacesApi.md +2 -2
- data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +67 -67
- data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +67 -67
- data/lib/pulp_container_client/models/container_container_push_repository.rb +58 -58
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +67 -67
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
- data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +51 -51
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_namespace_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +2 -2
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +58 -58
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -19,23 +19,23 @@ module PulpContainerClient
|
|
|
19
19
|
# Whether this distribution should be shown in the content app.
|
|
20
20
|
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
23
|
+
attr_accessor :base_path
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :repository
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
26
|
|
|
27
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
28
|
attr_accessor :name
|
|
29
29
|
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
32
|
+
|
|
30
33
|
# RepositoryVersion to be served
|
|
31
34
|
attr_accessor :repository_version
|
|
32
35
|
|
|
33
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
37
|
attr_accessor :content_guard
|
|
35
38
|
|
|
36
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
37
|
-
attr_accessor :base_path
|
|
38
|
-
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
54
|
:'hidden' => :'hidden',
|
|
55
|
+
:'base_path' => :'base_path',
|
|
55
56
|
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'repository' => :'repository',
|
|
57
57
|
:'name' => :'name',
|
|
58
|
+
:'repository' => :'repository',
|
|
58
59
|
:'repository_version' => :'repository_version',
|
|
59
60
|
:'content_guard' => :'content_guard',
|
|
60
|
-
:'base_path' => :'base_path',
|
|
61
61
|
:'remote' => :'remote',
|
|
62
62
|
:'distributions' => :'distributions',
|
|
63
63
|
:'private' => :'private',
|
|
@@ -74,12 +74,12 @@ module PulpContainerClient
|
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
76
|
:'hidden' => :'Boolean',
|
|
77
|
+
:'base_path' => :'String',
|
|
77
78
|
:'pulp_labels' => :'Hash<String, String>',
|
|
78
|
-
:'repository' => :'String',
|
|
79
79
|
:'name' => :'String',
|
|
80
|
+
:'repository' => :'String',
|
|
80
81
|
:'repository_version' => :'String',
|
|
81
82
|
:'content_guard' => :'String',
|
|
82
|
-
:'base_path' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -117,20 +117,24 @@ module PulpContainerClient
|
|
|
117
117
|
self.hidden = false
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
if attributes.key?(:'pulp_labels')
|
|
121
125
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
126
|
self.pulp_labels = value
|
|
123
127
|
end
|
|
124
128
|
end
|
|
125
129
|
|
|
126
|
-
if attributes.key?(:'repository')
|
|
127
|
-
self.repository = attributes[:'repository']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
130
|
if attributes.key?(:'name')
|
|
131
131
|
self.name = attributes[:'name']
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
if attributes.key?(:'repository')
|
|
135
|
+
self.repository = attributes[:'repository']
|
|
136
|
+
end
|
|
137
|
+
|
|
134
138
|
if attributes.key?(:'repository_version')
|
|
135
139
|
self.repository_version = attributes[:'repository_version']
|
|
136
140
|
end
|
|
@@ -139,10 +143,6 @@ module PulpContainerClient
|
|
|
139
143
|
self.content_guard = attributes[:'content_guard']
|
|
140
144
|
end
|
|
141
145
|
|
|
142
|
-
if attributes.key?(:'base_path')
|
|
143
|
-
self.base_path = attributes[:'base_path']
|
|
144
|
-
end
|
|
145
|
-
|
|
146
146
|
if attributes.key?(:'remote')
|
|
147
147
|
self.remote = attributes[:'remote']
|
|
148
148
|
end
|
|
@@ -167,14 +167,14 @@ module PulpContainerClient
|
|
|
167
167
|
def list_invalid_properties
|
|
168
168
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
169
169
|
invalid_properties = Array.new
|
|
170
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
171
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
172
|
-
end
|
|
173
|
-
|
|
174
170
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
175
171
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
176
172
|
end
|
|
177
173
|
|
|
174
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
175
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
178
|
if !@description.nil? && @description.to_s.length < 1
|
|
179
179
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
180
180
|
end
|
|
@@ -186,26 +186,12 @@ module PulpContainerClient
|
|
|
186
186
|
# @return true if the model is valid
|
|
187
187
|
def valid?
|
|
188
188
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
189
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
190
189
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
190
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
191
191
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
192
192
|
true
|
|
193
193
|
end
|
|
194
194
|
|
|
195
|
-
# Custom attribute writer method with validation
|
|
196
|
-
# @param [Object] name Value to be assigned
|
|
197
|
-
def name=(name)
|
|
198
|
-
if name.nil?
|
|
199
|
-
fail ArgumentError, 'name cannot be nil'
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if name.to_s.length < 1
|
|
203
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
@name = name
|
|
207
|
-
end
|
|
208
|
-
|
|
209
195
|
# Custom attribute writer method with validation
|
|
210
196
|
# @param [Object] base_path Value to be assigned
|
|
211
197
|
def base_path=(base_path)
|
|
@@ -220,6 +206,20 @@ module PulpContainerClient
|
|
|
220
206
|
@base_path = base_path
|
|
221
207
|
end
|
|
222
208
|
|
|
209
|
+
# Custom attribute writer method with validation
|
|
210
|
+
# @param [Object] name Value to be assigned
|
|
211
|
+
def name=(name)
|
|
212
|
+
if name.nil?
|
|
213
|
+
fail ArgumentError, 'name cannot be nil'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if name.to_s.length < 1
|
|
217
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
@name = name
|
|
221
|
+
end
|
|
222
|
+
|
|
223
223
|
# Custom attribute writer method with validation
|
|
224
224
|
# @param [Object] description Value to be assigned
|
|
225
225
|
def description=(description)
|
|
@@ -236,12 +236,12 @@ module PulpContainerClient
|
|
|
236
236
|
return true if self.equal?(o)
|
|
237
237
|
self.class == o.class &&
|
|
238
238
|
hidden == o.hidden &&
|
|
239
|
+
base_path == o.base_path &&
|
|
239
240
|
pulp_labels == o.pulp_labels &&
|
|
240
|
-
repository == o.repository &&
|
|
241
241
|
name == o.name &&
|
|
242
|
+
repository == o.repository &&
|
|
242
243
|
repository_version == o.repository_version &&
|
|
243
244
|
content_guard == o.content_guard &&
|
|
244
|
-
base_path == o.base_path &&
|
|
245
245
|
remote == o.remote &&
|
|
246
246
|
distributions == o.distributions &&
|
|
247
247
|
private == o.private &&
|
|
@@ -257,7 +257,7 @@ module PulpContainerClient
|
|
|
257
257
|
# Calculates hash code according to all attributes.
|
|
258
258
|
# @return [Integer] Hash code
|
|
259
259
|
def hash
|
|
260
|
-
[hidden,
|
|
260
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
# Builds the object from hash
|
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
20
21
|
|
|
21
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
22
23
|
attr_accessor :retain_repo_versions
|
|
23
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# A unique name for this repository.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
24
30
|
# An optional description.
|
|
25
31
|
attr_accessor :description
|
|
26
32
|
|
|
27
33
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
28
34
|
attr_accessor :retain_checkpoints
|
|
29
35
|
|
|
30
|
-
# A unique name for this repository.
|
|
31
|
-
attr_accessor :name
|
|
32
|
-
|
|
33
|
-
# A reference to an associated signing service.
|
|
34
|
-
attr_accessor :manifest_signing_service
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
|
-
:'
|
|
42
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
43
42
|
:'name' => :'name',
|
|
44
|
-
:'
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'
|
|
56
|
+
:'manifest_signing_service' => :'String',
|
|
57
57
|
:'retain_repo_versions' => :'Integer',
|
|
58
|
-
:'
|
|
59
|
-
:'retain_checkpoints' => :'Integer',
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
60
59
|
:'name' => :'String',
|
|
61
|
-
:'
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
+
:'manifest_signing_service',
|
|
68
69
|
:'retain_repo_versions',
|
|
69
70
|
:'description',
|
|
70
|
-
:'retain_checkpoints'
|
|
71
|
-
:'manifest_signing_service'
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,14 +87,22 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'retain_repo_versions')
|
|
95
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
96
|
+
end
|
|
97
|
+
|
|
90
98
|
if attributes.key?(:'pulp_labels')
|
|
91
99
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
100
|
self.pulp_labels = value
|
|
93
101
|
end
|
|
94
102
|
end
|
|
95
103
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
98
106
|
end
|
|
99
107
|
|
|
100
108
|
if attributes.key?(:'description')
|
|
@@ -104,14 +112,6 @@ module PulpContainerClient
|
|
|
104
112
|
if attributes.key?(:'retain_checkpoints')
|
|
105
113
|
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
106
114
|
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'name')
|
|
109
|
-
self.name = attributes[:'name']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'manifest_signing_service')
|
|
113
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
114
|
-
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -123,6 +123,10 @@ module PulpContainerClient
|
|
|
123
123
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
127
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
128
|
+
end
|
|
129
|
+
|
|
126
130
|
if !@description.nil? && @description.to_s.length < 1
|
|
127
131
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
128
132
|
end
|
|
@@ -131,10 +135,6 @@ module PulpContainerClient
|
|
|
131
135
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
132
136
|
end
|
|
133
137
|
|
|
134
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
135
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
136
|
-
end
|
|
137
|
-
|
|
138
138
|
invalid_properties
|
|
139
139
|
end
|
|
140
140
|
|
|
@@ -143,9 +143,9 @@ module PulpContainerClient
|
|
|
143
143
|
def valid?
|
|
144
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
145
145
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
146
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
146
147
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
147
148
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
148
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
149
149
|
true
|
|
150
150
|
end
|
|
151
151
|
|
|
@@ -159,6 +159,20 @@ module PulpContainerClient
|
|
|
159
159
|
@retain_repo_versions = retain_repo_versions
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
+
# Custom attribute writer method with validation
|
|
163
|
+
# @param [Object] name Value to be assigned
|
|
164
|
+
def name=(name)
|
|
165
|
+
if name.nil?
|
|
166
|
+
fail ArgumentError, 'name cannot be nil'
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if name.to_s.length < 1
|
|
170
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
@name = name
|
|
174
|
+
end
|
|
175
|
+
|
|
162
176
|
# Custom attribute writer method with validation
|
|
163
177
|
# @param [Object] description Value to be assigned
|
|
164
178
|
def description=(description)
|
|
@@ -179,31 +193,17 @@ module PulpContainerClient
|
|
|
179
193
|
@retain_checkpoints = retain_checkpoints
|
|
180
194
|
end
|
|
181
195
|
|
|
182
|
-
# Custom attribute writer method with validation
|
|
183
|
-
# @param [Object] name Value to be assigned
|
|
184
|
-
def name=(name)
|
|
185
|
-
if name.nil?
|
|
186
|
-
fail ArgumentError, 'name cannot be nil'
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if name.to_s.length < 1
|
|
190
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
@name = name
|
|
194
|
-
end
|
|
195
|
-
|
|
196
196
|
# Checks equality by comparing each attribute.
|
|
197
197
|
# @param [Object] Object to be compared
|
|
198
198
|
def ==(o)
|
|
199
199
|
return true if self.equal?(o)
|
|
200
200
|
self.class == o.class &&
|
|
201
|
-
|
|
201
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
202
202
|
retain_repo_versions == o.retain_repo_versions &&
|
|
203
|
-
|
|
204
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
203
|
+
pulp_labels == o.pulp_labels &&
|
|
205
204
|
name == o.name &&
|
|
206
|
-
|
|
205
|
+
description == o.description &&
|
|
206
|
+
retain_checkpoints == o.retain_checkpoints
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
# @see the `==` method
|
|
@@ -215,7 +215,7 @@ module PulpContainerClient
|
|
|
215
215
|
# Calculates hash code according to all attributes.
|
|
216
216
|
# @return [Integer] Hash code
|
|
217
217
|
def hash
|
|
218
|
-
[
|
|
218
|
+
[manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# Builds the object from hash
|
|
@@ -81,10 +81,16 @@ module PulpContainerClient
|
|
|
81
81
|
# Name of the upstream repository
|
|
82
82
|
attr_accessor :upstream_name
|
|
83
83
|
|
|
84
|
-
#
|
|
84
|
+
# A list of tags (wildcards *, ? are recognized) and/or digests (format: 'sha256:<hex>') to include during sync. 'includes' is evaluated before 'excludes'.
|
|
85
|
+
attr_accessor :includes
|
|
86
|
+
|
|
87
|
+
# A list of tag patterns to exclude during sync. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
|
|
88
|
+
attr_accessor :excludes
|
|
89
|
+
|
|
90
|
+
# Deprecated. Use 'includes' instead.
|
|
85
91
|
attr_accessor :include_tags
|
|
86
92
|
|
|
87
|
-
#
|
|
93
|
+
# Deprecated. Use 'excludes' instead.
|
|
88
94
|
attr_accessor :exclude_tags
|
|
89
95
|
|
|
90
96
|
# A URL to a sigstore to download image signatures from
|
|
@@ -137,6 +143,8 @@ module PulpContainerClient
|
|
|
137
143
|
:'download_concurrency' => :'download_concurrency',
|
|
138
144
|
:'rate_limit' => :'rate_limit',
|
|
139
145
|
:'upstream_name' => :'upstream_name',
|
|
146
|
+
:'includes' => :'includes',
|
|
147
|
+
:'excludes' => :'excludes',
|
|
140
148
|
:'include_tags' => :'include_tags',
|
|
141
149
|
:'exclude_tags' => :'exclude_tags',
|
|
142
150
|
:'sigstore' => :'sigstore'
|
|
@@ -173,6 +181,8 @@ module PulpContainerClient
|
|
|
173
181
|
:'download_concurrency' => :'Integer',
|
|
174
182
|
:'rate_limit' => :'Integer',
|
|
175
183
|
:'upstream_name' => :'String',
|
|
184
|
+
:'includes' => :'Array<String>',
|
|
185
|
+
:'excludes' => :'Array<String>',
|
|
176
186
|
:'include_tags' => :'Array<String>',
|
|
177
187
|
:'exclude_tags' => :'Array<String>',
|
|
178
188
|
:'sigstore' => :'String'
|
|
@@ -197,6 +207,8 @@ module PulpContainerClient
|
|
|
197
207
|
:'sock_read_timeout',
|
|
198
208
|
:'download_concurrency',
|
|
199
209
|
:'rate_limit',
|
|
210
|
+
:'includes',
|
|
211
|
+
:'excludes',
|
|
200
212
|
:'include_tags',
|
|
201
213
|
:'exclude_tags',
|
|
202
214
|
])
|
|
@@ -309,6 +321,18 @@ module PulpContainerClient
|
|
|
309
321
|
self.upstream_name = attributes[:'upstream_name']
|
|
310
322
|
end
|
|
311
323
|
|
|
324
|
+
if attributes.key?(:'includes')
|
|
325
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
326
|
+
self.includes = value
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if attributes.key?(:'excludes')
|
|
331
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
332
|
+
self.excludes = value
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
312
336
|
if attributes.key?(:'include_tags')
|
|
313
337
|
if (value = attributes[:'include_tags']).is_a?(Array)
|
|
314
338
|
self.include_tags = value
|
|
@@ -639,6 +663,8 @@ module PulpContainerClient
|
|
|
639
663
|
download_concurrency == o.download_concurrency &&
|
|
640
664
|
rate_limit == o.rate_limit &&
|
|
641
665
|
upstream_name == o.upstream_name &&
|
|
666
|
+
includes == o.includes &&
|
|
667
|
+
excludes == o.excludes &&
|
|
642
668
|
include_tags == o.include_tags &&
|
|
643
669
|
exclude_tags == o.exclude_tags &&
|
|
644
670
|
sigstore == o.sigstore
|
|
@@ -653,7 +679,7 @@ module PulpContainerClient
|
|
|
653
679
|
# Calculates hash code according to all attributes.
|
|
654
680
|
# @return [Integer] Hash code
|
|
655
681
|
def hash
|
|
656
|
-
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
|
|
682
|
+
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, includes, excludes, include_tags, exclude_tags, sigstore].hash
|
|
657
683
|
end
|
|
658
684
|
|
|
659
685
|
# Builds the object from hash
|
|
@@ -53,7 +53,7 @@ describe 'ContentSignaturesApi' do
|
|
|
53
53
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
54
54
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
55
55
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
56
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
56
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
57
57
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
58
58
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
59
59
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
@@ -88,7 +88,7 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
88
88
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
89
89
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
90
90
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
91
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
91
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
92
92
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
93
93
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
94
94
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
@@ -33,73 +33,73 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "base_path"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "prn"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "pulp_labels"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "pulp_href"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "name"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
describe 'test attribute "
|
|
72
|
+
describe 'test attribute "repository"' do
|
|
73
73
|
it 'should work' do
|
|
74
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
describe 'test attribute "
|
|
78
|
+
describe 'test attribute "no_content_change_since"' do
|
|
79
79
|
it 'should work' do
|
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
describe 'test attribute "
|
|
84
|
+
describe 'test attribute "content_guard_prn"' do
|
|
85
85
|
it 'should work' do
|
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "repository_version"' do
|
|
91
91
|
it 'should work' do
|
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
describe 'test attribute "
|
|
96
|
+
describe 'test attribute "pulp_created"' do
|
|
97
97
|
it 'should work' do
|
|
98
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
describe 'test attribute "
|
|
102
|
+
describe 'test attribute "content_guard"' do
|
|
103
103
|
it 'should work' do
|
|
104
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
105
|
end
|
|
@@ -33,13 +33,13 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "base_path"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "pulp_labels"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
@@ -51,19 +51,19 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "repository"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "repository_version"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "content_guard"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|
|
@@ -57,4 +57,10 @@ describe PulpContainerClient::ContainerContainerNamespaceResponse do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "pulp_labels"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
60
66
|
end
|
|
@@ -33,4 +33,10 @@ describe PulpContainerClient::ContainerContainerNamespace do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "pulp_labels"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
end
|