pulp_deb_client 3.9.1 → 3.11.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 +5 -5
- data/docs/{RepositoryAddRemoveContent.md → AptRepositoryAddRemoveContent.md} +7 -3
- data/docs/AptRepositorySyncURL.md +1 -1
- data/docs/ContentInstallerPackagesApi.md +2 -2
- data/docs/ContentPackageReleaseComponentsApi.md +2 -2
- data/docs/ContentPackagesApi.md +3 -3
- data/docs/ContentReleaseArchitecturesApi.md +6 -2
- data/docs/DebAptPublication.md +2 -0
- data/docs/DebAptPublicationResponse.md +2 -0
- data/docs/DebAptRemote.md +4 -2
- data/docs/DebAptRemoteResponse.md +4 -2
- data/docs/DebAptRepository.md +9 -1
- data/docs/DebAptRepositoryResponse.md +9 -1
- data/docs/DebInstallerPackageResponse.md +5 -1
- data/docs/DebPackageResponse.md +5 -1
- data/docs/DebReleaseArchitecture.md +5 -1
- data/docs/DebReleaseArchitectureResponse.md +5 -1
- data/docs/PatcheddebAptRemote.md +4 -2
- data/docs/PatcheddebAptRepository.md +9 -1
- data/docs/RepositoriesAptApi.md +6 -6
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +5 -5
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +9 -3
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +9 -9
- data/lib/pulp_deb_client/models/{repository_add_remove_content.rb → apt_repository_add_remove_content.rb} +66 -8
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +13 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +13 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +17 -5
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +17 -5
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +74 -4
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +65 -4
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +26 -4
- data/lib/pulp_deb_client/models/deb_package_response.rb +26 -4
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +56 -4
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +26 -4
- data/lib/pulp_deb_client/models/nested_role.rb +1 -1
- data/lib/pulp_deb_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +17 -5
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +74 -4
- data/lib/pulp_deb_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +1 -1
- data/spec/api/content_installer_packages_api_spec.rb +1 -1
- data/spec/api/content_package_release_components_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -2
- data/spec/api/content_release_architectures_api_spec.rb +3 -1
- data/spec/api/repositories_apt_api_spec.rb +1 -1
- data/spec/models/{repository_add_remove_content_spec.rb → apt_repository_add_remove_content_spec.rb} +18 -6
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- data/spec/models/deb_apt_remote_response_spec.rb +6 -0
- data/spec/models/deb_apt_remote_spec.rb +6 -0
- data/spec/models/deb_apt_repository_response_spec.rb +24 -0
- data/spec/models/deb_apt_repository_spec.rb +24 -0
- data/spec/models/deb_installer_package_response_spec.rb +12 -0
- data/spec/models/deb_package_response_spec.rb +12 -0
- data/spec/models/deb_release_architecture_response_spec.rb +12 -0
- data/spec/models/deb_release_architecture_spec.rb +12 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +24 -0
- metadata +88 -88
|
@@ -48,6 +48,9 @@ module PulpDebClient
|
|
|
48
48
|
# Whether or not to publish Legacy per-component-and-architecture Release files.
|
|
49
49
|
attr_accessor :publish_legacy_release_files
|
|
50
50
|
|
|
51
|
+
# Package metadata field names to omit from generated Packages indices. This only affects custom package metadata fields during structured publication. Core package metadata fields are never filtered. Matching is case-insensitive. Example: ['Phased-Update-Percentage'].
|
|
52
|
+
attr_accessor :excluded_package_metadata_fields
|
|
53
|
+
|
|
51
54
|
# How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
|
|
52
55
|
attr_accessor :layout
|
|
53
56
|
|
|
@@ -88,6 +91,7 @@ module PulpDebClient
|
|
|
88
91
|
:'signing_service' => :'signing_service',
|
|
89
92
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
90
93
|
:'publish_legacy_release_files' => :'publish_legacy_release_files',
|
|
94
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields',
|
|
91
95
|
:'layout' => :'layout'
|
|
92
96
|
}
|
|
93
97
|
end
|
|
@@ -112,6 +116,7 @@ module PulpDebClient
|
|
|
112
116
|
:'signing_service' => :'String',
|
|
113
117
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
114
118
|
:'publish_legacy_release_files' => :'Boolean',
|
|
119
|
+
:'excluded_package_metadata_fields' => :'Array<String>',
|
|
115
120
|
:'layout' => :'LayoutEnum'
|
|
116
121
|
}
|
|
117
122
|
end
|
|
@@ -191,6 +196,12 @@ module PulpDebClient
|
|
|
191
196
|
self.publish_legacy_release_files = false
|
|
192
197
|
end
|
|
193
198
|
|
|
199
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
200
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
201
|
+
self.excluded_package_metadata_fields = value
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
194
205
|
if attributes.key?(:'layout')
|
|
195
206
|
self.layout = attributes[:'layout']
|
|
196
207
|
end
|
|
@@ -228,6 +239,7 @@ module PulpDebClient
|
|
|
228
239
|
signing_service == o.signing_service &&
|
|
229
240
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
230
241
|
publish_legacy_release_files == o.publish_legacy_release_files &&
|
|
242
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields &&
|
|
231
243
|
layout == o.layout
|
|
232
244
|
end
|
|
233
245
|
|
|
@@ -240,7 +252,7 @@ module PulpDebClient
|
|
|
240
252
|
# Calculates hash code according to all attributes.
|
|
241
253
|
# @return [Integer] Hash code
|
|
242
254
|
def hash
|
|
243
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, layout].hash
|
|
255
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, excluded_package_metadata_fields, layout].hash
|
|
244
256
|
end
|
|
245
257
|
|
|
246
258
|
# Builds the object from hash
|
|
@@ -84,7 +84,7 @@ module PulpDebClient
|
|
|
84
84
|
# Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\".
|
|
85
85
|
attr_accessor :components
|
|
86
86
|
|
|
87
|
-
# Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A
|
|
87
|
+
# Whitespace separated list of architectures to sync. If none are supplied, all that are available will be synchronized. A sync will download the intersection of the architectures provided via this field and those provided by the relevant Release file. Architecture variants should be specified as they appear in the Release file, for example \"amd64v3\". Architecture=\"all\" is always synchronized and does not need to be provided here.
|
|
88
88
|
attr_accessor :architectures
|
|
89
89
|
|
|
90
90
|
# Sync source packages
|
|
@@ -102,6 +102,9 @@ module PulpDebClient
|
|
|
102
102
|
# By default, upstream repositories that declare architectures and corresponding package indices in their Release files without actually publishing them, will fail to synchronize. Set this flag to True to allow the synchronization of such \"partial mirrors\" instead. Alternatively, you could make your remote filter by architectures for which the upstream repository does have indices.
|
|
103
103
|
attr_accessor :ignore_missing_package_indices
|
|
104
104
|
|
|
105
|
+
# Package metadata field names to drop while syncing package indices. Only custom package metadata fields are affected. Core fields such as Package, Version, Architecture, Filename, checksums, and Size are never filtered. Matching is case-insensitive. Example: ['Phased-Update-Percentage'].
|
|
106
|
+
attr_accessor :excluded_package_metadata_fields
|
|
107
|
+
|
|
105
108
|
class EnumAttributeValidator
|
|
106
109
|
attr_reader :datatype
|
|
107
110
|
attr_reader :allowable_values
|
|
@@ -155,7 +158,8 @@ module PulpDebClient
|
|
|
155
158
|
:'sync_udebs' => :'sync_udebs',
|
|
156
159
|
:'sync_installer' => :'sync_installer',
|
|
157
160
|
:'gpgkey' => :'gpgkey',
|
|
158
|
-
:'ignore_missing_package_indices' => :'ignore_missing_package_indices'
|
|
161
|
+
:'ignore_missing_package_indices' => :'ignore_missing_package_indices',
|
|
162
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
159
163
|
}
|
|
160
164
|
end
|
|
161
165
|
|
|
@@ -195,7 +199,8 @@ module PulpDebClient
|
|
|
195
199
|
:'sync_udebs' => :'Boolean',
|
|
196
200
|
:'sync_installer' => :'Boolean',
|
|
197
201
|
:'gpgkey' => :'String',
|
|
198
|
-
:'ignore_missing_package_indices' => :'Boolean'
|
|
202
|
+
:'ignore_missing_package_indices' => :'Boolean',
|
|
203
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
199
204
|
}
|
|
200
205
|
end
|
|
201
206
|
|
|
@@ -363,6 +368,12 @@ module PulpDebClient
|
|
|
363
368
|
if attributes.key?(:'ignore_missing_package_indices')
|
|
364
369
|
self.ignore_missing_package_indices = attributes[:'ignore_missing_package_indices']
|
|
365
370
|
end
|
|
371
|
+
|
|
372
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
373
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
374
|
+
self.excluded_package_metadata_fields = value
|
|
375
|
+
end
|
|
376
|
+
end
|
|
366
377
|
end
|
|
367
378
|
|
|
368
379
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -725,7 +736,8 @@ module PulpDebClient
|
|
|
725
736
|
sync_udebs == o.sync_udebs &&
|
|
726
737
|
sync_installer == o.sync_installer &&
|
|
727
738
|
gpgkey == o.gpgkey &&
|
|
728
|
-
ignore_missing_package_indices == o.ignore_missing_package_indices
|
|
739
|
+
ignore_missing_package_indices == o.ignore_missing_package_indices &&
|
|
740
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
729
741
|
end
|
|
730
742
|
|
|
731
743
|
# @see the `==` method
|
|
@@ -737,7 +749,7 @@ module PulpDebClient
|
|
|
737
749
|
# Calculates hash code according to all attributes.
|
|
738
750
|
# @return [Integer] Hash code
|
|
739
751
|
def hash
|
|
740
|
-
[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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
|
752
|
+
[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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices, excluded_package_metadata_fields].hash
|
|
741
753
|
end
|
|
742
754
|
|
|
743
755
|
# Builds the object from hash
|
|
@@ -83,7 +83,7 @@ module PulpDebClient
|
|
|
83
83
|
# Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\".
|
|
84
84
|
attr_accessor :components
|
|
85
85
|
|
|
86
|
-
# Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A
|
|
86
|
+
# Whitespace separated list of architectures to sync. If none are supplied, all that are available will be synchronized. A sync will download the intersection of the architectures provided via this field and those provided by the relevant Release file. Architecture variants should be specified as they appear in the Release file, for example \"amd64v3\". Architecture=\"all\" is always synchronized and does not need to be provided here.
|
|
87
87
|
attr_accessor :architectures
|
|
88
88
|
|
|
89
89
|
# Sync source packages
|
|
@@ -101,6 +101,9 @@ module PulpDebClient
|
|
|
101
101
|
# By default, upstream repositories that declare architectures and corresponding package indices in their Release files without actually publishing them, will fail to synchronize. Set this flag to True to allow the synchronization of such \"partial mirrors\" instead. Alternatively, you could make your remote filter by architectures for which the upstream repository does have indices.
|
|
102
102
|
attr_accessor :ignore_missing_package_indices
|
|
103
103
|
|
|
104
|
+
# Package metadata field names to drop while syncing package indices. Only custom package metadata fields are affected. Core fields such as Package, Version, Architecture, Filename, checksums, and Size are never filtered. Matching is case-insensitive. Example: ['Phased-Update-Percentage'].
|
|
105
|
+
attr_accessor :excluded_package_metadata_fields
|
|
106
|
+
|
|
104
107
|
class EnumAttributeValidator
|
|
105
108
|
attr_reader :datatype
|
|
106
109
|
attr_reader :allowable_values
|
|
@@ -154,7 +157,8 @@ module PulpDebClient
|
|
|
154
157
|
:'sync_udebs' => :'sync_udebs',
|
|
155
158
|
:'sync_installer' => :'sync_installer',
|
|
156
159
|
:'gpgkey' => :'gpgkey',
|
|
157
|
-
:'ignore_missing_package_indices' => :'ignore_missing_package_indices'
|
|
160
|
+
:'ignore_missing_package_indices' => :'ignore_missing_package_indices',
|
|
161
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
158
162
|
}
|
|
159
163
|
end
|
|
160
164
|
|
|
@@ -194,7 +198,8 @@ module PulpDebClient
|
|
|
194
198
|
:'sync_udebs' => :'Boolean',
|
|
195
199
|
:'sync_installer' => :'Boolean',
|
|
196
200
|
:'gpgkey' => :'String',
|
|
197
|
-
:'ignore_missing_package_indices' => :'Boolean'
|
|
201
|
+
:'ignore_missing_package_indices' => :'Boolean',
|
|
202
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
198
203
|
}
|
|
199
204
|
end
|
|
200
205
|
|
|
@@ -359,6 +364,12 @@ module PulpDebClient
|
|
|
359
364
|
if attributes.key?(:'ignore_missing_package_indices')
|
|
360
365
|
self.ignore_missing_package_indices = attributes[:'ignore_missing_package_indices']
|
|
361
366
|
end
|
|
367
|
+
|
|
368
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
369
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
370
|
+
self.excluded_package_metadata_fields = value
|
|
371
|
+
end
|
|
372
|
+
end
|
|
362
373
|
end
|
|
363
374
|
|
|
364
375
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -499,7 +510,8 @@ module PulpDebClient
|
|
|
499
510
|
sync_udebs == o.sync_udebs &&
|
|
500
511
|
sync_installer == o.sync_installer &&
|
|
501
512
|
gpgkey == o.gpgkey &&
|
|
502
|
-
ignore_missing_package_indices == o.ignore_missing_package_indices
|
|
513
|
+
ignore_missing_package_indices == o.ignore_missing_package_indices &&
|
|
514
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
503
515
|
end
|
|
504
516
|
|
|
505
517
|
# @see the `==` method
|
|
@@ -511,7 +523,7 @@ module PulpDebClient
|
|
|
511
523
|
# Calculates hash code according to all attributes.
|
|
512
524
|
# @return [Integer] Hash code
|
|
513
525
|
def hash
|
|
514
|
-
[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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
|
526
|
+
[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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices, excluded_package_metadata_fields].hash
|
|
515
527
|
end
|
|
516
528
|
|
|
517
529
|
# Builds the object from hash
|
|
@@ -45,6 +45,18 @@ module PulpDebClient
|
|
|
45
45
|
# A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
|
|
46
46
|
attr_accessor :signing_service_release_overrides
|
|
47
47
|
|
|
48
|
+
# A dictionary of Release distributions and the Package Signing Fingerprints they should use. Example: {\"bionic\": \"v4:7FC42CD5F3D8EEC37FC42CD5F3D8EEC3DEADBEEF\"}
|
|
49
|
+
attr_accessor :package_signing_fingerprint_release_overrides
|
|
50
|
+
|
|
51
|
+
# A reference to an associated package signing service.
|
|
52
|
+
attr_accessor :package_signing_service
|
|
53
|
+
|
|
54
|
+
# The pubkey fingerprint to be passed to the package signing service. Format: 'v<N>:<hex-fingerprint>' or 'keyid:<16-hex-char>'. Example: 'v4:ABCDEF1234567890ABCDEF1234567890ABCDEF12'. The signing service will use that on signing operations related to this repository.
|
|
55
|
+
attr_accessor :package_signing_fingerprint
|
|
56
|
+
|
|
57
|
+
# Default package metadata field names to omit from generated Packages indices. This repository level setting is used when a publication does not specify its own excluded_package_metadata_fields. Only custom package metadata fields are affected. Core fields are never filtered. Matching is case-insensitive. Example: ['Phased-Update-Percentage'].
|
|
58
|
+
attr_accessor :excluded_package_metadata_fields
|
|
59
|
+
|
|
48
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
61
|
def self.attribute_map
|
|
50
62
|
{
|
|
@@ -57,7 +69,11 @@ module PulpDebClient
|
|
|
57
69
|
:'autopublish' => :'autopublish',
|
|
58
70
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
59
71
|
:'signing_service' => :'signing_service',
|
|
60
|
-
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
|
72
|
+
:'signing_service_release_overrides' => :'signing_service_release_overrides',
|
|
73
|
+
:'package_signing_fingerprint_release_overrides' => :'package_signing_fingerprint_release_overrides',
|
|
74
|
+
:'package_signing_service' => :'package_signing_service',
|
|
75
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
|
76
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
61
77
|
}
|
|
62
78
|
end
|
|
63
79
|
|
|
@@ -78,7 +94,11 @@ module PulpDebClient
|
|
|
78
94
|
:'autopublish' => :'Boolean',
|
|
79
95
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
80
96
|
:'signing_service' => :'String',
|
|
81
|
-
:'signing_service_release_overrides' => :'Hash<String, String>'
|
|
97
|
+
:'signing_service_release_overrides' => :'Hash<String, String>',
|
|
98
|
+
:'package_signing_fingerprint_release_overrides' => :'Hash<String, String>',
|
|
99
|
+
:'package_signing_service' => :'String',
|
|
100
|
+
:'package_signing_fingerprint' => :'String',
|
|
101
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
82
102
|
}
|
|
83
103
|
end
|
|
84
104
|
|
|
@@ -90,6 +110,8 @@ module PulpDebClient
|
|
|
90
110
|
:'retain_checkpoints',
|
|
91
111
|
:'remote',
|
|
92
112
|
:'signing_service',
|
|
113
|
+
:'package_signing_service',
|
|
114
|
+
:'package_signing_fingerprint',
|
|
93
115
|
])
|
|
94
116
|
end
|
|
95
117
|
|
|
@@ -155,6 +177,26 @@ module PulpDebClient
|
|
|
155
177
|
self.signing_service_release_overrides = value
|
|
156
178
|
end
|
|
157
179
|
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'package_signing_fingerprint_release_overrides')
|
|
182
|
+
if (value = attributes[:'package_signing_fingerprint_release_overrides']).is_a?(Hash)
|
|
183
|
+
self.package_signing_fingerprint_release_overrides = value
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'package_signing_service')
|
|
188
|
+
self.package_signing_service = attributes[:'package_signing_service']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'package_signing_fingerprint')
|
|
192
|
+
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
196
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
197
|
+
self.excluded_package_metadata_fields = value
|
|
198
|
+
end
|
|
199
|
+
end
|
|
158
200
|
end
|
|
159
201
|
|
|
160
202
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -182,6 +224,14 @@ module PulpDebClient
|
|
|
182
224
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
183
225
|
end
|
|
184
226
|
|
|
227
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
228
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.')
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
232
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.')
|
|
233
|
+
end
|
|
234
|
+
|
|
185
235
|
invalid_properties
|
|
186
236
|
end
|
|
187
237
|
|
|
@@ -194,6 +244,8 @@ module PulpDebClient
|
|
|
194
244
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
195
245
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
196
246
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
247
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
248
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
197
249
|
true
|
|
198
250
|
end
|
|
199
251
|
|
|
@@ -241,6 +293,20 @@ module PulpDebClient
|
|
|
241
293
|
@retain_checkpoints = retain_checkpoints
|
|
242
294
|
end
|
|
243
295
|
|
|
296
|
+
# Custom attribute writer method with validation
|
|
297
|
+
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
298
|
+
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
299
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 68
|
|
300
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.'
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length < 1
|
|
304
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.'
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
@package_signing_fingerprint = package_signing_fingerprint
|
|
308
|
+
end
|
|
309
|
+
|
|
244
310
|
# Checks equality by comparing each attribute.
|
|
245
311
|
# @param [Object] Object to be compared
|
|
246
312
|
def ==(o)
|
|
@@ -255,7 +321,11 @@ module PulpDebClient
|
|
|
255
321
|
autopublish == o.autopublish &&
|
|
256
322
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
257
323
|
signing_service == o.signing_service &&
|
|
258
|
-
signing_service_release_overrides == o.signing_service_release_overrides
|
|
324
|
+
signing_service_release_overrides == o.signing_service_release_overrides &&
|
|
325
|
+
package_signing_fingerprint_release_overrides == o.package_signing_fingerprint_release_overrides &&
|
|
326
|
+
package_signing_service == o.package_signing_service &&
|
|
327
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
|
328
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
259
329
|
end
|
|
260
330
|
|
|
261
331
|
# @see the `==` method
|
|
@@ -267,7 +337,7 @@ module PulpDebClient
|
|
|
267
337
|
# Calculates hash code according to all attributes.
|
|
268
338
|
# @return [Integer] Hash code
|
|
269
339
|
def hash
|
|
270
|
-
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
340
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides, package_signing_fingerprint_release_overrides, package_signing_service, package_signing_fingerprint, excluded_package_metadata_fields].hash
|
|
271
341
|
end
|
|
272
342
|
|
|
273
343
|
# Builds the object from hash
|
|
@@ -60,6 +60,18 @@ module PulpDebClient
|
|
|
60
60
|
# A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
|
|
61
61
|
attr_accessor :signing_service_release_overrides
|
|
62
62
|
|
|
63
|
+
# A dictionary of Release distributions and the Package Signing Fingerprints they should use. Example: {\"bionic\": \"v4:7FC42CD5F3D8EEC37FC42CD5F3D8EEC3DEADBEEF\"}
|
|
64
|
+
attr_accessor :package_signing_fingerprint_release_overrides
|
|
65
|
+
|
|
66
|
+
# A reference to an associated package signing service.
|
|
67
|
+
attr_accessor :package_signing_service
|
|
68
|
+
|
|
69
|
+
# The pubkey fingerprint to be passed to the package signing service. Format: 'v<N>:<hex-fingerprint>' or 'keyid:<16-hex-char>'. Example: 'v4:ABCDEF1234567890ABCDEF1234567890ABCDEF12'. The signing service will use that on signing operations related to this repository.
|
|
70
|
+
attr_accessor :package_signing_fingerprint
|
|
71
|
+
|
|
72
|
+
# Default package metadata field names to omit from generated Packages indices. This repository level setting is used when a publication does not specify its own excluded_package_metadata_fields. Only custom package metadata fields are affected. Core fields are never filtered. Matching is case-insensitive. Example: ['Phased-Update-Percentage'].
|
|
73
|
+
attr_accessor :excluded_package_metadata_fields
|
|
74
|
+
|
|
63
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
76
|
def self.attribute_map
|
|
65
77
|
{
|
|
@@ -78,7 +90,11 @@ module PulpDebClient
|
|
|
78
90
|
:'autopublish' => :'autopublish',
|
|
79
91
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
80
92
|
:'signing_service' => :'signing_service',
|
|
81
|
-
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
|
93
|
+
:'signing_service_release_overrides' => :'signing_service_release_overrides',
|
|
94
|
+
:'package_signing_fingerprint_release_overrides' => :'package_signing_fingerprint_release_overrides',
|
|
95
|
+
:'package_signing_service' => :'package_signing_service',
|
|
96
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
|
97
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
82
98
|
}
|
|
83
99
|
end
|
|
84
100
|
|
|
@@ -105,7 +121,11 @@ module PulpDebClient
|
|
|
105
121
|
:'autopublish' => :'Boolean',
|
|
106
122
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
107
123
|
:'signing_service' => :'String',
|
|
108
|
-
:'signing_service_release_overrides' => :'Hash<String, String>'
|
|
124
|
+
:'signing_service_release_overrides' => :'Hash<String, String>',
|
|
125
|
+
:'package_signing_fingerprint_release_overrides' => :'Hash<String, String>',
|
|
126
|
+
:'package_signing_service' => :'String',
|
|
127
|
+
:'package_signing_fingerprint' => :'String',
|
|
128
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
109
129
|
}
|
|
110
130
|
end
|
|
111
131
|
|
|
@@ -117,6 +137,8 @@ module PulpDebClient
|
|
|
117
137
|
:'retain_checkpoints',
|
|
118
138
|
:'remote',
|
|
119
139
|
:'signing_service',
|
|
140
|
+
:'package_signing_service',
|
|
141
|
+
:'package_signing_fingerprint',
|
|
120
142
|
])
|
|
121
143
|
end
|
|
122
144
|
|
|
@@ -206,6 +228,26 @@ module PulpDebClient
|
|
|
206
228
|
self.signing_service_release_overrides = value
|
|
207
229
|
end
|
|
208
230
|
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'package_signing_fingerprint_release_overrides')
|
|
233
|
+
if (value = attributes[:'package_signing_fingerprint_release_overrides']).is_a?(Hash)
|
|
234
|
+
self.package_signing_fingerprint_release_overrides = value
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'package_signing_service')
|
|
239
|
+
self.package_signing_service = attributes[:'package_signing_service']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'package_signing_fingerprint')
|
|
243
|
+
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
247
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
248
|
+
self.excluded_package_metadata_fields = value
|
|
249
|
+
end
|
|
250
|
+
end
|
|
209
251
|
end
|
|
210
252
|
|
|
211
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -225,6 +267,10 @@ module PulpDebClient
|
|
|
225
267
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
226
268
|
end
|
|
227
269
|
|
|
270
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
271
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.')
|
|
272
|
+
end
|
|
273
|
+
|
|
228
274
|
invalid_properties
|
|
229
275
|
end
|
|
230
276
|
|
|
@@ -235,6 +281,7 @@ module PulpDebClient
|
|
|
235
281
|
return false if @name.nil?
|
|
236
282
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
237
283
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
284
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
|
|
238
285
|
true
|
|
239
286
|
end
|
|
240
287
|
|
|
@@ -258,6 +305,16 @@ module PulpDebClient
|
|
|
258
305
|
@retain_checkpoints = retain_checkpoints
|
|
259
306
|
end
|
|
260
307
|
|
|
308
|
+
# Custom attribute writer method with validation
|
|
309
|
+
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
310
|
+
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
311
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 68
|
|
312
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
@package_signing_fingerprint = package_signing_fingerprint
|
|
316
|
+
end
|
|
317
|
+
|
|
261
318
|
# Checks equality by comparing each attribute.
|
|
262
319
|
# @param [Object] Object to be compared
|
|
263
320
|
def ==(o)
|
|
@@ -278,7 +335,11 @@ module PulpDebClient
|
|
|
278
335
|
autopublish == o.autopublish &&
|
|
279
336
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
280
337
|
signing_service == o.signing_service &&
|
|
281
|
-
signing_service_release_overrides == o.signing_service_release_overrides
|
|
338
|
+
signing_service_release_overrides == o.signing_service_release_overrides &&
|
|
339
|
+
package_signing_fingerprint_release_overrides == o.package_signing_fingerprint_release_overrides &&
|
|
340
|
+
package_signing_service == o.package_signing_service &&
|
|
341
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
|
342
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
282
343
|
end
|
|
283
344
|
|
|
284
345
|
# @see the `==` method
|
|
@@ -290,7 +351,7 @@ module PulpDebClient
|
|
|
290
351
|
# Calculates hash code according to all attributes.
|
|
291
352
|
# @return [Integer] Hash code
|
|
292
353
|
def hash
|
|
293
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
354
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides, package_signing_fingerprint_release_overrides, package_signing_service, package_signing_fingerprint, excluded_package_metadata_fields].hash
|
|
294
355
|
end
|
|
295
356
|
|
|
296
357
|
# Builds the object from hash
|
|
@@ -114,6 +114,11 @@ module PulpDebClient
|
|
|
114
114
|
|
|
115
115
|
attr_accessor :replaces
|
|
116
116
|
|
|
117
|
+
# List of signing key fingerprints used to sign this package.
|
|
118
|
+
attr_accessor :signing_keys
|
|
119
|
+
|
|
120
|
+
attr_accessor :metadata_sha256
|
|
121
|
+
|
|
117
122
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
118
123
|
def self.attribute_map
|
|
119
124
|
{
|
|
@@ -159,7 +164,9 @@ module PulpDebClient
|
|
|
159
164
|
:'enhances' => :'enhances',
|
|
160
165
|
:'pre_depends' => :'pre_depends',
|
|
161
166
|
:'provides' => :'provides',
|
|
162
|
-
:'replaces' => :'replaces'
|
|
167
|
+
:'replaces' => :'replaces',
|
|
168
|
+
:'signing_keys' => :'signing_keys',
|
|
169
|
+
:'metadata_sha256' => :'metadata_sha256'
|
|
163
170
|
}
|
|
164
171
|
end
|
|
165
172
|
|
|
@@ -213,13 +220,16 @@ module PulpDebClient
|
|
|
213
220
|
:'enhances' => :'String',
|
|
214
221
|
:'pre_depends' => :'String',
|
|
215
222
|
:'provides' => :'String',
|
|
216
|
-
:'replaces' => :'String'
|
|
223
|
+
:'replaces' => :'String',
|
|
224
|
+
:'signing_keys' => :'Array<String>',
|
|
225
|
+
:'metadata_sha256' => :'String'
|
|
217
226
|
}
|
|
218
227
|
end
|
|
219
228
|
|
|
220
229
|
# List of attributes with nullable: true
|
|
221
230
|
def self.openapi_nullable
|
|
222
231
|
Set.new([
|
|
232
|
+
:'signing_keys',
|
|
223
233
|
])
|
|
224
234
|
end
|
|
225
235
|
|
|
@@ -411,6 +421,16 @@ module PulpDebClient
|
|
|
411
421
|
if attributes.key?(:'replaces')
|
|
412
422
|
self.replaces = attributes[:'replaces']
|
|
413
423
|
end
|
|
424
|
+
|
|
425
|
+
if attributes.key?(:'signing_keys')
|
|
426
|
+
if (value = attributes[:'signing_keys']).is_a?(Array)
|
|
427
|
+
self.signing_keys = value
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if attributes.key?(:'metadata_sha256')
|
|
432
|
+
self.metadata_sha256 = attributes[:'metadata_sha256']
|
|
433
|
+
end
|
|
414
434
|
end
|
|
415
435
|
|
|
416
436
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -475,7 +495,9 @@ module PulpDebClient
|
|
|
475
495
|
enhances == o.enhances &&
|
|
476
496
|
pre_depends == o.pre_depends &&
|
|
477
497
|
provides == o.provides &&
|
|
478
|
-
replaces == o.replaces
|
|
498
|
+
replaces == o.replaces &&
|
|
499
|
+
signing_keys == o.signing_keys &&
|
|
500
|
+
metadata_sha256 == o.metadata_sha256
|
|
479
501
|
end
|
|
480
502
|
|
|
481
503
|
# @see the `==` method
|
|
@@ -487,7 +509,7 @@ module PulpDebClient
|
|
|
487
509
|
# Calculates hash code according to all attributes.
|
|
488
510
|
# @return [Integer] Hash code
|
|
489
511
|
def hash
|
|
490
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces].hash
|
|
512
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces, signing_keys, metadata_sha256].hash
|
|
491
513
|
end
|
|
492
514
|
|
|
493
515
|
# Builds the object from hash
|
|
@@ -120,6 +120,11 @@ module PulpDebClient
|
|
|
120
120
|
|
|
121
121
|
attr_accessor :replaces
|
|
122
122
|
|
|
123
|
+
# List of signing key fingerprints used to sign this package.
|
|
124
|
+
attr_accessor :signing_keys
|
|
125
|
+
|
|
126
|
+
attr_accessor :metadata_sha256
|
|
127
|
+
|
|
123
128
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
124
129
|
def self.attribute_map
|
|
125
130
|
{
|
|
@@ -167,7 +172,9 @@ module PulpDebClient
|
|
|
167
172
|
:'enhances' => :'enhances',
|
|
168
173
|
:'pre_depends' => :'pre_depends',
|
|
169
174
|
:'provides' => :'provides',
|
|
170
|
-
:'replaces' => :'replaces'
|
|
175
|
+
:'replaces' => :'replaces',
|
|
176
|
+
:'signing_keys' => :'signing_keys',
|
|
177
|
+
:'metadata_sha256' => :'metadata_sha256'
|
|
171
178
|
}
|
|
172
179
|
end
|
|
173
180
|
|
|
@@ -223,13 +230,16 @@ module PulpDebClient
|
|
|
223
230
|
:'enhances' => :'String',
|
|
224
231
|
:'pre_depends' => :'String',
|
|
225
232
|
:'provides' => :'String',
|
|
226
|
-
:'replaces' => :'String'
|
|
233
|
+
:'replaces' => :'String',
|
|
234
|
+
:'signing_keys' => :'Array<String>',
|
|
235
|
+
:'metadata_sha256' => :'String'
|
|
227
236
|
}
|
|
228
237
|
end
|
|
229
238
|
|
|
230
239
|
# List of attributes with nullable: true
|
|
231
240
|
def self.openapi_nullable
|
|
232
241
|
Set.new([
|
|
242
|
+
:'signing_keys',
|
|
233
243
|
])
|
|
234
244
|
end
|
|
235
245
|
|
|
@@ -429,6 +439,16 @@ module PulpDebClient
|
|
|
429
439
|
if attributes.key?(:'replaces')
|
|
430
440
|
self.replaces = attributes[:'replaces']
|
|
431
441
|
end
|
|
442
|
+
|
|
443
|
+
if attributes.key?(:'signing_keys')
|
|
444
|
+
if (value = attributes[:'signing_keys']).is_a?(Array)
|
|
445
|
+
self.signing_keys = value
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
if attributes.key?(:'metadata_sha256')
|
|
450
|
+
self.metadata_sha256 = attributes[:'metadata_sha256']
|
|
451
|
+
end
|
|
432
452
|
end
|
|
433
453
|
|
|
434
454
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -495,7 +515,9 @@ module PulpDebClient
|
|
|
495
515
|
enhances == o.enhances &&
|
|
496
516
|
pre_depends == o.pre_depends &&
|
|
497
517
|
provides == o.provides &&
|
|
498
|
-
replaces == o.replaces
|
|
518
|
+
replaces == o.replaces &&
|
|
519
|
+
signing_keys == o.signing_keys &&
|
|
520
|
+
metadata_sha256 == o.metadata_sha256
|
|
499
521
|
end
|
|
500
522
|
|
|
501
523
|
# @see the `==` method
|
|
@@ -507,7 +529,7 @@ module PulpDebClient
|
|
|
507
529
|
# Calculates hash code according to all attributes.
|
|
508
530
|
# @return [Integer] Hash code
|
|
509
531
|
def hash
|
|
510
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, distribution, component, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces].hash
|
|
532
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, distribution, component, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces, signing_keys, metadata_sha256].hash
|
|
511
533
|
end
|
|
512
534
|
|
|
513
535
|
# Builds the object from hash
|