pulp_deb_client 2.4.0b1 → 2.5.0b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -48
- data/docs/ContentGenericContentsApi.md +2 -2
- data/docs/ContentInstallerFileIndicesApi.md +4 -4
- data/docs/ContentInstallerPackagesApi.md +2 -2
- data/docs/ContentPackageIndicesApi.md +4 -4
- data/docs/ContentPackageReleaseComponentsApi.md +4 -4
- data/docs/ContentPackagesApi.md +2 -2
- data/docs/ContentReleaseArchitecturesApi.md +4 -4
- data/docs/ContentReleaseComponentsApi.md +4 -4
- data/docs/ContentReleaseFilesApi.md +4 -4
- data/docs/ContentReleasesApi.md +4 -4
- data/docs/{DebDebDistribution.md → DebAptDistribution.md} +2 -2
- data/docs/{DebDebPublication.md → DebAptPublication.md} +2 -2
- data/docs/{DebDebRemote.md → DebAptRemote.md} +2 -2
- data/docs/{DebDebRepository.md → DebAptRepository.md} +2 -2
- data/docs/{DebBasePackageRead.md → DebBasePackage.md} +2 -2
- data/docs/{DebGenericContentRead.md → DebGenericContent.md} +2 -2
- data/docs/DistributionsAptApi.md +43 -43
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- 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 +26 -26
- data/docs/PublicationsVerbatimApi.md +2 -2
- data/docs/RemotesAptApi.md +46 -46
- data/docs/RepositoriesAptApi.md +56 -56
- data/docs/RepositoriesDebVersionsApi.md +13 -11
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_packages_api.rb +3 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_release_components_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_release_files_api.rb +6 -6
- data/lib/pulp_deb_client/api/content_releases_api.rb +6 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +61 -61
- data/lib/pulp_deb_client/api/publications_apt_api.rb +37 -37
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +66 -66
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +84 -84
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +22 -19
- data/lib/pulp_deb_client/models/{deb_deb_distribution.rb → deb_apt_distribution.rb} +3 -3
- data/lib/pulp_deb_client/models/{deb_deb_publication.rb → deb_apt_publication.rb} +3 -3
- data/lib/pulp_deb_client/models/{deb_deb_remote.rb → deb_apt_remote.rb} +6 -3
- data/lib/pulp_deb_client/models/{deb_deb_repository.rb → deb_apt_repository.rb} +3 -3
- data/lib/pulp_deb_client/models/{deb_base_package_read.rb → deb_base_package.rb} +3 -3
- data/lib/pulp_deb_client/models/{deb_generic_content_read.rb → deb_generic_content.rb} +3 -3
- data/lib/pulp_deb_client/models/inline_response200.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response20014.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_deb_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +6 -19
- data/spec/api/content_generic_contents_api_spec.rb +1 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +2 -2
- data/spec/api/content_installer_packages_api_spec.rb +1 -1
- data/spec/api/content_package_indices_api_spec.rb +2 -2
- data/spec/api/content_package_release_components_api_spec.rb +2 -2
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/content_release_architectures_api_spec.rb +2 -2
- data/spec/api/content_release_components_api_spec.rb +2 -2
- data/spec/api/content_release_files_api_spec.rb +2 -2
- data/spec/api/content_releases_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +13 -13
- data/spec/api/publications_apt_api_spec.rb +10 -10
- data/spec/api/publications_verbatim_api_spec.rb +1 -1
- data/spec/api/remotes_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_api_spec.rb +17 -17
- data/spec/api/repositories_deb_versions_api_spec.rb +6 -5
- data/spec/models/{deb_deb_distribution_spec.rb → deb_apt_distribution_spec.rb} +6 -6
- data/spec/models/{deb_deb_publication_spec.rb → deb_apt_publication_spec.rb} +6 -6
- data/spec/models/{deb_deb_remote_spec.rb → deb_apt_remote_spec.rb} +6 -6
- data/spec/models/{deb_deb_repository_spec.rb → deb_apt_repository_spec.rb} +6 -6
- data/spec/models/{deb_base_package_read_spec.rb → deb_base_package_spec.rb} +6 -6
- data/spec/models/{deb_generic_content_read_spec.rb → deb_generic_content_spec.rb} +6 -6
- metadata +26 -78
- data/docs/DebDebDistributionRead.md +0 -29
- data/docs/DebDebPublicationRead.md +0 -29
- data/docs/DebDebRemoteRead.md +0 -57
- data/docs/DebDebRepositoryRead.md +0 -27
- data/docs/DebInstallerFileIndexRead.md +0 -29
- data/docs/DebPackageIndexRead.md +0 -29
- data/docs/DebPackageReleaseComponentRead.md +0 -23
- data/docs/DebReleaseArchitectureRead.md +0 -23
- data/docs/DebReleaseComponentRead.md +0 -23
- data/docs/DebReleaseFileRead.md +0 -29
- data/docs/DebReleaseRead.md +0 -25
- data/docs/DebVerbatimPublicationRead.md +0 -23
- data/docs/RepositoryVersionRead.md +0 -25
- data/lib/pulp_deb_client/models/deb_deb_distribution_read.rb +0 -331
- data/lib/pulp_deb_client/models/deb_deb_publication_read.rb +0 -269
- data/lib/pulp_deb_client/models/deb_deb_remote_read.rb +0 -670
- data/lib/pulp_deb_client/models/deb_deb_repository_read.rb +0 -294
- data/lib/pulp_deb_client/models/deb_installer_file_index_read.rb +0 -341
- data/lib/pulp_deb_client/models/deb_package_index_read.rb +0 -341
- data/lib/pulp_deb_client/models/deb_package_release_component_read.rb +0 -246
- data/lib/pulp_deb_client/models/deb_release_architecture_read.rb +0 -265
- data/lib/pulp_deb_client/models/deb_release_component_read.rb +0 -265
- data/lib/pulp_deb_client/models/deb_release_file_read.rb +0 -342
- data/lib/pulp_deb_client/models/deb_release_read.rb +0 -315
- data/lib/pulp_deb_client/models/deb_verbatim_publication_read.rb +0 -235
- data/lib/pulp_deb_client/models/repository_version_read.rb +0 -244
- data/spec/models/deb_deb_distribution_read_spec.rb +0 -77
- data/spec/models/deb_deb_publication_read_spec.rb +0 -77
- data/spec/models/deb_deb_remote_read_spec.rb +0 -165
- data/spec/models/deb_deb_repository_read_spec.rb +0 -71
- data/spec/models/deb_installer_file_index_read_spec.rb +0 -77
- data/spec/models/deb_package_index_read_spec.rb +0 -77
- data/spec/models/deb_package_release_component_read_spec.rb +0 -59
- data/spec/models/deb_release_architecture_read_spec.rb +0 -59
- data/spec/models/deb_release_component_read_spec.rb +0 -59
- data/spec/models/deb_release_file_read_spec.rb +0 -77
- data/spec/models/deb_release_read_spec.rb +0 -65
- data/spec/models/deb_verbatim_publication_read_spec.rb +0 -59
- data/spec/models/repository_version_read_spec.rb +0 -65
@@ -19,9 +19,9 @@ module PulpDebClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create
|
22
|
+
# Create an apt distribution
|
23
23
|
# Trigger an asynchronous create task
|
24
|
-
# @param data [
|
24
|
+
# @param data [DebAptDistribution]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -29,9 +29,9 @@ module PulpDebClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create
|
32
|
+
# Create an apt distribution
|
33
33
|
# Trigger an asynchronous create task
|
34
|
-
# @param data [
|
34
|
+
# @param data [DebAptDistribution]
|
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 = {})
|
@@ -83,31 +83,31 @@ module PulpDebClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
86
|
+
# Delete an apt distribution
|
87
87
|
# Trigger an asynchronous delete task
|
88
|
-
# @param
|
88
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
91
|
-
def delete(
|
92
|
-
data, _status_code, _headers = delete_with_http_info(
|
91
|
+
def delete(apt_distribution_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(apt_distribution_href, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
96
|
-
# Delete
|
96
|
+
# Delete an apt distribution
|
97
97
|
# Trigger an asynchronous delete task
|
98
|
-
# @param
|
98
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
-
def delete_with_http_info(
|
101
|
+
def delete_with_http_info(apt_distribution_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.delete ...'
|
104
104
|
end
|
105
|
-
# verify the required parameter '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'apt_distribution_href' is set
|
106
|
+
if @api_client.config.client_side_validation && apt_distribution_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'apt_distribution_href' when calling DistributionsAptApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{apt_distribution_href}'.sub('{' + 'apt_distribution_href' + '}', CGI.escape(apt_distribution_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -145,8 +145,8 @@ module PulpDebClient
|
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
147
147
|
|
148
|
-
# List
|
149
|
-
# ViewSet for
|
148
|
+
# List apt distributions
|
149
|
+
# ViewSet for AptDistributions.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
152
152
|
# @option opts [String] :name
|
@@ -165,8 +165,8 @@ module PulpDebClient
|
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
168
|
-
# List
|
169
|
-
# ViewSet for
|
168
|
+
# List apt distributions
|
169
|
+
# ViewSet for AptDistributions.
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
171
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
172
|
# @option opts [String] :name
|
@@ -234,37 +234,37 @@ module PulpDebClient
|
|
234
234
|
return data, status_code, headers
|
235
235
|
end
|
236
236
|
|
237
|
-
# Partially update
|
237
|
+
# Partially update an apt distribution
|
238
238
|
# Trigger an asynchronous partial update task
|
239
|
-
# @param
|
240
|
-
# @param data [
|
239
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
240
|
+
# @param data [DebAptDistribution]
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @return [AsyncOperationResponse]
|
243
|
-
def partial_update(
|
244
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
243
|
+
def partial_update(apt_distribution_href, data, opts = {})
|
244
|
+
data, _status_code, _headers = partial_update_with_http_info(apt_distribution_href, data, opts)
|
245
245
|
data
|
246
246
|
end
|
247
247
|
|
248
|
-
# Partially update
|
248
|
+
# Partially update an apt distribution
|
249
249
|
# Trigger an asynchronous partial update task
|
250
|
-
# @param
|
251
|
-
# @param data [
|
250
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
251
|
+
# @param data [DebAptDistribution]
|
252
252
|
# @param [Hash] opts the optional parameters
|
253
253
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
254
|
-
def partial_update_with_http_info(
|
254
|
+
def partial_update_with_http_info(apt_distribution_href, data, opts = {})
|
255
255
|
if @api_client.config.debugging
|
256
256
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.partial_update ...'
|
257
257
|
end
|
258
|
-
# verify the required parameter '
|
259
|
-
if @api_client.config.client_side_validation &&
|
260
|
-
fail ArgumentError, "Missing the required parameter '
|
258
|
+
# verify the required parameter 'apt_distribution_href' is set
|
259
|
+
if @api_client.config.client_side_validation && apt_distribution_href.nil?
|
260
|
+
fail ArgumentError, "Missing the required parameter 'apt_distribution_href' when calling DistributionsAptApi.partial_update"
|
261
261
|
end
|
262
262
|
# verify the required parameter 'data' is set
|
263
263
|
if @api_client.config.client_side_validation && data.nil?
|
264
264
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsAptApi.partial_update"
|
265
265
|
end
|
266
266
|
# resource path
|
267
|
-
local_var_path = '{
|
267
|
+
local_var_path = '{apt_distribution_href}'.sub('{' + 'apt_distribution_href' + '}', CGI.escape(apt_distribution_href.to_s).gsub('%2F', '/'))
|
268
268
|
|
269
269
|
# query parameters
|
270
270
|
query_params = opts[:query_params] || {}
|
@@ -304,35 +304,35 @@ module PulpDebClient
|
|
304
304
|
return data, status_code, headers
|
305
305
|
end
|
306
306
|
|
307
|
-
# Inspect
|
308
|
-
# ViewSet for
|
309
|
-
# @param
|
307
|
+
# Inspect an apt distribution
|
308
|
+
# ViewSet for AptDistributions.
|
309
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
311
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
312
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
313
|
-
# @return [
|
314
|
-
def read(
|
315
|
-
data, _status_code, _headers = read_with_http_info(
|
313
|
+
# @return [DebAptDistribution]
|
314
|
+
def read(apt_distribution_href, opts = {})
|
315
|
+
data, _status_code, _headers = read_with_http_info(apt_distribution_href, opts)
|
316
316
|
data
|
317
317
|
end
|
318
318
|
|
319
|
-
# Inspect
|
320
|
-
# ViewSet for
|
321
|
-
# @param
|
319
|
+
# Inspect an apt distribution
|
320
|
+
# ViewSet for AptDistributions.
|
321
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
322
322
|
# @param [Hash] opts the optional parameters
|
323
323
|
# @option opts [String] :fields A list of fields to include in the response.
|
324
324
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
325
|
-
# @return [Array<(
|
326
|
-
def read_with_http_info(
|
325
|
+
# @return [Array<(DebAptDistribution, Integer, Hash)>] DebAptDistribution data, response status code and response headers
|
326
|
+
def read_with_http_info(apt_distribution_href, opts = {})
|
327
327
|
if @api_client.config.debugging
|
328
328
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.read ...'
|
329
329
|
end
|
330
|
-
# verify the required parameter '
|
331
|
-
if @api_client.config.client_side_validation &&
|
332
|
-
fail ArgumentError, "Missing the required parameter '
|
330
|
+
# verify the required parameter 'apt_distribution_href' is set
|
331
|
+
if @api_client.config.client_side_validation && apt_distribution_href.nil?
|
332
|
+
fail ArgumentError, "Missing the required parameter 'apt_distribution_href' when calling DistributionsAptApi.read"
|
333
333
|
end
|
334
334
|
# resource path
|
335
|
-
local_var_path = '{
|
335
|
+
local_var_path = '{apt_distribution_href}'.sub('{' + 'apt_distribution_href' + '}', CGI.escape(apt_distribution_href.to_s).gsub('%2F', '/'))
|
336
336
|
|
337
337
|
# query parameters
|
338
338
|
query_params = opts[:query_params] || {}
|
@@ -351,7 +351,7 @@ module PulpDebClient
|
|
351
351
|
post_body = opts[:body]
|
352
352
|
|
353
353
|
# return_type
|
354
|
-
return_type = opts[:return_type] || '
|
354
|
+
return_type = opts[:return_type] || 'DebAptDistribution'
|
355
355
|
|
356
356
|
# auth_names
|
357
357
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -372,37 +372,37 @@ module PulpDebClient
|
|
372
372
|
return data, status_code, headers
|
373
373
|
end
|
374
374
|
|
375
|
-
# Update
|
375
|
+
# Update an apt distribution
|
376
376
|
# Trigger an asynchronous update task
|
377
|
-
# @param
|
378
|
-
# @param data [
|
377
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
378
|
+
# @param data [DebAptDistribution]
|
379
379
|
# @param [Hash] opts the optional parameters
|
380
380
|
# @return [AsyncOperationResponse]
|
381
|
-
def update(
|
382
|
-
data, _status_code, _headers = update_with_http_info(
|
381
|
+
def update(apt_distribution_href, data, opts = {})
|
382
|
+
data, _status_code, _headers = update_with_http_info(apt_distribution_href, data, opts)
|
383
383
|
data
|
384
384
|
end
|
385
385
|
|
386
|
-
# Update
|
386
|
+
# Update an apt distribution
|
387
387
|
# Trigger an asynchronous update task
|
388
|
-
# @param
|
389
|
-
# @param data [
|
388
|
+
# @param apt_distribution_href [String] URI of Apt Distribution. e.g.: /pulp/api/v3/distributions/deb/apt/1/
|
389
|
+
# @param data [DebAptDistribution]
|
390
390
|
# @param [Hash] opts the optional parameters
|
391
391
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
392
|
-
def update_with_http_info(
|
392
|
+
def update_with_http_info(apt_distribution_href, data, opts = {})
|
393
393
|
if @api_client.config.debugging
|
394
394
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.update ...'
|
395
395
|
end
|
396
|
-
# verify the required parameter '
|
397
|
-
if @api_client.config.client_side_validation &&
|
398
|
-
fail ArgumentError, "Missing the required parameter '
|
396
|
+
# verify the required parameter 'apt_distribution_href' is set
|
397
|
+
if @api_client.config.client_side_validation && apt_distribution_href.nil?
|
398
|
+
fail ArgumentError, "Missing the required parameter 'apt_distribution_href' when calling DistributionsAptApi.update"
|
399
399
|
end
|
400
400
|
# verify the required parameter 'data' is set
|
401
401
|
if @api_client.config.client_side_validation && data.nil?
|
402
402
|
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsAptApi.update"
|
403
403
|
end
|
404
404
|
# resource path
|
405
|
-
local_var_path = '{
|
405
|
+
local_var_path = '{apt_distribution_href}'.sub('{' + 'apt_distribution_href' + '}', CGI.escape(apt_distribution_href.to_s).gsub('%2F', '/'))
|
406
406
|
|
407
407
|
# query parameters
|
408
408
|
query_params = opts[:query_params] || {}
|
@@ -19,9 +19,9 @@ module PulpDebClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create
|
22
|
+
# Create an apt publication
|
23
23
|
# Trigger an asynchronous task to publish content
|
24
|
-
# @param data [
|
24
|
+
# @param data [DebAptPublication]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
27
|
def create(data, opts = {})
|
@@ -29,9 +29,9 @@ module PulpDebClient
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create
|
32
|
+
# Create an apt publication
|
33
33
|
# Trigger an asynchronous task to publish content
|
34
|
-
# @param data [
|
34
|
+
# @param data [DebAptPublication]
|
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 = {})
|
@@ -83,31 +83,31 @@ module PulpDebClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
87
|
-
# A ViewSet for
|
88
|
-
# @param
|
86
|
+
# Delete an apt publication
|
87
|
+
# A ViewSet for AptPublication.
|
88
|
+
# @param apt_publication_href [String] URI of Apt Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
|
-
def delete(
|
92
|
-
delete_with_http_info(
|
91
|
+
def delete(apt_publication_href, opts = {})
|
92
|
+
delete_with_http_info(apt_publication_href, opts)
|
93
93
|
nil
|
94
94
|
end
|
95
95
|
|
96
|
-
# Delete
|
97
|
-
# A ViewSet for
|
98
|
-
# @param
|
96
|
+
# Delete an apt publication
|
97
|
+
# A ViewSet for AptPublication.
|
98
|
+
# @param apt_publication_href [String] URI of Apt Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_with_http_info(
|
101
|
+
def delete_with_http_info(apt_publication_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
103
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.delete ...'
|
104
104
|
end
|
105
|
-
# verify the required parameter '
|
106
|
-
if @api_client.config.client_side_validation &&
|
107
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'apt_publication_href' is set
|
106
|
+
if @api_client.config.client_side_validation && apt_publication_href.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'apt_publication_href' when calling PublicationsAptApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{
|
110
|
+
local_var_path = '{apt_publication_href}'.sub('{' + 'apt_publication_href' + '}', CGI.escape(apt_publication_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -143,8 +143,8 @@ module PulpDebClient
|
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
145
145
|
|
146
|
-
# List
|
147
|
-
# A ViewSet for
|
146
|
+
# List apt publications
|
147
|
+
# A ViewSet for AptPublication.
|
148
148
|
# @param [Hash] opts the optional parameters
|
149
149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
150
150
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -164,8 +164,8 @@ module PulpDebClient
|
|
164
164
|
data
|
165
165
|
end
|
166
166
|
|
167
|
-
# List
|
168
|
-
# A ViewSet for
|
167
|
+
# List apt publications
|
168
|
+
# A ViewSet for AptPublication.
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
170
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
171
171
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -235,35 +235,35 @@ module PulpDebClient
|
|
235
235
|
return data, status_code, headers
|
236
236
|
end
|
237
237
|
|
238
|
-
# Inspect
|
239
|
-
# A ViewSet for
|
240
|
-
# @param
|
238
|
+
# Inspect an apt publication
|
239
|
+
# A ViewSet for AptPublication.
|
240
|
+
# @param apt_publication_href [String] URI of Apt Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [String] :fields A list of fields to include in the response.
|
243
243
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
244
|
-
# @return [
|
245
|
-
def read(
|
246
|
-
data, _status_code, _headers = read_with_http_info(
|
244
|
+
# @return [DebAptPublication]
|
245
|
+
def read(apt_publication_href, opts = {})
|
246
|
+
data, _status_code, _headers = read_with_http_info(apt_publication_href, opts)
|
247
247
|
data
|
248
248
|
end
|
249
249
|
|
250
|
-
# Inspect
|
251
|
-
# A ViewSet for
|
252
|
-
# @param
|
250
|
+
# Inspect an apt publication
|
251
|
+
# A ViewSet for AptPublication.
|
252
|
+
# @param apt_publication_href [String] URI of Apt Publication. e.g.: /pulp/api/v3/publications/deb/apt/1/
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [String] :fields A list of fields to include in the response.
|
255
255
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
256
|
-
# @return [Array<(
|
257
|
-
def read_with_http_info(
|
256
|
+
# @return [Array<(DebAptPublication, Integer, Hash)>] DebAptPublication data, response status code and response headers
|
257
|
+
def read_with_http_info(apt_publication_href, opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.read ...'
|
260
260
|
end
|
261
|
-
# verify the required parameter '
|
262
|
-
if @api_client.config.client_side_validation &&
|
263
|
-
fail ArgumentError, "Missing the required parameter '
|
261
|
+
# verify the required parameter 'apt_publication_href' is set
|
262
|
+
if @api_client.config.client_side_validation && apt_publication_href.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'apt_publication_href' when calling PublicationsAptApi.read"
|
264
264
|
end
|
265
265
|
# resource path
|
266
|
-
local_var_path = '{
|
266
|
+
local_var_path = '{apt_publication_href}'.sub('{' + 'apt_publication_href' + '}', CGI.escape(apt_publication_href.to_s).gsub('%2F', '/'))
|
267
267
|
|
268
268
|
# query parameters
|
269
269
|
query_params = opts[:query_params] || {}
|
@@ -282,7 +282,7 @@ module PulpDebClient
|
|
282
282
|
post_body = opts[:body]
|
283
283
|
|
284
284
|
# return_type
|
285
|
-
return_type = opts[:return_type] || '
|
285
|
+
return_type = opts[:return_type] || 'DebAptPublication'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -241,7 +241,7 @@ module PulpDebClient
|
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @option opts [String] :fields A list of fields to include in the response.
|
243
243
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
244
|
-
# @return [
|
244
|
+
# @return [DebVerbatimPublication]
|
245
245
|
def read(verbatim_publication_href, opts = {})
|
246
246
|
data, _status_code, _headers = read_with_http_info(verbatim_publication_href, opts)
|
247
247
|
data
|
@@ -253,7 +253,7 @@ module PulpDebClient
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @option opts [String] :fields A list of fields to include in the response.
|
255
255
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
256
|
-
# @return [Array<(
|
256
|
+
# @return [Array<(DebVerbatimPublication, Integer, Hash)>] DebVerbatimPublication data, response status code and response headers
|
257
257
|
def read_with_http_info(verbatim_publication_href, opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.read ...'
|
@@ -282,7 +282,7 @@ module PulpDebClient
|
|
282
282
|
post_body = opts[:body]
|
283
283
|
|
284
284
|
# return_type
|
285
|
-
return_type = opts[:return_type] || '
|
285
|
+
return_type = opts[:return_type] || 'DebVerbatimPublication'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|