pulp_deb_client 3.10.0 → 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/ContentPackagesApi.md +2 -2
- data/docs/DebAptPublication.md +2 -0
- data/docs/DebAptPublicationResponse.md +2 -0
- data/docs/DebAptRemote.md +3 -1
- data/docs/DebAptRemoteResponse.md +3 -1
- data/docs/DebAptRepository.md +3 -1
- data/docs/DebAptRepositoryResponse.md +3 -1
- data/docs/DebInstallerPackageResponse.md +3 -1
- data/docs/DebPackageResponse.md +3 -1
- data/docs/PatcheddebAptRemote.md +3 -1
- data/docs/PatcheddebAptRepository.md +3 -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_packages_api.rb +3 -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 +16 -4
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +16 -4
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +17 -5
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -5
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_package_response.rb +14 -5
- 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 +16 -4
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +17 -5
- 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_packages_api_spec.rb +1 -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 +6 -0
- data/spec/models/deb_apt_repository_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
- metadata +88 -88
|
@@ -486,23 +486,23 @@ module PulpDebClient
|
|
|
486
486
|
# Modify Repository Content
|
|
487
487
|
# Trigger an asynchronous task to create a new repository version.
|
|
488
488
|
# @param deb_apt_repository_href [String]
|
|
489
|
-
# @param
|
|
489
|
+
# @param apt_repository_add_remove_content [AptRepositoryAddRemoveContent]
|
|
490
490
|
# @param [Hash] opts the optional parameters
|
|
491
491
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
492
492
|
# @return [AsyncOperationResponse]
|
|
493
|
-
def modify(deb_apt_repository_href,
|
|
494
|
-
data, _status_code, _headers = modify_with_http_info(deb_apt_repository_href,
|
|
493
|
+
def modify(deb_apt_repository_href, apt_repository_add_remove_content, opts = {})
|
|
494
|
+
data, _status_code, _headers = modify_with_http_info(deb_apt_repository_href, apt_repository_add_remove_content, opts)
|
|
495
495
|
data
|
|
496
496
|
end
|
|
497
497
|
|
|
498
498
|
# Modify Repository Content
|
|
499
499
|
# Trigger an asynchronous task to create a new repository version.
|
|
500
500
|
# @param deb_apt_repository_href [String]
|
|
501
|
-
# @param
|
|
501
|
+
# @param apt_repository_add_remove_content [AptRepositoryAddRemoveContent]
|
|
502
502
|
# @param [Hash] opts the optional parameters
|
|
503
503
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
504
504
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
505
|
-
def modify_with_http_info(deb_apt_repository_href,
|
|
505
|
+
def modify_with_http_info(deb_apt_repository_href, apt_repository_add_remove_content, opts = {})
|
|
506
506
|
if @api_client.config.debugging
|
|
507
507
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.modify ...'
|
|
508
508
|
end
|
|
@@ -510,9 +510,9 @@ module PulpDebClient
|
|
|
510
510
|
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
|
511
511
|
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.modify"
|
|
512
512
|
end
|
|
513
|
-
# verify the required parameter '
|
|
514
|
-
if @api_client.config.client_side_validation &&
|
|
515
|
-
fail ArgumentError, "Missing the required parameter '
|
|
513
|
+
# verify the required parameter 'apt_repository_add_remove_content' is set
|
|
514
|
+
if @api_client.config.client_side_validation && apt_repository_add_remove_content.nil?
|
|
515
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_add_remove_content' when calling RepositoriesAptApi.modify"
|
|
516
516
|
end
|
|
517
517
|
# resource path
|
|
518
518
|
local_var_path = '{deb_apt_repository_href}modify/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
|
@@ -535,7 +535,7 @@ module PulpDebClient
|
|
|
535
535
|
form_params = opts[:form_params] || {}
|
|
536
536
|
|
|
537
537
|
# http body (model)
|
|
538
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
538
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(apt_repository_add_remove_content)
|
|
539
539
|
|
|
540
540
|
# return_type
|
|
541
541
|
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module PulpDebClient
|
|
17
|
-
# Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the
|
|
18
|
-
class
|
|
17
|
+
# Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the `ref_name` attribute in the ModelSerializers's `Meta` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
18
|
+
class AptRepositoryAddRemoveContent
|
|
19
19
|
# A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
|
|
20
20
|
attr_accessor :add_content_units
|
|
21
21
|
|
|
@@ -28,13 +28,21 @@ module PulpDebClient
|
|
|
28
28
|
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
29
|
attr_accessor :overwrite
|
|
30
30
|
|
|
31
|
+
# Name of the distribution any packages from add_content_units or remove_content_units should be added to or removed from. Defaults to DEFAULT_DISTRIBUTION if only a component is provided.
|
|
32
|
+
attr_accessor :distribution
|
|
33
|
+
|
|
34
|
+
# Name of the component any packages from add_content_units or remove_content_units should be added to or removed from. Defaults to DEFAULT_COMPONENT if only a distribution is provided..
|
|
35
|
+
attr_accessor :component
|
|
36
|
+
|
|
31
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
38
|
def self.attribute_map
|
|
33
39
|
{
|
|
34
40
|
:'add_content_units' => :'add_content_units',
|
|
35
41
|
:'remove_content_units' => :'remove_content_units',
|
|
36
42
|
:'base_version' => :'base_version',
|
|
37
|
-
:'overwrite' => :'overwrite'
|
|
43
|
+
:'overwrite' => :'overwrite',
|
|
44
|
+
:'distribution' => :'distribution',
|
|
45
|
+
:'component' => :'component'
|
|
38
46
|
}
|
|
39
47
|
end
|
|
40
48
|
|
|
@@ -49,7 +57,9 @@ module PulpDebClient
|
|
|
49
57
|
:'add_content_units' => :'Array<String>',
|
|
50
58
|
:'remove_content_units' => :'Array<String>',
|
|
51
59
|
:'base_version' => :'String',
|
|
52
|
-
:'overwrite' => :'Boolean'
|
|
60
|
+
:'overwrite' => :'Boolean',
|
|
61
|
+
:'distribution' => :'String',
|
|
62
|
+
:'component' => :'String'
|
|
53
63
|
}
|
|
54
64
|
end
|
|
55
65
|
|
|
@@ -63,13 +73,13 @@ module PulpDebClient
|
|
|
63
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
74
|
def initialize(attributes = {})
|
|
65
75
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::AptRepositoryAddRemoveContent` initialize method"
|
|
67
77
|
end
|
|
68
78
|
|
|
69
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
81
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::AptRepositoryAddRemoveContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
83
|
end
|
|
74
84
|
h[k.to_sym] = v
|
|
75
85
|
}
|
|
@@ -95,6 +105,14 @@ module PulpDebClient
|
|
|
95
105
|
else
|
|
96
106
|
self.overwrite = true
|
|
97
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'distribution')
|
|
110
|
+
self.distribution = attributes[:'distribution']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'component')
|
|
114
|
+
self.component = attributes[:'component']
|
|
115
|
+
end
|
|
98
116
|
end
|
|
99
117
|
|
|
100
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -102,6 +120,14 @@ module PulpDebClient
|
|
|
102
120
|
def list_invalid_properties
|
|
103
121
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
104
122
|
invalid_properties = Array.new
|
|
123
|
+
if !@distribution.nil? && @distribution.to_s.length < 1
|
|
124
|
+
invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if !@component.nil? && @component.to_s.length < 1
|
|
128
|
+
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
|
129
|
+
end
|
|
130
|
+
|
|
105
131
|
invalid_properties
|
|
106
132
|
end
|
|
107
133
|
|
|
@@ -109,9 +135,39 @@ module PulpDebClient
|
|
|
109
135
|
# @return true if the model is valid
|
|
110
136
|
def valid?
|
|
111
137
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
138
|
+
return false if !@distribution.nil? && @distribution.to_s.length < 1
|
|
139
|
+
return false if !@component.nil? && @component.to_s.length < 1
|
|
112
140
|
true
|
|
113
141
|
end
|
|
114
142
|
|
|
143
|
+
# Custom attribute writer method with validation
|
|
144
|
+
# @param [Object] distribution Value to be assigned
|
|
145
|
+
def distribution=(distribution)
|
|
146
|
+
if distribution.nil?
|
|
147
|
+
fail ArgumentError, 'distribution cannot be nil'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if distribution.to_s.length < 1
|
|
151
|
+
fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@distribution = distribution
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Custom attribute writer method with validation
|
|
158
|
+
# @param [Object] component Value to be assigned
|
|
159
|
+
def component=(component)
|
|
160
|
+
if component.nil?
|
|
161
|
+
fail ArgumentError, 'component cannot be nil'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if component.to_s.length < 1
|
|
165
|
+
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@component = component
|
|
169
|
+
end
|
|
170
|
+
|
|
115
171
|
# Checks equality by comparing each attribute.
|
|
116
172
|
# @param [Object] Object to be compared
|
|
117
173
|
def ==(o)
|
|
@@ -120,7 +176,9 @@ module PulpDebClient
|
|
|
120
176
|
add_content_units == o.add_content_units &&
|
|
121
177
|
remove_content_units == o.remove_content_units &&
|
|
122
178
|
base_version == o.base_version &&
|
|
123
|
-
overwrite == o.overwrite
|
|
179
|
+
overwrite == o.overwrite &&
|
|
180
|
+
distribution == o.distribution &&
|
|
181
|
+
component == o.component
|
|
124
182
|
end
|
|
125
183
|
|
|
126
184
|
# @see the `==` method
|
|
@@ -132,7 +190,7 @@ module PulpDebClient
|
|
|
132
190
|
# Calculates hash code according to all attributes.
|
|
133
191
|
# @return [Integer] Hash code
|
|
134
192
|
def hash
|
|
135
|
-
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
193
|
+
[add_content_units, remove_content_units, base_version, overwrite, distribution, component].hash
|
|
136
194
|
end
|
|
137
195
|
|
|
138
196
|
# Builds the object from hash
|
|
@@ -19,7 +19,7 @@ module PulpDebClient
|
|
|
19
19
|
# A remote to sync from. This will override a remote set on repository.
|
|
20
20
|
attr_accessor :remote
|
|
21
21
|
|
|
22
|
-
# If
|
|
22
|
+
# If `True`, synchronization will remove all content that is not present in the remote repository. If `False`, sync will be additive only.
|
|
23
23
|
attr_accessor :mirror
|
|
24
24
|
|
|
25
25
|
# Using optimize sync, will skip the processing of metadata if the checksum has not changed since the last sync. This greately improves re-sync performance in such situations. If you feel the sync is missing something that has changed about the remote repository you are syncing, try using optimize=False for a full re-sync. Consider opening an issue on why we should not optimize in your use case.
|
|
@@ -37,6 +37,9 @@ module PulpDebClient
|
|
|
37
37
|
# Whether or not to publish Legacy per-component-and-architecture Release files.
|
|
38
38
|
attr_accessor :publish_legacy_release_files
|
|
39
39
|
|
|
40
|
+
# 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'].
|
|
41
|
+
attr_accessor :excluded_package_metadata_fields
|
|
42
|
+
|
|
40
43
|
# 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
|
|
41
44
|
attr_accessor :layout
|
|
42
45
|
|
|
@@ -73,6 +76,7 @@ module PulpDebClient
|
|
|
73
76
|
:'signing_service' => :'signing_service',
|
|
74
77
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
75
78
|
:'publish_legacy_release_files' => :'publish_legacy_release_files',
|
|
79
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields',
|
|
76
80
|
:'layout' => :'layout'
|
|
77
81
|
}
|
|
78
82
|
end
|
|
@@ -93,6 +97,7 @@ module PulpDebClient
|
|
|
93
97
|
:'signing_service' => :'String',
|
|
94
98
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
95
99
|
:'publish_legacy_release_files' => :'Boolean',
|
|
100
|
+
:'excluded_package_metadata_fields' => :'Array<String>',
|
|
96
101
|
:'layout' => :'LayoutEnum'
|
|
97
102
|
}
|
|
98
103
|
end
|
|
@@ -156,6 +161,12 @@ module PulpDebClient
|
|
|
156
161
|
self.publish_legacy_release_files = false
|
|
157
162
|
end
|
|
158
163
|
|
|
164
|
+
if attributes.key?(:'excluded_package_metadata_fields')
|
|
165
|
+
if (value = attributes[:'excluded_package_metadata_fields']).is_a?(Array)
|
|
166
|
+
self.excluded_package_metadata_fields = value
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
159
170
|
if attributes.key?(:'layout')
|
|
160
171
|
self.layout = attributes[:'layout']
|
|
161
172
|
end
|
|
@@ -189,6 +200,7 @@ module PulpDebClient
|
|
|
189
200
|
signing_service == o.signing_service &&
|
|
190
201
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
191
202
|
publish_legacy_release_files == o.publish_legacy_release_files &&
|
|
203
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields &&
|
|
192
204
|
layout == o.layout
|
|
193
205
|
end
|
|
194
206
|
|
|
@@ -201,7 +213,7 @@ module PulpDebClient
|
|
|
201
213
|
# Calculates hash code according to all attributes.
|
|
202
214
|
# @return [Integer] Hash code
|
|
203
215
|
def hash
|
|
204
|
-
[repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, layout].hash
|
|
216
|
+
[repository_version, repository, simple, structured, checkpoint, signing_service, publish_upstream_release_fields, publish_legacy_release_files, excluded_package_metadata_fields, layout].hash
|
|
205
217
|
end
|
|
206
218
|
|
|
207
219
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -54,6 +54,9 @@ module PulpDebClient
|
|
|
54
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
55
|
attr_accessor :package_signing_fingerprint
|
|
56
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
|
+
|
|
57
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
61
|
def self.attribute_map
|
|
59
62
|
{
|
|
@@ -69,7 +72,8 @@ module PulpDebClient
|
|
|
69
72
|
:'signing_service_release_overrides' => :'signing_service_release_overrides',
|
|
70
73
|
:'package_signing_fingerprint_release_overrides' => :'package_signing_fingerprint_release_overrides',
|
|
71
74
|
:'package_signing_service' => :'package_signing_service',
|
|
72
|
-
:'package_signing_fingerprint' => :'package_signing_fingerprint'
|
|
75
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
|
76
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
73
77
|
}
|
|
74
78
|
end
|
|
75
79
|
|
|
@@ -93,7 +97,8 @@ module PulpDebClient
|
|
|
93
97
|
:'signing_service_release_overrides' => :'Hash<String, String>',
|
|
94
98
|
:'package_signing_fingerprint_release_overrides' => :'Hash<String, String>',
|
|
95
99
|
:'package_signing_service' => :'String',
|
|
96
|
-
:'package_signing_fingerprint' => :'String'
|
|
100
|
+
:'package_signing_fingerprint' => :'String',
|
|
101
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
97
102
|
}
|
|
98
103
|
end
|
|
99
104
|
|
|
@@ -106,7 +111,7 @@ module PulpDebClient
|
|
|
106
111
|
:'remote',
|
|
107
112
|
:'signing_service',
|
|
108
113
|
:'package_signing_service',
|
|
109
|
-
:'package_signing_fingerprint'
|
|
114
|
+
:'package_signing_fingerprint',
|
|
110
115
|
])
|
|
111
116
|
end
|
|
112
117
|
|
|
@@ -186,6 +191,12 @@ module PulpDebClient
|
|
|
186
191
|
if attributes.key?(:'package_signing_fingerprint')
|
|
187
192
|
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
188
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
|
|
189
200
|
end
|
|
190
201
|
|
|
191
202
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -313,7 +324,8 @@ module PulpDebClient
|
|
|
313
324
|
signing_service_release_overrides == o.signing_service_release_overrides &&
|
|
314
325
|
package_signing_fingerprint_release_overrides == o.package_signing_fingerprint_release_overrides &&
|
|
315
326
|
package_signing_service == o.package_signing_service &&
|
|
316
|
-
package_signing_fingerprint == o.package_signing_fingerprint
|
|
327
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
|
328
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
317
329
|
end
|
|
318
330
|
|
|
319
331
|
# @see the `==` method
|
|
@@ -325,7 +337,7 @@ module PulpDebClient
|
|
|
325
337
|
# Calculates hash code according to all attributes.
|
|
326
338
|
# @return [Integer] Hash code
|
|
327
339
|
def hash
|
|
328
|
-
[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].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
|
|
329
341
|
end
|
|
330
342
|
|
|
331
343
|
# Builds the object from hash
|
|
@@ -69,6 +69,9 @@ module PulpDebClient
|
|
|
69
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
70
|
attr_accessor :package_signing_fingerprint
|
|
71
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
|
+
|
|
72
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
76
|
def self.attribute_map
|
|
74
77
|
{
|
|
@@ -90,7 +93,8 @@ module PulpDebClient
|
|
|
90
93
|
:'signing_service_release_overrides' => :'signing_service_release_overrides',
|
|
91
94
|
:'package_signing_fingerprint_release_overrides' => :'package_signing_fingerprint_release_overrides',
|
|
92
95
|
:'package_signing_service' => :'package_signing_service',
|
|
93
|
-
:'package_signing_fingerprint' => :'package_signing_fingerprint'
|
|
96
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
|
97
|
+
:'excluded_package_metadata_fields' => :'excluded_package_metadata_fields'
|
|
94
98
|
}
|
|
95
99
|
end
|
|
96
100
|
|
|
@@ -120,7 +124,8 @@ module PulpDebClient
|
|
|
120
124
|
:'signing_service_release_overrides' => :'Hash<String, String>',
|
|
121
125
|
:'package_signing_fingerprint_release_overrides' => :'Hash<String, String>',
|
|
122
126
|
:'package_signing_service' => :'String',
|
|
123
|
-
:'package_signing_fingerprint' => :'String'
|
|
127
|
+
:'package_signing_fingerprint' => :'String',
|
|
128
|
+
:'excluded_package_metadata_fields' => :'Array<String>'
|
|
124
129
|
}
|
|
125
130
|
end
|
|
126
131
|
|
|
@@ -133,7 +138,7 @@ module PulpDebClient
|
|
|
133
138
|
:'remote',
|
|
134
139
|
:'signing_service',
|
|
135
140
|
:'package_signing_service',
|
|
136
|
-
:'package_signing_fingerprint'
|
|
141
|
+
:'package_signing_fingerprint',
|
|
137
142
|
])
|
|
138
143
|
end
|
|
139
144
|
|
|
@@ -237,6 +242,12 @@ module PulpDebClient
|
|
|
237
242
|
if attributes.key?(:'package_signing_fingerprint')
|
|
238
243
|
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
239
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
|
|
240
251
|
end
|
|
241
252
|
|
|
242
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -327,7 +338,8 @@ module PulpDebClient
|
|
|
327
338
|
signing_service_release_overrides == o.signing_service_release_overrides &&
|
|
328
339
|
package_signing_fingerprint_release_overrides == o.package_signing_fingerprint_release_overrides &&
|
|
329
340
|
package_signing_service == o.package_signing_service &&
|
|
330
|
-
package_signing_fingerprint == o.package_signing_fingerprint
|
|
341
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
|
342
|
+
excluded_package_metadata_fields == o.excluded_package_metadata_fields
|
|
331
343
|
end
|
|
332
344
|
|
|
333
345
|
# @see the `==` method
|
|
@@ -339,7 +351,7 @@ module PulpDebClient
|
|
|
339
351
|
# Calculates hash code according to all attributes.
|
|
340
352
|
# @return [Integer] Hash code
|
|
341
353
|
def hash
|
|
342
|
-
[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].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
|
|
343
355
|
end
|
|
344
356
|
|
|
345
357
|
# Builds the object from hash
|
|
@@ -117,6 +117,8 @@ module PulpDebClient
|
|
|
117
117
|
# List of signing key fingerprints used to sign this package.
|
|
118
118
|
attr_accessor :signing_keys
|
|
119
119
|
|
|
120
|
+
attr_accessor :metadata_sha256
|
|
121
|
+
|
|
120
122
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
121
123
|
def self.attribute_map
|
|
122
124
|
{
|
|
@@ -163,7 +165,8 @@ module PulpDebClient
|
|
|
163
165
|
:'pre_depends' => :'pre_depends',
|
|
164
166
|
:'provides' => :'provides',
|
|
165
167
|
:'replaces' => :'replaces',
|
|
166
|
-
:'signing_keys' => :'signing_keys'
|
|
168
|
+
:'signing_keys' => :'signing_keys',
|
|
169
|
+
:'metadata_sha256' => :'metadata_sha256'
|
|
167
170
|
}
|
|
168
171
|
end
|
|
169
172
|
|
|
@@ -218,14 +221,15 @@ module PulpDebClient
|
|
|
218
221
|
:'pre_depends' => :'String',
|
|
219
222
|
:'provides' => :'String',
|
|
220
223
|
:'replaces' => :'String',
|
|
221
|
-
:'signing_keys' => :'Array<String>'
|
|
224
|
+
:'signing_keys' => :'Array<String>',
|
|
225
|
+
:'metadata_sha256' => :'String'
|
|
222
226
|
}
|
|
223
227
|
end
|
|
224
228
|
|
|
225
229
|
# List of attributes with nullable: true
|
|
226
230
|
def self.openapi_nullable
|
|
227
231
|
Set.new([
|
|
228
|
-
:'signing_keys'
|
|
232
|
+
:'signing_keys',
|
|
229
233
|
])
|
|
230
234
|
end
|
|
231
235
|
|
|
@@ -423,6 +427,10 @@ module PulpDebClient
|
|
|
423
427
|
self.signing_keys = value
|
|
424
428
|
end
|
|
425
429
|
end
|
|
430
|
+
|
|
431
|
+
if attributes.key?(:'metadata_sha256')
|
|
432
|
+
self.metadata_sha256 = attributes[:'metadata_sha256']
|
|
433
|
+
end
|
|
426
434
|
end
|
|
427
435
|
|
|
428
436
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -488,7 +496,8 @@ module PulpDebClient
|
|
|
488
496
|
pre_depends == o.pre_depends &&
|
|
489
497
|
provides == o.provides &&
|
|
490
498
|
replaces == o.replaces &&
|
|
491
|
-
signing_keys == o.signing_keys
|
|
499
|
+
signing_keys == o.signing_keys &&
|
|
500
|
+
metadata_sha256 == o.metadata_sha256
|
|
492
501
|
end
|
|
493
502
|
|
|
494
503
|
# @see the `==` method
|
|
@@ -500,7 +509,7 @@ module PulpDebClient
|
|
|
500
509
|
# Calculates hash code according to all attributes.
|
|
501
510
|
# @return [Integer] Hash code
|
|
502
511
|
def hash
|
|
503
|
-
[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].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
|
|
504
513
|
end
|
|
505
514
|
|
|
506
515
|
# Builds the object from hash
|