pulp_deb_client 2.5.0b1.dev01592674770 → 2.5.0b1.dev01593106939
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_deb_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +37 -37
- data/docs/{DebDebDistribution.md → DebAptDistribution.md} +2 -2
- data/docs/{DebDebDistributionRead.md → DebAptDistributionRead.md} +2 -2
- data/docs/{DebDebPublication.md → DebAptPublication.md} +2 -2
- data/docs/{DebDebPublicationRead.md → DebAptPublicationRead.md} +2 -2
- data/docs/{DebDebRemote.md → DebAptRemote.md} +2 -2
- data/docs/{DebDebRemoteRead.md → DebAptRemoteRead.md} +2 -2
- data/docs/{DebDebRepository.md → DebAptRepository.md} +2 -2
- data/docs/{DebDebRepositoryRead.md → DebAptRepositoryRead.md} +2 -2
- data/docs/DistributionsAptApi.md +43 -43
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PublicationsAptApi.md +26 -26
- data/docs/RemotesAptApi.md +46 -46
- data/docs/RepositoriesAptApi.md +56 -56
- data/docs/RepositoriesDebVersionsApi.md +7 -7
- data/lib/pulp_deb_client.rb +8 -8
- 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/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 +13 -13
- data/lib/pulp_deb_client/models/{deb_deb_distribution.rb → deb_apt_distribution.rb} +3 -3
- data/lib/pulp_deb_client/models/{deb_deb_distribution_read.rb → deb_apt_distribution_read.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_publication_read.rb → deb_apt_publication_read.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_remote_read.rb → deb_apt_remote_read.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_deb_repository_read.rb → deb_apt_repository_read.rb} +3 -3
- data/lib/pulp_deb_client/models/inline_response20010.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_response2009.rb +1 -1
- data/lib/pulp_deb_client/version.rb +1 -1
- data/spec/api/distributions_apt_api_spec.rb +13 -13
- data/spec/api/publications_apt_api_spec.rb +10 -10
- 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 +3 -3
- data/spec/models/{deb_deb_distribution_read_spec.rb → deb_apt_distribution_read_spec.rb} +6 -6
- data/spec/models/{deb_deb_distribution_spec.rb → deb_apt_distribution_spec.rb} +6 -6
- data/spec/models/{deb_deb_publication_read_spec.rb → deb_apt_publication_read_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_read_spec.rb → deb_apt_remote_read_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_read_spec.rb → deb_apt_repository_read_spec.rb} +6 -6
- data/spec/models/{deb_deb_repository_spec.rb → deb_apt_repository_spec.rb} +6 -6
- metadata +34 -34
@@ -5,7 +5,7 @@ All URIs are relative to *http://pulp*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete**](RepositoriesDebVersionsApi.md#delete) | **DELETE** {apt_repository_version_href} | Delete a repository version
|
8
|
-
[**list**](RepositoriesDebVersionsApi.md#list) | **GET**
|
8
|
+
[**list**](RepositoriesDebVersionsApi.md#list) | **GET** {apt_repository_href}versions/ | List repository versions
|
9
9
|
[**read**](RepositoriesDebVersionsApi.md#read) | **GET** {apt_repository_version_href} | Inspect a repository version
|
10
10
|
[**repair**](RepositoriesDebVersionsApi.md#repair) | **POST** {apt_repository_version_href}repair/ |
|
11
11
|
|
@@ -66,11 +66,11 @@ Name | Type | Description | Notes
|
|
66
66
|
|
67
67
|
## list
|
68
68
|
|
69
|
-
> InlineResponse20014 list(
|
69
|
+
> InlineResponse20014 list(apt_repository_href, opts)
|
70
70
|
|
71
71
|
List repository versions
|
72
72
|
|
73
|
-
|
73
|
+
AptRepositoryVersion represents a single deb repository version.
|
74
74
|
|
75
75
|
### Example
|
76
76
|
|
@@ -85,7 +85,7 @@ PulpDebClient.configure do |config|
|
|
85
85
|
end
|
86
86
|
|
87
87
|
api_instance = PulpDebClient::RepositoriesDebVersionsApi.new
|
88
|
-
|
88
|
+
apt_repository_href = 'apt_repository_href_example' # String | URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/
|
89
89
|
opts = {
|
90
90
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
91
91
|
number: 3.4, # Float |
|
@@ -109,7 +109,7 @@ opts = {
|
|
109
109
|
|
110
110
|
begin
|
111
111
|
#List repository versions
|
112
|
-
result = api_instance.list(
|
112
|
+
result = api_instance.list(apt_repository_href, opts)
|
113
113
|
p result
|
114
114
|
rescue PulpDebClient::ApiError => e
|
115
115
|
puts "Exception when calling RepositoriesDebVersionsApi->list: #{e}"
|
@@ -121,7 +121,7 @@ end
|
|
121
121
|
|
122
122
|
Name | Type | Description | Notes
|
123
123
|
------------- | ------------- | ------------- | -------------
|
124
|
-
**
|
124
|
+
**apt_repository_href** | **String**| URI of Apt Repository. e.g.: /pulp/api/v3/repositories/deb/apt/1/ |
|
125
125
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
126
126
|
**number** | **Float**| | [optional]
|
127
127
|
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
@@ -161,7 +161,7 @@ Name | Type | Description | Notes
|
|
161
161
|
|
162
162
|
Inspect a repository version
|
163
163
|
|
164
|
-
|
164
|
+
AptRepositoryVersion represents a single deb repository version.
|
165
165
|
|
166
166
|
### Example
|
167
167
|
|
data/lib/pulp_deb_client.rb
CHANGED
@@ -19,15 +19,15 @@ require 'pulp_deb_client/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_deb_client/models/async_operation_response'
|
21
21
|
require 'pulp_deb_client/models/content_summary'
|
22
|
+
require 'pulp_deb_client/models/deb_apt_distribution'
|
23
|
+
require 'pulp_deb_client/models/deb_apt_distribution_read'
|
24
|
+
require 'pulp_deb_client/models/deb_apt_publication'
|
25
|
+
require 'pulp_deb_client/models/deb_apt_publication_read'
|
26
|
+
require 'pulp_deb_client/models/deb_apt_remote'
|
27
|
+
require 'pulp_deb_client/models/deb_apt_remote_read'
|
28
|
+
require 'pulp_deb_client/models/deb_apt_repository'
|
29
|
+
require 'pulp_deb_client/models/deb_apt_repository_read'
|
22
30
|
require 'pulp_deb_client/models/deb_base_package_read'
|
23
|
-
require 'pulp_deb_client/models/deb_deb_distribution'
|
24
|
-
require 'pulp_deb_client/models/deb_deb_distribution_read'
|
25
|
-
require 'pulp_deb_client/models/deb_deb_publication'
|
26
|
-
require 'pulp_deb_client/models/deb_deb_publication_read'
|
27
|
-
require 'pulp_deb_client/models/deb_deb_remote'
|
28
|
-
require 'pulp_deb_client/models/deb_deb_remote_read'
|
29
|
-
require 'pulp_deb_client/models/deb_deb_repository'
|
30
|
-
require 'pulp_deb_client/models/deb_deb_repository_read'
|
31
31
|
require 'pulp_deb_client/models/deb_generic_content_read'
|
32
32
|
require 'pulp_deb_client/models/deb_installer_file_index'
|
33
33
|
require 'pulp_deb_client/models/deb_installer_file_index_read'
|
@@ -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 [DebAptDistributionRead]
|
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<(DebAptDistributionRead, Integer, Hash)>] DebAptDistributionRead 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] || 'DebAptDistributionRead'
|
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 [DebAptPublicationRead]
|
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<(DebAptPublicationRead, Integer, Hash)>] DebAptPublicationRead 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] || 'DebAptPublicationRead'
|
286
286
|
|
287
287
|
# auth_names
|
288
288
|
auth_names = opts[:auth_names] || ['Basic']
|