pulp_deb_client 2.3.0b1 → 2.4.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 +21 -8
- data/docs/ContentGenericContentsApi.md +5 -5
- data/docs/ContentInstallerFileIndicesApi.md +5 -5
- data/docs/ContentInstallerPackagesApi.md +5 -5
- data/docs/ContentPackageIndicesApi.md +5 -5
- data/docs/ContentPackageReleaseComponentsApi.md +5 -5
- data/docs/ContentPackagesApi.md +5 -5
- data/docs/ContentReleaseArchitecturesApi.md +5 -5
- data/docs/ContentReleaseComponentsApi.md +5 -5
- data/docs/ContentReleaseFilesApi.md +5 -5
- data/docs/ContentReleasesApi.md +5 -5
- data/docs/{DebBasePackage.md → DebBasePackageRead.md} +2 -2
- data/docs/DebDebDistributionRead.md +29 -0
- data/docs/DebDebPublicationRead.md +29 -0
- data/docs/DebDebRemote.md +7 -3
- data/docs/DebDebRemoteRead.md +57 -0
- data/docs/DebDebRepositoryRead.md +27 -0
- data/docs/{DebGenericContent.md → DebGenericContentRead.md} +2 -2
- data/docs/DebInstallerFileIndexRead.md +29 -0
- data/docs/DebPackageIndexRead.md +29 -0
- data/docs/DebPackageReleaseComponentRead.md +23 -0
- data/docs/DebReleaseArchitectureRead.md +23 -0
- data/docs/DebReleaseComponentRead.md +23 -0
- data/docs/DebReleaseFileRead.md +29 -0
- data/docs/DebReleaseRead.md +25 -0
- data/docs/DebVerbatimPublicationRead.md +23 -0
- data/docs/DistributionsAptApi.md +3 -3
- 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 +3 -3
- data/docs/PublicationsVerbatimApi.md +3 -3
- data/docs/RemotesAptApi.md +5 -5
- data/docs/RepositoriesAptApi.md +10 -10
- data/docs/RepositoriesDebVersionsApi.md +3 -3
- data/docs/RepositoryVersionRead.md +25 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +3 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +6 -6
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +15 -15
- data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +3 -3
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/{deb_base_package.rb → deb_base_package_read.rb} +3 -3
- data/lib/pulp_deb_client/models/deb_deb_distribution_read.rb +331 -0
- data/lib/pulp_deb_client/models/deb_deb_publication_read.rb +269 -0
- data/lib/pulp_deb_client/models/deb_deb_remote.rb +56 -4
- data/lib/pulp_deb_client/models/deb_deb_remote_read.rb +670 -0
- data/lib/pulp_deb_client/models/deb_deb_repository_read.rb +294 -0
- data/lib/pulp_deb_client/models/{deb_generic_content.rb → deb_generic_content_read.rb} +3 -3
- data/lib/pulp_deb_client/models/deb_installer_file_index_read.rb +341 -0
- data/lib/pulp_deb_client/models/deb_package_index_read.rb +341 -0
- data/lib/pulp_deb_client/models/deb_package_release_component_read.rb +246 -0
- data/lib/pulp_deb_client/models/deb_release_architecture_read.rb +265 -0
- data/lib/pulp_deb_client/models/deb_release_component_read.rb +265 -0
- data/lib/pulp_deb_client/models/deb_release_file_read.rb +342 -0
- data/lib/pulp_deb_client/models/deb_release_read.rb +315 -0
- data/lib/pulp_deb_client/models/deb_verbatim_publication_read.rb +235 -0
- 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/models/repository_version_read.rb +244 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +15 -2
- data/spec/api/content_generic_contents_api_spec.rb +2 -2
- data/spec/api/content_installer_file_indices_api_spec.rb +2 -2
- data/spec/api/content_installer_packages_api_spec.rb +2 -2
- 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 +2 -2
- 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 +1 -1
- data/spec/api/publications_apt_api_spec.rb +1 -1
- data/spec/api/publications_verbatim_api_spec.rb +1 -1
- data/spec/api/remotes_apt_api_spec.rb +2 -2
- data/spec/api/repositories_apt_api_spec.rb +6 -6
- data/spec/api/repositories_deb_versions_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{deb_base_package_spec.rb → deb_base_package_read_spec.rb} +6 -6
- data/spec/models/deb_deb_distribution_read_spec.rb +77 -0
- data/spec/models/deb_deb_publication_read_spec.rb +77 -0
- data/spec/models/deb_deb_remote_read_spec.rb +165 -0
- data/spec/models/deb_deb_remote_spec.rb +12 -0
- data/spec/models/deb_deb_repository_read_spec.rb +71 -0
- data/spec/models/{deb_generic_content_spec.rb → deb_generic_content_read_spec.rb} +6 -6
- data/spec/models/deb_installer_file_index_read_spec.rb +77 -0
- data/spec/models/deb_package_index_read_spec.rb +77 -0
- data/spec/models/deb_package_release_component_read_spec.rb +59 -0
- data/spec/models/deb_release_architecture_read_spec.rb +59 -0
- data/spec/models/deb_release_component_read_spec.rb +59 -0
- data/spec/models/deb_release_file_read_spec.rb +77 -0
- data/spec/models/deb_release_read_spec.rb +65 -0
- data/spec/models/deb_verbatim_publication_read_spec.rb +59 -0
- data/spec/models/repository_version_read_spec.rb +65 -0
- metadata +62 -10
@@ -310,7 +310,7 @@ module PulpDebClient
|
|
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 [
|
313
|
+
# @return [DebDebDistributionRead]
|
314
314
|
def read(deb_distribution_href, opts = {})
|
315
315
|
data, _status_code, _headers = read_with_http_info(deb_distribution_href, opts)
|
316
316
|
data
|
@@ -322,7 +322,7 @@ module PulpDebClient
|
|
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<(
|
325
|
+
# @return [Array<(DebDebDistributionRead, Integer, Hash)>] DebDebDistributionRead data, response status code and response headers
|
326
326
|
def read_with_http_info(deb_distribution_href, opts = {})
|
327
327
|
if @api_client.config.debugging
|
328
328
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.read ...'
|
@@ -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] || 'DebDebDistributionRead'
|
355
355
|
|
356
356
|
# auth_names
|
357
357
|
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 [DebDebPublicationRead]
|
245
245
|
def read(deb_publication_href, opts = {})
|
246
246
|
data, _status_code, _headers = read_with_http_info(deb_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<(DebDebPublicationRead, Integer, Hash)>] DebDebPublicationRead data, response status code and response headers
|
257
257
|
def read_with_http_info(deb_publication_href, opts = {})
|
258
258
|
if @api_client.config.debugging
|
259
259
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.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] || 'DebDebPublicationRead'
|
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 [DebVerbatimPublicationRead]
|
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<(DebVerbatimPublicationRead, Integer, Hash)>] DebVerbatimPublicationRead 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] || 'DebVerbatimPublicationRead'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -23,7 +23,7 @@ module PulpDebClient
|
|
23
23
|
# A ViewSet for DebRemote.
|
24
24
|
# @param data [DebDebRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [DebDebRemoteRead]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module PulpDebClient
|
|
33
33
|
# A ViewSet for DebRemote.
|
34
34
|
# @param data [DebDebRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(DebDebRemoteRead, Integer, Hash)>] DebDebRemoteRead 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] || 'DebDebRemoteRead'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -316,7 +316,7 @@ module PulpDebClient
|
|
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 [
|
319
|
+
# @return [DebDebRemoteRead]
|
320
320
|
def read(deb_remote_href, opts = {})
|
321
321
|
data, _status_code, _headers = read_with_http_info(deb_remote_href, opts)
|
322
322
|
data
|
@@ -328,7 +328,7 @@ module PulpDebClient
|
|
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<(
|
331
|
+
# @return [Array<(DebDebRemoteRead, Integer, Hash)>] DebDebRemoteRead data, response status code and response headers
|
332
332
|
def read_with_http_info(deb_remote_href, opts = {})
|
333
333
|
if @api_client.config.debugging
|
334
334
|
@api_client.config.logger.debug 'Calling API: RemotesAptApi.read ...'
|
@@ -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] || 'DebDebRemoteRead'
|
361
361
|
|
362
362
|
# auth_names
|
363
363
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -23,7 +23,7 @@ module PulpDebClient
|
|
23
23
|
# A ViewSet for DebRepository.
|
24
24
|
# @param data [DebDebRepository]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [DebDebRepositoryRead]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module PulpDebClient
|
|
33
33
|
# A ViewSet for DebRepository.
|
34
34
|
# @param data [DebDebRepository]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(DebDebRepositoryRead, Integer, Hash)>] DebDebRepositoryRead 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] || 'DebDebRepositoryRead'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -84,7 +84,7 @@ module PulpDebClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete a deb repository
|
87
|
-
# Trigger an asynchronous
|
87
|
+
# Trigger an asynchronous delete task
|
88
88
|
# @param deb_repository_href [String] URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
@@ -94,7 +94,7 @@ module PulpDebClient
|
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete a deb repository
|
97
|
-
# Trigger an asynchronous
|
97
|
+
# Trigger an asynchronous delete task
|
98
98
|
# @param deb_repository_href [String] URI of Deb 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
|
@@ -293,22 +293,22 @@ module PulpDebClient
|
|
293
293
|
end
|
294
294
|
|
295
295
|
# Partially update a deb repository
|
296
|
-
#
|
296
|
+
# Trigger an asynchronous partial update task
|
297
297
|
# @param deb_repository_href [String] URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
298
298
|
# @param data [DebDebRepository]
|
299
299
|
# @param [Hash] opts the optional parameters
|
300
|
-
# @return [
|
300
|
+
# @return [AsyncOperationResponse]
|
301
301
|
def partial_update(deb_repository_href, data, opts = {})
|
302
302
|
data, _status_code, _headers = partial_update_with_http_info(deb_repository_href, data, opts)
|
303
303
|
data
|
304
304
|
end
|
305
305
|
|
306
306
|
# Partially update a deb repository
|
307
|
-
#
|
307
|
+
# Trigger an asynchronous partial update task
|
308
308
|
# @param deb_repository_href [String] URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
309
309
|
# @param data [DebDebRepository]
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
|
-
# @return [Array<(
|
311
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
312
312
|
def partial_update_with_http_info(deb_repository_href, data, opts = {})
|
313
313
|
if @api_client.config.debugging
|
314
314
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.partial_update ...'
|
@@ -341,7 +341,7 @@ module PulpDebClient
|
|
341
341
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
342
342
|
|
343
343
|
# return_type
|
344
|
-
return_type = opts[:return_type] || '
|
344
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
345
345
|
|
346
346
|
# auth_names
|
347
347
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -368,7 +368,7 @@ module PulpDebClient
|
|
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 [
|
371
|
+
# @return [DebDebRepositoryRead]
|
372
372
|
def read(deb_repository_href, opts = {})
|
373
373
|
data, _status_code, _headers = read_with_http_info(deb_repository_href, opts)
|
374
374
|
data
|
@@ -380,7 +380,7 @@ module PulpDebClient
|
|
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<(
|
383
|
+
# @return [Array<(DebDebRepositoryRead, Integer, Hash)>] DebDebRepositoryRead data, response status code and response headers
|
384
384
|
def read_with_http_info(deb_repository_href, opts = {})
|
385
385
|
if @api_client.config.debugging
|
386
386
|
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.read ...'
|
@@ -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] || 'DebDebRepositoryRead'
|
413
413
|
|
414
414
|
# auth_names
|
415
415
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -501,7 +501,7 @@ module PulpDebClient
|
|
501
501
|
end
|
502
502
|
|
503
503
|
# Update a deb repository
|
504
|
-
# Trigger an asynchronous
|
504
|
+
# Trigger an asynchronous update task
|
505
505
|
# @param deb_repository_href [String] URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
506
506
|
# @param data [DebDebRepository]
|
507
507
|
# @param [Hash] opts the optional parameters
|
@@ -512,7 +512,7 @@ module PulpDebClient
|
|
512
512
|
end
|
513
513
|
|
514
514
|
# Update a deb repository
|
515
|
-
# Trigger an asynchronous
|
515
|
+
# Trigger an asynchronous update task
|
516
516
|
# @param deb_repository_href [String] URI of Deb Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
517
517
|
# @param data [DebDebRepository]
|
518
518
|
# @param [Hash] opts the optional parameters
|
@@ -203,7 +203,7 @@ module PulpDebClient
|
|
203
203
|
# @param [Hash] opts the optional parameters
|
204
204
|
# @option opts [String] :fields A list of fields to include in the response.
|
205
205
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
206
|
-
# @return [
|
206
|
+
# @return [RepositoryVersionRead]
|
207
207
|
def read(apt_repository_version_href, opts = {})
|
208
208
|
data, _status_code, _headers = read_with_http_info(apt_repository_version_href, opts)
|
209
209
|
data
|
@@ -215,7 +215,7 @@ module PulpDebClient
|
|
215
215
|
# @param [Hash] opts the optional parameters
|
216
216
|
# @option opts [String] :fields A list of fields to include in the response.
|
217
217
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
218
|
-
# @return [Array<(
|
218
|
+
# @return [Array<(RepositoryVersionRead, Integer, Hash)>] RepositoryVersionRead data, response status code and response headers
|
219
219
|
def read_with_http_info(apt_repository_version_href, opts = {})
|
220
220
|
if @api_client.config.debugging
|
221
221
|
@api_client.config.logger.debug 'Calling API: RepositoriesDebVersionsApi.read ...'
|
@@ -244,7 +244,7 @@ module PulpDebClient
|
|
244
244
|
post_body = opts[:body]
|
245
245
|
|
246
246
|
# return_type
|
247
|
-
return_type = opts[:return_type] || '
|
247
|
+
return_type = opts[:return_type] || 'RepositoryVersionRead'
|
248
248
|
|
249
249
|
# auth_names
|
250
250
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -122,7 +122,7 @@ module PulpDebClient
|
|
122
122
|
|
123
123
|
def initialize
|
124
124
|
@scheme = 'http'
|
125
|
-
@host = '
|
125
|
+
@host = 'pulp'
|
126
126
|
@base_path = ''
|
127
127
|
@api_key = {}
|
128
128
|
@api_key_prefix = {}
|
@@ -202,7 +202,7 @@ module PulpDebClient
|
|
202
202
|
def server_settings
|
203
203
|
[
|
204
204
|
{
|
205
|
-
url: "http://
|
205
|
+
url: "http://pulp/",
|
206
206
|
description: "No description provided",
|
207
207
|
}
|
208
208
|
]
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpDebClient
|
16
|
-
class
|
16
|
+
class DebBasePackageRead
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -201,13 +201,13 @@ module PulpDebClient
|
|
201
201
|
# @param [Hash] attributes Model attributes in the form of hash
|
202
202
|
def initialize(attributes = {})
|
203
203
|
if (!attributes.is_a?(Hash))
|
204
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::
|
204
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebBasePackageRead` initialize method"
|
205
205
|
end
|
206
206
|
|
207
207
|
# check to see if the attribute exists and convert string to symbol for hash key
|
208
208
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
209
209
|
if (!self.class.attribute_map.key?(k.to_sym))
|
210
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::
|
210
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebBasePackageRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
211
211
|
end
|
212
212
|
h[k.to_sym] = v
|
213
213
|
}
|
@@ -0,0 +1,331 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpDebClient
|
16
|
+
class DebDebDistributionRead
|
17
|
+
attr_accessor :pulp_href
|
18
|
+
|
19
|
+
# Timestamp of creation.
|
20
|
+
attr_accessor :pulp_created
|
21
|
+
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
23
|
+
attr_accessor :base_path
|
24
|
+
|
25
|
+
# The URL for accessing the publication as defined by this distribution.
|
26
|
+
attr_accessor :base_url
|
27
|
+
|
28
|
+
# An optional content-guard.
|
29
|
+
attr_accessor :content_guard
|
30
|
+
|
31
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# Publication to be served
|
35
|
+
attr_accessor :publication
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'pulp_href' => :'pulp_href',
|
41
|
+
:'pulp_created' => :'pulp_created',
|
42
|
+
:'base_path' => :'base_path',
|
43
|
+
:'base_url' => :'base_url',
|
44
|
+
:'content_guard' => :'content_guard',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'publication' => :'publication'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'pulp_href' => :'String',
|
54
|
+
:'pulp_created' => :'DateTime',
|
55
|
+
:'base_path' => :'String',
|
56
|
+
:'base_url' => :'String',
|
57
|
+
:'content_guard' => :'String',
|
58
|
+
:'name' => :'String',
|
59
|
+
:'publication' => :'String'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
:'content_guard',
|
67
|
+
:'publication'
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebDebDistributionRead` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebDebDistributionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'pulp_href')
|
87
|
+
self.pulp_href = attributes[:'pulp_href']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'pulp_created')
|
91
|
+
self.pulp_created = attributes[:'pulp_created']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'base_path')
|
95
|
+
self.base_path = attributes[:'base_path']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'base_url')
|
99
|
+
self.base_url = attributes[:'base_url']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'content_guard')
|
103
|
+
self.content_guard = attributes[:'content_guard']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'name')
|
107
|
+
self.name = attributes[:'name']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'publication')
|
111
|
+
self.publication = attributes[:'publication']
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
116
|
+
# @return Array for valid properties with the reasons
|
117
|
+
def list_invalid_properties
|
118
|
+
invalid_properties = Array.new
|
119
|
+
if @base_path.nil?
|
120
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
121
|
+
end
|
122
|
+
|
123
|
+
if @base_path.to_s.length < 1
|
124
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
125
|
+
end
|
126
|
+
|
127
|
+
if !@base_url.nil? && @base_url.to_s.length < 1
|
128
|
+
invalid_properties.push('invalid value for "base_url", the character length must be great than or equal to 1.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @name.nil?
|
132
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @name.to_s.length < 1
|
136
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
137
|
+
end
|
138
|
+
|
139
|
+
invalid_properties
|
140
|
+
end
|
141
|
+
|
142
|
+
# Check to see if the all the properties in the model are valid
|
143
|
+
# @return true if the model is valid
|
144
|
+
def valid?
|
145
|
+
return false if @base_path.nil?
|
146
|
+
return false if @base_path.to_s.length < 1
|
147
|
+
return false if !@base_url.nil? && @base_url.to_s.length < 1
|
148
|
+
return false if @name.nil?
|
149
|
+
return false if @name.to_s.length < 1
|
150
|
+
true
|
151
|
+
end
|
152
|
+
|
153
|
+
# Custom attribute writer method with validation
|
154
|
+
# @param [Object] base_path Value to be assigned
|
155
|
+
def base_path=(base_path)
|
156
|
+
if base_path.nil?
|
157
|
+
fail ArgumentError, 'base_path cannot be nil'
|
158
|
+
end
|
159
|
+
|
160
|
+
if base_path.to_s.length < 1
|
161
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
162
|
+
end
|
163
|
+
|
164
|
+
@base_path = base_path
|
165
|
+
end
|
166
|
+
|
167
|
+
# Custom attribute writer method with validation
|
168
|
+
# @param [Object] base_url Value to be assigned
|
169
|
+
def base_url=(base_url)
|
170
|
+
if !base_url.nil? && base_url.to_s.length < 1
|
171
|
+
fail ArgumentError, 'invalid value for "base_url", the character length must be great than or equal to 1.'
|
172
|
+
end
|
173
|
+
|
174
|
+
@base_url = base_url
|
175
|
+
end
|
176
|
+
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] name Value to be assigned
|
179
|
+
def name=(name)
|
180
|
+
if name.nil?
|
181
|
+
fail ArgumentError, 'name cannot be nil'
|
182
|
+
end
|
183
|
+
|
184
|
+
if name.to_s.length < 1
|
185
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
186
|
+
end
|
187
|
+
|
188
|
+
@name = name
|
189
|
+
end
|
190
|
+
|
191
|
+
# Checks equality by comparing each attribute.
|
192
|
+
# @param [Object] Object to be compared
|
193
|
+
def ==(o)
|
194
|
+
return true if self.equal?(o)
|
195
|
+
self.class == o.class &&
|
196
|
+
pulp_href == o.pulp_href &&
|
197
|
+
pulp_created == o.pulp_created &&
|
198
|
+
base_path == o.base_path &&
|
199
|
+
base_url == o.base_url &&
|
200
|
+
content_guard == o.content_guard &&
|
201
|
+
name == o.name &&
|
202
|
+
publication == o.publication
|
203
|
+
end
|
204
|
+
|
205
|
+
# @see the `==` method
|
206
|
+
# @param [Object] Object to be compared
|
207
|
+
def eql?(o)
|
208
|
+
self == o
|
209
|
+
end
|
210
|
+
|
211
|
+
# Calculates hash code according to all attributes.
|
212
|
+
# @return [Integer] Hash code
|
213
|
+
def hash
|
214
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, name, publication].hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Builds the object from hash
|
218
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
219
|
+
# @return [Object] Returns the model itself
|
220
|
+
def self.build_from_hash(attributes)
|
221
|
+
new.build_from_hash(attributes)
|
222
|
+
end
|
223
|
+
|
224
|
+
# Builds the object from hash
|
225
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
226
|
+
# @return [Object] Returns the model itself
|
227
|
+
def build_from_hash(attributes)
|
228
|
+
return nil unless attributes.is_a?(Hash)
|
229
|
+
self.class.openapi_types.each_pair do |key, type|
|
230
|
+
if type =~ /\AArray<(.*)>/i
|
231
|
+
# check to ensure the input is an array given that the attribute
|
232
|
+
# is documented as an array but the input is not
|
233
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
234
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
235
|
+
end
|
236
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
237
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
238
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
239
|
+
end
|
240
|
+
|
241
|
+
self
|
242
|
+
end
|
243
|
+
|
244
|
+
# Deserializes the data based on type
|
245
|
+
# @param string type Data type
|
246
|
+
# @param string value Value to be deserialized
|
247
|
+
# @return [Object] Deserialized data
|
248
|
+
def _deserialize(type, value)
|
249
|
+
case type.to_sym
|
250
|
+
when :DateTime
|
251
|
+
DateTime.parse(value)
|
252
|
+
when :Date
|
253
|
+
Date.parse(value)
|
254
|
+
when :String
|
255
|
+
value.to_s
|
256
|
+
when :Integer
|
257
|
+
value.to_i
|
258
|
+
when :Float
|
259
|
+
value.to_f
|
260
|
+
when :Boolean
|
261
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
262
|
+
true
|
263
|
+
else
|
264
|
+
false
|
265
|
+
end
|
266
|
+
when :Object
|
267
|
+
# generic object (usually a Hash), return directly
|
268
|
+
value
|
269
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
270
|
+
inner_type = Regexp.last_match[:inner_type]
|
271
|
+
value.map { |v| _deserialize(inner_type, v) }
|
272
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
273
|
+
k_type = Regexp.last_match[:k_type]
|
274
|
+
v_type = Regexp.last_match[:v_type]
|
275
|
+
{}.tap do |hash|
|
276
|
+
value.each do |k, v|
|
277
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
else # model
|
281
|
+
PulpDebClient.const_get(type).build_from_hash(value)
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# Returns the string representation of the object
|
286
|
+
# @return [String] String presentation of the object
|
287
|
+
def to_s
|
288
|
+
to_hash.to_s
|
289
|
+
end
|
290
|
+
|
291
|
+
# to_body is an alias to to_hash (backward compatibility)
|
292
|
+
# @return [Hash] Returns the object in the form of hash
|
293
|
+
def to_body
|
294
|
+
to_hash
|
295
|
+
end
|
296
|
+
|
297
|
+
# Returns the object in the form of hash
|
298
|
+
# @return [Hash] Returns the object in the form of hash
|
299
|
+
def to_hash
|
300
|
+
hash = {}
|
301
|
+
self.class.attribute_map.each_pair do |attr, param|
|
302
|
+
value = self.send(attr)
|
303
|
+
if value.nil?
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
306
|
+
end
|
307
|
+
|
308
|
+
hash[param] = _to_hash(value)
|
309
|
+
end
|
310
|
+
hash
|
311
|
+
end
|
312
|
+
|
313
|
+
# Outputs non-array value in the form of hash
|
314
|
+
# For object, use to_hash. Otherwise, just return the value
|
315
|
+
# @param [Object] value Any valid value
|
316
|
+
# @return [Hash] Returns the value in the form of hash
|
317
|
+
def _to_hash(value)
|
318
|
+
if value.is_a?(Array)
|
319
|
+
value.compact.map { |v| _to_hash(v) }
|
320
|
+
elsif value.is_a?(Hash)
|
321
|
+
{}.tap do |hash|
|
322
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
323
|
+
end
|
324
|
+
elsif value.respond_to? :to_hash
|
325
|
+
value.to_hash
|
326
|
+
else
|
327
|
+
value
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|