pulp_deb_client 3.8.1 → 3.8.2
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 -4
- data/docs/ContentGenericContentsApi.md +9 -7
- data/docs/ContentInstallerFileIndicesApi.md +6 -6
- data/docs/ContentInstallerPackagesApi.md +9 -7
- data/docs/ContentPackageIndicesApi.md +6 -6
- data/docs/ContentPackageReleaseComponentsApi.md +10 -10
- data/docs/ContentPackagesApi.md +8 -6
- data/docs/ContentReleaseArchitecturesApi.md +6 -6
- data/docs/ContentReleaseComponentsApi.md +6 -6
- data/docs/ContentReleaseFilesApi.md +6 -6
- data/docs/ContentReleasesApi.md +6 -6
- data/docs/ContentSourceIndicesApi.md +6 -6
- data/docs/ContentSourcePackagesApi.md +6 -6
- data/docs/ContentSourceReleaseComponentsApi.md +10 -10
- data/docs/DebAptDistribution.md +2 -0
- data/docs/DebAptDistributionResponse.md +4 -0
- data/docs/DebAptRemote.md +6 -6
- data/docs/DebAptRemoteResponse.md +8 -8
- data/docs/DebAptRepository.md +2 -0
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/DistributionsAptApi.md +4 -4
- data/docs/PatcheddebAptDistribution.md +2 -0
- data/docs/PatcheddebAptRemote.md +6 -6
- data/docs/PatcheddebAptRepository.md +2 -0
- data/docs/PublicationsAptApi.md +2 -2
- data/docs/PublicationsVerbatimApi.md +2 -2
- data/docs/RemoteNetworkConfig.md +50 -0
- data/docs/RemoteNetworkConfigResponse.md +40 -0
- data/docs/RepositoriesAptApi.md +20 -4
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +9 -6
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +9 -6
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_packages_api.rb +9 -6
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_release_components_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_release_files_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_releases_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +4 -4
- data/lib/pulp_deb_client/api/publications_apt_api.rb +2 -2
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +2 -2
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +29 -5
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +12 -1
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +22 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +48 -33
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +60 -45
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +42 -1
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +42 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +12 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +48 -33
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +42 -1
- data/lib/pulp_deb_client/models/remote_network_config.rb +588 -0
- data/lib/pulp_deb_client/models/remote_network_config_response.rb +413 -0
- data/lib/pulp_deb_client/models/set_label.rb +0 -11
- data/lib/pulp_deb_client/models/set_label_response.rb +0 -21
- data/lib/pulp_deb_client/models/unset_label.rb +0 -11
- data/lib/pulp_deb_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +2 -0
- data/spec/api/content_generic_contents_api_spec.rb +4 -3
- data/spec/api/content_installer_file_indices_api_spec.rb +3 -3
- data/spec/api/content_installer_packages_api_spec.rb +4 -3
- data/spec/api/content_package_indices_api_spec.rb +3 -3
- data/spec/api/content_package_release_components_api_spec.rb +5 -5
- data/spec/api/content_packages_api_spec.rb +4 -3
- data/spec/api/content_release_architectures_api_spec.rb +3 -3
- data/spec/api/content_release_components_api_spec.rb +3 -3
- data/spec/api/content_release_files_api_spec.rb +3 -3
- data/spec/api/content_releases_api_spec.rb +3 -3
- data/spec/api/content_source_indices_api_spec.rb +3 -3
- data/spec/api/content_source_packages_api_spec.rb +3 -3
- data/spec/api/content_source_release_components_api_spec.rb +5 -5
- data/spec/api/distributions_apt_api_spec.rb +2 -2
- data/spec/api/publications_apt_api_spec.rb +1 -1
- data/spec/api/publications_verbatim_api_spec.rb +1 -1
- data/spec/api/repositories_apt_api_spec.rb +10 -2
- data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
- data/spec/models/deb_apt_distribution_spec.rb +6 -0
- data/spec/models/deb_apt_remote_response_spec.rb +10 -10
- data/spec/models/deb_apt_remote_spec.rb +17 -17
- data/spec/models/deb_apt_repository_response_spec.rb +6 -0
- data/spec/models/deb_apt_repository_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_distribution_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +17 -17
- data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
- data/spec/models/remote_network_config_response_spec.rb +102 -0
- data/spec/models/remote_network_config_spec.rb +132 -0
- metadata +88 -80
|
@@ -42,6 +42,9 @@ module PulpDebClient
|
|
|
42
42
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
43
|
attr_accessor :retain_repo_versions
|
|
44
44
|
|
|
45
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
46
|
+
attr_accessor :retain_checkpoints
|
|
47
|
+
|
|
45
48
|
# An optional remote to use by default when syncing.
|
|
46
49
|
attr_accessor :remote
|
|
47
50
|
|
|
@@ -70,6 +73,7 @@ module PulpDebClient
|
|
|
70
73
|
:'name' => :'name',
|
|
71
74
|
:'description' => :'description',
|
|
72
75
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
76
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
73
77
|
:'remote' => :'remote',
|
|
74
78
|
:'autopublish' => :'autopublish',
|
|
75
79
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
@@ -96,6 +100,7 @@ module PulpDebClient
|
|
|
96
100
|
:'name' => :'String',
|
|
97
101
|
:'description' => :'String',
|
|
98
102
|
:'retain_repo_versions' => :'Integer',
|
|
103
|
+
:'retain_checkpoints' => :'Integer',
|
|
99
104
|
:'remote' => :'String',
|
|
100
105
|
:'autopublish' => :'Boolean',
|
|
101
106
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
@@ -109,6 +114,7 @@ module PulpDebClient
|
|
|
109
114
|
Set.new([
|
|
110
115
|
:'description',
|
|
111
116
|
:'retain_repo_versions',
|
|
117
|
+
:'retain_checkpoints',
|
|
112
118
|
:'remote',
|
|
113
119
|
:'signing_service',
|
|
114
120
|
])
|
|
@@ -173,6 +179,10 @@ module PulpDebClient
|
|
|
173
179
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
174
180
|
end
|
|
175
181
|
|
|
182
|
+
if attributes.key?(:'retain_checkpoints')
|
|
183
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
184
|
+
end
|
|
185
|
+
|
|
176
186
|
if attributes.key?(:'remote')
|
|
177
187
|
self.remote = attributes[:'remote']
|
|
178
188
|
end
|
|
@@ -207,6 +217,14 @@ module PulpDebClient
|
|
|
207
217
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
208
218
|
end
|
|
209
219
|
|
|
220
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
221
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
225
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
226
|
+
end
|
|
227
|
+
|
|
210
228
|
invalid_properties
|
|
211
229
|
end
|
|
212
230
|
|
|
@@ -215,9 +233,31 @@ module PulpDebClient
|
|
|
215
233
|
def valid?
|
|
216
234
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
217
235
|
return false if @name.nil?
|
|
236
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
237
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
218
238
|
true
|
|
219
239
|
end
|
|
220
240
|
|
|
241
|
+
# Custom attribute writer method with validation
|
|
242
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
243
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
244
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
245
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
@retain_repo_versions = retain_repo_versions
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Custom attribute writer method with validation
|
|
252
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
253
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
254
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
255
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
@retain_checkpoints = retain_checkpoints
|
|
259
|
+
end
|
|
260
|
+
|
|
221
261
|
# Checks equality by comparing each attribute.
|
|
222
262
|
# @param [Object] Object to be compared
|
|
223
263
|
def ==(o)
|
|
@@ -233,6 +273,7 @@ module PulpDebClient
|
|
|
233
273
|
name == o.name &&
|
|
234
274
|
description == o.description &&
|
|
235
275
|
retain_repo_versions == o.retain_repo_versions &&
|
|
276
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
236
277
|
remote == o.remote &&
|
|
237
278
|
autopublish == o.autopublish &&
|
|
238
279
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
@@ -249,7 +290,7 @@ module PulpDebClient
|
|
|
249
290
|
# Calculates hash code according to all attributes.
|
|
250
291
|
# @return [Integer] Hash code
|
|
251
292
|
def hash
|
|
252
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].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
|
|
253
294
|
end
|
|
254
295
|
|
|
255
296
|
# Builds the object from hash
|
|
@@ -33,6 +33,9 @@ module PulpDebClient
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
35
35
|
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
|
+
|
|
36
39
|
# Publication to be served
|
|
37
40
|
attr_accessor :publication
|
|
38
41
|
|
|
@@ -47,6 +50,7 @@ module PulpDebClient
|
|
|
47
50
|
:'pulp_labels' => :'pulp_labels',
|
|
48
51
|
:'name' => :'name',
|
|
49
52
|
:'repository' => :'repository',
|
|
53
|
+
:'repository_version' => :'repository_version',
|
|
50
54
|
:'publication' => :'publication',
|
|
51
55
|
:'checkpoint' => :'checkpoint'
|
|
52
56
|
}
|
|
@@ -66,6 +70,7 @@ module PulpDebClient
|
|
|
66
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
67
71
|
:'name' => :'String',
|
|
68
72
|
:'repository' => :'String',
|
|
73
|
+
:'repository_version' => :'String',
|
|
69
74
|
:'publication' => :'String',
|
|
70
75
|
:'checkpoint' => :'Boolean'
|
|
71
76
|
}
|
|
@@ -76,6 +81,7 @@ module PulpDebClient
|
|
|
76
81
|
Set.new([
|
|
77
82
|
:'content_guard',
|
|
78
83
|
:'repository',
|
|
84
|
+
:'repository_version',
|
|
79
85
|
:'publication',
|
|
80
86
|
])
|
|
81
87
|
end
|
|
@@ -123,6 +129,10 @@ module PulpDebClient
|
|
|
123
129
|
self.repository = attributes[:'repository']
|
|
124
130
|
end
|
|
125
131
|
|
|
132
|
+
if attributes.key?(:'repository_version')
|
|
133
|
+
self.repository_version = attributes[:'repository_version']
|
|
134
|
+
end
|
|
135
|
+
|
|
126
136
|
if attributes.key?(:'publication')
|
|
127
137
|
self.publication = attributes[:'publication']
|
|
128
138
|
end
|
|
@@ -196,6 +206,7 @@ module PulpDebClient
|
|
|
196
206
|
pulp_labels == o.pulp_labels &&
|
|
197
207
|
name == o.name &&
|
|
198
208
|
repository == o.repository &&
|
|
209
|
+
repository_version == o.repository_version &&
|
|
199
210
|
publication == o.publication &&
|
|
200
211
|
checkpoint == o.checkpoint
|
|
201
212
|
end
|
|
@@ -209,7 +220,7 @@ module PulpDebClient
|
|
|
209
220
|
# Calculates hash code according to all attributes.
|
|
210
221
|
# @return [Integer] Hash code
|
|
211
222
|
def hash
|
|
212
|
-
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, checkpoint].hash
|
|
223
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, checkpoint].hash
|
|
213
224
|
end
|
|
214
225
|
|
|
215
226
|
# Builds the object from hash
|
|
@@ -22,6 +22,11 @@ module PulpDebClient
|
|
|
22
22
|
# The URL of an external content source.
|
|
23
23
|
attr_accessor :url
|
|
24
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
28
|
+
attr_accessor :policy
|
|
29
|
+
|
|
25
30
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
26
31
|
attr_accessor :ca_cert
|
|
27
32
|
|
|
@@ -49,17 +54,9 @@ module PulpDebClient
|
|
|
49
54
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
50
55
|
attr_accessor :password
|
|
51
56
|
|
|
52
|
-
attr_accessor :pulp_labels
|
|
53
|
-
|
|
54
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
55
|
-
attr_accessor :download_concurrency
|
|
56
|
-
|
|
57
57
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
58
58
|
attr_accessor :max_retries
|
|
59
59
|
|
|
60
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
61
|
-
attr_accessor :policy
|
|
62
|
-
|
|
63
60
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
64
61
|
attr_accessor :total_timeout
|
|
65
62
|
|
|
@@ -75,6 +72,9 @@ module PulpDebClient
|
|
|
75
72
|
# Headers for aiohttp.Clientsession
|
|
76
73
|
attr_accessor :headers
|
|
77
74
|
|
|
75
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
76
|
+
attr_accessor :download_concurrency
|
|
77
|
+
|
|
78
78
|
# Limits requests per second for each concurrent downloader
|
|
79
79
|
attr_accessor :rate_limit
|
|
80
80
|
|
|
@@ -129,6 +129,8 @@ module PulpDebClient
|
|
|
129
129
|
{
|
|
130
130
|
:'name' => :'name',
|
|
131
131
|
:'url' => :'url',
|
|
132
|
+
:'pulp_labels' => :'pulp_labels',
|
|
133
|
+
:'policy' => :'policy',
|
|
132
134
|
:'ca_cert' => :'ca_cert',
|
|
133
135
|
:'client_cert' => :'client_cert',
|
|
134
136
|
:'client_key' => :'client_key',
|
|
@@ -138,15 +140,13 @@ module PulpDebClient
|
|
|
138
140
|
:'proxy_password' => :'proxy_password',
|
|
139
141
|
:'username' => :'username',
|
|
140
142
|
:'password' => :'password',
|
|
141
|
-
:'pulp_labels' => :'pulp_labels',
|
|
142
|
-
:'download_concurrency' => :'download_concurrency',
|
|
143
143
|
:'max_retries' => :'max_retries',
|
|
144
|
-
:'policy' => :'policy',
|
|
145
144
|
:'total_timeout' => :'total_timeout',
|
|
146
145
|
:'connect_timeout' => :'connect_timeout',
|
|
147
146
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
148
147
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
149
148
|
:'headers' => :'headers',
|
|
149
|
+
:'download_concurrency' => :'download_concurrency',
|
|
150
150
|
:'rate_limit' => :'rate_limit',
|
|
151
151
|
:'distributions' => :'distributions',
|
|
152
152
|
:'components' => :'components',
|
|
@@ -169,6 +169,8 @@ module PulpDebClient
|
|
|
169
169
|
{
|
|
170
170
|
:'name' => :'String',
|
|
171
171
|
:'url' => :'String',
|
|
172
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
173
|
+
:'policy' => :'PolicyEnum',
|
|
172
174
|
:'ca_cert' => :'String',
|
|
173
175
|
:'client_cert' => :'String',
|
|
174
176
|
:'client_key' => :'String',
|
|
@@ -178,15 +180,13 @@ module PulpDebClient
|
|
|
178
180
|
:'proxy_password' => :'String',
|
|
179
181
|
:'username' => :'String',
|
|
180
182
|
:'password' => :'String',
|
|
181
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
182
|
-
:'download_concurrency' => :'Integer',
|
|
183
183
|
:'max_retries' => :'Integer',
|
|
184
|
-
:'policy' => :'PolicyEnum',
|
|
185
184
|
:'total_timeout' => :'Float',
|
|
186
185
|
:'connect_timeout' => :'Float',
|
|
187
186
|
:'sock_connect_timeout' => :'Float',
|
|
188
187
|
:'sock_read_timeout' => :'Float',
|
|
189
188
|
:'headers' => :'Array<Object>',
|
|
189
|
+
:'download_concurrency' => :'Integer',
|
|
190
190
|
:'rate_limit' => :'Integer',
|
|
191
191
|
:'distributions' => :'String',
|
|
192
192
|
:'components' => :'String',
|
|
@@ -210,12 +210,12 @@ module PulpDebClient
|
|
|
210
210
|
:'proxy_password',
|
|
211
211
|
:'username',
|
|
212
212
|
:'password',
|
|
213
|
-
:'download_concurrency',
|
|
214
213
|
:'max_retries',
|
|
215
214
|
:'total_timeout',
|
|
216
215
|
:'connect_timeout',
|
|
217
216
|
:'sock_connect_timeout',
|
|
218
217
|
:'sock_read_timeout',
|
|
218
|
+
:'download_concurrency',
|
|
219
219
|
:'rate_limit',
|
|
220
220
|
:'components',
|
|
221
221
|
:'architectures',
|
|
@@ -246,6 +246,16 @@ module PulpDebClient
|
|
|
246
246
|
self.url = attributes[:'url']
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
+
if attributes.key?(:'pulp_labels')
|
|
250
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
251
|
+
self.pulp_labels = value
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'policy')
|
|
256
|
+
self.policy = attributes[:'policy']
|
|
257
|
+
end
|
|
258
|
+
|
|
249
259
|
if attributes.key?(:'ca_cert')
|
|
250
260
|
self.ca_cert = attributes[:'ca_cert']
|
|
251
261
|
end
|
|
@@ -282,24 +292,10 @@ module PulpDebClient
|
|
|
282
292
|
self.password = attributes[:'password']
|
|
283
293
|
end
|
|
284
294
|
|
|
285
|
-
if attributes.key?(:'pulp_labels')
|
|
286
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
287
|
-
self.pulp_labels = value
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
if attributes.key?(:'download_concurrency')
|
|
292
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
293
|
-
end
|
|
294
|
-
|
|
295
295
|
if attributes.key?(:'max_retries')
|
|
296
296
|
self.max_retries = attributes[:'max_retries']
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
if attributes.key?(:'policy')
|
|
300
|
-
self.policy = attributes[:'policy']
|
|
301
|
-
end
|
|
302
|
-
|
|
303
299
|
if attributes.key?(:'total_timeout')
|
|
304
300
|
self.total_timeout = attributes[:'total_timeout']
|
|
305
301
|
end
|
|
@@ -322,6 +318,10 @@ module PulpDebClient
|
|
|
322
318
|
end
|
|
323
319
|
end
|
|
324
320
|
|
|
321
|
+
if attributes.key?(:'download_concurrency')
|
|
322
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
325
|
if attributes.key?(:'rate_limit')
|
|
326
326
|
self.rate_limit = attributes[:'rate_limit']
|
|
327
327
|
end
|
|
@@ -420,6 +420,10 @@ module PulpDebClient
|
|
|
420
420
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
421
421
|
end
|
|
422
422
|
|
|
423
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
424
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
425
|
+
end
|
|
426
|
+
|
|
423
427
|
if !@distributions.nil? && @distributions.to_s.length < 1
|
|
424
428
|
invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
|
|
425
429
|
end
|
|
@@ -457,6 +461,7 @@ module PulpDebClient
|
|
|
457
461
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
458
462
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
459
463
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
464
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
460
465
|
return false if !@distributions.nil? && @distributions.to_s.length < 1
|
|
461
466
|
return false if !@components.nil? && @components.to_s.length < 1
|
|
462
467
|
return false if !@architectures.nil? && @architectures.to_s.length < 1
|
|
@@ -612,6 +617,16 @@ module PulpDebClient
|
|
|
612
617
|
@sock_read_timeout = sock_read_timeout
|
|
613
618
|
end
|
|
614
619
|
|
|
620
|
+
# Custom attribute writer method with validation
|
|
621
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
622
|
+
def download_concurrency=(download_concurrency)
|
|
623
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
624
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
@download_concurrency = download_concurrency
|
|
628
|
+
end
|
|
629
|
+
|
|
615
630
|
# Custom attribute writer method with validation
|
|
616
631
|
# @param [Object] distributions Value to be assigned
|
|
617
632
|
def distributions=(distributions)
|
|
@@ -663,6 +678,8 @@ module PulpDebClient
|
|
|
663
678
|
self.class == o.class &&
|
|
664
679
|
name == o.name &&
|
|
665
680
|
url == o.url &&
|
|
681
|
+
pulp_labels == o.pulp_labels &&
|
|
682
|
+
policy == o.policy &&
|
|
666
683
|
ca_cert == o.ca_cert &&
|
|
667
684
|
client_cert == o.client_cert &&
|
|
668
685
|
client_key == o.client_key &&
|
|
@@ -672,15 +689,13 @@ module PulpDebClient
|
|
|
672
689
|
proxy_password == o.proxy_password &&
|
|
673
690
|
username == o.username &&
|
|
674
691
|
password == o.password &&
|
|
675
|
-
pulp_labels == o.pulp_labels &&
|
|
676
|
-
download_concurrency == o.download_concurrency &&
|
|
677
692
|
max_retries == o.max_retries &&
|
|
678
|
-
policy == o.policy &&
|
|
679
693
|
total_timeout == o.total_timeout &&
|
|
680
694
|
connect_timeout == o.connect_timeout &&
|
|
681
695
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
682
696
|
sock_read_timeout == o.sock_read_timeout &&
|
|
683
697
|
headers == o.headers &&
|
|
698
|
+
download_concurrency == o.download_concurrency &&
|
|
684
699
|
rate_limit == o.rate_limit &&
|
|
685
700
|
distributions == o.distributions &&
|
|
686
701
|
components == o.components &&
|
|
@@ -701,7 +716,7 @@ module PulpDebClient
|
|
|
701
716
|
# Calculates hash code according to all attributes.
|
|
702
717
|
# @return [Integer] Hash code
|
|
703
718
|
def hash
|
|
704
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password,
|
|
719
|
+
[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
|
|
705
720
|
end
|
|
706
721
|
|
|
707
722
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpDebClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -49,6 +52,7 @@ module PulpDebClient
|
|
|
49
52
|
:'name' => :'name',
|
|
50
53
|
:'description' => :'description',
|
|
51
54
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
55
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
52
56
|
:'remote' => :'remote',
|
|
53
57
|
:'autopublish' => :'autopublish',
|
|
54
58
|
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
|
@@ -69,6 +73,7 @@ module PulpDebClient
|
|
|
69
73
|
:'name' => :'String',
|
|
70
74
|
:'description' => :'String',
|
|
71
75
|
:'retain_repo_versions' => :'Integer',
|
|
76
|
+
:'retain_checkpoints' => :'Integer',
|
|
72
77
|
:'remote' => :'String',
|
|
73
78
|
:'autopublish' => :'Boolean',
|
|
74
79
|
:'publish_upstream_release_fields' => :'Boolean',
|
|
@@ -82,6 +87,7 @@ module PulpDebClient
|
|
|
82
87
|
Set.new([
|
|
83
88
|
:'description',
|
|
84
89
|
:'retain_repo_versions',
|
|
90
|
+
:'retain_checkpoints',
|
|
85
91
|
:'remote',
|
|
86
92
|
:'signing_service',
|
|
87
93
|
])
|
|
@@ -120,6 +126,10 @@ module PulpDebClient
|
|
|
120
126
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
121
127
|
end
|
|
122
128
|
|
|
129
|
+
if attributes.key?(:'retain_checkpoints')
|
|
130
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
131
|
+
end
|
|
132
|
+
|
|
123
133
|
if attributes.key?(:'remote')
|
|
124
134
|
self.remote = attributes[:'remote']
|
|
125
135
|
end
|
|
@@ -158,6 +168,14 @@ module PulpDebClient
|
|
|
158
168
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
159
169
|
end
|
|
160
170
|
|
|
171
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
172
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
176
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
177
|
+
end
|
|
178
|
+
|
|
161
179
|
invalid_properties
|
|
162
180
|
end
|
|
163
181
|
|
|
@@ -167,6 +185,8 @@ module PulpDebClient
|
|
|
167
185
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
186
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
169
187
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
188
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
189
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
170
190
|
true
|
|
171
191
|
end
|
|
172
192
|
|
|
@@ -194,6 +214,26 @@ module PulpDebClient
|
|
|
194
214
|
@description = description
|
|
195
215
|
end
|
|
196
216
|
|
|
217
|
+
# Custom attribute writer method with validation
|
|
218
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
219
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
220
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
221
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
@retain_repo_versions = retain_repo_versions
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Custom attribute writer method with validation
|
|
228
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
229
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
230
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
231
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
@retain_checkpoints = retain_checkpoints
|
|
235
|
+
end
|
|
236
|
+
|
|
197
237
|
# Checks equality by comparing each attribute.
|
|
198
238
|
# @param [Object] Object to be compared
|
|
199
239
|
def ==(o)
|
|
@@ -203,6 +243,7 @@ module PulpDebClient
|
|
|
203
243
|
name == o.name &&
|
|
204
244
|
description == o.description &&
|
|
205
245
|
retain_repo_versions == o.retain_repo_versions &&
|
|
246
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
206
247
|
remote == o.remote &&
|
|
207
248
|
autopublish == o.autopublish &&
|
|
208
249
|
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
|
@@ -219,7 +260,7 @@ module PulpDebClient
|
|
|
219
260
|
# Calculates hash code according to all attributes.
|
|
220
261
|
# @return [Integer] Hash code
|
|
221
262
|
def hash
|
|
222
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
263
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
|
223
264
|
end
|
|
224
265
|
|
|
225
266
|
# Builds the object from hash
|