pulp_deb_client 2.4.0b1 → 2.5.0b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,21 +19,21 @@ module PulpDebClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create
|
|
23
|
-
# A ViewSet for
|
|
24
|
-
# @param data [
|
|
22
|
+
# Create an apt remote
|
|
23
|
+
# A ViewSet for AptRemote.
|
|
24
|
+
# @param data [DebAptRemote]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [DebAptRemote]
|
|
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
|
|
33
|
-
# A ViewSet for
|
|
34
|
-
# @param data [
|
|
32
|
+
# Create an apt remote
|
|
33
|
+
# A ViewSet for AptRemote.
|
|
34
|
+
# @param data [DebAptRemote]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
36
|
+
# @return [Array<(DebAptRemote, Integer, Hash)>] DebAptRemote data, response status code and response headers
|
|
37
37
|
def create_with_http_info(data, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.create ...'
|
|
@@ -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] || 'DebAptRemote'
|
|
66
66
|
|
|
67
67
|
# auth_names
|
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -83,31 +83,31 @@ module PulpDebClient
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
# Delete
|
|
86
|
+
# Delete an apt remote
|
|
87
87
|
# Trigger an asynchronous delete task
|
|
88
|
-
# @param
|
|
88
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/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_remote_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(apt_remote_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# Delete
|
|
96
|
+
# Delete an apt remote
|
|
97
97
|
# Trigger an asynchronous delete task
|
|
98
|
-
# @param
|
|
98
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/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_remote_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
103
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.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_remote_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && apt_remote_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'apt_remote_href' when calling RemotesAptApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
|
-
local_var_path = '{
|
|
110
|
+
local_var_path = '{apt_remote_href}'.sub('{' + 'apt_remote_href' + '}', CGI.escape(apt_remote_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
|
-
# A ViewSet for
|
|
148
|
+
# List apt remotes
|
|
149
|
+
# A ViewSet for AptRemote.
|
|
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
|
|
@@ -167,8 +167,8 @@ module PulpDebClient
|
|
|
167
167
|
data
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
# List
|
|
171
|
-
# A ViewSet for
|
|
170
|
+
# List apt remotes
|
|
171
|
+
# A ViewSet for AptRemote.
|
|
172
172
|
# @param [Hash] opts the optional parameters
|
|
173
173
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
174
174
|
# @option opts [String] :name
|
|
@@ -240,37 +240,37 @@ module PulpDebClient
|
|
|
240
240
|
return data, status_code, headers
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
# Partially update
|
|
243
|
+
# Partially update an apt remote
|
|
244
244
|
# Trigger an asynchronous partial update task
|
|
245
|
-
# @param
|
|
246
|
-
# @param data [
|
|
245
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
246
|
+
# @param data [DebAptRemote]
|
|
247
247
|
# @param [Hash] opts the optional parameters
|
|
248
248
|
# @return [AsyncOperationResponse]
|
|
249
|
-
def partial_update(
|
|
250
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
|
249
|
+
def partial_update(apt_remote_href, data, opts = {})
|
|
250
|
+
data, _status_code, _headers = partial_update_with_http_info(apt_remote_href, data, opts)
|
|
251
251
|
data
|
|
252
252
|
end
|
|
253
253
|
|
|
254
|
-
# Partially update
|
|
254
|
+
# Partially update an apt remote
|
|
255
255
|
# Trigger an asynchronous partial update task
|
|
256
|
-
# @param
|
|
257
|
-
# @param data [
|
|
256
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
257
|
+
# @param data [DebAptRemote]
|
|
258
258
|
# @param [Hash] opts the optional parameters
|
|
259
259
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
260
|
-
def partial_update_with_http_info(
|
|
260
|
+
def partial_update_with_http_info(apt_remote_href, data, opts = {})
|
|
261
261
|
if @api_client.config.debugging
|
|
262
262
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.partial_update ...'
|
|
263
263
|
end
|
|
264
|
-
# verify the required parameter '
|
|
265
|
-
if @api_client.config.client_side_validation &&
|
|
266
|
-
fail ArgumentError, "Missing the required parameter '
|
|
264
|
+
# verify the required parameter 'apt_remote_href' is set
|
|
265
|
+
if @api_client.config.client_side_validation && apt_remote_href.nil?
|
|
266
|
+
fail ArgumentError, "Missing the required parameter 'apt_remote_href' when calling RemotesAptApi.partial_update"
|
|
267
267
|
end
|
|
268
268
|
# verify the required parameter 'data' is set
|
|
269
269
|
if @api_client.config.client_side_validation && data.nil?
|
|
270
270
|
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesAptApi.partial_update"
|
|
271
271
|
end
|
|
272
272
|
# resource path
|
|
273
|
-
local_var_path = '{
|
|
273
|
+
local_var_path = '{apt_remote_href}'.sub('{' + 'apt_remote_href' + '}', CGI.escape(apt_remote_href.to_s).gsub('%2F', '/'))
|
|
274
274
|
|
|
275
275
|
# query parameters
|
|
276
276
|
query_params = opts[:query_params] || {}
|
|
@@ -310,35 +310,35 @@ module PulpDebClient
|
|
|
310
310
|
return data, status_code, headers
|
|
311
311
|
end
|
|
312
312
|
|
|
313
|
-
# Inspect
|
|
314
|
-
# A ViewSet for
|
|
315
|
-
# @param
|
|
313
|
+
# Inspect an apt remote
|
|
314
|
+
# A ViewSet for AptRemote.
|
|
315
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
316
316
|
# @param [Hash] opts the optional parameters
|
|
317
317
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
318
318
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
319
|
-
# @return [
|
|
320
|
-
def read(
|
|
321
|
-
data, _status_code, _headers = read_with_http_info(
|
|
319
|
+
# @return [DebAptRemote]
|
|
320
|
+
def read(apt_remote_href, opts = {})
|
|
321
|
+
data, _status_code, _headers = read_with_http_info(apt_remote_href, opts)
|
|
322
322
|
data
|
|
323
323
|
end
|
|
324
324
|
|
|
325
|
-
# Inspect
|
|
326
|
-
# A ViewSet for
|
|
327
|
-
# @param
|
|
325
|
+
# Inspect an apt remote
|
|
326
|
+
# A ViewSet for AptRemote.
|
|
327
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
328
328
|
# @param [Hash] opts the optional parameters
|
|
329
329
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
330
330
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
331
|
-
# @return [Array<(
|
|
332
|
-
def read_with_http_info(
|
|
331
|
+
# @return [Array<(DebAptRemote, Integer, Hash)>] DebAptRemote data, response status code and response headers
|
|
332
|
+
def read_with_http_info(apt_remote_href, opts = {})
|
|
333
333
|
if @api_client.config.debugging
|
|
334
334
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.read ...'
|
|
335
335
|
end
|
|
336
|
-
# verify the required parameter '
|
|
337
|
-
if @api_client.config.client_side_validation &&
|
|
338
|
-
fail ArgumentError, "Missing the required parameter '
|
|
336
|
+
# verify the required parameter 'apt_remote_href' is set
|
|
337
|
+
if @api_client.config.client_side_validation && apt_remote_href.nil?
|
|
338
|
+
fail ArgumentError, "Missing the required parameter 'apt_remote_href' when calling RemotesAptApi.read"
|
|
339
339
|
end
|
|
340
340
|
# resource path
|
|
341
|
-
local_var_path = '{
|
|
341
|
+
local_var_path = '{apt_remote_href}'.sub('{' + 'apt_remote_href' + '}', CGI.escape(apt_remote_href.to_s).gsub('%2F', '/'))
|
|
342
342
|
|
|
343
343
|
# query parameters
|
|
344
344
|
query_params = opts[:query_params] || {}
|
|
@@ -357,7 +357,7 @@ module PulpDebClient
|
|
|
357
357
|
post_body = opts[:body]
|
|
358
358
|
|
|
359
359
|
# return_type
|
|
360
|
-
return_type = opts[:return_type] || '
|
|
360
|
+
return_type = opts[:return_type] || 'DebAptRemote'
|
|
361
361
|
|
|
362
362
|
# auth_names
|
|
363
363
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -378,37 +378,37 @@ module PulpDebClient
|
|
|
378
378
|
return data, status_code, headers
|
|
379
379
|
end
|
|
380
380
|
|
|
381
|
-
# Update
|
|
381
|
+
# Update an apt remote
|
|
382
382
|
# Trigger an asynchronous update task
|
|
383
|
-
# @param
|
|
384
|
-
# @param data [
|
|
383
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
384
|
+
# @param data [DebAptRemote]
|
|
385
385
|
# @param [Hash] opts the optional parameters
|
|
386
386
|
# @return [AsyncOperationResponse]
|
|
387
|
-
def update(
|
|
388
|
-
data, _status_code, _headers = update_with_http_info(
|
|
387
|
+
def update(apt_remote_href, data, opts = {})
|
|
388
|
+
data, _status_code, _headers = update_with_http_info(apt_remote_href, data, opts)
|
|
389
389
|
data
|
|
390
390
|
end
|
|
391
391
|
|
|
392
|
-
# Update
|
|
392
|
+
# Update an apt remote
|
|
393
393
|
# Trigger an asynchronous update task
|
|
394
|
-
# @param
|
|
395
|
-
# @param data [
|
|
394
|
+
# @param apt_remote_href [String] URI of Apt Remote. e.g.: /pulp/api/v3/remotes/deb/apt/1/
|
|
395
|
+
# @param data [DebAptRemote]
|
|
396
396
|
# @param [Hash] opts the optional parameters
|
|
397
397
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
398
|
-
def update_with_http_info(
|
|
398
|
+
def update_with_http_info(apt_remote_href, data, opts = {})
|
|
399
399
|
if @api_client.config.debugging
|
|
400
400
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.update ...'
|
|
401
401
|
end
|
|
402
|
-
# verify the required parameter '
|
|
403
|
-
if @api_client.config.client_side_validation &&
|
|
404
|
-
fail ArgumentError, "Missing the required parameter '
|
|
402
|
+
# verify the required parameter 'apt_remote_href' is set
|
|
403
|
+
if @api_client.config.client_side_validation && apt_remote_href.nil?
|
|
404
|
+
fail ArgumentError, "Missing the required parameter 'apt_remote_href' when calling RemotesAptApi.update"
|
|
405
405
|
end
|
|
406
406
|
# verify the required parameter 'data' is set
|
|
407
407
|
if @api_client.config.client_side_validation && data.nil?
|
|
408
408
|
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesAptApi.update"
|
|
409
409
|
end
|
|
410
410
|
# resource path
|
|
411
|
-
local_var_path = '{
|
|
411
|
+
local_var_path = '{apt_remote_href}'.sub('{' + 'apt_remote_href' + '}', CGI.escape(apt_remote_href.to_s).gsub('%2F', '/'))
|
|
412
412
|
|
|
413
413
|
# query parameters
|
|
414
414
|
query_params = opts[:query_params] || {}
|
|
@@ -19,21 +19,21 @@ module PulpDebClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create
|
|
23
|
-
# A ViewSet for
|
|
24
|
-
# @param data [
|
|
22
|
+
# Create an apt repository
|
|
23
|
+
# A ViewSet for AptRepository.
|
|
24
|
+
# @param data [DebAptRepository]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [DebAptRepository]
|
|
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
|
|
33
|
-
# A ViewSet for
|
|
34
|
-
# @param data [
|
|
32
|
+
# Create an apt repository
|
|
33
|
+
# A ViewSet for AptRepository.
|
|
34
|
+
# @param data [DebAptRepository]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
36
|
+
# @return [Array<(DebAptRepository, Integer, Hash)>] DebAptRepository data, response status code and response headers
|
|
37
37
|
def create_with_http_info(data, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.create ...'
|
|
@@ -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] || 'DebAptRepository'
|
|
66
66
|
|
|
67
67
|
# auth_names
|
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -83,31 +83,31 @@ module PulpDebClient
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
# Delete
|
|
86
|
+
# Delete an apt repository
|
|
87
87
|
# Trigger an asynchronous delete task
|
|
88
|
-
# @param
|
|
88
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/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_repository_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(apt_repository_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# Delete
|
|
96
|
+
# Delete an apt repository
|
|
97
97
|
# Trigger an asynchronous delete task
|
|
98
|
-
# @param
|
|
98
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/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_repository_href, opts = {})
|
|
102
102
|
if @api_client.config.debugging
|
|
103
103
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.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_repository_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
|
-
local_var_path = '{
|
|
110
|
+
local_var_path = '{apt_repository_href}'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_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
|
-
# A ViewSet for
|
|
148
|
+
# List apt repositorys
|
|
149
|
+
# A ViewSet for AptRepository.
|
|
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
|
|
@@ -161,8 +161,8 @@ module PulpDebClient
|
|
|
161
161
|
data
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
# List
|
|
165
|
-
# A ViewSet for
|
|
164
|
+
# List apt repositorys
|
|
165
|
+
# A ViewSet for AptRepository.
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
|
167
167
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
168
168
|
# @option opts [String] :name
|
|
@@ -224,35 +224,35 @@ module PulpDebClient
|
|
|
224
224
|
|
|
225
225
|
# Modify Repository Content
|
|
226
226
|
# Trigger an asynchronous task to create a new repository version.
|
|
227
|
-
# @param
|
|
227
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
228
228
|
# @param data [RepositoryAddRemoveContent]
|
|
229
229
|
# @param [Hash] opts the optional parameters
|
|
230
230
|
# @return [AsyncOperationResponse]
|
|
231
|
-
def modify(
|
|
232
|
-
data, _status_code, _headers = modify_with_http_info(
|
|
231
|
+
def modify(apt_repository_href, data, opts = {})
|
|
232
|
+
data, _status_code, _headers = modify_with_http_info(apt_repository_href, data, opts)
|
|
233
233
|
data
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Modify Repository Content
|
|
237
237
|
# Trigger an asynchronous task to create a new repository version.
|
|
238
|
-
# @param
|
|
238
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
239
239
|
# @param data [RepositoryAddRemoveContent]
|
|
240
240
|
# @param [Hash] opts the optional parameters
|
|
241
241
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
242
|
-
def modify_with_http_info(
|
|
242
|
+
def modify_with_http_info(apt_repository_href, data, opts = {})
|
|
243
243
|
if @api_client.config.debugging
|
|
244
244
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.modify ...'
|
|
245
245
|
end
|
|
246
|
-
# verify the required parameter '
|
|
247
|
-
if @api_client.config.client_side_validation &&
|
|
248
|
-
fail ArgumentError, "Missing the required parameter '
|
|
246
|
+
# verify the required parameter 'apt_repository_href' is set
|
|
247
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
248
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.modify"
|
|
249
249
|
end
|
|
250
250
|
# verify the required parameter 'data' is set
|
|
251
251
|
if @api_client.config.client_side_validation && data.nil?
|
|
252
252
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesAptApi.modify"
|
|
253
253
|
end
|
|
254
254
|
# resource path
|
|
255
|
-
local_var_path = '{
|
|
255
|
+
local_var_path = '{apt_repository_href}modify/'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_href.to_s).gsub('%2F', '/'))
|
|
256
256
|
|
|
257
257
|
# query parameters
|
|
258
258
|
query_params = opts[:query_params] || {}
|
|
@@ -292,37 +292,37 @@ module PulpDebClient
|
|
|
292
292
|
return data, status_code, headers
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
# Partially update
|
|
295
|
+
# Partially update an apt repository
|
|
296
296
|
# Trigger an asynchronous partial update task
|
|
297
|
-
# @param
|
|
298
|
-
# @param data [
|
|
297
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
298
|
+
# @param data [DebAptRepository]
|
|
299
299
|
# @param [Hash] opts the optional parameters
|
|
300
300
|
# @return [AsyncOperationResponse]
|
|
301
|
-
def partial_update(
|
|
302
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
|
301
|
+
def partial_update(apt_repository_href, data, opts = {})
|
|
302
|
+
data, _status_code, _headers = partial_update_with_http_info(apt_repository_href, data, opts)
|
|
303
303
|
data
|
|
304
304
|
end
|
|
305
305
|
|
|
306
|
-
# Partially update
|
|
306
|
+
# Partially update an apt repository
|
|
307
307
|
# Trigger an asynchronous partial update task
|
|
308
|
-
# @param
|
|
309
|
-
# @param data [
|
|
308
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
309
|
+
# @param data [DebAptRepository]
|
|
310
310
|
# @param [Hash] opts the optional parameters
|
|
311
311
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
312
|
-
def partial_update_with_http_info(
|
|
312
|
+
def partial_update_with_http_info(apt_repository_href, data, opts = {})
|
|
313
313
|
if @api_client.config.debugging
|
|
314
314
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.partial_update ...'
|
|
315
315
|
end
|
|
316
|
-
# verify the required parameter '
|
|
317
|
-
if @api_client.config.client_side_validation &&
|
|
318
|
-
fail ArgumentError, "Missing the required parameter '
|
|
316
|
+
# verify the required parameter 'apt_repository_href' is set
|
|
317
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.partial_update"
|
|
319
319
|
end
|
|
320
320
|
# verify the required parameter 'data' is set
|
|
321
321
|
if @api_client.config.client_side_validation && data.nil?
|
|
322
322
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesAptApi.partial_update"
|
|
323
323
|
end
|
|
324
324
|
# resource path
|
|
325
|
-
local_var_path = '{
|
|
325
|
+
local_var_path = '{apt_repository_href}'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_href.to_s).gsub('%2F', '/'))
|
|
326
326
|
|
|
327
327
|
# query parameters
|
|
328
328
|
query_params = opts[:query_params] || {}
|
|
@@ -362,35 +362,35 @@ module PulpDebClient
|
|
|
362
362
|
return data, status_code, headers
|
|
363
363
|
end
|
|
364
364
|
|
|
365
|
-
# Inspect
|
|
366
|
-
# A ViewSet for
|
|
367
|
-
# @param
|
|
365
|
+
# Inspect an apt repository
|
|
366
|
+
# A ViewSet for AptRepository.
|
|
367
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
368
368
|
# @param [Hash] opts the optional parameters
|
|
369
369
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
370
370
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
371
|
-
# @return [
|
|
372
|
-
def read(
|
|
373
|
-
data, _status_code, _headers = read_with_http_info(
|
|
371
|
+
# @return [DebAptRepository]
|
|
372
|
+
def read(apt_repository_href, opts = {})
|
|
373
|
+
data, _status_code, _headers = read_with_http_info(apt_repository_href, opts)
|
|
374
374
|
data
|
|
375
375
|
end
|
|
376
376
|
|
|
377
|
-
# Inspect
|
|
378
|
-
# A ViewSet for
|
|
379
|
-
# @param
|
|
377
|
+
# Inspect an apt repository
|
|
378
|
+
# A ViewSet for AptRepository.
|
|
379
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
380
380
|
# @param [Hash] opts the optional parameters
|
|
381
381
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
382
382
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
383
|
-
# @return [Array<(
|
|
384
|
-
def read_with_http_info(
|
|
383
|
+
# @return [Array<(DebAptRepository, Integer, Hash)>] DebAptRepository data, response status code and response headers
|
|
384
|
+
def read_with_http_info(apt_repository_href, opts = {})
|
|
385
385
|
if @api_client.config.debugging
|
|
386
386
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.read ...'
|
|
387
387
|
end
|
|
388
|
-
# verify the required parameter '
|
|
389
|
-
if @api_client.config.client_side_validation &&
|
|
390
|
-
fail ArgumentError, "Missing the required parameter '
|
|
388
|
+
# verify the required parameter 'apt_repository_href' is set
|
|
389
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
390
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.read"
|
|
391
391
|
end
|
|
392
392
|
# resource path
|
|
393
|
-
local_var_path = '{
|
|
393
|
+
local_var_path = '{apt_repository_href}'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_href.to_s).gsub('%2F', '/'))
|
|
394
394
|
|
|
395
395
|
# query parameters
|
|
396
396
|
query_params = opts[:query_params] || {}
|
|
@@ -409,7 +409,7 @@ module PulpDebClient
|
|
|
409
409
|
post_body = opts[:body]
|
|
410
410
|
|
|
411
411
|
# return_type
|
|
412
|
-
return_type = opts[:return_type] || '
|
|
412
|
+
return_type = opts[:return_type] || 'DebAptRepository'
|
|
413
413
|
|
|
414
414
|
# auth_names
|
|
415
415
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -432,35 +432,35 @@ module PulpDebClient
|
|
|
432
432
|
|
|
433
433
|
# Sync from remote
|
|
434
434
|
# Trigger an asynchronous task to sync content
|
|
435
|
-
# @param
|
|
435
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
436
436
|
# @param data [RepositorySyncURL]
|
|
437
437
|
# @param [Hash] opts the optional parameters
|
|
438
438
|
# @return [AsyncOperationResponse]
|
|
439
|
-
def sync(
|
|
440
|
-
data, _status_code, _headers = sync_with_http_info(
|
|
439
|
+
def sync(apt_repository_href, data, opts = {})
|
|
440
|
+
data, _status_code, _headers = sync_with_http_info(apt_repository_href, data, opts)
|
|
441
441
|
data
|
|
442
442
|
end
|
|
443
443
|
|
|
444
444
|
# Sync from remote
|
|
445
445
|
# Trigger an asynchronous task to sync content
|
|
446
|
-
# @param
|
|
446
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
447
447
|
# @param data [RepositorySyncURL]
|
|
448
448
|
# @param [Hash] opts the optional parameters
|
|
449
449
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
450
|
-
def sync_with_http_info(
|
|
450
|
+
def sync_with_http_info(apt_repository_href, data, opts = {})
|
|
451
451
|
if @api_client.config.debugging
|
|
452
452
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.sync ...'
|
|
453
453
|
end
|
|
454
|
-
# verify the required parameter '
|
|
455
|
-
if @api_client.config.client_side_validation &&
|
|
456
|
-
fail ArgumentError, "Missing the required parameter '
|
|
454
|
+
# verify the required parameter 'apt_repository_href' is set
|
|
455
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
456
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.sync"
|
|
457
457
|
end
|
|
458
458
|
# verify the required parameter 'data' is set
|
|
459
459
|
if @api_client.config.client_side_validation && data.nil?
|
|
460
460
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesAptApi.sync"
|
|
461
461
|
end
|
|
462
462
|
# resource path
|
|
463
|
-
local_var_path = '{
|
|
463
|
+
local_var_path = '{apt_repository_href}sync/'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_href.to_s).gsub('%2F', '/'))
|
|
464
464
|
|
|
465
465
|
# query parameters
|
|
466
466
|
query_params = opts[:query_params] || {}
|
|
@@ -500,37 +500,37 @@ module PulpDebClient
|
|
|
500
500
|
return data, status_code, headers
|
|
501
501
|
end
|
|
502
502
|
|
|
503
|
-
# Update
|
|
503
|
+
# Update an apt repository
|
|
504
504
|
# Trigger an asynchronous update task
|
|
505
|
-
# @param
|
|
506
|
-
# @param data [
|
|
505
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
506
|
+
# @param data [DebAptRepository]
|
|
507
507
|
# @param [Hash] opts the optional parameters
|
|
508
508
|
# @return [AsyncOperationResponse]
|
|
509
|
-
def update(
|
|
510
|
-
data, _status_code, _headers = update_with_http_info(
|
|
509
|
+
def update(apt_repository_href, data, opts = {})
|
|
510
|
+
data, _status_code, _headers = update_with_http_info(apt_repository_href, data, opts)
|
|
511
511
|
data
|
|
512
512
|
end
|
|
513
513
|
|
|
514
|
-
# Update
|
|
514
|
+
# Update an apt repository
|
|
515
515
|
# Trigger an asynchronous update task
|
|
516
|
-
# @param
|
|
517
|
-
# @param data [
|
|
516
|
+
# @param apt_repository_href [String] URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
|
517
|
+
# @param data [DebAptRepository]
|
|
518
518
|
# @param [Hash] opts the optional parameters
|
|
519
519
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
520
|
-
def update_with_http_info(
|
|
520
|
+
def update_with_http_info(apt_repository_href, data, opts = {})
|
|
521
521
|
if @api_client.config.debugging
|
|
522
522
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.update ...'
|
|
523
523
|
end
|
|
524
|
-
# verify the required parameter '
|
|
525
|
-
if @api_client.config.client_side_validation &&
|
|
526
|
-
fail ArgumentError, "Missing the required parameter '
|
|
524
|
+
# verify the required parameter 'apt_repository_href' is set
|
|
525
|
+
if @api_client.config.client_side_validation && apt_repository_href.nil?
|
|
526
|
+
fail ArgumentError, "Missing the required parameter 'apt_repository_href' when calling RepositoriesAptApi.update"
|
|
527
527
|
end
|
|
528
528
|
# verify the required parameter 'data' is set
|
|
529
529
|
if @api_client.config.client_side_validation && data.nil?
|
|
530
530
|
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesAptApi.update"
|
|
531
531
|
end
|
|
532
532
|
# resource path
|
|
533
|
-
local_var_path = '{
|
|
533
|
+
local_var_path = '{apt_repository_href}'.sub('{' + 'apt_repository_href' + '}', CGI.escape(apt_repository_href.to_s).gsub('%2F', '/'))
|
|
534
534
|
|
|
535
535
|
# query parameters
|
|
536
536
|
query_params = opts[:query_params] || {}
|