pulp_deb_client 2.13.1 → 2.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/docs/ContentGenericContentsApi.md +1 -1
- data/docs/ContentInstallerFileIndicesApi.md +1 -1
- data/docs/ContentInstallerPackagesApi.md +1 -1
- data/docs/ContentPackageIndicesApi.md +1 -1
- data/docs/ContentPackageReleaseComponentsApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentReleaseArchitecturesApi.md +1 -1
- data/docs/ContentReleaseComponentsApi.md +1 -1
- data/docs/ContentReleaseFilesApi.md +1 -1
- data/docs/ContentReleasesApi.md +1 -1
- data/docs/DebAptRemote.md +7 -5
- data/docs/DebAptRemoteResponse.md +7 -5
- data/docs/DebAptRepository.md +3 -3
- data/docs/DebAptRepositoryResponse.md +3 -3
- data/docs/DistributionsAptApi.md +1 -1
- data/docs/PatcheddebAptRemote.md +7 -5
- data/docs/PatcheddebAptRepository.md +3 -3
- data/docs/PublicationsAptApi.md +1 -1
- data/docs/PublicationsVerbatimApi.md +1 -1
- data/docs/RemotesAptApi.md +1 -1
- data/docs/RepositoriesAptApi.md +1 -1
- data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +14 -14
- data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb} +14 -14
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +18 -6
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +18 -6
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +17 -16
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +18 -6
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +17 -16
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +1 -1
- data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb} +6 -6
- data/spec/configuration_spec.rb +3 -3
- 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 +1 -1
- data/spec/models/deb_apt_repository_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_remote_spec.rb +6 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
- metadata +58 -58
@@ -50,22 +50,25 @@ module PulpDebClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -114,6 +117,7 @@ module PulpDebClient
|
|
114
117
|
:'password' => :'password',
|
115
118
|
:'pulp_labels' => :'pulp_labels',
|
116
119
|
:'download_concurrency' => :'download_concurrency',
|
120
|
+
:'max_retries' => :'max_retries',
|
117
121
|
:'policy' => :'policy',
|
118
122
|
:'total_timeout' => :'total_timeout',
|
119
123
|
:'connect_timeout' => :'connect_timeout',
|
@@ -148,6 +152,7 @@ module PulpDebClient
|
|
148
152
|
:'password' => :'String',
|
149
153
|
:'pulp_labels' => :'Object',
|
150
154
|
:'download_concurrency' => :'Integer',
|
155
|
+
:'max_retries' => :'Integer',
|
151
156
|
:'policy' => :'PolicyEnum',
|
152
157
|
:'total_timeout' => :'Float',
|
153
158
|
:'connect_timeout' => :'Float',
|
@@ -177,6 +182,8 @@ module PulpDebClient
|
|
177
182
|
:'proxy_password',
|
178
183
|
:'username',
|
179
184
|
:'password',
|
185
|
+
:'download_concurrency',
|
186
|
+
:'max_retries',
|
180
187
|
:'total_timeout',
|
181
188
|
:'connect_timeout',
|
182
189
|
:'sock_connect_timeout',
|
@@ -255,6 +262,10 @@ module PulpDebClient
|
|
255
262
|
self.download_concurrency = attributes[:'download_concurrency']
|
256
263
|
end
|
257
264
|
|
265
|
+
if attributes.key?(:'max_retries')
|
266
|
+
self.max_retries = attributes[:'max_retries']
|
267
|
+
end
|
268
|
+
|
258
269
|
if attributes.key?(:'policy')
|
259
270
|
self.policy = attributes[:'policy']
|
260
271
|
end
|
@@ -439,6 +450,7 @@ module PulpDebClient
|
|
439
450
|
password == o.password &&
|
440
451
|
pulp_labels == o.pulp_labels &&
|
441
452
|
download_concurrency == o.download_concurrency &&
|
453
|
+
max_retries == o.max_retries &&
|
442
454
|
policy == o.policy &&
|
443
455
|
total_timeout == o.total_timeout &&
|
444
456
|
connect_timeout == o.connect_timeout &&
|
@@ -465,7 +477,7 @@ module PulpDebClient
|
|
465
477
|
# Calculates hash code according to all attributes.
|
466
478
|
# @return [Integer] Hash code
|
467
479
|
def hash
|
468
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
480
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
469
481
|
end
|
470
482
|
|
471
483
|
# Builds the object from hash
|
@@ -43,22 +43,25 @@ module PulpDebClient
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
44
44
|
attr_accessor :pulp_last_updated
|
45
45
|
|
46
|
-
# Total number of simultaneous connections.
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
|
+
attr_accessor :max_retries
|
51
|
+
|
49
52
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
50
53
|
attr_accessor :policy
|
51
54
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
53
56
|
attr_accessor :total_timeout
|
54
57
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
56
59
|
attr_accessor :connect_timeout
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
61
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
62
|
attr_accessor :sock_connect_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
64
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
62
65
|
attr_accessor :sock_read_timeout
|
63
66
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
@@ -105,6 +108,7 @@ module PulpDebClient
|
|
105
108
|
:'pulp_labels' => :'pulp_labels',
|
106
109
|
:'pulp_last_updated' => :'pulp_last_updated',
|
107
110
|
:'download_concurrency' => :'download_concurrency',
|
111
|
+
:'max_retries' => :'max_retries',
|
108
112
|
:'policy' => :'policy',
|
109
113
|
:'total_timeout' => :'total_timeout',
|
110
114
|
:'connect_timeout' => :'connect_timeout',
|
@@ -137,6 +141,7 @@ module PulpDebClient
|
|
137
141
|
:'pulp_labels' => :'Object',
|
138
142
|
:'pulp_last_updated' => :'DateTime',
|
139
143
|
:'download_concurrency' => :'Integer',
|
144
|
+
:'max_retries' => :'Integer',
|
140
145
|
:'policy' => :'PolicyEnum',
|
141
146
|
:'total_timeout' => :'Float',
|
142
147
|
:'connect_timeout' => :'Float',
|
@@ -161,6 +166,8 @@ module PulpDebClient
|
|
161
166
|
:'ca_cert',
|
162
167
|
:'client_cert',
|
163
168
|
:'proxy_url',
|
169
|
+
:'download_concurrency',
|
170
|
+
:'max_retries',
|
164
171
|
:'total_timeout',
|
165
172
|
:'connect_timeout',
|
166
173
|
:'sock_connect_timeout',
|
@@ -231,6 +238,10 @@ module PulpDebClient
|
|
231
238
|
self.download_concurrency = attributes[:'download_concurrency']
|
232
239
|
end
|
233
240
|
|
241
|
+
if attributes.key?(:'max_retries')
|
242
|
+
self.max_retries = attributes[:'max_retries']
|
243
|
+
end
|
244
|
+
|
234
245
|
if attributes.key?(:'policy')
|
235
246
|
self.policy = attributes[:'policy']
|
236
247
|
end
|
@@ -413,6 +424,7 @@ module PulpDebClient
|
|
413
424
|
pulp_labels == o.pulp_labels &&
|
414
425
|
pulp_last_updated == o.pulp_last_updated &&
|
415
426
|
download_concurrency == o.download_concurrency &&
|
427
|
+
max_retries == o.max_retries &&
|
416
428
|
policy == o.policy &&
|
417
429
|
total_timeout == o.total_timeout &&
|
418
430
|
connect_timeout == o.connect_timeout &&
|
@@ -439,7 +451,7 @@ module PulpDebClient
|
|
439
451
|
# Calculates hash code according to all attributes.
|
440
452
|
# @return [Integer] Hash code
|
441
453
|
def hash
|
442
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
454
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
443
455
|
end
|
444
456
|
|
445
457
|
# Builds the object from hash
|
@@ -24,8 +24,9 @@ module PulpDebClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +35,7 @@ module PulpDebClient
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
35
36
|
:'name' => :'name',
|
36
37
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'remote' => :'remote'
|
39
40
|
}
|
40
41
|
end
|
@@ -45,7 +46,7 @@ module PulpDebClient
|
|
45
46
|
:'pulp_labels' => :'Object',
|
46
47
|
:'name' => :'String',
|
47
48
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
49
50
|
:'remote' => :'String'
|
50
51
|
}
|
51
52
|
end
|
@@ -54,7 +55,7 @@ module PulpDebClient
|
|
54
55
|
def self.openapi_nullable
|
55
56
|
Set.new([
|
56
57
|
:'description',
|
57
|
-
:'
|
58
|
+
:'retain_repo_versions',
|
58
59
|
:'remote'
|
59
60
|
])
|
60
61
|
end
|
@@ -86,8 +87,8 @@ module PulpDebClient
|
|
86
87
|
self.description = attributes[:'description']
|
87
88
|
end
|
88
89
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'remote')
|
@@ -103,8 +104,8 @@ module PulpDebClient
|
|
103
104
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
104
105
|
end
|
105
106
|
|
106
|
-
if !@
|
107
|
-
invalid_properties.push('invalid value for "
|
107
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
108
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
108
109
|
end
|
109
110
|
|
110
111
|
invalid_properties
|
@@ -114,18 +115,18 @@ module PulpDebClient
|
|
114
115
|
# @return true if the model is valid
|
115
116
|
def valid?
|
116
117
|
return false if @name.nil?
|
117
|
-
return false if !@
|
118
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
118
119
|
true
|
119
120
|
end
|
120
121
|
|
121
122
|
# Custom attribute writer method with validation
|
122
|
-
# @param [Object]
|
123
|
-
def
|
124
|
-
if !
|
125
|
-
fail ArgumentError, 'invalid value for "
|
123
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
124
|
+
def retain_repo_versions=(retain_repo_versions)
|
125
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
126
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
126
127
|
end
|
127
128
|
|
128
|
-
@
|
129
|
+
@retain_repo_versions = retain_repo_versions
|
129
130
|
end
|
130
131
|
|
131
132
|
# Checks equality by comparing each attribute.
|
@@ -136,7 +137,7 @@ module PulpDebClient
|
|
136
137
|
pulp_labels == o.pulp_labels &&
|
137
138
|
name == o.name &&
|
138
139
|
description == o.description &&
|
139
|
-
|
140
|
+
retain_repo_versions == o.retain_repo_versions &&
|
140
141
|
remote == o.remote
|
141
142
|
end
|
142
143
|
|
@@ -149,7 +150,7 @@ module PulpDebClient
|
|
149
150
|
# Calculates hash code according to all attributes.
|
150
151
|
# @return [Integer] Hash code
|
151
152
|
def hash
|
152
|
-
[pulp_labels, name, description,
|
153
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
153
154
|
end
|
154
155
|
|
155
156
|
# Builds the object from hash
|
@@ -33,8 +33,9 @@ module PulpDebClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +48,7 @@ module PulpDebClient
|
|
47
48
|
:'latest_version_href' => :'latest_version_href',
|
48
49
|
:'name' => :'name',
|
49
50
|
:'description' => :'description',
|
50
|
-
:'
|
51
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
51
52
|
:'remote' => :'remote'
|
52
53
|
}
|
53
54
|
end
|
@@ -62,7 +63,7 @@ module PulpDebClient
|
|
62
63
|
:'latest_version_href' => :'String',
|
63
64
|
:'name' => :'String',
|
64
65
|
:'description' => :'String',
|
65
|
-
:'
|
66
|
+
:'retain_repo_versions' => :'Integer',
|
66
67
|
:'remote' => :'String'
|
67
68
|
}
|
68
69
|
end
|
@@ -71,7 +72,7 @@ module PulpDebClient
|
|
71
72
|
def self.openapi_nullable
|
72
73
|
Set.new([
|
73
74
|
:'description',
|
74
|
-
:'
|
75
|
+
:'retain_repo_versions',
|
75
76
|
:'remote'
|
76
77
|
])
|
77
78
|
end
|
@@ -119,8 +120,8 @@ module PulpDebClient
|
|
119
120
|
self.description = attributes[:'description']
|
120
121
|
end
|
121
122
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
123
|
+
if attributes.key?(:'retain_repo_versions')
|
124
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
124
125
|
end
|
125
126
|
|
126
127
|
if attributes.key?(:'remote')
|
@@ -136,8 +137,8 @@ module PulpDebClient
|
|
136
137
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
138
|
end
|
138
139
|
|
139
|
-
if !@
|
140
|
-
invalid_properties.push('invalid value for "
|
140
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
141
142
|
end
|
142
143
|
|
143
144
|
invalid_properties
|
@@ -147,18 +148,18 @@ module PulpDebClient
|
|
147
148
|
# @return true if the model is valid
|
148
149
|
def valid?
|
149
150
|
return false if @name.nil?
|
150
|
-
return false if !@
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
151
152
|
true
|
152
153
|
end
|
153
154
|
|
154
155
|
# Custom attribute writer method with validation
|
155
|
-
# @param [Object]
|
156
|
-
def
|
157
|
-
if !
|
158
|
-
fail ArgumentError, 'invalid value for "
|
156
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
157
|
+
def retain_repo_versions=(retain_repo_versions)
|
158
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
159
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
159
160
|
end
|
160
161
|
|
161
|
-
@
|
162
|
+
@retain_repo_versions = retain_repo_versions
|
162
163
|
end
|
163
164
|
|
164
165
|
# Checks equality by comparing each attribute.
|
@@ -173,7 +174,7 @@ module PulpDebClient
|
|
173
174
|
latest_version_href == o.latest_version_href &&
|
174
175
|
name == o.name &&
|
175
176
|
description == o.description &&
|
176
|
-
|
177
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
178
|
remote == o.remote
|
178
179
|
end
|
179
180
|
|
@@ -186,7 +187,7 @@ module PulpDebClient
|
|
186
187
|
# Calculates hash code according to all attributes.
|
187
188
|
# @return [Integer] Hash code
|
188
189
|
def hash
|
189
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
190
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
|
190
191
|
end
|
191
192
|
|
192
193
|
# Builds the object from hash
|
@@ -50,22 +50,25 @@ module PulpDebClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -114,6 +117,7 @@ module PulpDebClient
|
|
114
117
|
:'password' => :'password',
|
115
118
|
:'pulp_labels' => :'pulp_labels',
|
116
119
|
:'download_concurrency' => :'download_concurrency',
|
120
|
+
:'max_retries' => :'max_retries',
|
117
121
|
:'policy' => :'policy',
|
118
122
|
:'total_timeout' => :'total_timeout',
|
119
123
|
:'connect_timeout' => :'connect_timeout',
|
@@ -148,6 +152,7 @@ module PulpDebClient
|
|
148
152
|
:'password' => :'String',
|
149
153
|
:'pulp_labels' => :'Object',
|
150
154
|
:'download_concurrency' => :'Integer',
|
155
|
+
:'max_retries' => :'Integer',
|
151
156
|
:'policy' => :'PolicyEnum',
|
152
157
|
:'total_timeout' => :'Float',
|
153
158
|
:'connect_timeout' => :'Float',
|
@@ -177,6 +182,8 @@ module PulpDebClient
|
|
177
182
|
:'proxy_password',
|
178
183
|
:'username',
|
179
184
|
:'password',
|
185
|
+
:'download_concurrency',
|
186
|
+
:'max_retries',
|
180
187
|
:'total_timeout',
|
181
188
|
:'connect_timeout',
|
182
189
|
:'sock_connect_timeout',
|
@@ -255,6 +262,10 @@ module PulpDebClient
|
|
255
262
|
self.download_concurrency = attributes[:'download_concurrency']
|
256
263
|
end
|
257
264
|
|
265
|
+
if attributes.key?(:'max_retries')
|
266
|
+
self.max_retries = attributes[:'max_retries']
|
267
|
+
end
|
268
|
+
|
258
269
|
if attributes.key?(:'policy')
|
259
270
|
self.policy = attributes[:'policy']
|
260
271
|
end
|
@@ -424,6 +435,7 @@ module PulpDebClient
|
|
424
435
|
password == o.password &&
|
425
436
|
pulp_labels == o.pulp_labels &&
|
426
437
|
download_concurrency == o.download_concurrency &&
|
438
|
+
max_retries == o.max_retries &&
|
427
439
|
policy == o.policy &&
|
428
440
|
total_timeout == o.total_timeout &&
|
429
441
|
connect_timeout == o.connect_timeout &&
|
@@ -450,7 +462,7 @@ module PulpDebClient
|
|
450
462
|
# Calculates hash code according to all attributes.
|
451
463
|
# @return [Integer] Hash code
|
452
464
|
def hash
|
453
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
465
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
454
466
|
end
|
455
467
|
|
456
468
|
# Builds the object from hash
|
@@ -24,8 +24,9 @@ module PulpDebClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +35,7 @@ module PulpDebClient
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
35
36
|
:'name' => :'name',
|
36
37
|
:'description' => :'description',
|
37
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
39
|
:'remote' => :'remote'
|
39
40
|
}
|
40
41
|
end
|
@@ -45,7 +46,7 @@ module PulpDebClient
|
|
45
46
|
:'pulp_labels' => :'Object',
|
46
47
|
:'name' => :'String',
|
47
48
|
:'description' => :'String',
|
48
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
49
50
|
:'remote' => :'String'
|
50
51
|
}
|
51
52
|
end
|
@@ -54,7 +55,7 @@ module PulpDebClient
|
|
54
55
|
def self.openapi_nullable
|
55
56
|
Set.new([
|
56
57
|
:'description',
|
57
|
-
:'
|
58
|
+
:'retain_repo_versions',
|
58
59
|
:'remote'
|
59
60
|
])
|
60
61
|
end
|
@@ -86,8 +87,8 @@ module PulpDebClient
|
|
86
87
|
self.description = attributes[:'description']
|
87
88
|
end
|
88
89
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'remote')
|
@@ -99,8 +100,8 @@ module PulpDebClient
|
|
99
100
|
# @return Array for valid properties with the reasons
|
100
101
|
def list_invalid_properties
|
101
102
|
invalid_properties = Array.new
|
102
|
-
if !@
|
103
|
-
invalid_properties.push('invalid value for "
|
103
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
104
105
|
end
|
105
106
|
|
106
107
|
invalid_properties
|
@@ -109,18 +110,18 @@ module PulpDebClient
|
|
109
110
|
# Check to see if the all the properties in the model are valid
|
110
111
|
# @return true if the model is valid
|
111
112
|
def valid?
|
112
|
-
return false if !@
|
113
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
113
114
|
true
|
114
115
|
end
|
115
116
|
|
116
117
|
# Custom attribute writer method with validation
|
117
|
-
# @param [Object]
|
118
|
-
def
|
119
|
-
if !
|
120
|
-
fail ArgumentError, 'invalid value for "
|
118
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
119
|
+
def retain_repo_versions=(retain_repo_versions)
|
120
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
121
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
121
122
|
end
|
122
123
|
|
123
|
-
@
|
124
|
+
@retain_repo_versions = retain_repo_versions
|
124
125
|
end
|
125
126
|
|
126
127
|
# Checks equality by comparing each attribute.
|
@@ -131,7 +132,7 @@ module PulpDebClient
|
|
131
132
|
pulp_labels == o.pulp_labels &&
|
132
133
|
name == o.name &&
|
133
134
|
description == o.description &&
|
134
|
-
|
135
|
+
retain_repo_versions == o.retain_repo_versions &&
|
135
136
|
remote == o.remote
|
136
137
|
end
|
137
138
|
|
@@ -144,7 +145,7 @@ module PulpDebClient
|
|
144
145
|
# Calculates hash code according to all attributes.
|
145
146
|
# @return [Integer] Hash code
|
146
147
|
def hash
|
147
|
-
[pulp_labels, name, description,
|
148
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
148
149
|
end
|
149
150
|
|
150
151
|
# Builds the object from hash
|
data/lib/pulp_deb_client.rb
CHANGED
@@ -88,7 +88,7 @@ require 'pulp_deb_client/api/publications_apt_api'
|
|
88
88
|
require 'pulp_deb_client/api/publications_verbatim_api'
|
89
89
|
require 'pulp_deb_client/api/remotes_apt_api'
|
90
90
|
require 'pulp_deb_client/api/repositories_apt_api'
|
91
|
-
require 'pulp_deb_client/api/
|
91
|
+
require 'pulp_deb_client/api/repositories_apt_versions_api'
|
92
92
|
|
93
93
|
module PulpDebClient
|
94
94
|
class << self
|
data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb}
RENAMED
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpDebClient::
|
16
|
+
# Unit tests for PulpDebClient::RepositoriesAptVersionsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'RepositoriesAptVersionsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpDebClient::
|
22
|
+
@api_instance = PulpDebClient::RepositoriesAptVersionsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpDebClient::
|
29
|
+
describe 'test an instance of RepositoriesAptVersionsApi' do
|
30
|
+
it 'should create an instance of RepositoriesAptVersionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::RepositoriesAptVersionsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpDebClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpDebClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpDebClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -98,6 +98,12 @@ describe 'DebAptRemoteResponse' do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
describe 'test attribute "max_retries"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
101
107
|
describe 'test attribute "policy"' do
|
102
108
|
it 'should work' do
|
103
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -110,6 +110,12 @@ describe 'DebAptRemote' do
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
describe 'test attribute "max_retries"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
113
119
|
describe 'test attribute "policy"' do
|
114
120
|
it 'should work' do
|
115
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|