pulp_gem_client 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -5
- data/docs/ContentGemApi.md +3 -1
- data/docs/DistributionsGemApi.md +355 -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/PublicationsGemApi.md +235 -1
- data/docs/RemotesGemApi.md +355 -1
- data/docs/RepositoriesGemApi.md +355 -1
- data/docs/RepositoriesGemVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +431 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +279 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +431 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +431 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
- data/lib/pulp_gem_client/configuration.rb +2 -2
- data/lib/pulp_gem_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_gem_client/models/nested_role.rb +253 -0
- data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_gem_client/models/set_label.rb +252 -0
- data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
- data/lib/pulp_gem_client/models/unset_label.rb +242 -0
- data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_gem_client/version.rb +1 -1
- data/lib/pulp_gem_client.rb +8 -0
- data/spec/api/content_gem_api_spec.rb +1 -0
- data/spec/api/distributions_gem_api_spec.rb +85 -0
- data/spec/api/publications_gem_api_spec.rb +55 -0
- data/spec/api/remotes_gem_api_spec.rb +85 -0
- data/spec/api/repositories_gem_api_spec.rb +85 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +57 -25
data/docs/PublicationsGemApi.md
CHANGED
@@ -1,16 +1,75 @@
|
|
1
1
|
# PulpGemClient::PublicationsGemApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](PublicationsGemApi.md#add_role) | **POST** {gem_gem_publication_href}add_role/ | Add a role
|
7
8
|
[**create**](PublicationsGemApi.md#create) | **POST** /pulp/api/v3/publications/gem/gem/ | Create a gem publication
|
8
9
|
[**delete**](PublicationsGemApi.md#delete) | **DELETE** {gem_gem_publication_href} | Delete a gem publication
|
9
10
|
[**list**](PublicationsGemApi.md#list) | **GET** /pulp/api/v3/publications/gem/gem/ | List gem publications
|
11
|
+
[**list_roles**](PublicationsGemApi.md#list_roles) | **GET** {gem_gem_publication_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](PublicationsGemApi.md#my_permissions) | **GET** {gem_gem_publication_href}my_permissions/ | List user permissions
|
10
13
|
[**read**](PublicationsGemApi.md#read) | **GET** {gem_gem_publication_href} | Inspect a gem publication
|
14
|
+
[**remove_role**](PublicationsGemApi.md#remove_role) | **POST** {gem_gem_publication_href}remove_role/ | Remove a role
|
11
15
|
|
12
16
|
|
13
17
|
|
18
|
+
## add_role
|
19
|
+
|
20
|
+
> NestedRoleResponse add_role(gem_gem_publication_href, nested_role)
|
21
|
+
|
22
|
+
Add a role
|
23
|
+
|
24
|
+
Add a role for this object to users/groups.
|
25
|
+
|
26
|
+
### Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# load the gem
|
30
|
+
require 'pulp_gem_client'
|
31
|
+
# setup authorization
|
32
|
+
PulpGemClient.configure do |config|
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
34
|
+
config.username = 'YOUR USERNAME'
|
35
|
+
config.password = 'YOUR PASSWORD'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = PulpGemClient::PublicationsGemApi.new
|
39
|
+
gem_gem_publication_href = 'gem_gem_publication_href_example' # String |
|
40
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
41
|
+
|
42
|
+
begin
|
43
|
+
#Add a role
|
44
|
+
result = api_instance.add_role(gem_gem_publication_href, nested_role)
|
45
|
+
p result
|
46
|
+
rescue PulpGemClient::ApiError => e
|
47
|
+
puts "Exception when calling PublicationsGemApi->add_role: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
|
54
|
+
Name | Type | Description | Notes
|
55
|
+
------------- | ------------- | ------------- | -------------
|
56
|
+
**gem_gem_publication_href** | **String**| |
|
57
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
58
|
+
|
59
|
+
### Return type
|
60
|
+
|
61
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
62
|
+
|
63
|
+
### Authorization
|
64
|
+
|
65
|
+
[basicAuth](../README.md#basicAuth)
|
66
|
+
|
67
|
+
### HTTP request headers
|
68
|
+
|
69
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
70
|
+
- **Accept**: application/json
|
71
|
+
|
72
|
+
|
14
73
|
## create
|
15
74
|
|
16
75
|
> AsyncOperationResponse create(gem_gem_publication)
|
@@ -151,6 +210,7 @@ opts = {
|
|
151
210
|
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
152
211
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
153
212
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
213
|
+
q: 'q_example', # String |
|
154
214
|
repository: 'repository_example', # String | Repository referenced by HREF
|
155
215
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
156
216
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
@@ -184,6 +244,7 @@ Name | Type | Description | Notes
|
|
184
244
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
185
245
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
186
246
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
247
|
+
**q** | **String**| | [optional]
|
187
248
|
**repository** | **String**| Repository referenced by HREF | [optional]
|
188
249
|
**repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
|
189
250
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
@@ -203,6 +264,124 @@ Name | Type | Description | Notes
|
|
203
264
|
- **Accept**: application/json
|
204
265
|
|
205
266
|
|
267
|
+
## list_roles
|
268
|
+
|
269
|
+
> ObjectRolesResponse list_roles(gem_gem_publication_href, opts)
|
270
|
+
|
271
|
+
List roles
|
272
|
+
|
273
|
+
List roles assigned to this object.
|
274
|
+
|
275
|
+
### Example
|
276
|
+
|
277
|
+
```ruby
|
278
|
+
# load the gem
|
279
|
+
require 'pulp_gem_client'
|
280
|
+
# setup authorization
|
281
|
+
PulpGemClient.configure do |config|
|
282
|
+
# Configure HTTP basic authorization: basicAuth
|
283
|
+
config.username = 'YOUR USERNAME'
|
284
|
+
config.password = 'YOUR PASSWORD'
|
285
|
+
end
|
286
|
+
|
287
|
+
api_instance = PulpGemClient::PublicationsGemApi.new
|
288
|
+
gem_gem_publication_href = 'gem_gem_publication_href_example' # String |
|
289
|
+
opts = {
|
290
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
291
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
292
|
+
}
|
293
|
+
|
294
|
+
begin
|
295
|
+
#List roles
|
296
|
+
result = api_instance.list_roles(gem_gem_publication_href, opts)
|
297
|
+
p result
|
298
|
+
rescue PulpGemClient::ApiError => e
|
299
|
+
puts "Exception when calling PublicationsGemApi->list_roles: #{e}"
|
300
|
+
end
|
301
|
+
```
|
302
|
+
|
303
|
+
### Parameters
|
304
|
+
|
305
|
+
|
306
|
+
Name | Type | Description | Notes
|
307
|
+
------------- | ------------- | ------------- | -------------
|
308
|
+
**gem_gem_publication_href** | **String**| |
|
309
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
310
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
311
|
+
|
312
|
+
### Return type
|
313
|
+
|
314
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
315
|
+
|
316
|
+
### Authorization
|
317
|
+
|
318
|
+
[basicAuth](../README.md#basicAuth)
|
319
|
+
|
320
|
+
### HTTP request headers
|
321
|
+
|
322
|
+
- **Content-Type**: Not defined
|
323
|
+
- **Accept**: application/json
|
324
|
+
|
325
|
+
|
326
|
+
## my_permissions
|
327
|
+
|
328
|
+
> MyPermissionsResponse my_permissions(gem_gem_publication_href, opts)
|
329
|
+
|
330
|
+
List user permissions
|
331
|
+
|
332
|
+
List permissions available to the current user on this object.
|
333
|
+
|
334
|
+
### Example
|
335
|
+
|
336
|
+
```ruby
|
337
|
+
# load the gem
|
338
|
+
require 'pulp_gem_client'
|
339
|
+
# setup authorization
|
340
|
+
PulpGemClient.configure do |config|
|
341
|
+
# Configure HTTP basic authorization: basicAuth
|
342
|
+
config.username = 'YOUR USERNAME'
|
343
|
+
config.password = 'YOUR PASSWORD'
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = PulpGemClient::PublicationsGemApi.new
|
347
|
+
gem_gem_publication_href = 'gem_gem_publication_href_example' # String |
|
348
|
+
opts = {
|
349
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
350
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
351
|
+
}
|
352
|
+
|
353
|
+
begin
|
354
|
+
#List user permissions
|
355
|
+
result = api_instance.my_permissions(gem_gem_publication_href, opts)
|
356
|
+
p result
|
357
|
+
rescue PulpGemClient::ApiError => e
|
358
|
+
puts "Exception when calling PublicationsGemApi->my_permissions: #{e}"
|
359
|
+
end
|
360
|
+
```
|
361
|
+
|
362
|
+
### Parameters
|
363
|
+
|
364
|
+
|
365
|
+
Name | Type | Description | Notes
|
366
|
+
------------- | ------------- | ------------- | -------------
|
367
|
+
**gem_gem_publication_href** | **String**| |
|
368
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
369
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
370
|
+
|
371
|
+
### Return type
|
372
|
+
|
373
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
374
|
+
|
375
|
+
### Authorization
|
376
|
+
|
377
|
+
[basicAuth](../README.md#basicAuth)
|
378
|
+
|
379
|
+
### HTTP request headers
|
380
|
+
|
381
|
+
- **Content-Type**: Not defined
|
382
|
+
- **Accept**: application/json
|
383
|
+
|
384
|
+
|
206
385
|
## read
|
207
386
|
|
208
387
|
> GemGemPublicationResponse read(gem_gem_publication_href, opts)
|
@@ -261,3 +440,58 @@ Name | Type | Description | Notes
|
|
261
440
|
- **Content-Type**: Not defined
|
262
441
|
- **Accept**: application/json
|
263
442
|
|
443
|
+
|
444
|
+
## remove_role
|
445
|
+
|
446
|
+
> NestedRoleResponse remove_role(gem_gem_publication_href, nested_role)
|
447
|
+
|
448
|
+
Remove a role
|
449
|
+
|
450
|
+
Remove a role for this object from users/groups.
|
451
|
+
|
452
|
+
### Example
|
453
|
+
|
454
|
+
```ruby
|
455
|
+
# load the gem
|
456
|
+
require 'pulp_gem_client'
|
457
|
+
# setup authorization
|
458
|
+
PulpGemClient.configure do |config|
|
459
|
+
# Configure HTTP basic authorization: basicAuth
|
460
|
+
config.username = 'YOUR USERNAME'
|
461
|
+
config.password = 'YOUR PASSWORD'
|
462
|
+
end
|
463
|
+
|
464
|
+
api_instance = PulpGemClient::PublicationsGemApi.new
|
465
|
+
gem_gem_publication_href = 'gem_gem_publication_href_example' # String |
|
466
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
467
|
+
|
468
|
+
begin
|
469
|
+
#Remove a role
|
470
|
+
result = api_instance.remove_role(gem_gem_publication_href, nested_role)
|
471
|
+
p result
|
472
|
+
rescue PulpGemClient::ApiError => e
|
473
|
+
puts "Exception when calling PublicationsGemApi->remove_role: #{e}"
|
474
|
+
end
|
475
|
+
```
|
476
|
+
|
477
|
+
### Parameters
|
478
|
+
|
479
|
+
|
480
|
+
Name | Type | Description | Notes
|
481
|
+
------------- | ------------- | ------------- | -------------
|
482
|
+
**gem_gem_publication_href** | **String**| |
|
483
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
484
|
+
|
485
|
+
### Return type
|
486
|
+
|
487
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
488
|
+
|
489
|
+
### Authorization
|
490
|
+
|
491
|
+
[basicAuth](../README.md#basicAuth)
|
492
|
+
|
493
|
+
### HTTP request headers
|
494
|
+
|
495
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
496
|
+
- **Accept**: application/json
|
497
|
+
|
data/docs/RemotesGemApi.md
CHANGED
@@ -1,18 +1,79 @@
|
|
1
1
|
# PulpGemClient::RemotesGemApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RemotesGemApi.md#add_role) | **POST** {gem_gem_remote_href}add_role/ | Add a role
|
7
8
|
[**create**](RemotesGemApi.md#create) | **POST** /pulp/api/v3/remotes/gem/gem/ | Create a gem remote
|
8
9
|
[**delete**](RemotesGemApi.md#delete) | **DELETE** {gem_gem_remote_href} | Delete a gem remote
|
9
10
|
[**list**](RemotesGemApi.md#list) | **GET** /pulp/api/v3/remotes/gem/gem/ | List gem remotes
|
11
|
+
[**list_roles**](RemotesGemApi.md#list_roles) | **GET** {gem_gem_remote_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](RemotesGemApi.md#my_permissions) | **GET** {gem_gem_remote_href}my_permissions/ | List user permissions
|
10
13
|
[**partial_update**](RemotesGemApi.md#partial_update) | **PATCH** {gem_gem_remote_href} | Update a gem remote
|
11
14
|
[**read**](RemotesGemApi.md#read) | **GET** {gem_gem_remote_href} | Inspect a gem remote
|
15
|
+
[**remove_role**](RemotesGemApi.md#remove_role) | **POST** {gem_gem_remote_href}remove_role/ | Remove a role
|
16
|
+
[**set_label**](RemotesGemApi.md#set_label) | **POST** {gem_gem_remote_href}set_label/ | Set a label
|
17
|
+
[**unset_label**](RemotesGemApi.md#unset_label) | **POST** {gem_gem_remote_href}unset_label/ | Unset a label
|
12
18
|
[**update**](RemotesGemApi.md#update) | **PUT** {gem_gem_remote_href} | Update a gem remote
|
13
19
|
|
14
20
|
|
15
21
|
|
22
|
+
## add_role
|
23
|
+
|
24
|
+
> NestedRoleResponse add_role(gem_gem_remote_href, nested_role)
|
25
|
+
|
26
|
+
Add a role
|
27
|
+
|
28
|
+
Add a role for this object to users/groups.
|
29
|
+
|
30
|
+
### Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
# load the gem
|
34
|
+
require 'pulp_gem_client'
|
35
|
+
# setup authorization
|
36
|
+
PulpGemClient.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 = PulpGemClient::RemotesGemApi.new
|
43
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
44
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Add a role
|
48
|
+
result = api_instance.add_role(gem_gem_remote_href, nested_role)
|
49
|
+
p result
|
50
|
+
rescue PulpGemClient::ApiError => e
|
51
|
+
puts "Exception when calling RemotesGemApi->add_role: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**gem_gem_remote_href** | **String**| |
|
61
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[basicAuth](../README.md#basicAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
16
77
|
## create
|
17
78
|
|
18
79
|
> GemGemRemoteResponse create(gem_gem_remote)
|
@@ -145,7 +206,11 @@ opts = {
|
|
145
206
|
name: 'name_example', # String | Filter results where name matches value
|
146
207
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
147
208
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
209
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
148
210
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
211
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
212
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
213
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
149
214
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
150
215
|
offset: 56, # Integer | The initial index from which to return the results.
|
151
216
|
ordering: ['ordering_example'], # 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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -158,6 +223,7 @@ opts = {
|
|
158
223
|
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
159
224
|
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
160
225
|
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
226
|
+
q: 'q_example', # String |
|
161
227
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
162
228
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
163
229
|
}
|
@@ -180,7 +246,11 @@ Name | Type | Description | Notes
|
|
180
246
|
**name** | **String**| Filter results where name matches value | [optional]
|
181
247
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
182
248
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
249
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
183
250
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
251
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
252
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
253
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
184
254
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
185
255
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
186
256
|
**ordering** | [**Array<String>**](String.md)| 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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
@@ -193,6 +263,7 @@ Name | Type | Description | Notes
|
|
193
263
|
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
194
264
|
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
195
265
|
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
266
|
+
**q** | **String**| | [optional]
|
196
267
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
197
268
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
198
269
|
|
@@ -210,6 +281,124 @@ Name | Type | Description | Notes
|
|
210
281
|
- **Accept**: application/json
|
211
282
|
|
212
283
|
|
284
|
+
## list_roles
|
285
|
+
|
286
|
+
> ObjectRolesResponse list_roles(gem_gem_remote_href, opts)
|
287
|
+
|
288
|
+
List roles
|
289
|
+
|
290
|
+
List roles assigned to this object.
|
291
|
+
|
292
|
+
### Example
|
293
|
+
|
294
|
+
```ruby
|
295
|
+
# load the gem
|
296
|
+
require 'pulp_gem_client'
|
297
|
+
# setup authorization
|
298
|
+
PulpGemClient.configure do |config|
|
299
|
+
# Configure HTTP basic authorization: basicAuth
|
300
|
+
config.username = 'YOUR USERNAME'
|
301
|
+
config.password = 'YOUR PASSWORD'
|
302
|
+
end
|
303
|
+
|
304
|
+
api_instance = PulpGemClient::RemotesGemApi.new
|
305
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
306
|
+
opts = {
|
307
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
308
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
309
|
+
}
|
310
|
+
|
311
|
+
begin
|
312
|
+
#List roles
|
313
|
+
result = api_instance.list_roles(gem_gem_remote_href, opts)
|
314
|
+
p result
|
315
|
+
rescue PulpGemClient::ApiError => e
|
316
|
+
puts "Exception when calling RemotesGemApi->list_roles: #{e}"
|
317
|
+
end
|
318
|
+
```
|
319
|
+
|
320
|
+
### Parameters
|
321
|
+
|
322
|
+
|
323
|
+
Name | Type | Description | Notes
|
324
|
+
------------- | ------------- | ------------- | -------------
|
325
|
+
**gem_gem_remote_href** | **String**| |
|
326
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
327
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
328
|
+
|
329
|
+
### Return type
|
330
|
+
|
331
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
332
|
+
|
333
|
+
### Authorization
|
334
|
+
|
335
|
+
[basicAuth](../README.md#basicAuth)
|
336
|
+
|
337
|
+
### HTTP request headers
|
338
|
+
|
339
|
+
- **Content-Type**: Not defined
|
340
|
+
- **Accept**: application/json
|
341
|
+
|
342
|
+
|
343
|
+
## my_permissions
|
344
|
+
|
345
|
+
> MyPermissionsResponse my_permissions(gem_gem_remote_href, opts)
|
346
|
+
|
347
|
+
List user permissions
|
348
|
+
|
349
|
+
List permissions available to the current user on this object.
|
350
|
+
|
351
|
+
### Example
|
352
|
+
|
353
|
+
```ruby
|
354
|
+
# load the gem
|
355
|
+
require 'pulp_gem_client'
|
356
|
+
# setup authorization
|
357
|
+
PulpGemClient.configure do |config|
|
358
|
+
# Configure HTTP basic authorization: basicAuth
|
359
|
+
config.username = 'YOUR USERNAME'
|
360
|
+
config.password = 'YOUR PASSWORD'
|
361
|
+
end
|
362
|
+
|
363
|
+
api_instance = PulpGemClient::RemotesGemApi.new
|
364
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
365
|
+
opts = {
|
366
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
367
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
368
|
+
}
|
369
|
+
|
370
|
+
begin
|
371
|
+
#List user permissions
|
372
|
+
result = api_instance.my_permissions(gem_gem_remote_href, opts)
|
373
|
+
p result
|
374
|
+
rescue PulpGemClient::ApiError => e
|
375
|
+
puts "Exception when calling RemotesGemApi->my_permissions: #{e}"
|
376
|
+
end
|
377
|
+
```
|
378
|
+
|
379
|
+
### Parameters
|
380
|
+
|
381
|
+
|
382
|
+
Name | Type | Description | Notes
|
383
|
+
------------- | ------------- | ------------- | -------------
|
384
|
+
**gem_gem_remote_href** | **String**| |
|
385
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
386
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basicAuth](../README.md#basicAuth)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: Not defined
|
399
|
+
- **Accept**: application/json
|
400
|
+
|
401
|
+
|
213
402
|
## partial_update
|
214
403
|
|
215
404
|
> AsyncOperationResponse partial_update(gem_gem_remote_href, patchedgem_gem_remote)
|
@@ -324,6 +513,171 @@ Name | Type | Description | Notes
|
|
324
513
|
- **Accept**: application/json
|
325
514
|
|
326
515
|
|
516
|
+
## remove_role
|
517
|
+
|
518
|
+
> NestedRoleResponse remove_role(gem_gem_remote_href, nested_role)
|
519
|
+
|
520
|
+
Remove a role
|
521
|
+
|
522
|
+
Remove a role for this object from users/groups.
|
523
|
+
|
524
|
+
### Example
|
525
|
+
|
526
|
+
```ruby
|
527
|
+
# load the gem
|
528
|
+
require 'pulp_gem_client'
|
529
|
+
# setup authorization
|
530
|
+
PulpGemClient.configure do |config|
|
531
|
+
# Configure HTTP basic authorization: basicAuth
|
532
|
+
config.username = 'YOUR USERNAME'
|
533
|
+
config.password = 'YOUR PASSWORD'
|
534
|
+
end
|
535
|
+
|
536
|
+
api_instance = PulpGemClient::RemotesGemApi.new
|
537
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
538
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
539
|
+
|
540
|
+
begin
|
541
|
+
#Remove a role
|
542
|
+
result = api_instance.remove_role(gem_gem_remote_href, nested_role)
|
543
|
+
p result
|
544
|
+
rescue PulpGemClient::ApiError => e
|
545
|
+
puts "Exception when calling RemotesGemApi->remove_role: #{e}"
|
546
|
+
end
|
547
|
+
```
|
548
|
+
|
549
|
+
### Parameters
|
550
|
+
|
551
|
+
|
552
|
+
Name | Type | Description | Notes
|
553
|
+
------------- | ------------- | ------------- | -------------
|
554
|
+
**gem_gem_remote_href** | **String**| |
|
555
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
556
|
+
|
557
|
+
### Return type
|
558
|
+
|
559
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
560
|
+
|
561
|
+
### Authorization
|
562
|
+
|
563
|
+
[basicAuth](../README.md#basicAuth)
|
564
|
+
|
565
|
+
### HTTP request headers
|
566
|
+
|
567
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
568
|
+
- **Accept**: application/json
|
569
|
+
|
570
|
+
|
571
|
+
## set_label
|
572
|
+
|
573
|
+
> SetLabelResponse set_label(gem_gem_remote_href, set_label)
|
574
|
+
|
575
|
+
Set a label
|
576
|
+
|
577
|
+
Set a single pulp_label on the object to a specific value or null.
|
578
|
+
|
579
|
+
### Example
|
580
|
+
|
581
|
+
```ruby
|
582
|
+
# load the gem
|
583
|
+
require 'pulp_gem_client'
|
584
|
+
# setup authorization
|
585
|
+
PulpGemClient.configure do |config|
|
586
|
+
# Configure HTTP basic authorization: basicAuth
|
587
|
+
config.username = 'YOUR USERNAME'
|
588
|
+
config.password = 'YOUR PASSWORD'
|
589
|
+
end
|
590
|
+
|
591
|
+
api_instance = PulpGemClient::RemotesGemApi.new
|
592
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
593
|
+
set_label = PulpGemClient::SetLabel.new # SetLabel |
|
594
|
+
|
595
|
+
begin
|
596
|
+
#Set a label
|
597
|
+
result = api_instance.set_label(gem_gem_remote_href, set_label)
|
598
|
+
p result
|
599
|
+
rescue PulpGemClient::ApiError => e
|
600
|
+
puts "Exception when calling RemotesGemApi->set_label: #{e}"
|
601
|
+
end
|
602
|
+
```
|
603
|
+
|
604
|
+
### Parameters
|
605
|
+
|
606
|
+
|
607
|
+
Name | Type | Description | Notes
|
608
|
+
------------- | ------------- | ------------- | -------------
|
609
|
+
**gem_gem_remote_href** | **String**| |
|
610
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
611
|
+
|
612
|
+
### Return type
|
613
|
+
|
614
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
615
|
+
|
616
|
+
### Authorization
|
617
|
+
|
618
|
+
[basicAuth](../README.md#basicAuth)
|
619
|
+
|
620
|
+
### HTTP request headers
|
621
|
+
|
622
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
623
|
+
- **Accept**: application/json
|
624
|
+
|
625
|
+
|
626
|
+
## unset_label
|
627
|
+
|
628
|
+
> UnsetLabelResponse unset_label(gem_gem_remote_href, unset_label)
|
629
|
+
|
630
|
+
Unset a label
|
631
|
+
|
632
|
+
Unset a single pulp_label on the object.
|
633
|
+
|
634
|
+
### Example
|
635
|
+
|
636
|
+
```ruby
|
637
|
+
# load the gem
|
638
|
+
require 'pulp_gem_client'
|
639
|
+
# setup authorization
|
640
|
+
PulpGemClient.configure do |config|
|
641
|
+
# Configure HTTP basic authorization: basicAuth
|
642
|
+
config.username = 'YOUR USERNAME'
|
643
|
+
config.password = 'YOUR PASSWORD'
|
644
|
+
end
|
645
|
+
|
646
|
+
api_instance = PulpGemClient::RemotesGemApi.new
|
647
|
+
gem_gem_remote_href = 'gem_gem_remote_href_example' # String |
|
648
|
+
unset_label = PulpGemClient::UnsetLabel.new # UnsetLabel |
|
649
|
+
|
650
|
+
begin
|
651
|
+
#Unset a label
|
652
|
+
result = api_instance.unset_label(gem_gem_remote_href, unset_label)
|
653
|
+
p result
|
654
|
+
rescue PulpGemClient::ApiError => e
|
655
|
+
puts "Exception when calling RemotesGemApi->unset_label: #{e}"
|
656
|
+
end
|
657
|
+
```
|
658
|
+
|
659
|
+
### Parameters
|
660
|
+
|
661
|
+
|
662
|
+
Name | Type | Description | Notes
|
663
|
+
------------- | ------------- | ------------- | -------------
|
664
|
+
**gem_gem_remote_href** | **String**| |
|
665
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
666
|
+
|
667
|
+
### Return type
|
668
|
+
|
669
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
670
|
+
|
671
|
+
### Authorization
|
672
|
+
|
673
|
+
[basicAuth](../README.md#basicAuth)
|
674
|
+
|
675
|
+
### HTTP request headers
|
676
|
+
|
677
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
678
|
+
- **Accept**: application/json
|
679
|
+
|
680
|
+
|
327
681
|
## update
|
328
682
|
|
329
683
|
> AsyncOperationResponse update(gem_gem_remote_href, gem_gem_remote)
|