pulp_container_client 2.27.14 → 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 +12 -12
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- 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/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- 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/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 +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +61 -61
- 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 +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +61 -61
- data/lib/pulp_container_client/models/container_container_push_repository.rb +67 -67
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +82 -82
- 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 +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +65 -65
- 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 +13 -13
- 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 +13 -13
- 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 +6 -6
- 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 +6 -6
- 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,16 +16,19 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class PatchedcontainerContainerPullThroughDistribution
|
|
19
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
20
|
-
attr_accessor :repository
|
|
21
|
-
|
|
22
19
|
# Whether this distribution should be shown in the content app.
|
|
23
20
|
attr_accessor :hidden
|
|
24
21
|
|
|
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
|
|
24
|
+
|
|
25
25
|
attr_accessor :pulp_labels
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
29
32
|
|
|
30
33
|
# RepositoryVersion to be served
|
|
31
34
|
attr_accessor :repository_version
|
|
@@ -33,9 +36,6 @@ module PulpContainerClient
|
|
|
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
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
37
|
-
attr_accessor :name
|
|
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
|
-
:'repository' => :'repository',
|
|
55
54
|
:'hidden' => :'hidden',
|
|
56
|
-
:'pulp_labels' => :'pulp_labels',
|
|
57
55
|
:'base_path' => :'base_path',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels',
|
|
57
|
+
:'name' => :'name',
|
|
58
|
+
:'repository' => :'repository',
|
|
58
59
|
:'repository_version' => :'repository_version',
|
|
59
60
|
:'content_guard' => :'content_guard',
|
|
60
|
-
:'name' => :'name',
|
|
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
|
-
:'repository' => :'String',
|
|
77
76
|
:'hidden' => :'Boolean',
|
|
78
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
79
77
|
:'base_path' => :'String',
|
|
78
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'name' => :'String',
|
|
80
|
+
:'repository' => :'String',
|
|
80
81
|
:'repository_version' => :'String',
|
|
81
82
|
:'content_guard' => :'String',
|
|
82
|
-
:'name' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,24 +111,28 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'repository')
|
|
115
|
-
self.repository = attributes[:'repository']
|
|
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
|
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
124
|
if attributes.key?(:'pulp_labels')
|
|
125
125
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
126
|
self.pulp_labels = value
|
|
127
127
|
end
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'repository')
|
|
135
|
+
self.repository = attributes[:'repository']
|
|
132
136
|
end
|
|
133
137
|
|
|
134
138
|
if attributes.key?(:'repository_version')
|
|
@@ -139,10 +143,6 @@ module PulpContainerClient
|
|
|
139
143
|
self.content_guard = attributes[:'content_guard']
|
|
140
144
|
end
|
|
141
145
|
|
|
142
|
-
if attributes.key?(:'name')
|
|
143
|
-
self.name = attributes[:'name']
|
|
144
|
-
end
|
|
145
|
-
|
|
146
146
|
if attributes.key?(:'remote')
|
|
147
147
|
self.remote = attributes[:'remote']
|
|
148
148
|
end
|
|
@@ -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
|
-
repository == o.repository &&
|
|
239
238
|
hidden == o.hidden &&
|
|
240
|
-
pulp_labels == o.pulp_labels &&
|
|
241
239
|
base_path == o.base_path &&
|
|
240
|
+
pulp_labels == o.pulp_labels &&
|
|
241
|
+
name == o.name &&
|
|
242
|
+
repository == o.repository &&
|
|
242
243
|
repository_version == o.repository_version &&
|
|
243
244
|
content_guard == o.content_guard &&
|
|
244
|
-
name == o.name &&
|
|
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,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class PatchedcontainerContainerPushRepository
|
|
19
|
-
attr_accessor :pulp_labels
|
|
20
|
-
|
|
21
|
-
# An optional description.
|
|
22
|
-
attr_accessor :description
|
|
23
|
-
|
|
24
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
25
|
-
attr_accessor :retain_checkpoints
|
|
26
|
-
|
|
27
19
|
# A reference to an associated signing service.
|
|
28
20
|
attr_accessor :manifest_signing_service
|
|
29
21
|
|
|
30
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
31
23
|
attr_accessor :retain_repo_versions
|
|
32
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
33
27
|
# A unique name for this repository.
|
|
34
28
|
attr_accessor :name
|
|
35
29
|
|
|
30
|
+
# An optional description.
|
|
31
|
+
attr_accessor :description
|
|
32
|
+
|
|
33
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
|
+
attr_accessor :retain_checkpoints
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'pulp_labels' => :'pulp_labels',
|
|
40
|
-
:'description' => :'description',
|
|
41
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
42
39
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
43
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
44
|
-
:'
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
42
|
+
:'name' => :'name',
|
|
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
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
57
|
-
:'description' => :'String',
|
|
58
|
-
:'retain_checkpoints' => :'Integer',
|
|
59
56
|
:'manifest_signing_service' => :'String',
|
|
60
57
|
:'retain_repo_versions' => :'Integer',
|
|
61
|
-
:'
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
59
|
+
:'name' => :'String',
|
|
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
|
-
:'description',
|
|
69
|
-
:'retain_checkpoints',
|
|
70
68
|
:'manifest_signing_service',
|
|
71
69
|
:'retain_repo_versions',
|
|
70
|
+
:'description',
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,12 +87,24 @@ 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
|
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
end
|
|
107
|
+
|
|
96
108
|
if attributes.key?(:'description')
|
|
97
109
|
self.description = attributes[:'description']
|
|
98
110
|
end
|
|
@@ -100,18 +112,6 @@ module PulpContainerClient
|
|
|
100
112
|
if attributes.key?(:'retain_checkpoints')
|
|
101
113
|
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
102
114
|
end
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'manifest_signing_service')
|
|
105
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'retain_repo_versions')
|
|
109
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'name')
|
|
113
|
-
self.name = attributes[:'name']
|
|
114
|
-
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,14 +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
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
127
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
128
|
-
end
|
|
129
|
-
|
|
130
122
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
123
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
132
124
|
end
|
|
@@ -135,6 +127,14 @@ module PulpContainerClient
|
|
|
135
127
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
136
128
|
end
|
|
137
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
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
135
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
138
|
invalid_properties
|
|
139
139
|
end
|
|
140
140
|
|
|
@@ -142,33 +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
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
147
145
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
148
146
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
147
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
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
|
-
# Custom attribute writer method with validation
|
|
163
|
-
# @param [Object] retain_checkpoints Value to be assigned
|
|
164
|
-
def retain_checkpoints=(retain_checkpoints)
|
|
165
|
-
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
166
|
-
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
@retain_checkpoints = retain_checkpoints
|
|
170
|
-
end
|
|
171
|
-
|
|
172
152
|
# Custom attribute writer method with validation
|
|
173
153
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
174
154
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -193,17 +173,37 @@ module PulpContainerClient
|
|
|
193
173
|
@name = name
|
|
194
174
|
end
|
|
195
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
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
188
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
189
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@retain_checkpoints = retain_checkpoints
|
|
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
|
-
pulp_labels == o.pulp_labels &&
|
|
202
|
-
description == o.description &&
|
|
203
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
204
201
|
manifest_signing_service == o.manifest_signing_service &&
|
|
205
202
|
retain_repo_versions == o.retain_repo_versions &&
|
|
206
|
-
|
|
203
|
+
pulp_labels == o.pulp_labels &&
|
|
204
|
+
name == o.name &&
|
|
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.
|
|
@@ -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,79 +27,79 @@ 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
|
|
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
|
|
@@ -27,13 +27,13 @@ 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
|
|
@@ -45,25 +45,25 @@ describe PulpContainerClient::ContainerContainerDistribution do
|
|
|
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
|
|
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
|