pulpcore_client 3.16.24 → 3.17.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 +70 -22
- data/docs/AccessPoliciesApi.md +53 -0
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/ContentguardsRbacApi.md +138 -22
- data/docs/GroupRole.md +19 -0
- data/docs/GroupRoleResponse.md +23 -0
- data/docs/GroupsApi.md +248 -20
- data/docs/GroupsModelPermissionsApi.md +20 -20
- data/docs/GroupsObjectPermissionsApi.md +20 -20
- data/docs/GroupsRolesApi.md +255 -0
- data/docs/GroupsUsersApi.md +15 -15
- 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/PaginatedGroupRoleResponseList.md +23 -0
- data/docs/PaginatedRoleResponseList.md +23 -0
- data/docs/PaginatedUserRoleResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedRole.md +21 -0
- data/docs/PatchedUser.md +29 -0
- data/docs/PermissionResponse.md +1 -1
- data/docs/Purge.md +19 -0
- data/docs/Role.md +21 -0
- data/docs/RoleResponse.md +27 -0
- data/docs/RolesApi.md +363 -0
- data/docs/StatesEnum.md +16 -0
- data/docs/TasksApi.md +282 -0
- data/docs/User.md +29 -0
- data/docs/UserGroup.md +17 -0
- data/docs/UserResponse.md +3 -3
- data/docs/UserRole.md +19 -0
- data/docs/UserRoleResponse.md +23 -0
- data/docs/UsersApi.md +219 -0
- data/docs/UsersRolesApi.md +255 -0
- data/docs/WorkerResponse.md +3 -3
- data/git_push.sh +58 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
- data/lib/pulpcore_client/api/groups_api.rb +304 -36
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
- data/lib/pulpcore_client/api/roles_api.rb +443 -0
- data/lib/pulpcore_client/api/tasks_api.rb +332 -0
- data/lib/pulpcore_client/api/uploads_api.rb +4 -0
- data/lib/pulpcore_client/api/users_api.rb +264 -0
- data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
- data/lib/pulpcore_client/api_client.rb +5 -2
- data/lib/pulpcore_client/configuration.rb +0 -1
- data/lib/pulpcore_client/models/access_policy.rb +19 -2
- data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
- data/lib/pulpcore_client/models/artifact.rb +90 -0
- data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
- data/lib/pulpcore_client/models/group.rb +9 -0
- data/lib/pulpcore_client/models/group_role.rb +238 -0
- data/lib/pulpcore_client/models/group_role_response.rb +242 -0
- data/lib/pulpcore_client/models/group_user.rb +9 -0
- data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
- data/lib/pulpcore_client/models/nested_role.rb +234 -0
- data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
- data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
- data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_group.rb +9 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
- data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
- data/lib/pulpcore_client/models/patched_role.rb +261 -0
- data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
- data/lib/pulpcore_client/models/patched_user.rb +342 -0
- data/lib/pulpcore_client/models/permission_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +15 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
- data/lib/pulpcore_client/models/pulp_import.rb +30 -0
- data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
- data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
- data/lib/pulpcore_client/models/purge.rb +219 -0
- data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
- data/lib/pulpcore_client/models/role.rb +275 -0
- data/lib/pulpcore_client/models/role_response.rb +270 -0
- data/lib/pulpcore_client/models/states_enum.rb +38 -0
- data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
- data/lib/pulpcore_client/models/upload_commit.rb +19 -0
- data/lib/pulpcore_client/models/user.rb +351 -0
- data/lib/pulpcore_client/models/user_group.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +6 -29
- data/lib/pulpcore_client/models/user_role.rb +238 -0
- data/lib/pulpcore_client/models/user_role_response.rb +242 -0
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +22 -1
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/access_policies_api_spec.rb +11 -0
- data/spec/api/contentguards_rbac_api_spec.rb +36 -12
- data/spec/api/groups_api_spec.rb +54 -4
- data/spec/api/groups_model_permissions_api_spec.rb +4 -4
- data/spec/api/groups_object_permissions_api_spec.rb +4 -4
- data/spec/api/groups_roles_api_spec.rb +97 -0
- data/spec/api/groups_users_api_spec.rb +3 -3
- data/spec/api/roles_api_spec.rb +121 -0
- data/spec/api/tasks_api_spec.rb +62 -0
- data/spec/api/users_api_spec.rb +50 -0
- data/spec/api/users_roles_api_spec.rb +97 -0
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/group_role_response_spec.rb +59 -0
- data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
- 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/paginated_group_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_role_spec.rb +53 -0
- data/spec/models/patched_user_spec.rb +77 -0
- data/spec/models/purge_spec.rb +47 -0
- data/spec/models/role_response_spec.rb +71 -0
- data/spec/models/role_spec.rb +53 -0
- data/spec/models/states_enum_spec.rb +35 -0
- data/spec/models/user_group_spec.rb +41 -0
- data/spec/models/user_role_response_spec.rb +59 -0
- data/spec/models/user_role_spec.rb +47 -0
- data/spec/models/user_spec.rb +77 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +190 -111
- data/docs/RBACContentGuardPermission.md +0 -19
data/docs/UserGroup.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpcoreClient::UserGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Name. |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpcoreClient'
|
13
|
+
|
14
|
+
instance = PulpcoreClient::UserGroup.new(name: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/UserResponse.md
CHANGED
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
|
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**id** | **Integer** | | [optional] [readonly]
|
9
9
|
**username** | **String** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. |
|
10
|
-
**first_name** | **String** | First name |
|
11
|
-
**last_name** | **String** | Last name |
|
12
|
-
**email** | **String** | Email address |
|
10
|
+
**first_name** | **String** | First name | [optional]
|
11
|
+
**last_name** | **String** | Last name | [optional]
|
12
|
+
**email** | **String** | Email address | [optional]
|
13
13
|
**is_staff** | **Boolean** | Designates whether the user can log into this admin site. | [optional] [default to false]
|
14
14
|
**is_active** | **Boolean** | Designates whether this user should be treated as active. | [optional] [default to true]
|
15
15
|
**date_joined** | **DateTime** | Date joined | [optional] [readonly]
|
data/docs/UserRole.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpcoreClient::UserRole
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**role** | **String** | |
|
8
|
+
**content_object** | **String** | Optional pulp_href of the object the permissions are to be asserted on. |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpcoreClient'
|
14
|
+
|
15
|
+
instance = PulpcoreClient::UserRole.new(role: null,
|
16
|
+
content_object: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpcoreClient::UserRoleResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**role** | **String** | |
|
10
|
+
**content_object** | **String** | Optional pulp_href of the object the permissions are to be asserted on. |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpcoreClient'
|
16
|
+
|
17
|
+
instance = PulpcoreClient::UserRoleResponse.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
|
+
role: null,
|
20
|
+
content_object: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/UsersApi.md
CHANGED
@@ -4,12 +4,121 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**create**](UsersApi.md#create) | **POST** /pulp/api/v3/users/ | Create an user
|
8
|
+
[**delete**](UsersApi.md#delete) | **DELETE** {auth_user_href} | Delete an user
|
7
9
|
[**list**](UsersApi.md#list) | **GET** /pulp/api/v3/users/ | List users
|
10
|
+
[**partial_update**](UsersApi.md#partial_update) | **PATCH** {auth_user_href} | Update an user
|
8
11
|
[**permissions**](UsersApi.md#permissions) | **GET** {auth_user_href}permissions/ |
|
9
12
|
[**read**](UsersApi.md#read) | **GET** {auth_user_href} | Inspect an user
|
13
|
+
[**update**](UsersApi.md#update) | **PUT** {auth_user_href} | Update an user
|
10
14
|
|
11
15
|
|
12
16
|
|
17
|
+
## create
|
18
|
+
|
19
|
+
> UserResponse create(user)
|
20
|
+
|
21
|
+
Create an user
|
22
|
+
|
23
|
+
ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulpcore_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpcoreClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: basicAuth
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpcoreClient::UsersApi.new
|
38
|
+
user = PulpcoreClient::User.new # User |
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create an user
|
42
|
+
result = api_instance.create(user)
|
43
|
+
p result
|
44
|
+
rescue PulpcoreClient::ApiError => e
|
45
|
+
puts "Exception when calling UsersApi->create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**user** | [**User**](User.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**UserResponse**](UserResponse.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[basicAuth](../README.md#basicAuth)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
## delete
|
71
|
+
|
72
|
+
> delete(auth_user_href)
|
73
|
+
|
74
|
+
Delete an user
|
75
|
+
|
76
|
+
ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulpcore_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpcoreClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: basicAuth
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = PulpcoreClient::UsersApi.new
|
91
|
+
auth_user_href = 'auth_user_href_example' # String |
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Delete an user
|
95
|
+
api_instance.delete(auth_user_href)
|
96
|
+
rescue PulpcoreClient::ApiError => e
|
97
|
+
puts "Exception when calling UsersApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**auth_user_href** | **String**| |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
nil (empty response body)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[basicAuth](../README.md#basicAuth)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: Not defined
|
120
|
+
|
121
|
+
|
13
122
|
## list
|
14
123
|
|
15
124
|
> PaginatedUserResponseList list(opts)
|
@@ -117,6 +226,61 @@ Name | Type | Description | Notes
|
|
117
226
|
- **Accept**: application/json
|
118
227
|
|
119
228
|
|
229
|
+
## partial_update
|
230
|
+
|
231
|
+
> UserResponse partial_update(auth_user_href, patched_user)
|
232
|
+
|
233
|
+
Update an user
|
234
|
+
|
235
|
+
ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
236
|
+
|
237
|
+
### Example
|
238
|
+
|
239
|
+
```ruby
|
240
|
+
# load the gem
|
241
|
+
require 'pulpcore_client'
|
242
|
+
# setup authorization
|
243
|
+
PulpcoreClient.configure do |config|
|
244
|
+
# Configure HTTP basic authorization: basicAuth
|
245
|
+
config.username = 'YOUR USERNAME'
|
246
|
+
config.password = 'YOUR PASSWORD'
|
247
|
+
end
|
248
|
+
|
249
|
+
api_instance = PulpcoreClient::UsersApi.new
|
250
|
+
auth_user_href = 'auth_user_href_example' # String |
|
251
|
+
patched_user = PulpcoreClient::PatchedUser.new # PatchedUser |
|
252
|
+
|
253
|
+
begin
|
254
|
+
#Update an user
|
255
|
+
result = api_instance.partial_update(auth_user_href, patched_user)
|
256
|
+
p result
|
257
|
+
rescue PulpcoreClient::ApiError => e
|
258
|
+
puts "Exception when calling UsersApi->partial_update: #{e}"
|
259
|
+
end
|
260
|
+
```
|
261
|
+
|
262
|
+
### Parameters
|
263
|
+
|
264
|
+
|
265
|
+
Name | Type | Description | Notes
|
266
|
+
------------- | ------------- | ------------- | -------------
|
267
|
+
**auth_user_href** | **String**| |
|
268
|
+
**patched_user** | [**PatchedUser**](PatchedUser.md)| |
|
269
|
+
|
270
|
+
### Return type
|
271
|
+
|
272
|
+
[**UserResponse**](UserResponse.md)
|
273
|
+
|
274
|
+
### Authorization
|
275
|
+
|
276
|
+
[basicAuth](../README.md#basicAuth)
|
277
|
+
|
278
|
+
### HTTP request headers
|
279
|
+
|
280
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
281
|
+
- **Accept**: application/json
|
282
|
+
|
283
|
+
|
120
284
|
## permissions
|
121
285
|
|
122
286
|
> PermissionResponse permissions(auth_user_href, opts)
|
@@ -233,3 +397,58 @@ Name | Type | Description | Notes
|
|
233
397
|
- **Content-Type**: Not defined
|
234
398
|
- **Accept**: application/json
|
235
399
|
|
400
|
+
|
401
|
+
## update
|
402
|
+
|
403
|
+
> UserResponse update(auth_user_href, user)
|
404
|
+
|
405
|
+
Update an user
|
406
|
+
|
407
|
+
ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
408
|
+
|
409
|
+
### Example
|
410
|
+
|
411
|
+
```ruby
|
412
|
+
# load the gem
|
413
|
+
require 'pulpcore_client'
|
414
|
+
# setup authorization
|
415
|
+
PulpcoreClient.configure do |config|
|
416
|
+
# Configure HTTP basic authorization: basicAuth
|
417
|
+
config.username = 'YOUR USERNAME'
|
418
|
+
config.password = 'YOUR PASSWORD'
|
419
|
+
end
|
420
|
+
|
421
|
+
api_instance = PulpcoreClient::UsersApi.new
|
422
|
+
auth_user_href = 'auth_user_href_example' # String |
|
423
|
+
user = PulpcoreClient::User.new # User |
|
424
|
+
|
425
|
+
begin
|
426
|
+
#Update an user
|
427
|
+
result = api_instance.update(auth_user_href, user)
|
428
|
+
p result
|
429
|
+
rescue PulpcoreClient::ApiError => e
|
430
|
+
puts "Exception when calling UsersApi->update: #{e}"
|
431
|
+
end
|
432
|
+
```
|
433
|
+
|
434
|
+
### Parameters
|
435
|
+
|
436
|
+
|
437
|
+
Name | Type | Description | Notes
|
438
|
+
------------- | ------------- | ------------- | -------------
|
439
|
+
**auth_user_href** | **String**| |
|
440
|
+
**user** | [**User**](User.md)| |
|
441
|
+
|
442
|
+
### Return type
|
443
|
+
|
444
|
+
[**UserResponse**](UserResponse.md)
|
445
|
+
|
446
|
+
### Authorization
|
447
|
+
|
448
|
+
[basicAuth](../README.md#basicAuth)
|
449
|
+
|
450
|
+
### HTTP request headers
|
451
|
+
|
452
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
453
|
+
- **Accept**: application/json
|
454
|
+
|
@@ -0,0 +1,255 @@
|
|
1
|
+
# PulpcoreClient::UsersRolesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](UsersRolesApi.md#create) | **POST** {auth_user_href}roles/ | Create an user role
|
8
|
+
[**delete**](UsersRolesApi.md#delete) | **DELETE** {auth_users_user_role_href} | Delete an user role
|
9
|
+
[**list**](UsersRolesApi.md#list) | **GET** {auth_user_href}roles/ | List user roles
|
10
|
+
[**read**](UsersRolesApi.md#read) | **GET** {auth_users_user_role_href} | Inspect an user role
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## create
|
15
|
+
|
16
|
+
> UserRoleResponse create(auth_user_href, user_role)
|
17
|
+
|
18
|
+
Create an user role
|
19
|
+
|
20
|
+
ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
21
|
+
|
22
|
+
### Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'pulpcore_client'
|
27
|
+
# setup authorization
|
28
|
+
PulpcoreClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: basicAuth
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = PulpcoreClient::UsersRolesApi.new
|
35
|
+
auth_user_href = 'auth_user_href_example' # String |
|
36
|
+
user_role = PulpcoreClient::UserRole.new # UserRole |
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Create an user role
|
40
|
+
result = api_instance.create(auth_user_href, user_role)
|
41
|
+
p result
|
42
|
+
rescue PulpcoreClient::ApiError => e
|
43
|
+
puts "Exception when calling UsersRolesApi->create: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**auth_user_href** | **String**| |
|
53
|
+
**user_role** | [**UserRole**](UserRole.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**UserRoleResponse**](UserRoleResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> delete(auth_users_user_role_href)
|
72
|
+
|
73
|
+
Delete an user role
|
74
|
+
|
75
|
+
ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulpcore_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpcoreClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpcoreClient::UsersRolesApi.new
|
90
|
+
auth_users_user_role_href = 'auth_users_user_role_href_example' # String |
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete an user role
|
94
|
+
api_instance.delete(auth_users_user_role_href)
|
95
|
+
rescue PulpcoreClient::ApiError => e
|
96
|
+
puts "Exception when calling UsersRolesApi->delete: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
|
103
|
+
Name | Type | Description | Notes
|
104
|
+
------------- | ------------- | ------------- | -------------
|
105
|
+
**auth_users_user_role_href** | **String**| |
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[basicAuth](../README.md#basicAuth)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: Not defined
|
119
|
+
|
120
|
+
|
121
|
+
## list
|
122
|
+
|
123
|
+
> PaginatedUserRoleResponseList list(auth_user_href, opts)
|
124
|
+
|
125
|
+
List user roles
|
126
|
+
|
127
|
+
ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
128
|
+
|
129
|
+
### Example
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
# load the gem
|
133
|
+
require 'pulpcore_client'
|
134
|
+
# setup authorization
|
135
|
+
PulpcoreClient.configure do |config|
|
136
|
+
# Configure HTTP basic authorization: basicAuth
|
137
|
+
config.username = 'YOUR USERNAME'
|
138
|
+
config.password = 'YOUR PASSWORD'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = PulpcoreClient::UsersRolesApi.new
|
142
|
+
auth_user_href = 'auth_user_href_example' # String |
|
143
|
+
opts = {
|
144
|
+
content_object: 'content_object_example', # String | content_object
|
145
|
+
limit: 56, # Integer | Number of results to return per page.
|
146
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
147
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
148
|
+
role: 'role_example', # String |
|
149
|
+
role__contains: 'role__contains_example', # String |
|
150
|
+
role__icontains: 'role__icontains_example', # String |
|
151
|
+
role__in: ['role__in_example'], # Array<String> | Multiple values may be separated by commas.
|
152
|
+
role__startswith: 'role__startswith_example', # String |
|
153
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
154
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
155
|
+
}
|
156
|
+
|
157
|
+
begin
|
158
|
+
#List user roles
|
159
|
+
result = api_instance.list(auth_user_href, opts)
|
160
|
+
p result
|
161
|
+
rescue PulpcoreClient::ApiError => e
|
162
|
+
puts "Exception when calling UsersRolesApi->list: #{e}"
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
### Parameters
|
167
|
+
|
168
|
+
|
169
|
+
Name | Type | Description | Notes
|
170
|
+
------------- | ------------- | ------------- | -------------
|
171
|
+
**auth_user_href** | **String**| |
|
172
|
+
**content_object** | **String**| content_object | [optional]
|
173
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
174
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
175
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
176
|
+
**role** | **String**| | [optional]
|
177
|
+
**role__contains** | **String**| | [optional]
|
178
|
+
**role__icontains** | **String**| | [optional]
|
179
|
+
**role__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
180
|
+
**role__startswith** | **String**| | [optional]
|
181
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
182
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
[**PaginatedUserRoleResponseList**](PaginatedUserRoleResponseList.md)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
[basicAuth](../README.md#basicAuth)
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: Not defined
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
197
|
+
|
198
|
+
## read
|
199
|
+
|
200
|
+
> UserRoleResponse read(auth_users_user_role_href, opts)
|
201
|
+
|
202
|
+
Inspect an user role
|
203
|
+
|
204
|
+
ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
205
|
+
|
206
|
+
### Example
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
# load the gem
|
210
|
+
require 'pulpcore_client'
|
211
|
+
# setup authorization
|
212
|
+
PulpcoreClient.configure do |config|
|
213
|
+
# Configure HTTP basic authorization: basicAuth
|
214
|
+
config.username = 'YOUR USERNAME'
|
215
|
+
config.password = 'YOUR PASSWORD'
|
216
|
+
end
|
217
|
+
|
218
|
+
api_instance = PulpcoreClient::UsersRolesApi.new
|
219
|
+
auth_users_user_role_href = 'auth_users_user_role_href_example' # String |
|
220
|
+
opts = {
|
221
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
222
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
223
|
+
}
|
224
|
+
|
225
|
+
begin
|
226
|
+
#Inspect an user role
|
227
|
+
result = api_instance.read(auth_users_user_role_href, opts)
|
228
|
+
p result
|
229
|
+
rescue PulpcoreClient::ApiError => e
|
230
|
+
puts "Exception when calling UsersRolesApi->read: #{e}"
|
231
|
+
end
|
232
|
+
```
|
233
|
+
|
234
|
+
### Parameters
|
235
|
+
|
236
|
+
|
237
|
+
Name | Type | Description | Notes
|
238
|
+
------------- | ------------- | ------------- | -------------
|
239
|
+
**auth_users_user_role_href** | **String**| |
|
240
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
241
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
242
|
+
|
243
|
+
### Return type
|
244
|
+
|
245
|
+
[**UserRoleResponse**](UserRoleResponse.md)
|
246
|
+
|
247
|
+
### Authorization
|
248
|
+
|
249
|
+
[basicAuth](../README.md#basicAuth)
|
250
|
+
|
251
|
+
### HTTP request headers
|
252
|
+
|
253
|
+
- **Content-Type**: Not defined
|
254
|
+
- **Accept**: application/json
|
255
|
+
|
data/docs/WorkerResponse.md
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
8
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
9
|
**name** | **String** | The name of the worker. | [optional] [readonly]
|
10
10
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
11
11
|
|
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpcoreClient'
|
16
16
|
|
17
|
-
instance = PulpcoreClient::WorkerResponse.new(
|
18
|
-
|
17
|
+
instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
|
18
|
+
pulp_created: null,
|
19
19
|
name: null,
|
20
20
|
last_heartbeat: null)
|
21
21
|
```
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|