pulp_deb_client 2.9.3 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- 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/DebAptDistribution.md +2 -0
- data/docs/DebAptDistributionResponse.md +2 -0
- data/docs/DebAptRemote.md +11 -1
- data/docs/DebAptRemoteResponse.md +7 -7
- data/docs/DebAptRepository.md +3 -1
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/DistributionsAptApi.md +20 -12
- data/docs/PatcheddebAptDistribution.md +2 -0
- data/docs/PatcheddebAptRemote.md +11 -1
- data/docs/PatcheddebAptRepository.md +3 -1
- data/docs/PublicationsAptApi.md +14 -14
- data/docs/PublicationsVerbatimApi.md +14 -14
- data/docs/RemotesAptApi.md +24 -16
- data/docs/RepositoriesAptApi.md +12 -4
- data/docs/RepositoriesDebVersionsApi.md +28 -28
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +11 -11
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +15 -15
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +52 -44
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +15 -15
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +11 -11
- data/lib/pulp_deb_client/api/content_packages_api.rb +54 -46
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +11 -11
- data/lib/pulp_deb_client/api/content_release_components_api.rb +11 -11
- data/lib/pulp_deb_client/api/content_release_files_api.rb +15 -15
- data/lib/pulp_deb_client/api/content_releases_api.rb +13 -13
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +27 -15
- data/lib/pulp_deb_client/api/publications_apt_api.rb +16 -16
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +16 -16
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +31 -19
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +18 -6
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +51 -31
- data/lib/pulp_deb_client/api_client.rb +8 -12
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -8
- data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +11 -2
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +11 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +57 -3
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +32 -33
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +11 -2
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +11 -2
- data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
- data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +11 -2
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +57 -3
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +11 -2
- data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +1 -1
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +6 -6
- data/spec/api/content_installer_file_indices_api_spec.rb +8 -8
- data/spec/api/content_installer_packages_api_spec.rb +21 -21
- data/spec/api/content_package_indices_api_spec.rb +8 -8
- data/spec/api/content_package_release_components_api_spec.rb +6 -6
- data/spec/api/content_packages_api_spec.rb +22 -22
- data/spec/api/content_release_architectures_api_spec.rb +6 -6
- data/spec/api/content_release_components_api_spec.rb +6 -6
- data/spec/api/content_release_files_api_spec.rb +8 -8
- data/spec/api/content_releases_api_spec.rb +7 -7
- data/spec/api/distributions_apt_api_spec.rb +11 -7
- data/spec/api/publications_apt_api_spec.rb +8 -8
- data/spec/api/publications_verbatim_api_spec.rb +8 -8
- data/spec/api/remotes_apt_api_spec.rb +13 -9
- data/spec/api/repositories_apt_api_spec.rb +7 -3
- data/spec/api/repositories_deb_versions_api_spec.rb +15 -15
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/deb_apt_distribution_response_spec.rb +7 -1
- data/spec/models/deb_apt_distribution_spec.rb +7 -1
- data/spec/models/deb_apt_publication_response_spec.rb +1 -1
- data/spec/models/deb_apt_publication_spec.rb +1 -1
- data/spec/models/deb_apt_remote_response_spec.rb +13 -13
- data/spec/models/deb_apt_remote_spec.rb +31 -1
- data/spec/models/deb_apt_repository_response_spec.rb +7 -1
- data/spec/models/deb_apt_repository_spec.rb +7 -1
- data/spec/models/deb_base_package_response_spec.rb +1 -1
- data/spec/models/deb_base_package_spec.rb +1 -1
- data/spec/models/deb_generic_content_response_spec.rb +1 -1
- data/spec/models/deb_generic_content_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_spec.rb +1 -1
- data/spec/models/deb_package_index_response_spec.rb +1 -1
- data/spec/models/deb_package_index_spec.rb +1 -1
- data/spec/models/deb_package_release_component_response_spec.rb +1 -1
- data/spec/models/deb_package_release_component_spec.rb +1 -1
- data/spec/models/deb_release_architecture_response_spec.rb +1 -1
- data/spec/models/deb_release_architecture_spec.rb +1 -1
- data/spec/models/deb_release_component_response_spec.rb +1 -1
- data/spec/models/deb_release_component_spec.rb +1 -1
- data/spec/models/deb_release_file_response_spec.rb +1 -1
- data/spec/models/deb_release_file_spec.rb +1 -1
- data/spec/models/deb_release_response_spec.rb +1 -1
- data/spec/models/deb_release_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_distribution_spec.rb +7 -1
- data/spec/models/patcheddeb_apt_remote_spec.rb +31 -1
- data/spec/models/patcheddeb_apt_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +55 -55
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,10 +53,8 @@ module PulpDebClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
58
|
-
}
|
59
|
-
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
56
|
+
|
57
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
|
60
58
|
conn.basic_auth(config.username, config.password)
|
61
59
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
62
60
|
conn.request :multipart
|
@@ -287,13 +285,11 @@ module PulpDebClient
|
|
287
285
|
tempfile.write(chunk)
|
288
286
|
end
|
289
287
|
request.on_complete do |response|
|
290
|
-
if tempfile
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
"explicitly with `tempfile.delete`"
|
296
|
-
end
|
288
|
+
tempfile.close if tempfile
|
289
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
290
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
291
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
292
|
+
"explicitly with `tempfile.delete`"
|
297
293
|
end
|
298
294
|
end
|
299
295
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,12 +109,6 @@ module PulpDebClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
-
# Set this to customize parameters encoder of array parameter.
|
113
|
-
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
-
#
|
115
|
-
# @see The params_encoder option of Faraday. Related source code:
|
116
|
-
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
-
attr_accessor :params_encoder
|
118
112
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
119
113
|
# Default to nil.
|
120
114
|
#
|
@@ -139,7 +133,6 @@ module PulpDebClient
|
|
139
133
|
@ssl_ca_file = nil
|
140
134
|
@ssl_client_cert = nil
|
141
135
|
@ssl_client_key = nil
|
142
|
-
@params_encoder = nil
|
143
136
|
@debugging = false
|
144
137
|
@inject_format = false
|
145
138
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,6 +21,8 @@ module PulpDebClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
@@ -32,6 +34,7 @@ module PulpDebClient
|
|
32
34
|
{
|
33
35
|
:'base_path' => :'base_path',
|
34
36
|
:'content_guard' => :'content_guard',
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'publication' => :'publication'
|
37
40
|
}
|
@@ -42,6 +45,7 @@ module PulpDebClient
|
|
42
45
|
{
|
43
46
|
:'base_path' => :'String',
|
44
47
|
:'content_guard' => :'String',
|
48
|
+
:'pulp_labels' => :'Object',
|
45
49
|
:'name' => :'String',
|
46
50
|
:'publication' => :'String'
|
47
51
|
}
|
@@ -78,6 +82,10 @@ module PulpDebClient
|
|
78
82
|
self.content_guard = attributes[:'content_guard']
|
79
83
|
end
|
80
84
|
|
85
|
+
if attributes.key?(:'pulp_labels')
|
86
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'name')
|
82
90
|
self.name = attributes[:'name']
|
83
91
|
end
|
@@ -117,6 +125,7 @@ module PulpDebClient
|
|
117
125
|
self.class == o.class &&
|
118
126
|
base_path == o.base_path &&
|
119
127
|
content_guard == o.content_guard &&
|
128
|
+
pulp_labels == o.pulp_labels &&
|
120
129
|
name == o.name &&
|
121
130
|
publication == o.publication
|
122
131
|
end
|
@@ -130,7 +139,7 @@ module PulpDebClient
|
|
130
139
|
# Calculates hash code according to all attributes.
|
131
140
|
# @return [Integer] Hash code
|
132
141
|
def hash
|
133
|
-
[base_path, content_guard, name, publication].hash
|
142
|
+
[base_path, content_guard, pulp_labels, name, publication].hash
|
134
143
|
end
|
135
144
|
|
136
145
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,6 +29,8 @@ module PulpDebClient
|
|
29
29
|
# An optional content-guard.
|
30
30
|
attr_accessor :content_guard
|
31
31
|
|
32
|
+
attr_accessor :pulp_labels
|
33
|
+
|
32
34
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
35
|
attr_accessor :name
|
34
36
|
|
@@ -43,6 +45,7 @@ module PulpDebClient
|
|
43
45
|
:'base_path' => :'base_path',
|
44
46
|
:'base_url' => :'base_url',
|
45
47
|
:'content_guard' => :'content_guard',
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
46
49
|
:'name' => :'name',
|
47
50
|
:'publication' => :'publication'
|
48
51
|
}
|
@@ -56,6 +59,7 @@ module PulpDebClient
|
|
56
59
|
:'base_path' => :'String',
|
57
60
|
:'base_url' => :'String',
|
58
61
|
:'content_guard' => :'String',
|
62
|
+
:'pulp_labels' => :'Object',
|
59
63
|
:'name' => :'String',
|
60
64
|
:'publication' => :'String'
|
61
65
|
}
|
@@ -104,6 +108,10 @@ module PulpDebClient
|
|
104
108
|
self.content_guard = attributes[:'content_guard']
|
105
109
|
end
|
106
110
|
|
111
|
+
if attributes.key?(:'pulp_labels')
|
112
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
113
|
+
end
|
114
|
+
|
107
115
|
if attributes.key?(:'name')
|
108
116
|
self.name = attributes[:'name']
|
109
117
|
end
|
@@ -146,6 +154,7 @@ module PulpDebClient
|
|
146
154
|
base_path == o.base_path &&
|
147
155
|
base_url == o.base_url &&
|
148
156
|
content_guard == o.content_guard &&
|
157
|
+
pulp_labels == o.pulp_labels &&
|
149
158
|
name == o.name &&
|
150
159
|
publication == o.publication
|
151
160
|
end
|
@@ -159,7 +168,7 @@ module PulpDebClient
|
|
159
168
|
# Calculates hash code according to all attributes.
|
160
169
|
# @return [Integer] Hash code
|
161
170
|
def hash
|
162
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
|
171
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
|
163
172
|
end
|
164
173
|
|
165
174
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,15 +33,23 @@ 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
|
|
42
48
|
# The password to be used for authentication when syncing.
|
43
49
|
attr_accessor :password
|
44
50
|
|
51
|
+
attr_accessor :pulp_labels
|
52
|
+
|
45
53
|
# Total number of simultaneous connections.
|
46
54
|
attr_accessor :download_concurrency
|
47
55
|
|
@@ -60,6 +68,12 @@ module PulpDebClient
|
|
60
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
69
|
attr_accessor :sock_read_timeout
|
62
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
74
|
+
# Limits total download rate in requests per second
|
75
|
+
attr_accessor :rate_limit
|
76
|
+
|
63
77
|
# Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
|
64
78
|
attr_accessor :distributions
|
65
79
|
|
@@ -94,14 +108,19 @@ module PulpDebClient
|
|
94
108
|
:'client_key' => :'client_key',
|
95
109
|
:'tls_validation' => :'tls_validation',
|
96
110
|
:'proxy_url' => :'proxy_url',
|
111
|
+
:'proxy_username' => :'proxy_username',
|
112
|
+
:'proxy_password' => :'proxy_password',
|
97
113
|
:'username' => :'username',
|
98
114
|
:'password' => :'password',
|
115
|
+
:'pulp_labels' => :'pulp_labels',
|
99
116
|
:'download_concurrency' => :'download_concurrency',
|
100
117
|
:'policy' => :'policy',
|
101
118
|
:'total_timeout' => :'total_timeout',
|
102
119
|
:'connect_timeout' => :'connect_timeout',
|
103
120
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
104
121
|
:'sock_read_timeout' => :'sock_read_timeout',
|
122
|
+
:'headers' => :'headers',
|
123
|
+
:'rate_limit' => :'rate_limit',
|
105
124
|
:'distributions' => :'distributions',
|
106
125
|
:'components' => :'components',
|
107
126
|
:'architectures' => :'architectures',
|
@@ -123,14 +142,19 @@ module PulpDebClient
|
|
123
142
|
:'client_key' => :'String',
|
124
143
|
:'tls_validation' => :'Boolean',
|
125
144
|
:'proxy_url' => :'String',
|
145
|
+
:'proxy_username' => :'String',
|
146
|
+
:'proxy_password' => :'String',
|
126
147
|
:'username' => :'String',
|
127
148
|
:'password' => :'String',
|
149
|
+
:'pulp_labels' => :'Object',
|
128
150
|
:'download_concurrency' => :'Integer',
|
129
151
|
:'policy' => :'PolicyEnum',
|
130
152
|
:'total_timeout' => :'Float',
|
131
153
|
:'connect_timeout' => :'Float',
|
132
154
|
:'sock_connect_timeout' => :'Float',
|
133
155
|
:'sock_read_timeout' => :'Float',
|
156
|
+
:'headers' => :'Array<Object>',
|
157
|
+
:'rate_limit' => :'Integer',
|
134
158
|
:'distributions' => :'String',
|
135
159
|
:'components' => :'String',
|
136
160
|
:'architectures' => :'String',
|
@@ -149,12 +173,15 @@ module PulpDebClient
|
|
149
173
|
:'client_cert',
|
150
174
|
:'client_key',
|
151
175
|
:'proxy_url',
|
176
|
+
:'proxy_username',
|
177
|
+
:'proxy_password',
|
152
178
|
:'username',
|
153
179
|
:'password',
|
154
180
|
:'total_timeout',
|
155
181
|
:'connect_timeout',
|
156
182
|
:'sock_connect_timeout',
|
157
183
|
:'sock_read_timeout',
|
184
|
+
:'rate_limit',
|
158
185
|
:'components',
|
159
186
|
:'architectures',
|
160
187
|
:'gpgkey',
|
@@ -204,6 +231,14 @@ module PulpDebClient
|
|
204
231
|
self.proxy_url = attributes[:'proxy_url']
|
205
232
|
end
|
206
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
|
+
|
207
242
|
if attributes.key?(:'username')
|
208
243
|
self.username = attributes[:'username']
|
209
244
|
end
|
@@ -212,6 +247,10 @@ module PulpDebClient
|
|
212
247
|
self.password = attributes[:'password']
|
213
248
|
end
|
214
249
|
|
250
|
+
if attributes.key?(:'pulp_labels')
|
251
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
252
|
+
end
|
253
|
+
|
215
254
|
if attributes.key?(:'download_concurrency')
|
216
255
|
self.download_concurrency = attributes[:'download_concurrency']
|
217
256
|
end
|
@@ -236,6 +275,16 @@ module PulpDebClient
|
|
236
275
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
237
276
|
end
|
238
277
|
|
278
|
+
if attributes.key?(:'headers')
|
279
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
280
|
+
self.headers = value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.key?(:'rate_limit')
|
285
|
+
self.rate_limit = attributes[:'rate_limit']
|
286
|
+
end
|
287
|
+
|
239
288
|
if attributes.key?(:'distributions')
|
240
289
|
self.distributions = attributes[:'distributions']
|
241
290
|
end
|
@@ -384,14 +433,19 @@ module PulpDebClient
|
|
384
433
|
client_key == o.client_key &&
|
385
434
|
tls_validation == o.tls_validation &&
|
386
435
|
proxy_url == o.proxy_url &&
|
436
|
+
proxy_username == o.proxy_username &&
|
437
|
+
proxy_password == o.proxy_password &&
|
387
438
|
username == o.username &&
|
388
439
|
password == o.password &&
|
440
|
+
pulp_labels == o.pulp_labels &&
|
389
441
|
download_concurrency == o.download_concurrency &&
|
390
442
|
policy == o.policy &&
|
391
443
|
total_timeout == o.total_timeout &&
|
392
444
|
connect_timeout == o.connect_timeout &&
|
393
445
|
sock_connect_timeout == o.sock_connect_timeout &&
|
394
446
|
sock_read_timeout == o.sock_read_timeout &&
|
447
|
+
headers == o.headers &&
|
448
|
+
rate_limit == o.rate_limit &&
|
395
449
|
distributions == o.distributions &&
|
396
450
|
components == o.components &&
|
397
451
|
architectures == o.architectures &&
|
@@ -411,7 +465,7 @@ module PulpDebClient
|
|
411
465
|
# Calculates hash code according to all attributes.
|
412
466
|
# @return [Integer] Hash code
|
413
467
|
def hash
|
414
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, 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
|
415
469
|
end
|
416
470
|
|
417
471
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,20 +32,13 @@ 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
|
-
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
|
-
# The password to be used for authentication when syncing.
|
48
|
-
attr_accessor :password
|
41
|
+
attr_accessor :pulp_labels
|
49
42
|
|
50
43
|
# Timestamp of the most recent update of the remote.
|
51
44
|
attr_accessor :pulp_last_updated
|
@@ -68,6 +61,12 @@ module PulpDebClient
|
|
68
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
69
62
|
attr_accessor :sock_read_timeout
|
70
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
67
|
+
# Limits total download rate in requests per second
|
68
|
+
attr_accessor :rate_limit
|
69
|
+
|
71
70
|
# Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
|
72
71
|
attr_accessor :distributions
|
73
72
|
|
@@ -101,11 +100,9 @@ module PulpDebClient
|
|
101
100
|
:'url' => :'url',
|
102
101
|
:'ca_cert' => :'ca_cert',
|
103
102
|
:'client_cert' => :'client_cert',
|
104
|
-
:'client_key' => :'client_key',
|
105
103
|
:'tls_validation' => :'tls_validation',
|
106
104
|
:'proxy_url' => :'proxy_url',
|
107
|
-
:'
|
108
|
-
:'password' => :'password',
|
105
|
+
:'pulp_labels' => :'pulp_labels',
|
109
106
|
:'pulp_last_updated' => :'pulp_last_updated',
|
110
107
|
:'download_concurrency' => :'download_concurrency',
|
111
108
|
:'policy' => :'policy',
|
@@ -113,6 +110,8 @@ module PulpDebClient
|
|
113
110
|
:'connect_timeout' => :'connect_timeout',
|
114
111
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
115
112
|
:'sock_read_timeout' => :'sock_read_timeout',
|
113
|
+
:'headers' => :'headers',
|
114
|
+
:'rate_limit' => :'rate_limit',
|
116
115
|
:'distributions' => :'distributions',
|
117
116
|
:'components' => :'components',
|
118
117
|
:'architectures' => :'architectures',
|
@@ -133,11 +132,9 @@ module PulpDebClient
|
|
133
132
|
:'url' => :'String',
|
134
133
|
:'ca_cert' => :'String',
|
135
134
|
:'client_cert' => :'String',
|
136
|
-
:'client_key' => :'String',
|
137
135
|
:'tls_validation' => :'Boolean',
|
138
136
|
:'proxy_url' => :'String',
|
139
|
-
:'
|
140
|
-
:'password' => :'String',
|
137
|
+
:'pulp_labels' => :'Object',
|
141
138
|
:'pulp_last_updated' => :'DateTime',
|
142
139
|
:'download_concurrency' => :'Integer',
|
143
140
|
:'policy' => :'PolicyEnum',
|
@@ -145,6 +142,8 @@ module PulpDebClient
|
|
145
142
|
:'connect_timeout' => :'Float',
|
146
143
|
:'sock_connect_timeout' => :'Float',
|
147
144
|
:'sock_read_timeout' => :'Float',
|
145
|
+
:'headers' => :'Array<Object>',
|
146
|
+
:'rate_limit' => :'Integer',
|
148
147
|
:'distributions' => :'String',
|
149
148
|
:'components' => :'String',
|
150
149
|
:'architectures' => :'String',
|
@@ -161,14 +160,12 @@ module PulpDebClient
|
|
161
160
|
Set.new([
|
162
161
|
:'ca_cert',
|
163
162
|
:'client_cert',
|
164
|
-
:'client_key',
|
165
163
|
:'proxy_url',
|
166
|
-
:'username',
|
167
|
-
:'password',
|
168
164
|
:'total_timeout',
|
169
165
|
:'connect_timeout',
|
170
166
|
:'sock_connect_timeout',
|
171
167
|
:'sock_read_timeout',
|
168
|
+
:'rate_limit',
|
172
169
|
:'components',
|
173
170
|
:'architectures',
|
174
171
|
:'gpgkey',
|
@@ -214,10 +211,6 @@ module PulpDebClient
|
|
214
211
|
self.client_cert = attributes[:'client_cert']
|
215
212
|
end
|
216
213
|
|
217
|
-
if attributes.key?(:'client_key')
|
218
|
-
self.client_key = attributes[:'client_key']
|
219
|
-
end
|
220
|
-
|
221
214
|
if attributes.key?(:'tls_validation')
|
222
215
|
self.tls_validation = attributes[:'tls_validation']
|
223
216
|
end
|
@@ -226,12 +219,8 @@ module PulpDebClient
|
|
226
219
|
self.proxy_url = attributes[:'proxy_url']
|
227
220
|
end
|
228
221
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
231
|
-
end
|
232
|
-
|
233
|
-
if attributes.key?(:'password')
|
234
|
-
self.password = attributes[:'password']
|
222
|
+
if attributes.key?(:'pulp_labels')
|
223
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
235
224
|
end
|
236
225
|
|
237
226
|
if attributes.key?(:'pulp_last_updated')
|
@@ -262,6 +251,16 @@ module PulpDebClient
|
|
262
251
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
263
252
|
end
|
264
253
|
|
254
|
+
if attributes.key?(:'headers')
|
255
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
256
|
+
self.headers = value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.key?(:'rate_limit')
|
261
|
+
self.rate_limit = attributes[:'rate_limit']
|
262
|
+
end
|
263
|
+
|
265
264
|
if attributes.key?(:'distributions')
|
266
265
|
self.distributions = attributes[:'distributions']
|
267
266
|
end
|
@@ -409,11 +408,9 @@ module PulpDebClient
|
|
409
408
|
url == o.url &&
|
410
409
|
ca_cert == o.ca_cert &&
|
411
410
|
client_cert == o.client_cert &&
|
412
|
-
client_key == o.client_key &&
|
413
411
|
tls_validation == o.tls_validation &&
|
414
412
|
proxy_url == o.proxy_url &&
|
415
|
-
|
416
|
-
password == o.password &&
|
413
|
+
pulp_labels == o.pulp_labels &&
|
417
414
|
pulp_last_updated == o.pulp_last_updated &&
|
418
415
|
download_concurrency == o.download_concurrency &&
|
419
416
|
policy == o.policy &&
|
@@ -421,6 +418,8 @@ module PulpDebClient
|
|
421
418
|
connect_timeout == o.connect_timeout &&
|
422
419
|
sock_connect_timeout == o.sock_connect_timeout &&
|
423
420
|
sock_read_timeout == o.sock_read_timeout &&
|
421
|
+
headers == o.headers &&
|
422
|
+
rate_limit == o.rate_limit &&
|
424
423
|
distributions == o.distributions &&
|
425
424
|
components == o.components &&
|
426
425
|
architectures == o.architectures &&
|
@@ -440,7 +439,7 @@ module PulpDebClient
|
|
440
439
|
# Calculates hash code according to all attributes.
|
441
440
|
# @return [Integer] Hash code
|
442
441
|
def hash
|
443
|
-
[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
|
444
443
|
end
|
445
444
|
|
446
445
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpDebClient
|
16
16
|
# A Serializer for AptRepository.
|
17
17
|
class DebAptRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -26,6 +28,7 @@ module PulpDebClient
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
31
|
+
:'pulp_labels' => :'pulp_labels',
|
29
32
|
:'name' => :'name',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'remote' => :'remote'
|
@@ -35,6 +38,7 @@ module PulpDebClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'pulp_labels' => :'Object',
|
38
42
|
:'name' => :'String',
|
39
43
|
:'description' => :'String',
|
40
44
|
:'remote' => :'String'
|
@@ -64,6 +68,10 @@ module PulpDebClient
|
|
64
68
|
h[k.to_sym] = v
|
65
69
|
}
|
66
70
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
72
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
73
|
+
end
|
74
|
+
|
67
75
|
if attributes.key?(:'name')
|
68
76
|
self.name = attributes[:'name']
|
69
77
|
end
|
@@ -100,6 +108,7 @@ module PulpDebClient
|
|
100
108
|
def ==(o)
|
101
109
|
return true if self.equal?(o)
|
102
110
|
self.class == o.class &&
|
111
|
+
pulp_labels == o.pulp_labels &&
|
103
112
|
name == o.name &&
|
104
113
|
description == o.description &&
|
105
114
|
remote == o.remote
|
@@ -114,7 +123,7 @@ module PulpDebClient
|
|
114
123
|
# Calculates hash code according to all attributes.
|
115
124
|
# @return [Integer] Hash code
|
116
125
|
def hash
|
117
|
-
[name, description, remote].hash
|
126
|
+
[pulp_labels, name, description, remote].hash
|
118
127
|
end
|
119
128
|
|
120
129
|
# Builds the object from hash
|