pulp_deb_client 2.0.0b2 → 2.0.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -18
- data/docs/ContentGenericContentsApi.md +12 -4
- data/docs/ContentInstallerFileIndexApi.md +20 -8
- data/docs/ContentInstallerPackagesApi.md +42 -4
- data/docs/ContentPackageIndexApi.md +20 -8
- data/docs/ContentPackagesApi.md +46 -6
- data/docs/{ContentReleasesApi.md → ContentReleaseFilesApi.md} +44 -32
- data/docs/ContentSummary.md +21 -0
- data/docs/{InstallerPackage.md → DebBasePackage.md} +40 -46
- data/docs/{DebDistribution.md → DebDebDistribution.md} +6 -6
- data/docs/{DebPublication.md → DebDebPublication.md} +5 -7
- data/docs/{DebRemote.md → DebDebRemote.md} +15 -21
- data/docs/DebDebRepository.md +27 -0
- data/docs/{GenericContent.md → DebGenericContent.md} +11 -17
- data/docs/{InstallerFileIndex.md → DebInstallerFileIndex.md} +5 -7
- data/docs/{PackageIndex.md → DebPackageIndex.md} +5 -7
- data/docs/{Release.md → DebReleaseFile.md} +5 -7
- data/docs/{VerbatimPublication.md → DebVerbatimPublication.md} +5 -7
- data/docs/DistributionsAptApi.md +16 -12
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +12 -8
- data/docs/PublicationsVerbatimApi.md +12 -8
- data/docs/RemotesAptApi.md +30 -81
- data/docs/RepositoriesAptApi.md +465 -0
- data/docs/RepositoriesDebVersionsApi.md +214 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +16 -4
- data/lib/pulp_deb_client/api/content_installer_file_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +61 -4
- data/lib/pulp_deb_client/api/content_package_index_api.rb +27 -9
- data/lib/pulp_deb_client/api/content_packages_api.rb +67 -7
- data/lib/pulp_deb_client/api/{content_releases_api.rb → content_release_files_api.rb} +61 -43
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +19 -13
- data/lib/pulp_deb_client/api/publications_apt_api.rb +15 -9
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +15 -9
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +40 -102
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +568 -0
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +268 -0
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +1 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_deb_client/models/content_summary.rb +246 -0
- data/lib/pulp_deb_client/models/{package.rb → deb_base_package.rb} +28 -62
- data/lib/pulp_deb_client/models/{deb_distribution.rb → deb_deb_distribution.rb} +30 -36
- data/lib/pulp_deb_client/models/{deb_publication.rb → deb_deb_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/{deb_remote.rb → deb_deb_remote.rb} +87 -147
- data/lib/pulp_deb_client/models/deb_deb_repository.rb +294 -0
- data/lib/pulp_deb_client/models/{generic_content.rb → deb_generic_content.rb} +28 -62
- data/lib/pulp_deb_client/models/{installer_file_index.rb → deb_installer_file_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{package_index.rb → deb_package_index.rb} +28 -42
- data/lib/pulp_deb_client/models/{release.rb → deb_release_file.rb} +28 -42
- data/lib/pulp_deb_client/models/{verbatim_publication.rb → deb_verbatim_publication.rb} +29 -42
- data/lib/pulp_deb_client/models/inline_response200.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_deb_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_deb_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_deb_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_deb_client/models/repository_version.rb +244 -0
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +18 -12
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +6 -2
- data/spec/api/content_installer_file_index_api_spec.rb +9 -3
- data/spec/api/content_installer_packages_api_spec.rb +21 -2
- data/spec/api/content_package_index_api_spec.rb +9 -3
- data/spec/api/content_packages_api_spec.rb +23 -3
- data/spec/api/{content_releases_api_spec.rb → content_release_files_api_spec.rb} +23 -17
- data/spec/api/distributions_apt_api_spec.rb +5 -3
- data/spec/api/publications_apt_api_spec.rb +5 -3
- data/spec/api/publications_verbatim_api_spec.rb +5 -3
- data/spec/api/remotes_apt_api_spec.rb +12 -22
- data/spec/api/repositories_apt_api_spec.rb +141 -0
- data/spec/api/repositories_deb_versions_api_spec.rb +91 -0
- 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_spec.rb +53 -0
- data/spec/models/{package_spec.rb → deb_base_package_spec.rb} +9 -27
- data/spec/models/{deb_distribution_spec.rb → deb_deb_distribution_spec.rb} +9 -9
- data/spec/models/{deb_publication_spec.rb → deb_deb_publication_spec.rb} +9 -15
- data/spec/models/{deb_remote_spec.rb → deb_deb_remote_spec.rb} +14 -32
- data/spec/models/{verbatim_publication_spec.rb → deb_deb_repository_spec.rb} +13 -13
- data/spec/models/{generic_content_spec.rb → deb_generic_content_spec.rb} +9 -27
- data/spec/models/{package_index_spec.rb → deb_installer_file_index_spec.rb} +9 -15
- data/spec/models/{installer_file_index_spec.rb → deb_package_index_spec.rb} +9 -15
- data/spec/models/{release_spec.rb → deb_release_file_spec.rb} +9 -15
- data/spec/models/deb_verbatim_publication_spec.rb +65 -0
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +70 -46
- data/docs/Package.md +0 -99
- data/lib/pulp_deb_client/models/installer_package.rb +0 -1101
- data/spec/models/installer_package_spec.rb +0 -287
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -96,13 +96,32 @@ module PulpDebClient
|
|
96
96
|
# List packages
|
97
97
|
# A ViewSet for Package.
|
98
98
|
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :package Filter results where package matches value
|
100
|
+
# @option opts [String] :source Filter results where source matches value
|
101
|
+
# @option opts [String] :version Filter results where version matches value
|
102
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
103
|
+
# @option opts [String] :section Filter results where section matches value
|
104
|
+
# @option opts [String] :priority Filter results where priority matches value
|
105
|
+
# @option opts [String] :origin Filter results where origin matches value
|
106
|
+
# @option opts [String] :tag Filter results where tag matches value
|
107
|
+
# @option opts [String] :essential Filter results where essential matches value
|
108
|
+
# @option opts [String] :build_essential Filter results where build_essential matches value
|
109
|
+
# @option opts [Float] :installed_size Filter results where installed_size matches value
|
110
|
+
# @option opts [String] :maintainer Filter results where maintainer matches value
|
111
|
+
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
112
|
+
# @option opts [String] :built_using Filter results where built_using matches value
|
113
|
+
# @option opts [String] :auto_built_package Filter results where auto_built_package matches value
|
114
|
+
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
115
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
116
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
99
117
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
100
118
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
101
119
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
102
120
|
# @option opts [Integer] :limit Number of results to return per page.
|
103
121
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
104
122
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
|
-
# @
|
123
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
124
|
+
# @return [InlineResponse2002]
|
106
125
|
def list(opts = {})
|
107
126
|
data, _status_code, _headers = list_with_http_info(opts)
|
108
127
|
data
|
@@ -111,13 +130,32 @@ module PulpDebClient
|
|
111
130
|
# List packages
|
112
131
|
# A ViewSet for Package.
|
113
132
|
# @param [Hash] opts the optional parameters
|
133
|
+
# @option opts [String] :package Filter results where package matches value
|
134
|
+
# @option opts [String] :source Filter results where source matches value
|
135
|
+
# @option opts [String] :version Filter results where version matches value
|
136
|
+
# @option opts [String] :architecture Filter results where architecture matches value
|
137
|
+
# @option opts [String] :section Filter results where section matches value
|
138
|
+
# @option opts [String] :priority Filter results where priority matches value
|
139
|
+
# @option opts [String] :origin Filter results where origin matches value
|
140
|
+
# @option opts [String] :tag Filter results where tag matches value
|
141
|
+
# @option opts [String] :essential Filter results where essential matches value
|
142
|
+
# @option opts [String] :build_essential Filter results where build_essential matches value
|
143
|
+
# @option opts [Float] :installed_size Filter results where installed_size matches value
|
144
|
+
# @option opts [String] :maintainer Filter results where maintainer matches value
|
145
|
+
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
146
|
+
# @option opts [String] :built_using Filter results where built_using matches value
|
147
|
+
# @option opts [String] :auto_built_package Filter results where auto_built_package matches value
|
148
|
+
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
149
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
150
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
114
151
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
115
152
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
116
153
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
117
154
|
# @option opts [Integer] :limit Number of results to return per page.
|
118
155
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
119
156
|
# @option opts [String] :fields A list of fields to include in the response.
|
120
|
-
# @
|
157
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
158
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
121
159
|
def list_with_http_info(opts = {})
|
122
160
|
if @api_client.config.debugging
|
123
161
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
|
@@ -127,12 +165,31 @@ module PulpDebClient
|
|
127
165
|
|
128
166
|
# query parameters
|
129
167
|
query_params = opts[:query_params] || {}
|
168
|
+
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
169
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
170
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
171
|
+
query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
|
172
|
+
query_params[:'section'] = opts[:'section'] if !opts[:'section'].nil?
|
173
|
+
query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
|
174
|
+
query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
|
175
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
176
|
+
query_params[:'essential'] = opts[:'essential'] if !opts[:'essential'].nil?
|
177
|
+
query_params[:'build_essential'] = opts[:'build_essential'] if !opts[:'build_essential'].nil?
|
178
|
+
query_params[:'installed_size'] = opts[:'installed_size'] if !opts[:'installed_size'].nil?
|
179
|
+
query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
|
180
|
+
query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
|
181
|
+
query_params[:'built_using'] = opts[:'built_using'] if !opts[:'built_using'].nil?
|
182
|
+
query_params[:'auto_built_package'] = opts[:'auto_built_package'] if !opts[:'auto_built_package'].nil?
|
183
|
+
query_params[:'multi_arch'] = opts[:'multi_arch'] if !opts[:'multi_arch'].nil?
|
184
|
+
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
185
|
+
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
130
186
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
131
187
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
132
188
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
133
189
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
134
190
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
135
191
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
192
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
136
193
|
|
137
194
|
# header parameters
|
138
195
|
header_params = opts[:header_params] || {}
|
@@ -146,7 +203,7 @@ module PulpDebClient
|
|
146
203
|
post_body = opts[:body]
|
147
204
|
|
148
205
|
# return_type
|
149
|
-
return_type = opts[:return_type] || '
|
206
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
150
207
|
|
151
208
|
# auth_names
|
152
209
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -172,7 +229,8 @@ module PulpDebClient
|
|
172
229
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/deb/packages/1/
|
173
230
|
# @param [Hash] opts the optional parameters
|
174
231
|
# @option opts [String] :fields A list of fields to include in the response.
|
175
|
-
# @
|
232
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
233
|
+
# @return [DebBasePackage]
|
176
234
|
def read(package_href, opts = {})
|
177
235
|
data, _status_code, _headers = read_with_http_info(package_href, opts)
|
178
236
|
data
|
@@ -183,7 +241,8 @@ module PulpDebClient
|
|
183
241
|
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/deb/packages/1/
|
184
242
|
# @param [Hash] opts the optional parameters
|
185
243
|
# @option opts [String] :fields A list of fields to include in the response.
|
186
|
-
# @
|
244
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
245
|
+
# @return [Array<(DebBasePackage, Integer, Hash)>] DebBasePackage data, response status code and response headers
|
187
246
|
def read_with_http_info(package_href, opts = {})
|
188
247
|
if @api_client.config.debugging
|
189
248
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
@@ -198,6 +257,7 @@ module PulpDebClient
|
|
198
257
|
# query parameters
|
199
258
|
query_params = opts[:query_params] || {}
|
200
259
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
260
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
201
261
|
|
202
262
|
# header parameters
|
203
263
|
header_params = opts[:header_params] || {}
|
@@ -211,7 +271,7 @@ module PulpDebClient
|
|
211
271
|
post_body = opts[:body]
|
212
272
|
|
213
273
|
# return_type
|
214
|
-
return_type = opts[:return_type] || '
|
274
|
+
return_type = opts[:return_type] || 'DebBasePackage'
|
215
275
|
|
216
276
|
# auth_names
|
217
277
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -6,44 +6,44 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpDebClient
|
16
|
-
class
|
16
|
+
class ContentReleaseFilesApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create a release
|
23
|
-
# A ViewSet for
|
24
|
-
# @param data [
|
22
|
+
# Create a release file
|
23
|
+
# A ViewSet for ReleaseFile.
|
24
|
+
# @param data [DebReleaseFile]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [DebReleaseFile]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create a release
|
33
|
-
# A ViewSet for
|
34
|
-
# @param data [
|
32
|
+
# Create a release file
|
33
|
+
# A ViewSet for ReleaseFile.
|
34
|
+
# @param data [DebReleaseFile]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(DebReleaseFile, Integer, Hash)>] DebReleaseFile data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'data' is set
|
42
42
|
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentReleaseFilesApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/content/deb/
|
46
|
+
local_var_path = '/pulp/api/v3/content/deb/release_files/'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -62,7 +62,7 @@ module PulpDebClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'DebReleaseFile'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -78,51 +78,66 @@ module PulpDebClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called:
|
81
|
+
@api_client.config.logger.debug "API called: ContentReleaseFilesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# List
|
87
|
-
# A ViewSet for
|
86
|
+
# List release files
|
87
|
+
# A ViewSet for ReleaseFile.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :codename Filter results where codename matches value
|
90
|
+
# @option opts [String] :suite Filter results where suite matches value
|
91
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
92
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
89
93
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
90
94
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
91
95
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
92
96
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
94
98
|
# @option opts [String] :fields A list of fields to include in the response.
|
95
|
-
# @
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
+
# @return [InlineResponse2004]
|
96
101
|
def list(opts = {})
|
97
102
|
data, _status_code, _headers = list_with_http_info(opts)
|
98
103
|
data
|
99
104
|
end
|
100
105
|
|
101
|
-
# List
|
102
|
-
# A ViewSet for
|
106
|
+
# List release files
|
107
|
+
# A ViewSet for ReleaseFile.
|
103
108
|
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [String] :codename Filter results where codename matches value
|
110
|
+
# @option opts [String] :suite Filter results where suite matches value
|
111
|
+
# @option opts [String] :relative_path Filter results where relative_path matches value
|
112
|
+
# @option opts [String] :sha256 Filter results where sha256 matches value
|
104
113
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
105
114
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
106
115
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
107
116
|
# @option opts [Integer] :limit Number of results to return per page.
|
108
117
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
109
118
|
# @option opts [String] :fields A list of fields to include in the response.
|
110
|
-
# @
|
119
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
120
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
111
121
|
def list_with_http_info(opts = {})
|
112
122
|
if @api_client.config.debugging
|
113
|
-
@api_client.config.logger.debug 'Calling API:
|
123
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.list ...'
|
114
124
|
end
|
115
125
|
# resource path
|
116
|
-
local_var_path = '/pulp/api/v3/content/deb/
|
126
|
+
local_var_path = '/pulp/api/v3/content/deb/release_files/'
|
117
127
|
|
118
128
|
# query parameters
|
119
129
|
query_params = opts[:query_params] || {}
|
130
|
+
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
131
|
+
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
132
|
+
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
133
|
+
query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
120
134
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
121
135
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
122
136
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
123
137
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
124
138
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
125
139
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
140
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
126
141
|
|
127
142
|
# header parameters
|
128
143
|
header_params = opts[:header_params] || {}
|
@@ -136,7 +151,7 @@ module PulpDebClient
|
|
136
151
|
post_body = opts[:body]
|
137
152
|
|
138
153
|
# return_type
|
139
|
-
return_type = opts[:return_type] || '
|
154
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
140
155
|
|
141
156
|
# auth_names
|
142
157
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -152,42 +167,45 @@ module PulpDebClient
|
|
152
167
|
|
153
168
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
154
169
|
if @api_client.config.debugging
|
155
|
-
@api_client.config.logger.debug "API called:
|
170
|
+
@api_client.config.logger.debug "API called: ContentReleaseFilesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
171
|
end
|
157
172
|
return data, status_code, headers
|
158
173
|
end
|
159
174
|
|
160
|
-
# Inspect a release
|
161
|
-
# A ViewSet for
|
162
|
-
# @param
|
175
|
+
# Inspect a release file
|
176
|
+
# A ViewSet for ReleaseFile.
|
177
|
+
# @param release_file_href [String] URI of Release File. e.g.: /pulp/api/v3/content/deb/release_files/1/
|
163
178
|
# @param [Hash] opts the optional parameters
|
164
179
|
# @option opts [String] :fields A list of fields to include in the response.
|
165
|
-
# @
|
166
|
-
|
167
|
-
|
180
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
181
|
+
# @return [DebReleaseFile]
|
182
|
+
def read(release_file_href, opts = {})
|
183
|
+
data, _status_code, _headers = read_with_http_info(release_file_href, opts)
|
168
184
|
data
|
169
185
|
end
|
170
186
|
|
171
|
-
# Inspect a release
|
172
|
-
# A ViewSet for
|
173
|
-
# @param
|
187
|
+
# Inspect a release file
|
188
|
+
# A ViewSet for ReleaseFile.
|
189
|
+
# @param release_file_href [String] URI of Release File. e.g.: /pulp/api/v3/content/deb/release_files/1/
|
174
190
|
# @param [Hash] opts the optional parameters
|
175
191
|
# @option opts [String] :fields A list of fields to include in the response.
|
176
|
-
# @
|
177
|
-
|
192
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
193
|
+
# @return [Array<(DebReleaseFile, Integer, Hash)>] DebReleaseFile data, response status code and response headers
|
194
|
+
def read_with_http_info(release_file_href, opts = {})
|
178
195
|
if @api_client.config.debugging
|
179
|
-
@api_client.config.logger.debug 'Calling API:
|
196
|
+
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.read ...'
|
180
197
|
end
|
181
|
-
# verify the required parameter '
|
182
|
-
if @api_client.config.client_side_validation &&
|
183
|
-
fail ArgumentError, "Missing the required parameter '
|
198
|
+
# verify the required parameter 'release_file_href' is set
|
199
|
+
if @api_client.config.client_side_validation && release_file_href.nil?
|
200
|
+
fail ArgumentError, "Missing the required parameter 'release_file_href' when calling ContentReleaseFilesApi.read"
|
184
201
|
end
|
185
202
|
# resource path
|
186
|
-
local_var_path = '{
|
203
|
+
local_var_path = '{release_file_href}'.sub('{' + 'release_file_href' + '}', CGI.escape(release_file_href.to_s).gsub('%2F', '/'))
|
187
204
|
|
188
205
|
# query parameters
|
189
206
|
query_params = opts[:query_params] || {}
|
190
207
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
208
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
191
209
|
|
192
210
|
# header parameters
|
193
211
|
header_params = opts[:header_params] || {}
|
@@ -201,7 +219,7 @@ module PulpDebClient
|
|
201
219
|
post_body = opts[:body]
|
202
220
|
|
203
221
|
# return_type
|
204
|
-
return_type = opts[:return_type] || '
|
222
|
+
return_type = opts[:return_type] || 'DebReleaseFile'
|
205
223
|
|
206
224
|
# auth_names
|
207
225
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -217,7 +235,7 @@ module PulpDebClient
|
|
217
235
|
|
218
236
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
219
237
|
if @api_client.config.debugging
|
220
|
-
@api_client.config.logger.debug "API called:
|
238
|
+
@api_client.config.logger.debug "API called: ContentReleaseFilesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
239
|
end
|
222
240
|
return data, status_code, headers
|
223
241
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpDebClient
|
|
21
21
|
end
|
22
22
|
# Create a deb distribution
|
23
23
|
# Trigger an asynchronous create task
|
24
|
-
# @param data [
|
24
|
+
# @param data [DebDebDistribution]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -31,7 +31,7 @@ module PulpDebClient
|
|
31
31
|
|
32
32
|
# Create a deb distribution
|
33
33
|
# Trigger an asynchronous create task
|
34
|
-
# @param data [
|
34
|
+
# @param data [DebDebDistribution]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
@@ -157,7 +157,8 @@ module PulpDebClient
|
|
157
157
|
# @option opts [Integer] :limit Number of results to return per page.
|
158
158
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
160
|
-
# @
|
160
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
161
|
+
# @return [InlineResponse2005]
|
161
162
|
def list(opts = {})
|
162
163
|
data, _status_code, _headers = list_with_http_info(opts)
|
163
164
|
data
|
@@ -175,7 +176,8 @@ module PulpDebClient
|
|
175
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
176
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
178
|
# @option opts [String] :fields A list of fields to include in the response.
|
178
|
-
# @
|
179
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
180
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
179
181
|
def list_with_http_info(opts = {})
|
180
182
|
if @api_client.config.debugging
|
181
183
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.list ...'
|
@@ -194,6 +196,7 @@ module PulpDebClient
|
|
194
196
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
197
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
196
198
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
199
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
197
200
|
|
198
201
|
# header parameters
|
199
202
|
header_params = opts[:header_params] || {}
|
@@ -207,7 +210,7 @@ module PulpDebClient
|
|
207
210
|
post_body = opts[:body]
|
208
211
|
|
209
212
|
# return_type
|
210
|
-
return_type = opts[:return_type] || '
|
213
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
211
214
|
|
212
215
|
# auth_names
|
213
216
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -231,7 +234,7 @@ module PulpDebClient
|
|
231
234
|
# Partially update a deb distribution
|
232
235
|
# Trigger an asynchronous partial update task
|
233
236
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
234
|
-
# @param data [
|
237
|
+
# @param data [DebDebDistribution]
|
235
238
|
# @param [Hash] opts the optional parameters
|
236
239
|
# @return [AsyncOperationResponse]
|
237
240
|
def partial_update(deb_distribution_href, data, opts = {})
|
@@ -242,7 +245,7 @@ module PulpDebClient
|
|
242
245
|
# Partially update a deb distribution
|
243
246
|
# Trigger an asynchronous partial update task
|
244
247
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
245
|
-
# @param data [
|
248
|
+
# @param data [DebDebDistribution]
|
246
249
|
# @param [Hash] opts the optional parameters
|
247
250
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
248
251
|
def partial_update_with_http_info(deb_distribution_href, data, opts = {})
|
@@ -303,7 +306,8 @@ module PulpDebClient
|
|
303
306
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
304
307
|
# @param [Hash] opts the optional parameters
|
305
308
|
# @option opts [String] :fields A list of fields to include in the response.
|
306
|
-
# @
|
309
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
310
|
+
# @return [DebDebDistribution]
|
307
311
|
def read(deb_distribution_href, opts = {})
|
308
312
|
data, _status_code, _headers = read_with_http_info(deb_distribution_href, opts)
|
309
313
|
data
|
@@ -314,7 +318,8 @@ module PulpDebClient
|
|
314
318
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
315
319
|
# @param [Hash] opts the optional parameters
|
316
320
|
# @option opts [String] :fields A list of fields to include in the response.
|
317
|
-
# @
|
321
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
322
|
+
# @return [Array<(DebDebDistribution, Integer, Hash)>] DebDebDistribution data, response status code and response headers
|
318
323
|
def read_with_http_info(deb_distribution_href, opts = {})
|
319
324
|
if @api_client.config.debugging
|
320
325
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.read ...'
|
@@ -329,6 +334,7 @@ module PulpDebClient
|
|
329
334
|
# query parameters
|
330
335
|
query_params = opts[:query_params] || {}
|
331
336
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
337
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
332
338
|
|
333
339
|
# header parameters
|
334
340
|
header_params = opts[:header_params] || {}
|
@@ -342,7 +348,7 @@ module PulpDebClient
|
|
342
348
|
post_body = opts[:body]
|
343
349
|
|
344
350
|
# return_type
|
345
|
-
return_type = opts[:return_type] || '
|
351
|
+
return_type = opts[:return_type] || 'DebDebDistribution'
|
346
352
|
|
347
353
|
# auth_names
|
348
354
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -366,7 +372,7 @@ module PulpDebClient
|
|
366
372
|
# Update a deb distribution
|
367
373
|
# Trigger an asynchronous update task
|
368
374
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
369
|
-
# @param data [
|
375
|
+
# @param data [DebDebDistribution]
|
370
376
|
# @param [Hash] opts the optional parameters
|
371
377
|
# @return [AsyncOperationResponse]
|
372
378
|
def update(deb_distribution_href, data, opts = {})
|
@@ -377,7 +383,7 @@ module PulpDebClient
|
|
377
383
|
# Update a deb distribution
|
378
384
|
# Trigger an asynchronous update task
|
379
385
|
# @param deb_distribution_href [String] URI of Deb Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
380
|
-
# @param data [
|
386
|
+
# @param data [DebDebDistribution]
|
381
387
|
# @param [Hash] opts the optional parameters
|
382
388
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
383
389
|
def update_with_http_info(deb_distribution_href, data, opts = {})
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.1
|
9
|
+
OpenAPI Generator version: 4.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,7 +21,7 @@ module PulpDebClient
|
|
21
21
|
end
|
22
22
|
# Create a deb publication
|
23
23
|
# Trigger an asynchronous task to publish content
|
24
|
-
# @param data [
|
24
|
+
# @param data [DebDebPublication]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -31,7 +31,7 @@ module PulpDebClient
|
|
31
31
|
|
32
32
|
# Create a deb publication
|
33
33
|
# Trigger an asynchronous task to publish content
|
34
|
-
# @param data [
|
34
|
+
# @param data [DebDebPublication]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
@@ -150,7 +150,8 @@ module PulpDebClient
|
|
150
150
|
# @option opts [Integer] :limit Number of results to return per page.
|
151
151
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
152
152
|
# @option opts [String] :fields A list of fields to include in the response.
|
153
|
-
# @
|
153
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
154
|
+
# @return [InlineResponse2006]
|
154
155
|
def list(opts = {})
|
155
156
|
data, _status_code, _headers = list_with_http_info(opts)
|
156
157
|
data
|
@@ -163,7 +164,8 @@ module PulpDebClient
|
|
163
164
|
# @option opts [Integer] :limit Number of results to return per page.
|
164
165
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
165
166
|
# @option opts [String] :fields A list of fields to include in the response.
|
166
|
-
# @
|
167
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
168
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
167
169
|
def list_with_http_info(opts = {})
|
168
170
|
if @api_client.config.debugging
|
169
171
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.list ...'
|
@@ -177,6 +179,7 @@ module PulpDebClient
|
|
177
179
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
178
180
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
179
181
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
182
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
180
183
|
|
181
184
|
# header parameters
|
182
185
|
header_params = opts[:header_params] || {}
|
@@ -190,7 +193,7 @@ module PulpDebClient
|
|
190
193
|
post_body = opts[:body]
|
191
194
|
|
192
195
|
# return_type
|
193
|
-
return_type = opts[:return_type] || '
|
196
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
194
197
|
|
195
198
|
# auth_names
|
196
199
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -216,7 +219,8 @@ module PulpDebClient
|
|
216
219
|
# @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
217
220
|
# @param [Hash] opts the optional parameters
|
218
221
|
# @option opts [String] :fields A list of fields to include in the response.
|
219
|
-
# @
|
222
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
223
|
+
# @return [DebDebPublication]
|
220
224
|
def read(deb_publication_href, opts = {})
|
221
225
|
data, _status_code, _headers = read_with_http_info(deb_publication_href, opts)
|
222
226
|
data
|
@@ -227,7 +231,8 @@ module PulpDebClient
|
|
227
231
|
# @param deb_publication_href [String] URI of Deb Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
228
232
|
# @param [Hash] opts the optional parameters
|
229
233
|
# @option opts [String] :fields A list of fields to include in the response.
|
230
|
-
# @
|
234
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
235
|
+
# @return [Array<(DebDebPublication, Integer, Hash)>] DebDebPublication data, response status code and response headers
|
231
236
|
def read_with_http_info(deb_publication_href, opts = {})
|
232
237
|
if @api_client.config.debugging
|
233
238
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.read ...'
|
@@ -242,6 +247,7 @@ module PulpDebClient
|
|
242
247
|
# query parameters
|
243
248
|
query_params = opts[:query_params] || {}
|
244
249
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
250
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
245
251
|
|
246
252
|
# header parameters
|
247
253
|
header_params = opts[:header_params] || {}
|
@@ -255,7 +261,7 @@ module PulpDebClient
|
|
255
261
|
post_body = opts[:body]
|
256
262
|
|
257
263
|
# return_type
|
258
|
-
return_type = opts[:return_type] || '
|
264
|
+
return_type = opts[:return_type] || 'DebDebPublication'
|
259
265
|
|
260
266
|
# auth_names
|
261
267
|
auth_names = opts[:auth_names] || ['Basic']
|