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
|
@@ -16,53 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# Timestamp of creation.
|
|
22
|
-
attr_accessor :pulp_created
|
|
23
|
-
|
|
24
|
-
attr_accessor :versions_href
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
25
21
|
|
|
26
22
|
# The Pulp Resource Name (PRN).
|
|
27
23
|
attr_accessor :prn
|
|
28
24
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
31
|
-
|
|
32
|
-
# A reference to an associated signing service.
|
|
33
|
-
attr_accessor :manifest_signing_service
|
|
25
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
26
|
+
attr_accessor :pulp_last_updated
|
|
34
27
|
|
|
35
28
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
36
29
|
attr_accessor :retain_repo_versions
|
|
37
30
|
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
38
33
|
attr_accessor :latest_version_href
|
|
39
34
|
|
|
35
|
+
attr_accessor :pulp_href
|
|
36
|
+
|
|
40
37
|
# A unique name for this repository.
|
|
41
38
|
attr_accessor :name
|
|
42
39
|
|
|
43
|
-
|
|
40
|
+
# An optional description.
|
|
41
|
+
attr_accessor :description
|
|
42
|
+
|
|
43
|
+
# Timestamp of creation.
|
|
44
|
+
attr_accessor :pulp_created
|
|
45
|
+
|
|
46
|
+
attr_accessor :versions_href
|
|
44
47
|
|
|
45
48
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
49
|
attr_accessor :retain_checkpoints
|
|
47
50
|
|
|
48
|
-
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
49
|
-
attr_accessor :pulp_last_updated
|
|
50
|
-
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'pulp_href' => :'pulp_href',
|
|
55
|
-
:'pulp_created' => :'pulp_created',
|
|
56
|
-
:'versions_href' => :'versions_href',
|
|
57
|
-
:'prn' => :'prn',
|
|
58
|
-
:'description' => :'description',
|
|
59
54
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
|
+
:'prn' => :'prn',
|
|
56
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
60
57
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
|
61
59
|
:'latest_version_href' => :'latest_version_href',
|
|
60
|
+
:'pulp_href' => :'pulp_href',
|
|
62
61
|
:'name' => :'name',
|
|
63
|
-
:'
|
|
64
|
-
:'
|
|
65
|
-
:'
|
|
62
|
+
:'description' => :'description',
|
|
63
|
+
:'pulp_created' => :'pulp_created',
|
|
64
|
+
:'versions_href' => :'versions_href',
|
|
65
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,28 +74,28 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
-
:'pulp_href' => :'String',
|
|
78
|
-
:'pulp_created' => :'Time',
|
|
79
|
-
:'versions_href' => :'String',
|
|
80
|
-
:'prn' => :'String',
|
|
81
|
-
:'description' => :'String',
|
|
82
77
|
:'manifest_signing_service' => :'String',
|
|
78
|
+
:'prn' => :'String',
|
|
79
|
+
:'pulp_last_updated' => :'Time',
|
|
83
80
|
:'retain_repo_versions' => :'Integer',
|
|
81
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
84
82
|
:'latest_version_href' => :'String',
|
|
83
|
+
:'pulp_href' => :'String',
|
|
85
84
|
:'name' => :'String',
|
|
86
|
-
:'
|
|
87
|
-
:'
|
|
88
|
-
:'
|
|
85
|
+
:'description' => :'String',
|
|
86
|
+
:'pulp_created' => :'Time',
|
|
87
|
+
:'versions_href' => :'String',
|
|
88
|
+
:'retain_checkpoints' => :'Integer'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# List of attributes with nullable: true
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
|
-
:'description',
|
|
96
95
|
:'manifest_signing_service',
|
|
97
96
|
:'retain_repo_versions',
|
|
98
|
-
:'
|
|
97
|
+
:'description',
|
|
98
|
+
:'retain_checkpoints'
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,56 +114,56 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if attributes.key?(:'pulp_created')
|
|
122
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
if attributes.key?(:'versions_href')
|
|
126
|
-
self.versions_href = attributes[:'versions_href']
|
|
117
|
+
if attributes.key?(:'manifest_signing_service')
|
|
118
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
127
119
|
end
|
|
128
120
|
|
|
129
121
|
if attributes.key?(:'prn')
|
|
130
122
|
self.prn = attributes[:'prn']
|
|
131
123
|
end
|
|
132
124
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
self.
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.key?(:'manifest_signing_service')
|
|
138
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
139
127
|
end
|
|
140
128
|
|
|
141
129
|
if attributes.key?(:'retain_repo_versions')
|
|
142
130
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
143
131
|
end
|
|
144
132
|
|
|
133
|
+
if attributes.key?(:'pulp_labels')
|
|
134
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
135
|
+
self.pulp_labels = value
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
145
139
|
if attributes.key?(:'latest_version_href')
|
|
146
140
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
147
141
|
end
|
|
148
142
|
|
|
143
|
+
if attributes.key?(:'pulp_href')
|
|
144
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
145
|
+
end
|
|
146
|
+
|
|
149
147
|
if attributes.key?(:'name')
|
|
150
148
|
self.name = attributes[:'name']
|
|
151
149
|
else
|
|
152
150
|
self.name = nil
|
|
153
151
|
end
|
|
154
152
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
|
|
157
|
-
self.pulp_labels = value
|
|
158
|
-
end
|
|
153
|
+
if attributes.key?(:'description')
|
|
154
|
+
self.description = attributes[:'description']
|
|
159
155
|
end
|
|
160
156
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
157
|
+
if attributes.key?(:'pulp_created')
|
|
158
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
163
159
|
end
|
|
164
160
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
161
|
+
if attributes.key?(:'versions_href')
|
|
162
|
+
self.versions_href = attributes[:'versions_href']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'retain_checkpoints')
|
|
166
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -222,18 +222,18 @@ module PulpContainerClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
pulp_href == o.pulp_href &&
|
|
226
|
-
pulp_created == o.pulp_created &&
|
|
227
|
-
versions_href == o.versions_href &&
|
|
228
|
-
prn == o.prn &&
|
|
229
|
-
description == o.description &&
|
|
230
225
|
manifest_signing_service == o.manifest_signing_service &&
|
|
226
|
+
prn == o.prn &&
|
|
227
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
231
228
|
retain_repo_versions == o.retain_repo_versions &&
|
|
229
|
+
pulp_labels == o.pulp_labels &&
|
|
232
230
|
latest_version_href == o.latest_version_href &&
|
|
231
|
+
pulp_href == o.pulp_href &&
|
|
233
232
|
name == o.name &&
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
description == o.description &&
|
|
234
|
+
pulp_created == o.pulp_created &&
|
|
235
|
+
versions_href == o.versions_href &&
|
|
236
|
+
retain_checkpoints == o.retain_checkpoints
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[manifest_signing_service, prn, pulp_last_updated, retain_repo_versions, pulp_labels, latest_version_href, pulp_href, name, description, pulp_created, versions_href, retain_checkpoints].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# 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
|
])
|
|
@@ -315,6 +327,18 @@ module PulpContainerClient
|
|
|
315
327
|
self.upstream_name = nil
|
|
316
328
|
end
|
|
317
329
|
|
|
330
|
+
if attributes.key?(:'includes')
|
|
331
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
332
|
+
self.includes = value
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if attributes.key?(:'excludes')
|
|
337
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
338
|
+
self.excludes = value
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
318
342
|
if attributes.key?(:'include_tags')
|
|
319
343
|
if (value = attributes[:'include_tags']).is_a?(Array)
|
|
320
344
|
self.include_tags = value
|
|
@@ -660,6 +684,8 @@ module PulpContainerClient
|
|
|
660
684
|
download_concurrency == o.download_concurrency &&
|
|
661
685
|
rate_limit == o.rate_limit &&
|
|
662
686
|
upstream_name == o.upstream_name &&
|
|
687
|
+
includes == o.includes &&
|
|
688
|
+
excludes == o.excludes &&
|
|
663
689
|
include_tags == o.include_tags &&
|
|
664
690
|
exclude_tags == o.exclude_tags &&
|
|
665
691
|
sigstore == o.sigstore
|
|
@@ -674,7 +700,7 @@ module PulpContainerClient
|
|
|
674
700
|
# Calculates hash code according to all attributes.
|
|
675
701
|
# @return [Integer] Hash code
|
|
676
702
|
def hash
|
|
677
|
-
[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
|
|
703
|
+
[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
|
|
678
704
|
end
|
|
679
705
|
|
|
680
706
|
# Builds the object from hash
|
|
@@ -80,11 +80,11 @@ module PulpContainerClient
|
|
|
80
80
|
# Name of the upstream repository
|
|
81
81
|
attr_accessor :upstream_name
|
|
82
82
|
|
|
83
|
-
#
|
|
84
|
-
attr_accessor :
|
|
83
|
+
# A list of tags (wildcards *, ? are recognized) and/or digests (format: 'sha256:<hex>') to include during sync. 'includes' is evaluated before 'excludes'.
|
|
84
|
+
attr_accessor :includes
|
|
85
85
|
|
|
86
|
-
#
|
|
87
|
-
attr_accessor :
|
|
86
|
+
# A list of tag patterns to exclude during sync. Wildcards *, ? are recognized. 'excludes' is evaluated after 'includes'.
|
|
87
|
+
attr_accessor :excludes
|
|
88
88
|
|
|
89
89
|
# A URL to a sigstore to download image signatures from
|
|
90
90
|
attr_accessor :sigstore
|
|
@@ -136,8 +136,8 @@ module PulpContainerClient
|
|
|
136
136
|
:'download_concurrency' => :'download_concurrency',
|
|
137
137
|
:'rate_limit' => :'rate_limit',
|
|
138
138
|
:'upstream_name' => :'upstream_name',
|
|
139
|
-
:'
|
|
140
|
-
:'
|
|
139
|
+
:'includes' => :'includes',
|
|
140
|
+
:'excludes' => :'excludes',
|
|
141
141
|
:'sigstore' => :'sigstore'
|
|
142
142
|
}
|
|
143
143
|
end
|
|
@@ -172,8 +172,8 @@ module PulpContainerClient
|
|
|
172
172
|
:'download_concurrency' => :'Integer',
|
|
173
173
|
:'rate_limit' => :'Integer',
|
|
174
174
|
:'upstream_name' => :'String',
|
|
175
|
-
:'
|
|
176
|
-
:'
|
|
175
|
+
:'includes' => :'Array<String>',
|
|
176
|
+
:'excludes' => :'Array<String>',
|
|
177
177
|
:'sigstore' => :'String'
|
|
178
178
|
}
|
|
179
179
|
end
|
|
@@ -191,8 +191,8 @@ module PulpContainerClient
|
|
|
191
191
|
:'sock_read_timeout',
|
|
192
192
|
:'download_concurrency',
|
|
193
193
|
:'rate_limit',
|
|
194
|
-
:'
|
|
195
|
-
:'
|
|
194
|
+
:'includes',
|
|
195
|
+
:'excludes',
|
|
196
196
|
])
|
|
197
197
|
end
|
|
198
198
|
|
|
@@ -311,15 +311,15 @@ module PulpContainerClient
|
|
|
311
311
|
self.upstream_name = nil
|
|
312
312
|
end
|
|
313
313
|
|
|
314
|
-
if attributes.key?(:'
|
|
315
|
-
if (value = attributes[:'
|
|
316
|
-
self.
|
|
314
|
+
if attributes.key?(:'includes')
|
|
315
|
+
if (value = attributes[:'includes']).is_a?(Array)
|
|
316
|
+
self.includes = value
|
|
317
317
|
end
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
-
if attributes.key?(:'
|
|
321
|
-
if (value = attributes[:'
|
|
322
|
-
self.
|
|
320
|
+
if attributes.key?(:'excludes')
|
|
321
|
+
if (value = attributes[:'excludes']).is_a?(Array)
|
|
322
|
+
self.excludes = value
|
|
323
323
|
end
|
|
324
324
|
end
|
|
325
325
|
|
|
@@ -460,8 +460,8 @@ module PulpContainerClient
|
|
|
460
460
|
download_concurrency == o.download_concurrency &&
|
|
461
461
|
rate_limit == o.rate_limit &&
|
|
462
462
|
upstream_name == o.upstream_name &&
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
includes == o.includes &&
|
|
464
|
+
excludes == o.excludes &&
|
|
465
465
|
sigstore == o.sigstore
|
|
466
466
|
end
|
|
467
467
|
|
|
@@ -474,7 +474,7 @@ module PulpContainerClient
|
|
|
474
474
|
# Calculates hash code according to all attributes.
|
|
475
475
|
# @return [Integer] Hash code
|
|
476
476
|
def hash
|
|
477
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name,
|
|
477
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, pulp_labels, policy, hidden_fields, ca_cert, client_cert, tls_validation, proxy_url, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, upstream_name, includes, excludes, sigstore].hash
|
|
478
478
|
end
|
|
479
479
|
|
|
480
480
|
# Builds the object from hash
|
|
@@ -44,6 +44,9 @@ module PulpContainerClient
|
|
|
44
44
|
# Signing key ID
|
|
45
45
|
attr_accessor :key_id
|
|
46
46
|
|
|
47
|
+
# Signing key fingerprint
|
|
48
|
+
attr_accessor :fingerprint
|
|
49
|
+
|
|
47
50
|
# Timestamp of a signature
|
|
48
51
|
attr_accessor :timestamp
|
|
49
52
|
|
|
@@ -66,6 +69,7 @@ module PulpContainerClient
|
|
|
66
69
|
:'digest' => :'digest',
|
|
67
70
|
:'type' => :'type',
|
|
68
71
|
:'key_id' => :'key_id',
|
|
72
|
+
:'fingerprint' => :'fingerprint',
|
|
69
73
|
:'timestamp' => :'timestamp',
|
|
70
74
|
:'creator' => :'creator',
|
|
71
75
|
:'signed_manifest' => :'signed_manifest'
|
|
@@ -90,6 +94,7 @@ module PulpContainerClient
|
|
|
90
94
|
:'digest' => :'String',
|
|
91
95
|
:'type' => :'String',
|
|
92
96
|
:'key_id' => :'String',
|
|
97
|
+
:'fingerprint' => :'String',
|
|
93
98
|
:'timestamp' => :'Integer',
|
|
94
99
|
:'creator' => :'String',
|
|
95
100
|
:'signed_manifest' => :'String'
|
|
@@ -99,6 +104,7 @@ module PulpContainerClient
|
|
|
99
104
|
# List of attributes with nullable: true
|
|
100
105
|
def self.openapi_nullable
|
|
101
106
|
Set.new([
|
|
107
|
+
:'fingerprint',
|
|
102
108
|
])
|
|
103
109
|
end
|
|
104
110
|
|
|
@@ -167,6 +173,12 @@ module PulpContainerClient
|
|
|
167
173
|
self.key_id = nil
|
|
168
174
|
end
|
|
169
175
|
|
|
176
|
+
if attributes.key?(:'fingerprint')
|
|
177
|
+
self.fingerprint = attributes[:'fingerprint']
|
|
178
|
+
else
|
|
179
|
+
self.fingerprint = nil
|
|
180
|
+
end
|
|
181
|
+
|
|
170
182
|
if attributes.key?(:'timestamp')
|
|
171
183
|
self.timestamp = attributes[:'timestamp']
|
|
172
184
|
else
|
|
@@ -251,6 +263,7 @@ module PulpContainerClient
|
|
|
251
263
|
digest == o.digest &&
|
|
252
264
|
type == o.type &&
|
|
253
265
|
key_id == o.key_id &&
|
|
266
|
+
fingerprint == o.fingerprint &&
|
|
254
267
|
timestamp == o.timestamp &&
|
|
255
268
|
creator == o.creator &&
|
|
256
269
|
signed_manifest == o.signed_manifest
|
|
@@ -265,7 +278,7 @@ module PulpContainerClient
|
|
|
265
278
|
# Calculates hash code according to all attributes.
|
|
266
279
|
# @return [Integer] Hash code
|
|
267
280
|
def hash
|
|
268
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
|
281
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, digest, type, key_id, fingerprint, timestamp, creator, signed_manifest].hash
|
|
269
282
|
end
|
|
270
283
|
|
|
271
284
|
# Builds the object from hash
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
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 base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
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
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'content_guard' => :'content_guard',
|
|
49
48
|
:'hidden' => :'hidden',
|
|
50
|
-
:'
|
|
49
|
+
:'base_path' => :'base_path',
|
|
51
50
|
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'name' => :'name',
|
|
52
52
|
:'repository' => :'repository',
|
|
53
|
-
:'base_path' => :'base_path',
|
|
54
53
|
:'repository_version' => :'repository_version',
|
|
54
|
+
:'content_guard' => :'content_guard',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'content_guard' => :'String',
|
|
69
68
|
:'hidden' => :'Boolean',
|
|
70
|
-
:'
|
|
69
|
+
:'base_path' => :'String',
|
|
71
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'name' => :'String',
|
|
72
72
|
:'repository' => :'String',
|
|
73
|
-
:'base_path' => :'String',
|
|
74
73
|
:'repository_version' => :'String',
|
|
74
|
+
:'content_guard' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,18 +101,14 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'content_guard')
|
|
105
|
-
self.content_guard = attributes[:'content_guard']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
104
|
if attributes.key?(:'hidden')
|
|
109
105
|
self.hidden = attributes[:'hidden']
|
|
110
106
|
else
|
|
111
107
|
self.hidden = false
|
|
112
108
|
end
|
|
113
109
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
110
|
+
if attributes.key?(:'base_path')
|
|
111
|
+
self.base_path = attributes[:'base_path']
|
|
116
112
|
end
|
|
117
113
|
|
|
118
114
|
if attributes.key?(:'pulp_labels')
|
|
@@ -121,18 +117,22 @@ module PulpContainerClient
|
|
|
121
117
|
end
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
120
|
+
if attributes.key?(:'name')
|
|
121
|
+
self.name = attributes[:'name']
|
|
126
122
|
end
|
|
127
123
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
124
|
+
if attributes.key?(:'repository')
|
|
125
|
+
self.repository = attributes[:'repository']
|
|
130
126
|
end
|
|
131
127
|
|
|
132
128
|
if attributes.key?(:'repository_version')
|
|
133
129
|
self.repository_version = attributes[:'repository_version']
|
|
134
130
|
end
|
|
135
131
|
|
|
132
|
+
if attributes.key?(:'content_guard')
|
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
136
|
if attributes.key?(:'private')
|
|
137
137
|
self.private = attributes[:'private']
|
|
138
138
|
end
|
|
@@ -147,14 +147,14 @@ module PulpContainerClient
|
|
|
147
147
|
def list_invalid_properties
|
|
148
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
149
149
|
invalid_properties = Array.new
|
|
150
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
151
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
150
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
155
151
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
156
152
|
end
|
|
157
153
|
|
|
154
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
155
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
158
|
if !@description.nil? && @description.to_s.length < 1
|
|
159
159
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
160
160
|
end
|
|
@@ -166,26 +166,12 @@ module PulpContainerClient
|
|
|
166
166
|
# @return true if the model is valid
|
|
167
167
|
def valid?
|
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
170
169
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
170
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
171
171
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
# Custom attribute writer method with validation
|
|
176
|
-
# @param [Object] name Value to be assigned
|
|
177
|
-
def name=(name)
|
|
178
|
-
if name.nil?
|
|
179
|
-
fail ArgumentError, 'name cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if name.to_s.length < 1
|
|
183
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
@name = name
|
|
187
|
-
end
|
|
188
|
-
|
|
189
175
|
# Custom attribute writer method with validation
|
|
190
176
|
# @param [Object] base_path Value to be assigned
|
|
191
177
|
def base_path=(base_path)
|
|
@@ -200,6 +186,20 @@ module PulpContainerClient
|
|
|
200
186
|
@base_path = base_path
|
|
201
187
|
end
|
|
202
188
|
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] name Value to be assigned
|
|
191
|
+
def name=(name)
|
|
192
|
+
if name.nil?
|
|
193
|
+
fail ArgumentError, 'name cannot be nil'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if name.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@name = name
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Custom attribute writer method with validation
|
|
204
204
|
# @param [Object] description Value to be assigned
|
|
205
205
|
def description=(description)
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
content_guard == o.content_guard &&
|
|
219
218
|
hidden == o.hidden &&
|
|
220
|
-
|
|
219
|
+
base_path == o.base_path &&
|
|
221
220
|
pulp_labels == o.pulp_labels &&
|
|
221
|
+
name == o.name &&
|
|
222
222
|
repository == o.repository &&
|
|
223
|
-
base_path == o.base_path &&
|
|
224
223
|
repository_version == o.repository_version &&
|
|
224
|
+
content_guard == o.content_guard &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|