pulp_deb_client 2.10.1 → 2.11.0
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/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DebAptRemote.md +7 -1
- data/docs/DebAptRemoteResponse.md +3 -7
- data/docs/DistributionsAptApi.md +20 -20
- data/docs/PatcheddebAptRemote.md +7 -1
- 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 -43
- 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 -45
- 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 -30
- data/lib/pulp_deb_client/models/content_summary.rb +12 -6
- data/lib/pulp_deb_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +36 -2
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +14 -35
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +36 -2
- 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 +6 -18
- data/spec/models/deb_apt_remote_spec.rb +18 -0
- data/spec/models/patcheddeb_apt_remote_spec.rb +18 -0
- metadata +54 -54
@@ -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 Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
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 [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
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 [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
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 Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
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 [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
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 [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
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
|
@@ -155,7 +155,7 @@ module PulpDebClient
|
|
155
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
156
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
157
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
158
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
159
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
160
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
161
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -163,7 +163,7 @@ module PulpDebClient
|
|
163
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
164
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
165
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
166
|
-
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
166
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
167
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
169
|
|
@@ -33,9 +33,9 @@ module PulpDebClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpDebClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,9 @@ module PulpDebClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpDebClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,15 @@ 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://
|
36
|
+
# The proxy URL. Format: scheme://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
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpDebClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -99,6 +108,8 @@ module PulpDebClient
|
|
99
108
|
:'client_key' => :'client_key',
|
100
109
|
:'tls_validation' => :'tls_validation',
|
101
110
|
:'proxy_url' => :'proxy_url',
|
111
|
+
:'proxy_username' => :'proxy_username',
|
112
|
+
:'proxy_password' => :'proxy_password',
|
102
113
|
:'username' => :'username',
|
103
114
|
:'password' => :'password',
|
104
115
|
:'pulp_labels' => :'pulp_labels',
|
@@ -108,6 +119,7 @@ module PulpDebClient
|
|
108
119
|
:'connect_timeout' => :'connect_timeout',
|
109
120
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
110
121
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
+
:'headers' => :'headers',
|
111
123
|
:'rate_limit' => :'rate_limit',
|
112
124
|
:'distributions' => :'distributions',
|
113
125
|
:'components' => :'components',
|
@@ -130,6 +142,8 @@ module PulpDebClient
|
|
130
142
|
:'client_key' => :'String',
|
131
143
|
:'tls_validation' => :'Boolean',
|
132
144
|
:'proxy_url' => :'String',
|
145
|
+
:'proxy_username' => :'String',
|
146
|
+
:'proxy_password' => :'String',
|
133
147
|
:'username' => :'String',
|
134
148
|
:'password' => :'String',
|
135
149
|
:'pulp_labels' => :'Object',
|
@@ -139,6 +153,7 @@ module PulpDebClient
|
|
139
153
|
:'connect_timeout' => :'Float',
|
140
154
|
:'sock_connect_timeout' => :'Float',
|
141
155
|
:'sock_read_timeout' => :'Float',
|
156
|
+
:'headers' => :'Array<Object>',
|
142
157
|
:'rate_limit' => :'Integer',
|
143
158
|
:'distributions' => :'String',
|
144
159
|
:'components' => :'String',
|
@@ -158,6 +173,8 @@ module PulpDebClient
|
|
158
173
|
:'client_cert',
|
159
174
|
:'client_key',
|
160
175
|
:'proxy_url',
|
176
|
+
:'proxy_username',
|
177
|
+
:'proxy_password',
|
161
178
|
:'username',
|
162
179
|
:'password',
|
163
180
|
:'total_timeout',
|
@@ -214,6 +231,14 @@ module PulpDebClient
|
|
214
231
|
self.proxy_url = attributes[:'proxy_url']
|
215
232
|
end
|
216
233
|
|
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
|
+
|
217
242
|
if attributes.key?(:'username')
|
218
243
|
self.username = attributes[:'username']
|
219
244
|
end
|
@@ -250,6 +275,12 @@ module PulpDebClient
|
|
250
275
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
251
276
|
end
|
252
277
|
|
278
|
+
if attributes.key?(:'headers')
|
279
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
+
self.headers = value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
253
284
|
if attributes.key?(:'rate_limit')
|
254
285
|
self.rate_limit = attributes[:'rate_limit']
|
255
286
|
end
|
@@ -402,6 +433,8 @@ module PulpDebClient
|
|
402
433
|
client_key == o.client_key &&
|
403
434
|
tls_validation == o.tls_validation &&
|
404
435
|
proxy_url == o.proxy_url &&
|
436
|
+
proxy_username == o.proxy_username &&
|
437
|
+
proxy_password == o.proxy_password &&
|
405
438
|
username == o.username &&
|
406
439
|
password == o.password &&
|
407
440
|
pulp_labels == o.pulp_labels &&
|
@@ -411,6 +444,7 @@ module PulpDebClient
|
|
411
444
|
connect_timeout == o.connect_timeout &&
|
412
445
|
sock_connect_timeout == o.sock_connect_timeout &&
|
413
446
|
sock_read_timeout == o.sock_read_timeout &&
|
447
|
+
headers == o.headers &&
|
414
448
|
rate_limit == o.rate_limit &&
|
415
449
|
distributions == o.distributions &&
|
416
450
|
components == o.components &&
|
@@ -431,7 +465,7 @@ module PulpDebClient
|
|
431
465
|
# Calculates hash code according to all attributes.
|
432
466
|
# @return [Integer] Hash code
|
433
467
|
def hash
|
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
|
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
|
435
469
|
end
|
436
470
|
|
437
471
|
# Builds the object from hash
|
@@ -32,21 +32,12 @@ 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
|
-
|
38
35
|
# If True, TLS peer validation must be performed.
|
39
36
|
attr_accessor :tls_validation
|
40
37
|
|
41
|
-
# The proxy URL. Format: scheme://
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
42
39
|
attr_accessor :proxy_url
|
43
40
|
|
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
|
-
|
50
41
|
attr_accessor :pulp_labels
|
51
42
|
|
52
43
|
# Timestamp of the most recent update of the remote.
|
@@ -70,6 +61,9 @@ module PulpDebClient
|
|
70
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
62
|
attr_accessor :sock_read_timeout
|
72
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
73
67
|
# Limits total download rate in requests per second
|
74
68
|
attr_accessor :rate_limit
|
75
69
|
|
@@ -106,11 +100,8 @@ module PulpDebClient
|
|
106
100
|
:'url' => :'url',
|
107
101
|
:'ca_cert' => :'ca_cert',
|
108
102
|
:'client_cert' => :'client_cert',
|
109
|
-
:'client_key' => :'client_key',
|
110
103
|
:'tls_validation' => :'tls_validation',
|
111
104
|
:'proxy_url' => :'proxy_url',
|
112
|
-
:'username' => :'username',
|
113
|
-
:'password' => :'password',
|
114
105
|
:'pulp_labels' => :'pulp_labels',
|
115
106
|
:'pulp_last_updated' => :'pulp_last_updated',
|
116
107
|
:'download_concurrency' => :'download_concurrency',
|
@@ -119,6 +110,7 @@ module PulpDebClient
|
|
119
110
|
:'connect_timeout' => :'connect_timeout',
|
120
111
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
121
112
|
:'sock_read_timeout' => :'sock_read_timeout',
|
113
|
+
:'headers' => :'headers',
|
122
114
|
:'rate_limit' => :'rate_limit',
|
123
115
|
:'distributions' => :'distributions',
|
124
116
|
:'components' => :'components',
|
@@ -140,11 +132,8 @@ module PulpDebClient
|
|
140
132
|
:'url' => :'String',
|
141
133
|
:'ca_cert' => :'String',
|
142
134
|
:'client_cert' => :'String',
|
143
|
-
:'client_key' => :'String',
|
144
135
|
:'tls_validation' => :'Boolean',
|
145
136
|
:'proxy_url' => :'String',
|
146
|
-
:'username' => :'String',
|
147
|
-
:'password' => :'String',
|
148
137
|
:'pulp_labels' => :'Object',
|
149
138
|
:'pulp_last_updated' => :'DateTime',
|
150
139
|
:'download_concurrency' => :'Integer',
|
@@ -153,6 +142,7 @@ module PulpDebClient
|
|
153
142
|
:'connect_timeout' => :'Float',
|
154
143
|
:'sock_connect_timeout' => :'Float',
|
155
144
|
:'sock_read_timeout' => :'Float',
|
145
|
+
:'headers' => :'Array<Object>',
|
156
146
|
:'rate_limit' => :'Integer',
|
157
147
|
:'distributions' => :'String',
|
158
148
|
:'components' => :'String',
|
@@ -170,10 +160,7 @@ module PulpDebClient
|
|
170
160
|
Set.new([
|
171
161
|
:'ca_cert',
|
172
162
|
:'client_cert',
|
173
|
-
:'client_key',
|
174
163
|
:'proxy_url',
|
175
|
-
:'username',
|
176
|
-
:'password',
|
177
164
|
:'total_timeout',
|
178
165
|
:'connect_timeout',
|
179
166
|
:'sock_connect_timeout',
|
@@ -224,10 +211,6 @@ module PulpDebClient
|
|
224
211
|
self.client_cert = attributes[:'client_cert']
|
225
212
|
end
|
226
213
|
|
227
|
-
if attributes.key?(:'client_key')
|
228
|
-
self.client_key = attributes[:'client_key']
|
229
|
-
end
|
230
|
-
|
231
214
|
if attributes.key?(:'tls_validation')
|
232
215
|
self.tls_validation = attributes[:'tls_validation']
|
233
216
|
end
|
@@ -236,14 +219,6 @@ module PulpDebClient
|
|
236
219
|
self.proxy_url = attributes[:'proxy_url']
|
237
220
|
end
|
238
221
|
|
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
|
-
|
247
222
|
if attributes.key?(:'pulp_labels')
|
248
223
|
self.pulp_labels = attributes[:'pulp_labels']
|
249
224
|
end
|
@@ -276,6 +251,12 @@ module PulpDebClient
|
|
276
251
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
277
252
|
end
|
278
253
|
|
254
|
+
if attributes.key?(:'headers')
|
255
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
256
|
+
self.headers = value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
279
260
|
if attributes.key?(:'rate_limit')
|
280
261
|
self.rate_limit = attributes[:'rate_limit']
|
281
262
|
end
|
@@ -427,11 +408,8 @@ module PulpDebClient
|
|
427
408
|
url == o.url &&
|
428
409
|
ca_cert == o.ca_cert &&
|
429
410
|
client_cert == o.client_cert &&
|
430
|
-
client_key == o.client_key &&
|
431
411
|
tls_validation == o.tls_validation &&
|
432
412
|
proxy_url == o.proxy_url &&
|
433
|
-
username == o.username &&
|
434
|
-
password == o.password &&
|
435
413
|
pulp_labels == o.pulp_labels &&
|
436
414
|
pulp_last_updated == o.pulp_last_updated &&
|
437
415
|
download_concurrency == o.download_concurrency &&
|
@@ -440,6 +418,7 @@ module PulpDebClient
|
|
440
418
|
connect_timeout == o.connect_timeout &&
|
441
419
|
sock_connect_timeout == o.sock_connect_timeout &&
|
442
420
|
sock_read_timeout == o.sock_read_timeout &&
|
421
|
+
headers == o.headers &&
|
443
422
|
rate_limit == o.rate_limit &&
|
444
423
|
distributions == o.distributions &&
|
445
424
|
components == o.components &&
|
@@ -460,7 +439,7 @@ module PulpDebClient
|
|
460
439
|
# Calculates hash code according to all attributes.
|
461
440
|
# @return [Integer] Hash code
|
462
441
|
def hash
|
463
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
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
|
464
443
|
end
|
465
444
|
|
466
445
|
# Builds the object from hash
|
@@ -33,9 +33,15 @@ 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://
|
36
|
+
# The proxy URL. Format: scheme://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
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpDebClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -99,6 +108,8 @@ module PulpDebClient
|
|
99
108
|
:'client_key' => :'client_key',
|
100
109
|
:'tls_validation' => :'tls_validation',
|
101
110
|
:'proxy_url' => :'proxy_url',
|
111
|
+
:'proxy_username' => :'proxy_username',
|
112
|
+
:'proxy_password' => :'proxy_password',
|
102
113
|
:'username' => :'username',
|
103
114
|
:'password' => :'password',
|
104
115
|
:'pulp_labels' => :'pulp_labels',
|
@@ -108,6 +119,7 @@ module PulpDebClient
|
|
108
119
|
:'connect_timeout' => :'connect_timeout',
|
109
120
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
110
121
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
+
:'headers' => :'headers',
|
111
123
|
:'rate_limit' => :'rate_limit',
|
112
124
|
:'distributions' => :'distributions',
|
113
125
|
:'components' => :'components',
|
@@ -130,6 +142,8 @@ module PulpDebClient
|
|
130
142
|
:'client_key' => :'String',
|
131
143
|
:'tls_validation' => :'Boolean',
|
132
144
|
:'proxy_url' => :'String',
|
145
|
+
:'proxy_username' => :'String',
|
146
|
+
:'proxy_password' => :'String',
|
133
147
|
:'username' => :'String',
|
134
148
|
:'password' => :'String',
|
135
149
|
:'pulp_labels' => :'Object',
|
@@ -139,6 +153,7 @@ module PulpDebClient
|
|
139
153
|
:'connect_timeout' => :'Float',
|
140
154
|
:'sock_connect_timeout' => :'Float',
|
141
155
|
:'sock_read_timeout' => :'Float',
|
156
|
+
:'headers' => :'Array<Object>',
|
142
157
|
:'rate_limit' => :'Integer',
|
143
158
|
:'distributions' => :'String',
|
144
159
|
:'components' => :'String',
|
@@ -158,6 +173,8 @@ module PulpDebClient
|
|
158
173
|
:'client_cert',
|
159
174
|
:'client_key',
|
160
175
|
:'proxy_url',
|
176
|
+
:'proxy_username',
|
177
|
+
:'proxy_password',
|
161
178
|
:'username',
|
162
179
|
:'password',
|
163
180
|
:'total_timeout',
|
@@ -214,6 +231,14 @@ module PulpDebClient
|
|
214
231
|
self.proxy_url = attributes[:'proxy_url']
|
215
232
|
end
|
216
233
|
|
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
|
+
|
217
242
|
if attributes.key?(:'username')
|
218
243
|
self.username = attributes[:'username']
|
219
244
|
end
|
@@ -250,6 +275,12 @@ module PulpDebClient
|
|
250
275
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
251
276
|
end
|
252
277
|
|
278
|
+
if attributes.key?(:'headers')
|
279
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
+
self.headers = value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
253
284
|
if attributes.key?(:'rate_limit')
|
254
285
|
self.rate_limit = attributes[:'rate_limit']
|
255
286
|
end
|
@@ -387,6 +418,8 @@ module PulpDebClient
|
|
387
418
|
client_key == o.client_key &&
|
388
419
|
tls_validation == o.tls_validation &&
|
389
420
|
proxy_url == o.proxy_url &&
|
421
|
+
proxy_username == o.proxy_username &&
|
422
|
+
proxy_password == o.proxy_password &&
|
390
423
|
username == o.username &&
|
391
424
|
password == o.password &&
|
392
425
|
pulp_labels == o.pulp_labels &&
|
@@ -396,6 +429,7 @@ module PulpDebClient
|
|
396
429
|
connect_timeout == o.connect_timeout &&
|
397
430
|
sock_connect_timeout == o.sock_connect_timeout &&
|
398
431
|
sock_read_timeout == o.sock_read_timeout &&
|
432
|
+
headers == o.headers &&
|
399
433
|
rate_limit == o.rate_limit &&
|
400
434
|
distributions == o.distributions &&
|
401
435
|
components == o.components &&
|
@@ -416,7 +450,7 @@ module PulpDebClient
|
|
416
450
|
# Calculates hash code according to all attributes.
|
417
451
|
# @return [Integer] Hash code
|
418
452
|
def hash
|
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
|
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
|
420
454
|
end
|
421
455
|
|
422
456
|
# Builds the object from hash
|