pulp_container_client 2.27.12 → 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 +6 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- 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 +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- 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/distributions_pull_through_api.rb +8 -4
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +76 -76
- 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 +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +76 -76
- data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -66
- 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 +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
- 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/distributions_pull_through_api_spec.rb +4 -2
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_distribution_spec.rb +6 -6
- 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 +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +62 -62
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
-
attr_accessor :content_guard
|
|
21
|
-
|
|
22
19
|
# Whether this distribution should be shown in the content app.
|
|
23
20
|
attr_accessor :hidden
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
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
|
|
27
24
|
|
|
28
25
|
attr_accessor :pulp_labels
|
|
29
26
|
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
31
|
attr_accessor :repository
|
|
32
32
|
|
|
33
|
-
# The registry path exposed by this pull-through distribution.
|
|
34
|
-
attr_accessor :base_path
|
|
35
|
-
|
|
36
33
|
# RepositoryVersion to be served
|
|
37
34
|
attr_accessor :repository_version
|
|
38
35
|
|
|
36
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
37
|
+
attr_accessor :content_guard
|
|
38
|
+
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
@@ -51,13 +51,13 @@ module PulpContainerClient
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'content_guard' => :'content_guard',
|
|
55
54
|
:'hidden' => :'hidden',
|
|
56
|
-
:'
|
|
55
|
+
:'base_path' => :'base_path',
|
|
57
56
|
:'pulp_labels' => :'pulp_labels',
|
|
57
|
+
:'name' => :'name',
|
|
58
58
|
:'repository' => :'repository',
|
|
59
|
-
:'base_path' => :'base_path',
|
|
60
59
|
:'repository_version' => :'repository_version',
|
|
60
|
+
:'content_guard' => :'content_guard',
|
|
61
61
|
:'remote' => :'remote',
|
|
62
62
|
:'distributions' => :'distributions',
|
|
63
63
|
:'private' => :'private',
|
|
@@ -73,13 +73,13 @@ module PulpContainerClient
|
|
|
73
73
|
# Attribute type mapping.
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
|
-
:'content_guard' => :'String',
|
|
77
76
|
:'hidden' => :'Boolean',
|
|
78
|
-
:'
|
|
77
|
+
:'base_path' => :'String',
|
|
79
78
|
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'name' => :'String',
|
|
80
80
|
:'repository' => :'String',
|
|
81
|
-
:'base_path' => :'String',
|
|
82
81
|
:'repository_version' => :'String',
|
|
82
|
+
:'content_guard' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,18 +111,14 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'content_guard')
|
|
115
|
-
self.content_guard = attributes[:'content_guard']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
114
|
if attributes.key?(:'hidden')
|
|
119
115
|
self.hidden = attributes[:'hidden']
|
|
120
116
|
else
|
|
121
117
|
self.hidden = false
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
126
122
|
end
|
|
127
123
|
|
|
128
124
|
if attributes.key?(:'pulp_labels')
|
|
@@ -131,18 +127,22 @@ module PulpContainerClient
|
|
|
131
127
|
end
|
|
132
128
|
end
|
|
133
129
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
136
132
|
end
|
|
137
133
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
self.
|
|
134
|
+
if attributes.key?(:'repository')
|
|
135
|
+
self.repository = attributes[:'repository']
|
|
140
136
|
end
|
|
141
137
|
|
|
142
138
|
if attributes.key?(:'repository_version')
|
|
143
139
|
self.repository_version = attributes[:'repository_version']
|
|
144
140
|
end
|
|
145
141
|
|
|
142
|
+
if attributes.key?(:'content_guard')
|
|
143
|
+
self.content_guard = attributes[:'content_guard']
|
|
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)
|
|
@@ -235,13 +235,13 @@ module PulpContainerClient
|
|
|
235
235
|
def ==(o)
|
|
236
236
|
return true if self.equal?(o)
|
|
237
237
|
self.class == o.class &&
|
|
238
|
-
content_guard == o.content_guard &&
|
|
239
238
|
hidden == o.hidden &&
|
|
240
|
-
|
|
239
|
+
base_path == o.base_path &&
|
|
241
240
|
pulp_labels == o.pulp_labels &&
|
|
241
|
+
name == o.name &&
|
|
242
242
|
repository == o.repository &&
|
|
243
|
-
base_path == o.base_path &&
|
|
244
243
|
repository_version == o.repository_version &&
|
|
244
|
+
content_guard == o.content_guard &&
|
|
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
|
-
[
|
|
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,19 +16,19 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
# An optional description.
|
|
20
|
-
attr_accessor :description
|
|
21
|
-
|
|
22
19
|
# A reference to an associated signing service.
|
|
23
20
|
attr_accessor :manifest_signing_service
|
|
24
21
|
|
|
25
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
26
23
|
attr_accessor :retain_repo_versions
|
|
27
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
28
27
|
# A unique name for this repository.
|
|
29
28
|
attr_accessor :name
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
# An optional description.
|
|
31
|
+
attr_accessor :description
|
|
32
32
|
|
|
33
33
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
34
|
attr_accessor :retain_checkpoints
|
|
@@ -36,11 +36,11 @@ module PulpContainerClient
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'description' => :'description',
|
|
40
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
41
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
|
-
:'name' => :'name',
|
|
43
41
|
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'description' => :'description',
|
|
44
44
|
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
@@ -53,11 +53,11 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'description' => :'String',
|
|
57
56
|
:'manifest_signing_service' => :'String',
|
|
58
57
|
:'retain_repo_versions' => :'Integer',
|
|
59
|
-
:'name' => :'String',
|
|
60
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'name' => :'String',
|
|
60
|
+
:'description' => :'String',
|
|
61
61
|
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
@@ -65,9 +65,9 @@ module PulpContainerClient
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
-
:'description',
|
|
69
68
|
:'manifest_signing_service',
|
|
70
69
|
:'retain_repo_versions',
|
|
70
|
+
:'description',
|
|
71
71
|
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
@@ -87,10 +87,6 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'description')
|
|
91
|
-
self.description = attributes[:'description']
|
|
92
|
-
end
|
|
93
|
-
|
|
94
90
|
if attributes.key?(:'manifest_signing_service')
|
|
95
91
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
96
92
|
end
|
|
@@ -99,16 +95,20 @@ module PulpContainerClient
|
|
|
99
95
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
100
96
|
end
|
|
101
97
|
|
|
102
|
-
if attributes.key?(:'name')
|
|
103
|
-
self.name = attributes[:'name']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
98
|
if attributes.key?(:'pulp_labels')
|
|
107
99
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
108
100
|
self.pulp_labels = value
|
|
109
101
|
end
|
|
110
102
|
end
|
|
111
103
|
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'description')
|
|
109
|
+
self.description = attributes[:'description']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
112
|
if attributes.key?(:'retain_checkpoints')
|
|
113
113
|
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
114
114
|
end
|
|
@@ -119,10 +119,6 @@ module PulpContainerClient
|
|
|
119
119
|
def list_invalid_properties
|
|
120
120
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
121
121
|
invalid_properties = Array.new
|
|
122
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
123
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
|
-
end
|
|
125
|
-
|
|
126
122
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
127
123
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
128
124
|
end
|
|
@@ -131,6 +127,10 @@ module PulpContainerClient
|
|
|
131
127
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
132
128
|
end
|
|
133
129
|
|
|
130
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
131
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
134
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
135
135
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
136
136
|
end
|
|
@@ -142,23 +142,13 @@ module PulpContainerClient
|
|
|
142
142
|
# @return true if the model is valid
|
|
143
143
|
def valid?
|
|
144
144
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
145
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
146
145
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
147
146
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
147
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
148
148
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
149
149
|
true
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object] description Value to be assigned
|
|
154
|
-
def description=(description)
|
|
155
|
-
if !description.nil? && description.to_s.length < 1
|
|
156
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@description = description
|
|
160
|
-
end
|
|
161
|
-
|
|
162
152
|
# Custom attribute writer method with validation
|
|
163
153
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
164
154
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -183,6 +173,16 @@ module PulpContainerClient
|
|
|
183
173
|
@name = name
|
|
184
174
|
end
|
|
185
175
|
|
|
176
|
+
# Custom attribute writer method with validation
|
|
177
|
+
# @param [Object] description Value to be assigned
|
|
178
|
+
def description=(description)
|
|
179
|
+
if !description.nil? && description.to_s.length < 1
|
|
180
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
@description = description
|
|
184
|
+
end
|
|
185
|
+
|
|
186
186
|
# Custom attribute writer method with validation
|
|
187
187
|
# @param [Object] retain_checkpoints Value to be assigned
|
|
188
188
|
def retain_checkpoints=(retain_checkpoints)
|
|
@@ -198,11 +198,11 @@ module PulpContainerClient
|
|
|
198
198
|
def ==(o)
|
|
199
199
|
return true if self.equal?(o)
|
|
200
200
|
self.class == o.class &&
|
|
201
|
-
description == o.description &&
|
|
202
201
|
manifest_signing_service == o.manifest_signing_service &&
|
|
203
202
|
retain_repo_versions == o.retain_repo_versions &&
|
|
204
|
-
name == o.name &&
|
|
205
203
|
pulp_labels == o.pulp_labels &&
|
|
204
|
+
name == o.name &&
|
|
205
|
+
description == o.description &&
|
|
206
206
|
retain_checkpoints == o.retain_checkpoints
|
|
207
207
|
end
|
|
208
208
|
|
|
@@ -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.
|
|
@@ -185,7 +185,8 @@ describe 'DistributionsPullThroughApi' do
|
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
# unit tests for set_label
|
|
188
|
-
#
|
|
188
|
+
# Set a label
|
|
189
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
189
190
|
# @param container_container_pull_through_distribution_href
|
|
190
191
|
# @param set_label
|
|
191
192
|
# @param [Hash] opts the optional parameters
|
|
@@ -198,7 +199,8 @@ describe 'DistributionsPullThroughApi' do
|
|
|
198
199
|
end
|
|
199
200
|
|
|
200
201
|
# unit tests for unset_label
|
|
201
|
-
#
|
|
202
|
+
# Unset a label
|
|
203
|
+
# Unset a single pulp_label on the object.
|
|
202
204
|
# @param container_container_pull_through_distribution_href
|
|
203
205
|
# @param unset_label
|
|
204
206
|
# @param [Hash] opts the optional parameters
|
|
@@ -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.
|
|
@@ -27,37 +27,37 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "hidden"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
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
|
|
@@ -69,19 +69,19 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
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
|
|
@@ -93,13 +93,13 @@ describe PulpContainerClient::ContainerContainerDistributionResponse do
|
|
|
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
|
|
@@ -27,25 +27,25 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "hidden"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
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
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "name"' 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
|
|
@@ -57,13 +57,13 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
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
|