pulp_gem_client 0.3.0 → 0.4.1
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 +24 -4
- data/docs/ContentGemApi.md +2 -0
- data/docs/DistributionsGemApi.md +236 -0
- 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 +232 -0
- data/docs/RemotesGemApi.md +236 -0
- data/docs/RepositoriesGemApi.md +236 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +3 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +276 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +282 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +282 -0
- 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/version.rb +1 -1
- data/lib/pulp_gem_client.rb +4 -0
- data/spec/api/content_gem_api_spec.rb +1 -0
- data/spec/api/distributions_gem_api_spec.rb +56 -0
- data/spec/api/publications_gem_api_spec.rb +54 -0
- data/spec/api/remotes_gem_api_spec.rb +56 -0
- data/spec/api/repositories_gem_api_spec.rb +56 -0
- 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
- metadata +41 -25
data/docs/PublicationsGemApi.md
CHANGED
@@ -4,13 +4,72 @@ 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)
|
@@ -205,6 +264,124 @@ Name | Type | Description | Notes
|
|
205
264
|
- **Accept**: application/json
|
206
265
|
|
207
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
|
+
|
208
385
|
## read
|
209
386
|
|
210
387
|
> GemGemPublicationResponse read(gem_gem_publication_href, opts)
|
@@ -263,3 +440,58 @@ Name | Type | Description | Notes
|
|
263
440
|
- **Content-Type**: Not defined
|
264
441
|
- **Accept**: application/json
|
265
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
@@ -4,17 +4,76 @@ 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
|
12
16
|
[**set_label**](RemotesGemApi.md#set_label) | **POST** {gem_gem_remote_href}set_label/ | Set a label
|
13
17
|
[**unset_label**](RemotesGemApi.md#unset_label) | **POST** {gem_gem_remote_href}unset_label/ | Unset a label
|
14
18
|
[**update**](RemotesGemApi.md#update) | **PUT** {gem_gem_remote_href} | Update a gem remote
|
15
19
|
|
16
20
|
|
17
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
|
+
|
18
77
|
## create
|
19
78
|
|
20
79
|
> GemGemRemoteResponse create(gem_gem_remote)
|
@@ -149,7 +208,9 @@ opts = {
|
|
149
208
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
150
209
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
151
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
|
152
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
|
153
214
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
154
215
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
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)
|
@@ -187,7 +248,9 @@ Name | Type | Description | Notes
|
|
187
248
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
188
249
|
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
189
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]
|
190
252
|
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
253
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
191
254
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
192
255
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
193
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]
|
@@ -218,6 +281,124 @@ Name | Type | Description | Notes
|
|
218
281
|
- **Accept**: application/json
|
219
282
|
|
220
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
|
+
|
221
402
|
## partial_update
|
222
403
|
|
223
404
|
> AsyncOperationResponse partial_update(gem_gem_remote_href, patchedgem_gem_remote)
|
@@ -332,6 +513,61 @@ Name | Type | Description | Notes
|
|
332
513
|
- **Accept**: application/json
|
333
514
|
|
334
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
|
+
|
335
571
|
## set_label
|
336
572
|
|
337
573
|
> SetLabelResponse set_label(gem_gem_remote_href, set_label)
|