pulp_deb_client 2.10.0 → 2.10.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 +4 -4
- data/docs/ContentGenericContentsApi.md +10 -10
- data/docs/ContentInstallerFileIndicesApi.md +14 -14
- data/docs/ContentInstallerPackagesApi.md +40 -40
- data/docs/ContentPackageIndicesApi.md +14 -14
- data/docs/ContentPackageReleaseComponentsApi.md +10 -10
- data/docs/ContentPackagesApi.md +42 -42
- data/docs/ContentReleaseArchitecturesApi.md +10 -10
- data/docs/ContentReleaseComponentsApi.md +10 -10
- data/docs/ContentReleaseFilesApi.md +14 -14
- data/docs/ContentReleasesApi.md +12 -12
- data/docs/DebAptRemote.md +1 -7
- data/docs/DebAptRemoteResponse.md +7 -3
- data/docs/DistributionsAptApi.md +20 -20
- data/docs/PatcheddebAptRemote.md +1 -7
- data/docs/PublicationsAptApi.md +14 -14
- data/docs/PublicationsVerbatimApi.md +14 -14
- data/docs/RemotesAptApi.md +24 -24
- data/docs/RepositoriesAptApi.md +12 -12
- data/docs/RepositoriesDebVersionsApi.md +28 -28
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +43 -51
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_packages_api.rb +45 -53
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_release_components_api.rb +10 -10
- data/lib/pulp_deb_client/api/content_release_files_api.rb +14 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +12 -12
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +22 -22
- data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -15
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -15
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +26 -26
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +13 -13
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +30 -50
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +2 -36
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +35 -14
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +2 -36
- data/lib/pulp_deb_client/version.rb +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +5 -5
- data/spec/api/content_installer_file_indices_api_spec.rb +7 -7
- data/spec/api/content_installer_packages_api_spec.rb +20 -20
- data/spec/api/content_package_indices_api_spec.rb +7 -7
- data/spec/api/content_package_release_components_api_spec.rb +5 -5
- data/spec/api/content_packages_api_spec.rb +21 -21
- data/spec/api/content_release_architectures_api_spec.rb +5 -5
- data/spec/api/content_release_components_api_spec.rb +5 -5
- data/spec/api/content_release_files_api_spec.rb +7 -7
- data/spec/api/content_releases_api_spec.rb +6 -6
- data/spec/api/distributions_apt_api_spec.rb +10 -10
- data/spec/api/publications_apt_api_spec.rb +7 -7
- data/spec/api/publications_verbatim_api_spec.rb +7 -7
- data/spec/api/remotes_apt_api_spec.rb +12 -12
- data/spec/api/repositories_apt_api_spec.rb +6 -6
- data/spec/api/repositories_deb_versions_api_spec.rb +14 -14
- data/spec/models/deb_apt_remote_response_spec.rb +18 -6
- data/spec/models/deb_apt_remote_spec.rb +0 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +0 -18
- metadata +55 -55
@@ -85,23 +85,23 @@ module PulpDebClient
|
|
85
85
|
# An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
|
86
86
|
# @param deb_apt_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content content
|
89
|
+
# @option opts [String] :content__in content__in
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
91
|
+
# @option opts [String] :number number
|
92
|
+
# @option opts [String] :number__gt number__gt
|
93
|
+
# @option opts [String] :number__gte number__gte
|
94
|
+
# @option opts [String] :number__lt number__lt
|
95
|
+
# @option opts [String] :number__lte number__lte
|
96
|
+
# @option opts [String] :number__range number__range
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
99
|
+
# @option opts [String] :pulp_created pulp_created
|
100
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
101
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
102
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
103
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
104
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -114,23 +114,23 @@ module PulpDebClient
|
|
114
114
|
# An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
|
115
115
|
# @param deb_apt_repository_href [String]
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :content
|
118
|
-
# @option opts [String] :content__in
|
117
|
+
# @option opts [String] :content content
|
118
|
+
# @option opts [String] :content__in content__in
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [
|
121
|
-
# @option opts [
|
122
|
-
# @option opts [
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
120
|
+
# @option opts [String] :number number
|
121
|
+
# @option opts [String] :number__gt number__gt
|
122
|
+
# @option opts [String] :number__gte number__gte
|
123
|
+
# @option opts [String] :number__lt number__lt
|
124
|
+
# @option opts [String] :number__lte number__lte
|
125
|
+
# @option opts [String] :number__range number__range
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
127
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
128
|
-
# @option opts [
|
129
|
-
# @option opts [
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
128
|
+
# @option opts [String] :pulp_created pulp_created
|
129
|
+
# @option opts [String] :pulp_created__gt pulp_created__gt
|
130
|
+
# @option opts [String] :pulp_created__gte pulp_created__gte
|
131
|
+
# @option opts [String] :pulp_created__lt pulp_created__lt
|
132
|
+
# @option opts [String] :pulp_created__lte pulp_created__lte
|
133
|
+
# @option opts [String] :pulp_created__range pulp_created__range
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -142,26 +142,6 @@ module PulpDebClient
|
|
142
142
|
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesDebVersionsApi.list"
|
144
144
|
end
|
145
|
-
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
146
|
-
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
|
147
|
-
end
|
148
|
-
|
149
|
-
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
150
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
|
151
|
-
end
|
152
|
-
|
153
|
-
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
154
|
-
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
|
155
|
-
end
|
156
|
-
|
157
|
-
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
158
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
|
159
|
-
end
|
160
|
-
|
161
|
-
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
162
|
-
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
|
163
|
-
end
|
164
|
-
|
165
145
|
# resource path
|
166
146
|
local_var_path = '{deb_apt_repository_href}versions/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
167
147
|
|
@@ -175,7 +155,7 @@ module PulpDebClient
|
|
175
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
176
156
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
177
157
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
178
|
-
query_params[:'number__range'] =
|
158
|
+
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
179
159
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
180
160
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
181
161
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -183,7 +163,7 @@ module PulpDebClient
|
|
183
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
184
164
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
185
165
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
186
|
-
query_params[:'pulp_created__range'] =
|
166
|
+
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
187
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
188
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
189
169
|
|
@@ -33,15 +33,9 @@ module PulpDebClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://host:port
|
36
|
+
# The proxy URL. Format: scheme://user:password@host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
-
# The username to authenticte to the proxy.
|
40
|
-
attr_accessor :proxy_username
|
41
|
-
|
42
|
-
# The password to authenticte to the proxy.
|
43
|
-
attr_accessor :proxy_password
|
44
|
-
|
45
39
|
# The username to be used for authentication when syncing.
|
46
40
|
attr_accessor :username
|
47
41
|
|
@@ -68,9 +62,6 @@ module PulpDebClient
|
|
68
62
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
69
63
|
attr_accessor :sock_read_timeout
|
70
64
|
|
71
|
-
# Headers for aiohttp.Clientsession
|
72
|
-
attr_accessor :headers
|
73
|
-
|
74
65
|
# Limits total download rate in requests per second
|
75
66
|
attr_accessor :rate_limit
|
76
67
|
|
@@ -108,8 +99,6 @@ module PulpDebClient
|
|
108
99
|
:'client_key' => :'client_key',
|
109
100
|
:'tls_validation' => :'tls_validation',
|
110
101
|
:'proxy_url' => :'proxy_url',
|
111
|
-
:'proxy_username' => :'proxy_username',
|
112
|
-
:'proxy_password' => :'proxy_password',
|
113
102
|
:'username' => :'username',
|
114
103
|
:'password' => :'password',
|
115
104
|
:'pulp_labels' => :'pulp_labels',
|
@@ -119,7 +108,6 @@ module PulpDebClient
|
|
119
108
|
:'connect_timeout' => :'connect_timeout',
|
120
109
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
121
110
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
-
:'headers' => :'headers',
|
123
111
|
:'rate_limit' => :'rate_limit',
|
124
112
|
:'distributions' => :'distributions',
|
125
113
|
:'components' => :'components',
|
@@ -142,8 +130,6 @@ module PulpDebClient
|
|
142
130
|
:'client_key' => :'String',
|
143
131
|
:'tls_validation' => :'Boolean',
|
144
132
|
:'proxy_url' => :'String',
|
145
|
-
:'proxy_username' => :'String',
|
146
|
-
:'proxy_password' => :'String',
|
147
133
|
:'username' => :'String',
|
148
134
|
:'password' => :'String',
|
149
135
|
:'pulp_labels' => :'Object',
|
@@ -153,7 +139,6 @@ module PulpDebClient
|
|
153
139
|
:'connect_timeout' => :'Float',
|
154
140
|
:'sock_connect_timeout' => :'Float',
|
155
141
|
:'sock_read_timeout' => :'Float',
|
156
|
-
:'headers' => :'Array<Object>',
|
157
142
|
:'rate_limit' => :'Integer',
|
158
143
|
:'distributions' => :'String',
|
159
144
|
:'components' => :'String',
|
@@ -173,8 +158,6 @@ module PulpDebClient
|
|
173
158
|
:'client_cert',
|
174
159
|
:'client_key',
|
175
160
|
:'proxy_url',
|
176
|
-
:'proxy_username',
|
177
|
-
:'proxy_password',
|
178
161
|
:'username',
|
179
162
|
:'password',
|
180
163
|
:'total_timeout',
|
@@ -231,14 +214,6 @@ module PulpDebClient
|
|
231
214
|
self.proxy_url = attributes[:'proxy_url']
|
232
215
|
end
|
233
216
|
|
234
|
-
if attributes.key?(:'proxy_username')
|
235
|
-
self.proxy_username = attributes[:'proxy_username']
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.key?(:'proxy_password')
|
239
|
-
self.proxy_password = attributes[:'proxy_password']
|
240
|
-
end
|
241
|
-
|
242
217
|
if attributes.key?(:'username')
|
243
218
|
self.username = attributes[:'username']
|
244
219
|
end
|
@@ -275,12 +250,6 @@ module PulpDebClient
|
|
275
250
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
276
251
|
end
|
277
252
|
|
278
|
-
if attributes.key?(:'headers')
|
279
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
-
self.headers = value
|
281
|
-
end
|
282
|
-
end
|
283
|
-
|
284
253
|
if attributes.key?(:'rate_limit')
|
285
254
|
self.rate_limit = attributes[:'rate_limit']
|
286
255
|
end
|
@@ -433,8 +402,6 @@ module PulpDebClient
|
|
433
402
|
client_key == o.client_key &&
|
434
403
|
tls_validation == o.tls_validation &&
|
435
404
|
proxy_url == o.proxy_url &&
|
436
|
-
proxy_username == o.proxy_username &&
|
437
|
-
proxy_password == o.proxy_password &&
|
438
405
|
username == o.username &&
|
439
406
|
password == o.password &&
|
440
407
|
pulp_labels == o.pulp_labels &&
|
@@ -444,7 +411,6 @@ module PulpDebClient
|
|
444
411
|
connect_timeout == o.connect_timeout &&
|
445
412
|
sock_connect_timeout == o.sock_connect_timeout &&
|
446
413
|
sock_read_timeout == o.sock_read_timeout &&
|
447
|
-
headers == o.headers &&
|
448
414
|
rate_limit == o.rate_limit &&
|
449
415
|
distributions == o.distributions &&
|
450
416
|
components == o.components &&
|
@@ -465,7 +431,7 @@ module PulpDebClient
|
|
465
431
|
# Calculates hash code according to all attributes.
|
466
432
|
# @return [Integer] Hash code
|
467
433
|
def hash
|
468
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url,
|
434
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
469
435
|
end
|
470
436
|
|
471
437
|
# Builds the object from hash
|
@@ -32,12 +32,21 @@ module PulpDebClient
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
33
33
|
attr_accessor :client_cert
|
34
34
|
|
35
|
+
# A PEM encoded private key used for authentication.
|
36
|
+
attr_accessor :client_key
|
37
|
+
|
35
38
|
# If True, TLS peer validation must be performed.
|
36
39
|
attr_accessor :tls_validation
|
37
40
|
|
38
|
-
# The proxy URL. Format: scheme://host:port
|
41
|
+
# The proxy URL. Format: scheme://user:password@host:port
|
39
42
|
attr_accessor :proxy_url
|
40
43
|
|
44
|
+
# The username to be used for authentication when syncing.
|
45
|
+
attr_accessor :username
|
46
|
+
|
47
|
+
# The password to be used for authentication when syncing.
|
48
|
+
attr_accessor :password
|
49
|
+
|
41
50
|
attr_accessor :pulp_labels
|
42
51
|
|
43
52
|
# Timestamp of the most recent update of the remote.
|
@@ -61,9 +70,6 @@ module PulpDebClient
|
|
61
70
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
62
71
|
attr_accessor :sock_read_timeout
|
63
72
|
|
64
|
-
# Headers for aiohttp.Clientsession
|
65
|
-
attr_accessor :headers
|
66
|
-
|
67
73
|
# Limits total download rate in requests per second
|
68
74
|
attr_accessor :rate_limit
|
69
75
|
|
@@ -100,8 +106,11 @@ module PulpDebClient
|
|
100
106
|
:'url' => :'url',
|
101
107
|
:'ca_cert' => :'ca_cert',
|
102
108
|
:'client_cert' => :'client_cert',
|
109
|
+
:'client_key' => :'client_key',
|
103
110
|
:'tls_validation' => :'tls_validation',
|
104
111
|
:'proxy_url' => :'proxy_url',
|
112
|
+
:'username' => :'username',
|
113
|
+
:'password' => :'password',
|
105
114
|
:'pulp_labels' => :'pulp_labels',
|
106
115
|
:'pulp_last_updated' => :'pulp_last_updated',
|
107
116
|
:'download_concurrency' => :'download_concurrency',
|
@@ -110,7 +119,6 @@ module PulpDebClient
|
|
110
119
|
:'connect_timeout' => :'connect_timeout',
|
111
120
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
112
121
|
:'sock_read_timeout' => :'sock_read_timeout',
|
113
|
-
:'headers' => :'headers',
|
114
122
|
:'rate_limit' => :'rate_limit',
|
115
123
|
:'distributions' => :'distributions',
|
116
124
|
:'components' => :'components',
|
@@ -132,8 +140,11 @@ module PulpDebClient
|
|
132
140
|
:'url' => :'String',
|
133
141
|
:'ca_cert' => :'String',
|
134
142
|
:'client_cert' => :'String',
|
143
|
+
:'client_key' => :'String',
|
135
144
|
:'tls_validation' => :'Boolean',
|
136
145
|
:'proxy_url' => :'String',
|
146
|
+
:'username' => :'String',
|
147
|
+
:'password' => :'String',
|
137
148
|
:'pulp_labels' => :'Object',
|
138
149
|
:'pulp_last_updated' => :'DateTime',
|
139
150
|
:'download_concurrency' => :'Integer',
|
@@ -142,7 +153,6 @@ module PulpDebClient
|
|
142
153
|
:'connect_timeout' => :'Float',
|
143
154
|
:'sock_connect_timeout' => :'Float',
|
144
155
|
:'sock_read_timeout' => :'Float',
|
145
|
-
:'headers' => :'Array<Object>',
|
146
156
|
:'rate_limit' => :'Integer',
|
147
157
|
:'distributions' => :'String',
|
148
158
|
:'components' => :'String',
|
@@ -160,7 +170,10 @@ module PulpDebClient
|
|
160
170
|
Set.new([
|
161
171
|
:'ca_cert',
|
162
172
|
:'client_cert',
|
173
|
+
:'client_key',
|
163
174
|
:'proxy_url',
|
175
|
+
:'username',
|
176
|
+
:'password',
|
164
177
|
:'total_timeout',
|
165
178
|
:'connect_timeout',
|
166
179
|
:'sock_connect_timeout',
|
@@ -211,6 +224,10 @@ module PulpDebClient
|
|
211
224
|
self.client_cert = attributes[:'client_cert']
|
212
225
|
end
|
213
226
|
|
227
|
+
if attributes.key?(:'client_key')
|
228
|
+
self.client_key = attributes[:'client_key']
|
229
|
+
end
|
230
|
+
|
214
231
|
if attributes.key?(:'tls_validation')
|
215
232
|
self.tls_validation = attributes[:'tls_validation']
|
216
233
|
end
|
@@ -219,6 +236,14 @@ module PulpDebClient
|
|
219
236
|
self.proxy_url = attributes[:'proxy_url']
|
220
237
|
end
|
221
238
|
|
239
|
+
if attributes.key?(:'username')
|
240
|
+
self.username = attributes[:'username']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.key?(:'password')
|
244
|
+
self.password = attributes[:'password']
|
245
|
+
end
|
246
|
+
|
222
247
|
if attributes.key?(:'pulp_labels')
|
223
248
|
self.pulp_labels = attributes[:'pulp_labels']
|
224
249
|
end
|
@@ -251,12 +276,6 @@ module PulpDebClient
|
|
251
276
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
252
277
|
end
|
253
278
|
|
254
|
-
if attributes.key?(:'headers')
|
255
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
256
|
-
self.headers = value
|
257
|
-
end
|
258
|
-
end
|
259
|
-
|
260
279
|
if attributes.key?(:'rate_limit')
|
261
280
|
self.rate_limit = attributes[:'rate_limit']
|
262
281
|
end
|
@@ -408,8 +427,11 @@ module PulpDebClient
|
|
408
427
|
url == o.url &&
|
409
428
|
ca_cert == o.ca_cert &&
|
410
429
|
client_cert == o.client_cert &&
|
430
|
+
client_key == o.client_key &&
|
411
431
|
tls_validation == o.tls_validation &&
|
412
432
|
proxy_url == o.proxy_url &&
|
433
|
+
username == o.username &&
|
434
|
+
password == o.password &&
|
413
435
|
pulp_labels == o.pulp_labels &&
|
414
436
|
pulp_last_updated == o.pulp_last_updated &&
|
415
437
|
download_concurrency == o.download_concurrency &&
|
@@ -418,7 +440,6 @@ module PulpDebClient
|
|
418
440
|
connect_timeout == o.connect_timeout &&
|
419
441
|
sock_connect_timeout == o.sock_connect_timeout &&
|
420
442
|
sock_read_timeout == o.sock_read_timeout &&
|
421
|
-
headers == o.headers &&
|
422
443
|
rate_limit == o.rate_limit &&
|
423
444
|
distributions == o.distributions &&
|
424
445
|
components == o.components &&
|
@@ -439,7 +460,7 @@ module PulpDebClient
|
|
439
460
|
# Calculates hash code according to all attributes.
|
440
461
|
# @return [Integer] Hash code
|
441
462
|
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,
|
463
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
443
464
|
end
|
444
465
|
|
445
466
|
# Builds the object from hash
|
@@ -33,15 +33,9 @@ module PulpDebClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://host:port
|
36
|
+
# The proxy URL. Format: scheme://user:password@host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
-
# The username to authenticte to the proxy.
|
40
|
-
attr_accessor :proxy_username
|
41
|
-
|
42
|
-
# The password to authenticte to the proxy.
|
43
|
-
attr_accessor :proxy_password
|
44
|
-
|
45
39
|
# The username to be used for authentication when syncing.
|
46
40
|
attr_accessor :username
|
47
41
|
|
@@ -68,9 +62,6 @@ module PulpDebClient
|
|
68
62
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
69
63
|
attr_accessor :sock_read_timeout
|
70
64
|
|
71
|
-
# Headers for aiohttp.Clientsession
|
72
|
-
attr_accessor :headers
|
73
|
-
|
74
65
|
# Limits total download rate in requests per second
|
75
66
|
attr_accessor :rate_limit
|
76
67
|
|
@@ -108,8 +99,6 @@ module PulpDebClient
|
|
108
99
|
:'client_key' => :'client_key',
|
109
100
|
:'tls_validation' => :'tls_validation',
|
110
101
|
:'proxy_url' => :'proxy_url',
|
111
|
-
:'proxy_username' => :'proxy_username',
|
112
|
-
:'proxy_password' => :'proxy_password',
|
113
102
|
:'username' => :'username',
|
114
103
|
:'password' => :'password',
|
115
104
|
:'pulp_labels' => :'pulp_labels',
|
@@ -119,7 +108,6 @@ module PulpDebClient
|
|
119
108
|
:'connect_timeout' => :'connect_timeout',
|
120
109
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
121
110
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
-
:'headers' => :'headers',
|
123
111
|
:'rate_limit' => :'rate_limit',
|
124
112
|
:'distributions' => :'distributions',
|
125
113
|
:'components' => :'components',
|
@@ -142,8 +130,6 @@ module PulpDebClient
|
|
142
130
|
:'client_key' => :'String',
|
143
131
|
:'tls_validation' => :'Boolean',
|
144
132
|
:'proxy_url' => :'String',
|
145
|
-
:'proxy_username' => :'String',
|
146
|
-
:'proxy_password' => :'String',
|
147
133
|
:'username' => :'String',
|
148
134
|
:'password' => :'String',
|
149
135
|
:'pulp_labels' => :'Object',
|
@@ -153,7 +139,6 @@ module PulpDebClient
|
|
153
139
|
:'connect_timeout' => :'Float',
|
154
140
|
:'sock_connect_timeout' => :'Float',
|
155
141
|
:'sock_read_timeout' => :'Float',
|
156
|
-
:'headers' => :'Array<Object>',
|
157
142
|
:'rate_limit' => :'Integer',
|
158
143
|
:'distributions' => :'String',
|
159
144
|
:'components' => :'String',
|
@@ -173,8 +158,6 @@ module PulpDebClient
|
|
173
158
|
:'client_cert',
|
174
159
|
:'client_key',
|
175
160
|
:'proxy_url',
|
176
|
-
:'proxy_username',
|
177
|
-
:'proxy_password',
|
178
161
|
:'username',
|
179
162
|
:'password',
|
180
163
|
:'total_timeout',
|
@@ -231,14 +214,6 @@ module PulpDebClient
|
|
231
214
|
self.proxy_url = attributes[:'proxy_url']
|
232
215
|
end
|
233
216
|
|
234
|
-
if attributes.key?(:'proxy_username')
|
235
|
-
self.proxy_username = attributes[:'proxy_username']
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.key?(:'proxy_password')
|
239
|
-
self.proxy_password = attributes[:'proxy_password']
|
240
|
-
end
|
241
|
-
|
242
217
|
if attributes.key?(:'username')
|
243
218
|
self.username = attributes[:'username']
|
244
219
|
end
|
@@ -275,12 +250,6 @@ module PulpDebClient
|
|
275
250
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
276
251
|
end
|
277
252
|
|
278
|
-
if attributes.key?(:'headers')
|
279
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
-
self.headers = value
|
281
|
-
end
|
282
|
-
end
|
283
|
-
|
284
253
|
if attributes.key?(:'rate_limit')
|
285
254
|
self.rate_limit = attributes[:'rate_limit']
|
286
255
|
end
|
@@ -418,8 +387,6 @@ module PulpDebClient
|
|
418
387
|
client_key == o.client_key &&
|
419
388
|
tls_validation == o.tls_validation &&
|
420
389
|
proxy_url == o.proxy_url &&
|
421
|
-
proxy_username == o.proxy_username &&
|
422
|
-
proxy_password == o.proxy_password &&
|
423
390
|
username == o.username &&
|
424
391
|
password == o.password &&
|
425
392
|
pulp_labels == o.pulp_labels &&
|
@@ -429,7 +396,6 @@ module PulpDebClient
|
|
429
396
|
connect_timeout == o.connect_timeout &&
|
430
397
|
sock_connect_timeout == o.sock_connect_timeout &&
|
431
398
|
sock_read_timeout == o.sock_read_timeout &&
|
432
|
-
headers == o.headers &&
|
433
399
|
rate_limit == o.rate_limit &&
|
434
400
|
distributions == o.distributions &&
|
435
401
|
components == o.components &&
|
@@ -450,7 +416,7 @@ module PulpDebClient
|
|
450
416
|
# Calculates hash code according to all attributes.
|
451
417
|
# @return [Integer] Hash code
|
452
418
|
def hash
|
453
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url,
|
419
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
|
454
420
|
end
|
455
421
|
|
456
422
|
# Builds the object from hash
|