pulp_deb_client 3.7.0 → 3.8.0

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -16
  3. data/docs/AcsDebApi.md +886 -0
  4. data/docs/DebAptAlternateContentSource.md +24 -0
  5. data/docs/DebAptAlternateContentSourceResponse.md +32 -0
  6. data/docs/DebAptRepository.md +2 -0
  7. data/docs/DebAptRepositoryResponse.md +2 -0
  8. data/docs/DistributionsAptApi.md +10 -10
  9. data/docs/PaginateddebAptAlternateContentSourceResponseList.md +24 -0
  10. data/docs/PatcheddebAptAlternateContentSource.md +24 -0
  11. data/docs/PatcheddebAptRepository.md +2 -0
  12. data/docs/RemotesAptApi.md +10 -10
  13. data/docs/RepositoriesAptApi.md +10 -10
  14. data/docs/TaskGroupOperationResponse.md +18 -0
  15. data/lib/pulp_deb_client/api/acs_deb_api.rb +865 -0
  16. data/lib/pulp_deb_client/api/distributions_apt_api.rb +10 -10
  17. data/lib/pulp_deb_client/api/remotes_apt_api.rb +10 -10
  18. data/lib/pulp_deb_client/api/repositories_apt_api.rb +10 -10
  19. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source.rb +282 -0
  20. data/lib/pulp_deb_client/models/deb_apt_alternate_content_source_response.rb +302 -0
  21. data/lib/pulp_deb_client/models/deb_apt_repository.rb +13 -1
  22. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +13 -1
  23. data/lib/pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list.rb +257 -0
  24. data/lib/pulp_deb_client/models/patcheddeb_apt_alternate_content_source.rb +268 -0
  25. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +13 -1
  26. data/lib/pulp_deb_client/models/task_group_operation_response.rb +223 -0
  27. data/lib/pulp_deb_client/version.rb +1 -1
  28. data/lib/pulp_deb_client.rb +6 -0
  29. data/spec/api/acs_deb_api_spec.rb +204 -0
  30. data/spec/api/distributions_apt_api_spec.rb +4 -4
  31. data/spec/api/remotes_apt_api_spec.rb +4 -4
  32. data/spec/api/repositories_apt_api_spec.rb +4 -4
  33. data/spec/models/deb_apt_alternate_content_source_response_spec.rb +78 -0
  34. data/spec/models/deb_apt_alternate_content_source_spec.rb +54 -0
  35. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  36. data/spec/models/deb_apt_repository_spec.rb +6 -0
  37. data/spec/models/paginateddeb_apt_alternate_content_source_response_list_spec.rb +54 -0
  38. data/spec/models/patcheddeb_apt_alternate_content_source_spec.rb +54 -0
  39. data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
  40. data/spec/models/task_group_operation_response_spec.rb +36 -0
  41. metadata +97 -73
data/docs/AcsDebApi.md ADDED
@@ -0,0 +1,886 @@
1
+ # PulpDebClient::AcsDebApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_role**](AcsDebApi.md#add_role) | **POST** {deb_apt_alternate_content_source_href}add_role/ | Add a role |
8
+ | [**create**](AcsDebApi.md#create) | **POST** /pulp/api/v3/acs/deb/deb/ | Create an apt alternate content source |
9
+ | [**delete**](AcsDebApi.md#delete) | **DELETE** {deb_apt_alternate_content_source_href} | Delete an apt alternate content source |
10
+ | [**list**](AcsDebApi.md#list) | **GET** /pulp/api/v3/acs/deb/deb/ | List apt alternate content sources |
11
+ | [**list_roles**](AcsDebApi.md#list_roles) | **GET** {deb_apt_alternate_content_source_href}list_roles/ | List roles |
12
+ | [**my_permissions**](AcsDebApi.md#my_permissions) | **GET** {deb_apt_alternate_content_source_href}my_permissions/ | List user permissions |
13
+ | [**partial_update**](AcsDebApi.md#partial_update) | **PATCH** {deb_apt_alternate_content_source_href} | Update an apt alternate content source |
14
+ | [**read**](AcsDebApi.md#read) | **GET** {deb_apt_alternate_content_source_href} | Inspect an apt alternate content source |
15
+ | [**refresh**](AcsDebApi.md#refresh) | **POST** {deb_apt_alternate_content_source_href}refresh/ | |
16
+ | [**remove_role**](AcsDebApi.md#remove_role) | **POST** {deb_apt_alternate_content_source_href}remove_role/ | Remove a role |
17
+ | [**update**](AcsDebApi.md#update) | **PUT** {deb_apt_alternate_content_source_href} | Update an apt alternate content source |
18
+
19
+
20
+ ## add_role
21
+
22
+ > <NestedRoleResponse> add_role(deb_apt_alternate_content_source_href, nested_role, opts)
23
+
24
+ Add a role
25
+
26
+ Add a role for this object to users/groups.
27
+
28
+ ### Examples
29
+
30
+ ```ruby
31
+ require 'time'
32
+ require 'pulp_deb_client'
33
+ # setup authorization
34
+ PulpDebClient.configure do |config|
35
+ # Configure HTTP basic authorization: basicAuth
36
+ config.username = 'YOUR USERNAME'
37
+ config.password = 'YOUR PASSWORD'
38
+ end
39
+
40
+ api_instance = PulpDebClient::AcsDebApi.new
41
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
42
+ nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
43
+ opts = {
44
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
45
+ }
46
+
47
+ begin
48
+ # Add a role
49
+ result = api_instance.add_role(deb_apt_alternate_content_source_href, nested_role, opts)
50
+ p result
51
+ rescue PulpDebClient::ApiError => e
52
+ puts "Error when calling AcsDebApi->add_role: #{e}"
53
+ end
54
+ ```
55
+
56
+ #### Using the add_role_with_http_info variant
57
+
58
+ This returns an Array which contains the response data, status code and headers.
59
+
60
+ > <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(deb_apt_alternate_content_source_href, nested_role, opts)
61
+
62
+ ```ruby
63
+ begin
64
+ # Add a role
65
+ data, status_code, headers = api_instance.add_role_with_http_info(deb_apt_alternate_content_source_href, nested_role, opts)
66
+ p status_code # => 2xx
67
+ p headers # => { ... }
68
+ p data # => <NestedRoleResponse>
69
+ rescue PulpDebClient::ApiError => e
70
+ puts "Error when calling AcsDebApi->add_role_with_http_info: #{e}"
71
+ end
72
+ ```
73
+
74
+ ### Parameters
75
+
76
+ | Name | Type | Description | Notes |
77
+ | ---- | ---- | ----------- | ----- |
78
+ | **deb_apt_alternate_content_source_href** | **String** | | |
79
+ | **nested_role** | [**NestedRole**](NestedRole.md) | | |
80
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
81
+
82
+ ### Return type
83
+
84
+ [**NestedRoleResponse**](NestedRoleResponse.md)
85
+
86
+ ### Authorization
87
+
88
+ [basicAuth](../README.md#basicAuth)
89
+
90
+ ### HTTP request headers
91
+
92
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
93
+ - **Accept**: application/json
94
+
95
+
96
+ ## create
97
+
98
+ > <DebAptAlternateContentSourceResponse> create(deb_apt_alternate_content_source, opts)
99
+
100
+ Create an apt alternate content source
101
+
102
+ ViewSet for ACS.
103
+
104
+ ### Examples
105
+
106
+ ```ruby
107
+ require 'time'
108
+ require 'pulp_deb_client'
109
+ # setup authorization
110
+ PulpDebClient.configure do |config|
111
+ # Configure HTTP basic authorization: basicAuth
112
+ config.username = 'YOUR USERNAME'
113
+ config.password = 'YOUR PASSWORD'
114
+ end
115
+
116
+ api_instance = PulpDebClient::AcsDebApi.new
117
+ deb_apt_alternate_content_source = PulpDebClient::DebAptAlternateContentSource.new({name: 'name_example', remote: 'remote_example'}) # DebAptAlternateContentSource |
118
+ opts = {
119
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
120
+ }
121
+
122
+ begin
123
+ # Create an apt alternate content source
124
+ result = api_instance.create(deb_apt_alternate_content_source, opts)
125
+ p result
126
+ rescue PulpDebClient::ApiError => e
127
+ puts "Error when calling AcsDebApi->create: #{e}"
128
+ end
129
+ ```
130
+
131
+ #### Using the create_with_http_info variant
132
+
133
+ This returns an Array which contains the response data, status code and headers.
134
+
135
+ > <Array(<DebAptAlternateContentSourceResponse>, Integer, Hash)> create_with_http_info(deb_apt_alternate_content_source, opts)
136
+
137
+ ```ruby
138
+ begin
139
+ # Create an apt alternate content source
140
+ data, status_code, headers = api_instance.create_with_http_info(deb_apt_alternate_content_source, opts)
141
+ p status_code # => 2xx
142
+ p headers # => { ... }
143
+ p data # => <DebAptAlternateContentSourceResponse>
144
+ rescue PulpDebClient::ApiError => e
145
+ puts "Error when calling AcsDebApi->create_with_http_info: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ---- | ---- | ----------- | ----- |
153
+ | **deb_apt_alternate_content_source** | [**DebAptAlternateContentSource**](DebAptAlternateContentSource.md) | | |
154
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
155
+
156
+ ### Return type
157
+
158
+ [**DebAptAlternateContentSourceResponse**](DebAptAlternateContentSourceResponse.md)
159
+
160
+ ### Authorization
161
+
162
+ [basicAuth](../README.md#basicAuth)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
167
+ - **Accept**: application/json
168
+
169
+
170
+ ## delete
171
+
172
+ > <AsyncOperationResponse> delete(deb_apt_alternate_content_source_href, opts)
173
+
174
+ Delete an apt alternate content source
175
+
176
+ Trigger an asynchronous delete ACS task
177
+
178
+ ### Examples
179
+
180
+ ```ruby
181
+ require 'time'
182
+ require 'pulp_deb_client'
183
+ # setup authorization
184
+ PulpDebClient.configure do |config|
185
+ # Configure HTTP basic authorization: basicAuth
186
+ config.username = 'YOUR USERNAME'
187
+ config.password = 'YOUR PASSWORD'
188
+ end
189
+
190
+ api_instance = PulpDebClient::AcsDebApi.new
191
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
192
+ opts = {
193
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
194
+ }
195
+
196
+ begin
197
+ # Delete an apt alternate content source
198
+ result = api_instance.delete(deb_apt_alternate_content_source_href, opts)
199
+ p result
200
+ rescue PulpDebClient::ApiError => e
201
+ puts "Error when calling AcsDebApi->delete: #{e}"
202
+ end
203
+ ```
204
+
205
+ #### Using the delete_with_http_info variant
206
+
207
+ This returns an Array which contains the response data, status code and headers.
208
+
209
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(deb_apt_alternate_content_source_href, opts)
210
+
211
+ ```ruby
212
+ begin
213
+ # Delete an apt alternate content source
214
+ data, status_code, headers = api_instance.delete_with_http_info(deb_apt_alternate_content_source_href, opts)
215
+ p status_code # => 2xx
216
+ p headers # => { ... }
217
+ p data # => <AsyncOperationResponse>
218
+ rescue PulpDebClient::ApiError => e
219
+ puts "Error when calling AcsDebApi->delete_with_http_info: #{e}"
220
+ end
221
+ ```
222
+
223
+ ### Parameters
224
+
225
+ | Name | Type | Description | Notes |
226
+ | ---- | ---- | ----------- | ----- |
227
+ | **deb_apt_alternate_content_source_href** | **String** | | |
228
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
229
+
230
+ ### Return type
231
+
232
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
233
+
234
+ ### Authorization
235
+
236
+ [basicAuth](../README.md#basicAuth)
237
+
238
+ ### HTTP request headers
239
+
240
+ - **Content-Type**: Not defined
241
+ - **Accept**: application/json
242
+
243
+
244
+ ## list
245
+
246
+ > <PaginateddebAptAlternateContentSourceResponseList> list(opts)
247
+
248
+ List apt alternate content sources
249
+
250
+ ViewSet for ACS.
251
+
252
+ ### Examples
253
+
254
+ ```ruby
255
+ require 'time'
256
+ require 'pulp_deb_client'
257
+ # setup authorization
258
+ PulpDebClient.configure do |config|
259
+ # Configure HTTP basic authorization: basicAuth
260
+ config.username = 'YOUR USERNAME'
261
+ config.password = 'YOUR PASSWORD'
262
+ end
263
+
264
+ api_instance = PulpDebClient::AcsDebApi.new
265
+ opts = {
266
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
267
+ limit: 56, # Integer | Number of results to return per page.
268
+ name: 'name_example', # String | Filter results where name matches value
269
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
270
+ name__icontains: 'name__icontains_example', # String | Filter results where name contains value
271
+ name__iexact: 'name__iexact_example', # String | Filter results where name matches value
272
+ name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
273
+ name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
274
+ name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
275
+ name__regex: 'name__regex_example', # String | Filter results where name matches regex value
276
+ name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
277
+ offset: 56, # Integer | The initial index from which to return the results.
278
+ ordering: ['-last_refreshed'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending)
279
+ prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
280
+ pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
281
+ pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
282
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
283
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
284
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
285
+ }
286
+
287
+ begin
288
+ # List apt alternate content sources
289
+ result = api_instance.list(opts)
290
+ p result
291
+ rescue PulpDebClient::ApiError => e
292
+ puts "Error when calling AcsDebApi->list: #{e}"
293
+ end
294
+ ```
295
+
296
+ #### Using the list_with_http_info variant
297
+
298
+ This returns an Array which contains the response data, status code and headers.
299
+
300
+ > <Array(<PaginateddebAptAlternateContentSourceResponseList>, Integer, Hash)> list_with_http_info(opts)
301
+
302
+ ```ruby
303
+ begin
304
+ # List apt alternate content sources
305
+ data, status_code, headers = api_instance.list_with_http_info(opts)
306
+ p status_code # => 2xx
307
+ p headers # => { ... }
308
+ p data # => <PaginateddebAptAlternateContentSourceResponseList>
309
+ rescue PulpDebClient::ApiError => e
310
+ puts "Error when calling AcsDebApi->list_with_http_info: #{e}"
311
+ end
312
+ ```
313
+
314
+ ### Parameters
315
+
316
+ | Name | Type | Description | Notes |
317
+ | ---- | ---- | ----------- | ----- |
318
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
319
+ | **limit** | **Integer** | Number of results to return per page. | [optional] |
320
+ | **name** | **String** | Filter results where name matches value | [optional] |
321
+ | **name__contains** | **String** | Filter results where name contains value | [optional] |
322
+ | **name__icontains** | **String** | Filter results where name contains value | [optional] |
323
+ | **name__iexact** | **String** | Filter results where name matches value | [optional] |
324
+ | **name__in** | [**Array&lt;String&gt;**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
325
+ | **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
326
+ | **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
327
+ | **name__regex** | **String** | Filter results where name matches regex value | [optional] |
328
+ | **name__startswith** | **String** | Filter results where name starts with value | [optional] |
329
+ | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
330
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;last_refreshed&#x60; - Last refreshed * &#x60;-last_refreshed&#x60; - Last refreshed (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
331
+ | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
332
+ | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
333
+ | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
334
+ | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
335
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
336
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
337
+
338
+ ### Return type
339
+
340
+ [**PaginateddebAptAlternateContentSourceResponseList**](PaginateddebAptAlternateContentSourceResponseList.md)
341
+
342
+ ### Authorization
343
+
344
+ [basicAuth](../README.md#basicAuth)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: application/json
350
+
351
+
352
+ ## list_roles
353
+
354
+ > <ObjectRolesResponse> list_roles(deb_apt_alternate_content_source_href, opts)
355
+
356
+ List roles
357
+
358
+ List roles assigned to this object.
359
+
360
+ ### Examples
361
+
362
+ ```ruby
363
+ require 'time'
364
+ require 'pulp_deb_client'
365
+ # setup authorization
366
+ PulpDebClient.configure do |config|
367
+ # Configure HTTP basic authorization: basicAuth
368
+ config.username = 'YOUR USERNAME'
369
+ config.password = 'YOUR PASSWORD'
370
+ end
371
+
372
+ api_instance = PulpDebClient::AcsDebApi.new
373
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
374
+ opts = {
375
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
376
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
377
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
378
+ }
379
+
380
+ begin
381
+ # List roles
382
+ result = api_instance.list_roles(deb_apt_alternate_content_source_href, opts)
383
+ p result
384
+ rescue PulpDebClient::ApiError => e
385
+ puts "Error when calling AcsDebApi->list_roles: #{e}"
386
+ end
387
+ ```
388
+
389
+ #### Using the list_roles_with_http_info variant
390
+
391
+ This returns an Array which contains the response data, status code and headers.
392
+
393
+ > <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(deb_apt_alternate_content_source_href, opts)
394
+
395
+ ```ruby
396
+ begin
397
+ # List roles
398
+ data, status_code, headers = api_instance.list_roles_with_http_info(deb_apt_alternate_content_source_href, opts)
399
+ p status_code # => 2xx
400
+ p headers # => { ... }
401
+ p data # => <ObjectRolesResponse>
402
+ rescue PulpDebClient::ApiError => e
403
+ puts "Error when calling AcsDebApi->list_roles_with_http_info: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ | Name | Type | Description | Notes |
410
+ | ---- | ---- | ----------- | ----- |
411
+ | **deb_apt_alternate_content_source_href** | **String** | | |
412
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
413
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
414
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
415
+
416
+ ### Return type
417
+
418
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
419
+
420
+ ### Authorization
421
+
422
+ [basicAuth](../README.md#basicAuth)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: Not defined
427
+ - **Accept**: application/json
428
+
429
+
430
+ ## my_permissions
431
+
432
+ > <MyPermissionsResponse> my_permissions(deb_apt_alternate_content_source_href, opts)
433
+
434
+ List user permissions
435
+
436
+ List permissions available to the current user on this object.
437
+
438
+ ### Examples
439
+
440
+ ```ruby
441
+ require 'time'
442
+ require 'pulp_deb_client'
443
+ # setup authorization
444
+ PulpDebClient.configure do |config|
445
+ # Configure HTTP basic authorization: basicAuth
446
+ config.username = 'YOUR USERNAME'
447
+ config.password = 'YOUR PASSWORD'
448
+ end
449
+
450
+ api_instance = PulpDebClient::AcsDebApi.new
451
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
452
+ opts = {
453
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
454
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
455
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
456
+ }
457
+
458
+ begin
459
+ # List user permissions
460
+ result = api_instance.my_permissions(deb_apt_alternate_content_source_href, opts)
461
+ p result
462
+ rescue PulpDebClient::ApiError => e
463
+ puts "Error when calling AcsDebApi->my_permissions: #{e}"
464
+ end
465
+ ```
466
+
467
+ #### Using the my_permissions_with_http_info variant
468
+
469
+ This returns an Array which contains the response data, status code and headers.
470
+
471
+ > <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(deb_apt_alternate_content_source_href, opts)
472
+
473
+ ```ruby
474
+ begin
475
+ # List user permissions
476
+ data, status_code, headers = api_instance.my_permissions_with_http_info(deb_apt_alternate_content_source_href, opts)
477
+ p status_code # => 2xx
478
+ p headers # => { ... }
479
+ p data # => <MyPermissionsResponse>
480
+ rescue PulpDebClient::ApiError => e
481
+ puts "Error when calling AcsDebApi->my_permissions_with_http_info: #{e}"
482
+ end
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+ | Name | Type | Description | Notes |
488
+ | ---- | ---- | ----------- | ----- |
489
+ | **deb_apt_alternate_content_source_href** | **String** | | |
490
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
491
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
492
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
493
+
494
+ ### Return type
495
+
496
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
497
+
498
+ ### Authorization
499
+
500
+ [basicAuth](../README.md#basicAuth)
501
+
502
+ ### HTTP request headers
503
+
504
+ - **Content-Type**: Not defined
505
+ - **Accept**: application/json
506
+
507
+
508
+ ## partial_update
509
+
510
+ > <DebAptAlternateContentSourceResponse> partial_update(deb_apt_alternate_content_source_href, patcheddeb_apt_alternate_content_source, opts)
511
+
512
+ Update an apt alternate content source
513
+
514
+ Update the entity partially and trigger an asynchronous task if necessary
515
+
516
+ ### Examples
517
+
518
+ ```ruby
519
+ require 'time'
520
+ require 'pulp_deb_client'
521
+ # setup authorization
522
+ PulpDebClient.configure do |config|
523
+ # Configure HTTP basic authorization: basicAuth
524
+ config.username = 'YOUR USERNAME'
525
+ config.password = 'YOUR PASSWORD'
526
+ end
527
+
528
+ api_instance = PulpDebClient::AcsDebApi.new
529
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
530
+ patcheddeb_apt_alternate_content_source = PulpDebClient::PatcheddebAptAlternateContentSource.new # PatcheddebAptAlternateContentSource |
531
+ opts = {
532
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
533
+ }
534
+
535
+ begin
536
+ # Update an apt alternate content source
537
+ result = api_instance.partial_update(deb_apt_alternate_content_source_href, patcheddeb_apt_alternate_content_source, opts)
538
+ p result
539
+ rescue PulpDebClient::ApiError => e
540
+ puts "Error when calling AcsDebApi->partial_update: #{e}"
541
+ end
542
+ ```
543
+
544
+ #### Using the partial_update_with_http_info variant
545
+
546
+ This returns an Array which contains the response data, status code and headers.
547
+
548
+ > <Array(<DebAptAlternateContentSourceResponse>, Integer, Hash)> partial_update_with_http_info(deb_apt_alternate_content_source_href, patcheddeb_apt_alternate_content_source, opts)
549
+
550
+ ```ruby
551
+ begin
552
+ # Update an apt alternate content source
553
+ data, status_code, headers = api_instance.partial_update_with_http_info(deb_apt_alternate_content_source_href, patcheddeb_apt_alternate_content_source, opts)
554
+ p status_code # => 2xx
555
+ p headers # => { ... }
556
+ p data # => <DebAptAlternateContentSourceResponse>
557
+ rescue PulpDebClient::ApiError => e
558
+ puts "Error when calling AcsDebApi->partial_update_with_http_info: #{e}"
559
+ end
560
+ ```
561
+
562
+ ### Parameters
563
+
564
+ | Name | Type | Description | Notes |
565
+ | ---- | ---- | ----------- | ----- |
566
+ | **deb_apt_alternate_content_source_href** | **String** | | |
567
+ | **patcheddeb_apt_alternate_content_source** | [**PatcheddebAptAlternateContentSource**](PatcheddebAptAlternateContentSource.md) | | |
568
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
569
+
570
+ ### Return type
571
+
572
+ [**DebAptAlternateContentSourceResponse**](DebAptAlternateContentSourceResponse.md)
573
+
574
+ ### Authorization
575
+
576
+ [basicAuth](../README.md#basicAuth)
577
+
578
+ ### HTTP request headers
579
+
580
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
581
+ - **Accept**: application/json
582
+
583
+
584
+ ## read
585
+
586
+ > <DebAptAlternateContentSourceResponse> read(deb_apt_alternate_content_source_href, opts)
587
+
588
+ Inspect an apt alternate content source
589
+
590
+ ViewSet for ACS.
591
+
592
+ ### Examples
593
+
594
+ ```ruby
595
+ require 'time'
596
+ require 'pulp_deb_client'
597
+ # setup authorization
598
+ PulpDebClient.configure do |config|
599
+ # Configure HTTP basic authorization: basicAuth
600
+ config.username = 'YOUR USERNAME'
601
+ config.password = 'YOUR PASSWORD'
602
+ end
603
+
604
+ api_instance = PulpDebClient::AcsDebApi.new
605
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
606
+ opts = {
607
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
608
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
609
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
610
+ }
611
+
612
+ begin
613
+ # Inspect an apt alternate content source
614
+ result = api_instance.read(deb_apt_alternate_content_source_href, opts)
615
+ p result
616
+ rescue PulpDebClient::ApiError => e
617
+ puts "Error when calling AcsDebApi->read: #{e}"
618
+ end
619
+ ```
620
+
621
+ #### Using the read_with_http_info variant
622
+
623
+ This returns an Array which contains the response data, status code and headers.
624
+
625
+ > <Array(<DebAptAlternateContentSourceResponse>, Integer, Hash)> read_with_http_info(deb_apt_alternate_content_source_href, opts)
626
+
627
+ ```ruby
628
+ begin
629
+ # Inspect an apt alternate content source
630
+ data, status_code, headers = api_instance.read_with_http_info(deb_apt_alternate_content_source_href, opts)
631
+ p status_code # => 2xx
632
+ p headers # => { ... }
633
+ p data # => <DebAptAlternateContentSourceResponse>
634
+ rescue PulpDebClient::ApiError => e
635
+ puts "Error when calling AcsDebApi->read_with_http_info: #{e}"
636
+ end
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+ | Name | Type | Description | Notes |
642
+ | ---- | ---- | ----------- | ----- |
643
+ | **deb_apt_alternate_content_source_href** | **String** | | |
644
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
645
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
646
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
647
+
648
+ ### Return type
649
+
650
+ [**DebAptAlternateContentSourceResponse**](DebAptAlternateContentSourceResponse.md)
651
+
652
+ ### Authorization
653
+
654
+ [basicAuth](../README.md#basicAuth)
655
+
656
+ ### HTTP request headers
657
+
658
+ - **Content-Type**: Not defined
659
+ - **Accept**: application/json
660
+
661
+
662
+ ## refresh
663
+
664
+ > <TaskGroupOperationResponse> refresh(deb_apt_alternate_content_source_href, opts)
665
+
666
+
667
+
668
+ Trigger an asynchronous task to create Alternate Content Source content.
669
+
670
+ ### Examples
671
+
672
+ ```ruby
673
+ require 'time'
674
+ require 'pulp_deb_client'
675
+ # setup authorization
676
+ PulpDebClient.configure do |config|
677
+ # Configure HTTP basic authorization: basicAuth
678
+ config.username = 'YOUR USERNAME'
679
+ config.password = 'YOUR PASSWORD'
680
+ end
681
+
682
+ api_instance = PulpDebClient::AcsDebApi.new
683
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
684
+ opts = {
685
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
686
+ }
687
+
688
+ begin
689
+
690
+ result = api_instance.refresh(deb_apt_alternate_content_source_href, opts)
691
+ p result
692
+ rescue PulpDebClient::ApiError => e
693
+ puts "Error when calling AcsDebApi->refresh: #{e}"
694
+ end
695
+ ```
696
+
697
+ #### Using the refresh_with_http_info variant
698
+
699
+ This returns an Array which contains the response data, status code and headers.
700
+
701
+ > <Array(<TaskGroupOperationResponse>, Integer, Hash)> refresh_with_http_info(deb_apt_alternate_content_source_href, opts)
702
+
703
+ ```ruby
704
+ begin
705
+
706
+ data, status_code, headers = api_instance.refresh_with_http_info(deb_apt_alternate_content_source_href, opts)
707
+ p status_code # => 2xx
708
+ p headers # => { ... }
709
+ p data # => <TaskGroupOperationResponse>
710
+ rescue PulpDebClient::ApiError => e
711
+ puts "Error when calling AcsDebApi->refresh_with_http_info: #{e}"
712
+ end
713
+ ```
714
+
715
+ ### Parameters
716
+
717
+ | Name | Type | Description | Notes |
718
+ | ---- | ---- | ----------- | ----- |
719
+ | **deb_apt_alternate_content_source_href** | **String** | | |
720
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
721
+
722
+ ### Return type
723
+
724
+ [**TaskGroupOperationResponse**](TaskGroupOperationResponse.md)
725
+
726
+ ### Authorization
727
+
728
+ [basicAuth](../README.md#basicAuth)
729
+
730
+ ### HTTP request headers
731
+
732
+ - **Content-Type**: Not defined
733
+ - **Accept**: application/json
734
+
735
+
736
+ ## remove_role
737
+
738
+ > <NestedRoleResponse> remove_role(deb_apt_alternate_content_source_href, nested_role, opts)
739
+
740
+ Remove a role
741
+
742
+ Remove a role for this object from users/groups.
743
+
744
+ ### Examples
745
+
746
+ ```ruby
747
+ require 'time'
748
+ require 'pulp_deb_client'
749
+ # setup authorization
750
+ PulpDebClient.configure do |config|
751
+ # Configure HTTP basic authorization: basicAuth
752
+ config.username = 'YOUR USERNAME'
753
+ config.password = 'YOUR PASSWORD'
754
+ end
755
+
756
+ api_instance = PulpDebClient::AcsDebApi.new
757
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
758
+ nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
759
+ opts = {
760
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
761
+ }
762
+
763
+ begin
764
+ # Remove a role
765
+ result = api_instance.remove_role(deb_apt_alternate_content_source_href, nested_role, opts)
766
+ p result
767
+ rescue PulpDebClient::ApiError => e
768
+ puts "Error when calling AcsDebApi->remove_role: #{e}"
769
+ end
770
+ ```
771
+
772
+ #### Using the remove_role_with_http_info variant
773
+
774
+ This returns an Array which contains the response data, status code and headers.
775
+
776
+ > <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(deb_apt_alternate_content_source_href, nested_role, opts)
777
+
778
+ ```ruby
779
+ begin
780
+ # Remove a role
781
+ data, status_code, headers = api_instance.remove_role_with_http_info(deb_apt_alternate_content_source_href, nested_role, opts)
782
+ p status_code # => 2xx
783
+ p headers # => { ... }
784
+ p data # => <NestedRoleResponse>
785
+ rescue PulpDebClient::ApiError => e
786
+ puts "Error when calling AcsDebApi->remove_role_with_http_info: #{e}"
787
+ end
788
+ ```
789
+
790
+ ### Parameters
791
+
792
+ | Name | Type | Description | Notes |
793
+ | ---- | ---- | ----------- | ----- |
794
+ | **deb_apt_alternate_content_source_href** | **String** | | |
795
+ | **nested_role** | [**NestedRole**](NestedRole.md) | | |
796
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
797
+
798
+ ### Return type
799
+
800
+ [**NestedRoleResponse**](NestedRoleResponse.md)
801
+
802
+ ### Authorization
803
+
804
+ [basicAuth](../README.md#basicAuth)
805
+
806
+ ### HTTP request headers
807
+
808
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
809
+ - **Accept**: application/json
810
+
811
+
812
+ ## update
813
+
814
+ > <DebAptAlternateContentSourceResponse> update(deb_apt_alternate_content_source_href, deb_apt_alternate_content_source, opts)
815
+
816
+ Update an apt alternate content source
817
+
818
+ Update the entity and trigger an asynchronous task if necessary
819
+
820
+ ### Examples
821
+
822
+ ```ruby
823
+ require 'time'
824
+ require 'pulp_deb_client'
825
+ # setup authorization
826
+ PulpDebClient.configure do |config|
827
+ # Configure HTTP basic authorization: basicAuth
828
+ config.username = 'YOUR USERNAME'
829
+ config.password = 'YOUR PASSWORD'
830
+ end
831
+
832
+ api_instance = PulpDebClient::AcsDebApi.new
833
+ deb_apt_alternate_content_source_href = 'deb_apt_alternate_content_source_href_example' # String |
834
+ deb_apt_alternate_content_source = PulpDebClient::DebAptAlternateContentSource.new({name: 'name_example', remote: 'remote_example'}) # DebAptAlternateContentSource |
835
+ opts = {
836
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
837
+ }
838
+
839
+ begin
840
+ # Update an apt alternate content source
841
+ result = api_instance.update(deb_apt_alternate_content_source_href, deb_apt_alternate_content_source, opts)
842
+ p result
843
+ rescue PulpDebClient::ApiError => e
844
+ puts "Error when calling AcsDebApi->update: #{e}"
845
+ end
846
+ ```
847
+
848
+ #### Using the update_with_http_info variant
849
+
850
+ This returns an Array which contains the response data, status code and headers.
851
+
852
+ > <Array(<DebAptAlternateContentSourceResponse>, Integer, Hash)> update_with_http_info(deb_apt_alternate_content_source_href, deb_apt_alternate_content_source, opts)
853
+
854
+ ```ruby
855
+ begin
856
+ # Update an apt alternate content source
857
+ data, status_code, headers = api_instance.update_with_http_info(deb_apt_alternate_content_source_href, deb_apt_alternate_content_source, opts)
858
+ p status_code # => 2xx
859
+ p headers # => { ... }
860
+ p data # => <DebAptAlternateContentSourceResponse>
861
+ rescue PulpDebClient::ApiError => e
862
+ puts "Error when calling AcsDebApi->update_with_http_info: #{e}"
863
+ end
864
+ ```
865
+
866
+ ### Parameters
867
+
868
+ | Name | Type | Description | Notes |
869
+ | ---- | ---- | ----------- | ----- |
870
+ | **deb_apt_alternate_content_source_href** | **String** | | |
871
+ | **deb_apt_alternate_content_source** | [**DebAptAlternateContentSource**](DebAptAlternateContentSource.md) | | |
872
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
873
+
874
+ ### Return type
875
+
876
+ [**DebAptAlternateContentSourceResponse**](DebAptAlternateContentSourceResponse.md)
877
+
878
+ ### Authorization
879
+
880
+ [basicAuth](../README.md#basicAuth)
881
+
882
+ ### HTTP request headers
883
+
884
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
885
+ - **Accept**: application/json
886
+