pulp_file_client 1.10.5 → 1.11.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.
- checksums.yaml +4 -4
- data/README.md +35 -12
- data/docs/AcsFileApi.md +235 -8
- data/docs/ContentFilesApi.md +5 -3
- data/docs/DistributionsFileApi.md +230 -2
- data/docs/FileFileContent.md +3 -1
- data/docs/FileFileRemote.md +3 -3
- data/docs/FileFileRemoteResponse.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PatchedfileFileRemote.md +3 -3
- data/docs/PublicationsFileApi.md +232 -2
- data/docs/RemotesFileApi.md +230 -2
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesFileApi.md +233 -4
- data/docs/RepositoriesFileVersionsApi.md +6 -6
- data/lib/pulp_file_client/api/acs_file_api.rb +281 -15
- data/lib/pulp_file_client/api/content_files_api.rb +14 -3
- data/lib/pulp_file_client/api/distributions_file_api.rb +275 -3
- data/lib/pulp_file_client/api/publications_file_api.rb +278 -3
- data/lib/pulp_file_client/api/remotes_file_api.rb +275 -3
- data/lib/pulp_file_client/api/repositories_file_api.rb +277 -3
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +16 -12
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +19 -0
- data/lib/pulp_file_client/models/file_file_content.rb +33 -4
- data/lib/pulp_file_client/models/file_file_distribution.rb +38 -0
- data/lib/pulp_file_client/models/file_file_publication.rb +15 -0
- data/lib/pulp_file_client/models/file_file_remote.rb +161 -3
- data/lib/pulp_file_client/models/file_file_remote_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +49 -0
- data/lib/pulp_file_client/models/{repository_version.rb → my_permissions_response.rb} +17 -12
- data/lib/pulp_file_client/models/{content_summary.rb → nested_role.rb} +28 -40
- data/lib/pulp_file_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_file_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +15 -0
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +30 -0
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +153 -3
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +45 -0
- data/lib/pulp_file_client/models/repair.rb +209 -0
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +5 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/acs_file_api_spec.rb +52 -2
- data/spec/api/content_files_api_spec.rb +2 -1
- data/spec/api/distributions_file_api_spec.rb +51 -1
- data/spec/api/publications_file_api_spec.rb +52 -1
- data/spec/api/remotes_file_api_spec.rb +51 -1
- data/spec/api/repositories_file_api_spec.rb +52 -1
- data/spec/api/repositories_file_versions_api_spec.rb +2 -2
- data/spec/models/file_file_content_spec.rb +6 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/{content_summary_spec.rb → nested_role_spec.rb} +9 -9
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +48 -36
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
data/docs/RepositoriesFileApi.md
CHANGED
@@ -4,17 +4,75 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RepositoriesFileApi.md#add_role) | **POST** {file_file_repository_href}add_role/ |
|
7
8
|
[**create**](RepositoriesFileApi.md#create) | **POST** /pulp/api/v3/repositories/file/file/ | Create a file repository
|
8
9
|
[**delete**](RepositoriesFileApi.md#delete) | **DELETE** {file_file_repository_href} | Delete a file repository
|
9
10
|
[**list**](RepositoriesFileApi.md#list) | **GET** /pulp/api/v3/repositories/file/file/ | List file repositorys
|
11
|
+
[**list_roles**](RepositoriesFileApi.md#list_roles) | **GET** {file_file_repository_href}list_roles/ |
|
10
12
|
[**modify**](RepositoriesFileApi.md#modify) | **POST** {file_file_repository_href}modify/ | Modify Repository Content
|
13
|
+
[**my_permissions**](RepositoriesFileApi.md#my_permissions) | **GET** {file_file_repository_href}my_permissions/ |
|
11
14
|
[**partial_update**](RepositoriesFileApi.md#partial_update) | **PATCH** {file_file_repository_href} | Update a file repository
|
12
15
|
[**read**](RepositoriesFileApi.md#read) | **GET** {file_file_repository_href} | Inspect a file repository
|
13
|
-
[**
|
16
|
+
[**remove_role**](RepositoriesFileApi.md#remove_role) | **POST** {file_file_repository_href}remove_role/ |
|
17
|
+
[**sync**](RepositoriesFileApi.md#sync) | **POST** {file_file_repository_href}sync/ | Sync from a remote
|
14
18
|
[**update**](RepositoriesFileApi.md#update) | **PUT** {file_file_repository_href} | Update a file repository
|
15
19
|
|
16
20
|
|
17
21
|
|
22
|
+
## add_role
|
23
|
+
|
24
|
+
> NestedRoleResponse add_role(file_file_repository_href, nested_role)
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Add a role for this object to users/groups.
|
29
|
+
|
30
|
+
### Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
# load the gem
|
34
|
+
require 'pulp_file_client'
|
35
|
+
# setup authorization
|
36
|
+
PulpFileClient.configure do |config|
|
37
|
+
# Configure HTTP basic authorization: basicAuth
|
38
|
+
config.username = 'YOUR USERNAME'
|
39
|
+
config.password = 'YOUR PASSWORD'
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = PulpFileClient::RepositoriesFileApi.new
|
43
|
+
file_file_repository_href = 'file_file_repository_href_example' # String |
|
44
|
+
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
45
|
+
|
46
|
+
begin
|
47
|
+
result = api_instance.add_role(file_file_repository_href, nested_role)
|
48
|
+
p result
|
49
|
+
rescue PulpFileClient::ApiError => e
|
50
|
+
puts "Exception when calling RepositoriesFileApi->add_role: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**file_file_repository_href** | **String**| |
|
60
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[basicAuth](../README.md#basicAuth)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
18
76
|
## create
|
19
77
|
|
20
78
|
> FileFileRepositoryResponse create(file_file_repository)
|
@@ -150,7 +208,7 @@ opts = {
|
|
150
208
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
151
209
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
152
210
|
offset: 56, # Integer | The initial index from which to return the results.
|
153
|
-
ordering: 'ordering_example', # String |
|
211
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
154
212
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
155
213
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
156
214
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -177,7 +235,7 @@ Name | Type | Description | Notes
|
|
177
235
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
178
236
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
179
237
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
180
|
-
**ordering** | **String
|
238
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
181
239
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
182
240
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
183
241
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
@@ -196,6 +254,64 @@ Name | Type | Description | Notes
|
|
196
254
|
- **Accept**: application/json
|
197
255
|
|
198
256
|
|
257
|
+
## list_roles
|
258
|
+
|
259
|
+
> ObjectRolesResponse list_roles(file_file_repository_href, opts)
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
List roles assigned to this object.
|
264
|
+
|
265
|
+
### Example
|
266
|
+
|
267
|
+
```ruby
|
268
|
+
# load the gem
|
269
|
+
require 'pulp_file_client'
|
270
|
+
# setup authorization
|
271
|
+
PulpFileClient.configure do |config|
|
272
|
+
# Configure HTTP basic authorization: basicAuth
|
273
|
+
config.username = 'YOUR USERNAME'
|
274
|
+
config.password = 'YOUR PASSWORD'
|
275
|
+
end
|
276
|
+
|
277
|
+
api_instance = PulpFileClient::RepositoriesFileApi.new
|
278
|
+
file_file_repository_href = 'file_file_repository_href_example' # String |
|
279
|
+
opts = {
|
280
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
281
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
282
|
+
}
|
283
|
+
|
284
|
+
begin
|
285
|
+
result = api_instance.list_roles(file_file_repository_href, opts)
|
286
|
+
p result
|
287
|
+
rescue PulpFileClient::ApiError => e
|
288
|
+
puts "Exception when calling RepositoriesFileApi->list_roles: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
|
295
|
+
Name | Type | Description | Notes
|
296
|
+
------------- | ------------- | ------------- | -------------
|
297
|
+
**file_file_repository_href** | **String**| |
|
298
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
299
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
300
|
+
|
301
|
+
### Return type
|
302
|
+
|
303
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
304
|
+
|
305
|
+
### Authorization
|
306
|
+
|
307
|
+
[basicAuth](../README.md#basicAuth)
|
308
|
+
|
309
|
+
### HTTP request headers
|
310
|
+
|
311
|
+
- **Content-Type**: Not defined
|
312
|
+
- **Accept**: application/json
|
313
|
+
|
314
|
+
|
199
315
|
## modify
|
200
316
|
|
201
317
|
> AsyncOperationResponse modify(file_file_repository_href, repository_add_remove_content)
|
@@ -251,6 +367,64 @@ Name | Type | Description | Notes
|
|
251
367
|
- **Accept**: application/json
|
252
368
|
|
253
369
|
|
370
|
+
## my_permissions
|
371
|
+
|
372
|
+
> MyPermissionsResponse my_permissions(file_file_repository_href, opts)
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
List permissions available to the current user on this object.
|
377
|
+
|
378
|
+
### Example
|
379
|
+
|
380
|
+
```ruby
|
381
|
+
# load the gem
|
382
|
+
require 'pulp_file_client'
|
383
|
+
# setup authorization
|
384
|
+
PulpFileClient.configure do |config|
|
385
|
+
# Configure HTTP basic authorization: basicAuth
|
386
|
+
config.username = 'YOUR USERNAME'
|
387
|
+
config.password = 'YOUR PASSWORD'
|
388
|
+
end
|
389
|
+
|
390
|
+
api_instance = PulpFileClient::RepositoriesFileApi.new
|
391
|
+
file_file_repository_href = 'file_file_repository_href_example' # String |
|
392
|
+
opts = {
|
393
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
394
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
395
|
+
}
|
396
|
+
|
397
|
+
begin
|
398
|
+
result = api_instance.my_permissions(file_file_repository_href, opts)
|
399
|
+
p result
|
400
|
+
rescue PulpFileClient::ApiError => e
|
401
|
+
puts "Exception when calling RepositoriesFileApi->my_permissions: #{e}"
|
402
|
+
end
|
403
|
+
```
|
404
|
+
|
405
|
+
### Parameters
|
406
|
+
|
407
|
+
|
408
|
+
Name | Type | Description | Notes
|
409
|
+
------------- | ------------- | ------------- | -------------
|
410
|
+
**file_file_repository_href** | **String**| |
|
411
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
412
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
413
|
+
|
414
|
+
### Return type
|
415
|
+
|
416
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
417
|
+
|
418
|
+
### Authorization
|
419
|
+
|
420
|
+
[basicAuth](../README.md#basicAuth)
|
421
|
+
|
422
|
+
### HTTP request headers
|
423
|
+
|
424
|
+
- **Content-Type**: Not defined
|
425
|
+
- **Accept**: application/json
|
426
|
+
|
427
|
+
|
254
428
|
## partial_update
|
255
429
|
|
256
430
|
> AsyncOperationResponse partial_update(file_file_repository_href, patchedfile_file_repository)
|
@@ -365,11 +539,65 @@ Name | Type | Description | Notes
|
|
365
539
|
- **Accept**: application/json
|
366
540
|
|
367
541
|
|
542
|
+
## remove_role
|
543
|
+
|
544
|
+
> NestedRoleResponse remove_role(file_file_repository_href, nested_role)
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
Remove a role for this object from users/groups.
|
549
|
+
|
550
|
+
### Example
|
551
|
+
|
552
|
+
```ruby
|
553
|
+
# load the gem
|
554
|
+
require 'pulp_file_client'
|
555
|
+
# setup authorization
|
556
|
+
PulpFileClient.configure do |config|
|
557
|
+
# Configure HTTP basic authorization: basicAuth
|
558
|
+
config.username = 'YOUR USERNAME'
|
559
|
+
config.password = 'YOUR PASSWORD'
|
560
|
+
end
|
561
|
+
|
562
|
+
api_instance = PulpFileClient::RepositoriesFileApi.new
|
563
|
+
file_file_repository_href = 'file_file_repository_href_example' # String |
|
564
|
+
nested_role = PulpFileClient::NestedRole.new # NestedRole |
|
565
|
+
|
566
|
+
begin
|
567
|
+
result = api_instance.remove_role(file_file_repository_href, nested_role)
|
568
|
+
p result
|
569
|
+
rescue PulpFileClient::ApiError => e
|
570
|
+
puts "Exception when calling RepositoriesFileApi->remove_role: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
### Parameters
|
575
|
+
|
576
|
+
|
577
|
+
Name | Type | Description | Notes
|
578
|
+
------------- | ------------- | ------------- | -------------
|
579
|
+
**file_file_repository_href** | **String**| |
|
580
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
581
|
+
|
582
|
+
### Return type
|
583
|
+
|
584
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
585
|
+
|
586
|
+
### Authorization
|
587
|
+
|
588
|
+
[basicAuth](../README.md#basicAuth)
|
589
|
+
|
590
|
+
### HTTP request headers
|
591
|
+
|
592
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
593
|
+
- **Accept**: application/json
|
594
|
+
|
595
|
+
|
368
596
|
## sync
|
369
597
|
|
370
598
|
> AsyncOperationResponse sync(file_file_repository_href, repository_sync_url)
|
371
599
|
|
372
|
-
|
600
|
+
Sync from a remote
|
373
601
|
|
374
602
|
Trigger an asynchronous task to sync file content.
|
375
603
|
|
@@ -390,6 +618,7 @@ file_file_repository_href = 'file_file_repository_href_example' # String |
|
|
390
618
|
repository_sync_url = PulpFileClient::RepositorySyncURL.new # RepositorySyncURL |
|
391
619
|
|
392
620
|
begin
|
621
|
+
#Sync from a remote
|
393
622
|
result = api_instance.sync(file_file_repository_href, repository_sync_url)
|
394
623
|
p result
|
395
624
|
rescue PulpFileClient::ApiError => e
|
@@ -97,7 +97,7 @@ opts = {
|
|
97
97
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
98
98
|
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
99
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
100
|
-
ordering: 'ordering_example', # String |
|
100
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
101
101
|
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
102
102
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
103
103
|
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
@@ -133,7 +133,7 @@ Name | Type | Description | Notes
|
|
133
133
|
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
134
134
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
135
135
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
136
|
-
**ordering** | **String
|
136
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
137
137
|
**pulp_created** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
138
138
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
139
139
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
|
|
218
218
|
|
219
219
|
## repair
|
220
220
|
|
221
|
-
> AsyncOperationResponse repair(file_file_repository_version_href,
|
221
|
+
> AsyncOperationResponse repair(file_file_repository_version_href, repair)
|
222
222
|
|
223
223
|
|
224
224
|
|
@@ -238,10 +238,10 @@ end
|
|
238
238
|
|
239
239
|
api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
|
240
240
|
file_file_repository_version_href = 'file_file_repository_version_href_example' # String |
|
241
|
-
|
241
|
+
repair = PulpFileClient::Repair.new # Repair |
|
242
242
|
|
243
243
|
begin
|
244
|
-
result = api_instance.repair(file_file_repository_version_href,
|
244
|
+
result = api_instance.repair(file_file_repository_version_href, repair)
|
245
245
|
p result
|
246
246
|
rescue PulpFileClient::ApiError => e
|
247
247
|
puts "Exception when calling RepositoriesFileVersionsApi->repair: #{e}"
|
@@ -254,7 +254,7 @@ end
|
|
254
254
|
Name | Type | Description | Notes
|
255
255
|
------------- | ------------- | ------------- | -------------
|
256
256
|
**file_file_repository_version_href** | **String**| |
|
257
|
-
**
|
257
|
+
**repair** | [**Repair**](Repair.md)| |
|
258
258
|
|
259
259
|
### Return type
|
260
260
|
|