rbac-api-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +175 -0
  4. data/Rakefile +10 -0
  5. data/client-meta.json +8 -0
  6. data/docs/Access.md +19 -0
  7. data/docs/AccessApi.md +68 -0
  8. data/docs/AccessPagination.md +21 -0
  9. data/docs/AccessPaginationAllOf.md +17 -0
  10. data/docs/AdditionalGroup.md +19 -0
  11. data/docs/Error.md +17 -0
  12. data/docs/Error403.md +17 -0
  13. data/docs/Group.md +19 -0
  14. data/docs/GroupApi.md +623 -0
  15. data/docs/GroupOut.md +33 -0
  16. data/docs/GroupPagination.md +21 -0
  17. data/docs/GroupPaginationAllOf.md +17 -0
  18. data/docs/GroupPrincipalIn.md +17 -0
  19. data/docs/GroupRoleIn.md +17 -0
  20. data/docs/GroupRolesPagination.md +21 -0
  21. data/docs/GroupWithPrincipals.md +27 -0
  22. data/docs/GroupWithPrincipalsAllOf.md +17 -0
  23. data/docs/GroupWithPrincipalsAndRoles.md +29 -0
  24. data/docs/GroupWithPrincipalsAndRolesAllOf.md +19 -0
  25. data/docs/InlineResponse200.md +17 -0
  26. data/docs/ListPagination.md +19 -0
  27. data/docs/PaginationLinks.md +23 -0
  28. data/docs/PaginationMeta.md +17 -0
  29. data/docs/Policy.md +19 -0
  30. data/docs/PolicyApi.md +283 -0
  31. data/docs/PolicyExtended.md +29 -0
  32. data/docs/PolicyExtendedAllOf.md +19 -0
  33. data/docs/PolicyIn.md +23 -0
  34. data/docs/PolicyInAllOf.md +19 -0
  35. data/docs/PolicyPagination.md +21 -0
  36. data/docs/PolicyPaginationAllOf.md +17 -0
  37. data/docs/Principal.md +25 -0
  38. data/docs/PrincipalApi.md +68 -0
  39. data/docs/PrincipalIn.md +17 -0
  40. data/docs/PrincipalOut.md +27 -0
  41. data/docs/PrincipalPagination.md +21 -0
  42. data/docs/PrincipalPaginationAllOf.md +17 -0
  43. data/docs/ResourceDefinition.md +17 -0
  44. data/docs/ResourceDefinitionFilter.md +21 -0
  45. data/docs/Role.md +19 -0
  46. data/docs/RoleApi.md +340 -0
  47. data/docs/RoleIn.md +21 -0
  48. data/docs/RoleInAllOf.md +17 -0
  49. data/docs/RoleOut.md +35 -0
  50. data/docs/RoleOutDynamic.md +39 -0
  51. data/docs/RoleOutDynamicAllOf.md +29 -0
  52. data/docs/RolePagination.md +21 -0
  53. data/docs/RolePaginationDynamic.md +21 -0
  54. data/docs/RolePaginationDynamicAllOf.md +17 -0
  55. data/docs/RoleWithAccess.md +37 -0
  56. data/docs/Status.md +27 -0
  57. data/docs/StatusApi.md +56 -0
  58. data/docs/Timestamped.md +19 -0
  59. data/docs/UUID.md +17 -0
  60. data/generate.sh +7 -0
  61. data/git_push.sh +58 -0
  62. data/lib/rbac-api-client.rb +93 -0
  63. data/lib/rbac-api-client/api/access_api.rb +104 -0
  64. data/lib/rbac-api-client/api/group_api.rb +800 -0
  65. data/lib/rbac-api-client/api/policy_api.rb +363 -0
  66. data/lib/rbac-api-client/api/principal_api.rb +104 -0
  67. data/lib/rbac-api-client/api/role_api.rb +445 -0
  68. data/lib/rbac-api-client/api/status_api.rb +76 -0
  69. data/lib/rbac-api-client/api_client.rb +386 -0
  70. data/lib/rbac-api-client/api_error.rb +57 -0
  71. data/lib/rbac-api-client/configuration.rb +248 -0
  72. data/lib/rbac-api-client/models/access.rb +227 -0
  73. data/lib/rbac-api-client/models/access_pagination.rb +239 -0
  74. data/lib/rbac-api-client/models/access_pagination_all_of.rb +213 -0
  75. data/lib/rbac-api-client/models/additional_group.rb +215 -0
  76. data/lib/rbac-api-client/models/error.rb +213 -0
  77. data/lib/rbac-api-client/models/error403.rb +213 -0
  78. data/lib/rbac-api-client/models/group.rb +220 -0
  79. data/lib/rbac-api-client/models/group_out.rb +341 -0
  80. data/lib/rbac-api-client/models/group_pagination.rb +239 -0
  81. data/lib/rbac-api-client/models/group_pagination_all_of.rb +213 -0
  82. data/lib/rbac-api-client/models/group_principal_in.rb +213 -0
  83. data/lib/rbac-api-client/models/group_role_in.rb +213 -0
  84. data/lib/rbac-api-client/models/group_roles_pagination.rb +239 -0
  85. data/lib/rbac-api-client/models/group_with_principals.rb +288 -0
  86. data/lib/rbac-api-client/models/group_with_principals_all_of.rb +213 -0
  87. data/lib/rbac-api-client/models/group_with_principals_and_roles.rb +304 -0
  88. data/lib/rbac-api-client/models/group_with_principals_and_roles_all_of.rb +229 -0
  89. data/lib/rbac-api-client/models/inline_response200.rb +213 -0
  90. data/lib/rbac-api-client/models/list_pagination.rb +215 -0
  91. data/lib/rbac-api-client/models/pagination_links.rb +233 -0
  92. data/lib/rbac-api-client/models/pagination_meta.rb +206 -0
  93. data/lib/rbac-api-client/models/policy.rb +220 -0
  94. data/lib/rbac-api-client/models/policy_extended.rb +302 -0
  95. data/lib/rbac-api-client/models/policy_extended_all_of.rb +227 -0
  96. data/lib/rbac-api-client/models/policy_in.rb +258 -0
  97. data/lib/rbac-api-client/models/policy_in_all_of.rb +227 -0
  98. data/lib/rbac-api-client/models/policy_pagination.rb +239 -0
  99. data/lib/rbac-api-client/models/policy_pagination_all_of.rb +213 -0
  100. data/lib/rbac-api-client/models/principal.rb +252 -0
  101. data/lib/rbac-api-client/models/principal_in.rb +211 -0
  102. data/lib/rbac-api-client/models/principal_out.rb +274 -0
  103. data/lib/rbac-api-client/models/principal_pagination.rb +239 -0
  104. data/lib/rbac-api-client/models/principal_pagination_all_of.rb +213 -0
  105. data/lib/rbac-api-client/models/resource_definition.rb +211 -0
  106. data/lib/rbac-api-client/models/resource_definition_filter.rb +273 -0
  107. data/lib/rbac-api-client/models/role.rb +220 -0
  108. data/lib/rbac-api-client/models/role_in.rb +244 -0
  109. data/lib/rbac-api-client/models/role_in_all_of.rb +213 -0
  110. data/lib/rbac-api-client/models/role_out.rb +352 -0
  111. data/lib/rbac-api-client/models/role_out_dynamic.rb +421 -0
  112. data/lib/rbac-api-client/models/role_out_dynamic_all_of.rb +346 -0
  113. data/lib/rbac-api-client/models/role_pagination.rb +239 -0
  114. data/lib/rbac-api-client/models/role_pagination_dynamic.rb +239 -0
  115. data/lib/rbac-api-client/models/role_pagination_dynamic_all_of.rb +213 -0
  116. data/lib/rbac-api-client/models/role_with_access.rb +367 -0
  117. data/lib/rbac-api-client/models/status.rb +256 -0
  118. data/lib/rbac-api-client/models/timestamped.rb +225 -0
  119. data/lib/rbac-api-client/models/uuid.rb +211 -0
  120. data/lib/rbac-api-client/version.rb +15 -0
  121. data/openapi.json +2613 -0
  122. data/rbac-api-client.gemspec +39 -0
  123. data/spec/api/access_api_spec.rb +49 -0
  124. data/spec/api/group_api_spec.rb +176 -0
  125. data/spec/api/policy_api_spec.rb +97 -0
  126. data/spec/api/principal_api_spec.rb +49 -0
  127. data/spec/api/role_api_spec.rb +110 -0
  128. data/spec/api/status_api_spec.rb +45 -0
  129. data/spec/api_client_spec.rb +226 -0
  130. data/spec/configuration_spec.rb +42 -0
  131. data/spec/models/access_pagination_all_of_spec.rb +41 -0
  132. data/spec/models/access_pagination_spec.rb +53 -0
  133. data/spec/models/access_spec.rb +47 -0
  134. data/spec/models/additional_group_spec.rb +47 -0
  135. data/spec/models/error403_spec.rb +41 -0
  136. data/spec/models/error_spec.rb +41 -0
  137. data/spec/models/group_out_spec.rb +89 -0
  138. data/spec/models/group_pagination_all_of_spec.rb +41 -0
  139. data/spec/models/group_pagination_spec.rb +53 -0
  140. data/spec/models/group_principal_in_spec.rb +41 -0
  141. data/spec/models/group_role_in_spec.rb +41 -0
  142. data/spec/models/group_roles_pagination_spec.rb +53 -0
  143. data/spec/models/group_spec.rb +47 -0
  144. data/spec/models/group_with_principals_all_of_spec.rb +41 -0
  145. data/spec/models/group_with_principals_and_roles_all_of_spec.rb +47 -0
  146. data/spec/models/group_with_principals_and_roles_spec.rb +77 -0
  147. data/spec/models/group_with_principals_spec.rb +71 -0
  148. data/spec/models/inline_response200_spec.rb +41 -0
  149. data/spec/models/list_pagination_spec.rb +47 -0
  150. data/spec/models/pagination_links_spec.rb +59 -0
  151. data/spec/models/pagination_meta_spec.rb +41 -0
  152. data/spec/models/policy_extended_all_of_spec.rb +47 -0
  153. data/spec/models/policy_extended_spec.rb +77 -0
  154. data/spec/models/policy_in_all_of_spec.rb +47 -0
  155. data/spec/models/policy_in_spec.rb +59 -0
  156. data/spec/models/policy_pagination_all_of_spec.rb +41 -0
  157. data/spec/models/policy_pagination_spec.rb +53 -0
  158. data/spec/models/policy_spec.rb +47 -0
  159. data/spec/models/principal_in_spec.rb +41 -0
  160. data/spec/models/principal_out_spec.rb +71 -0
  161. data/spec/models/principal_pagination_all_of_spec.rb +41 -0
  162. data/spec/models/principal_pagination_spec.rb +53 -0
  163. data/spec/models/principal_spec.rb +65 -0
  164. data/spec/models/resource_definition_filter_spec.rb +57 -0
  165. data/spec/models/resource_definition_spec.rb +41 -0
  166. data/spec/models/role_in_all_of_spec.rb +41 -0
  167. data/spec/models/role_in_spec.rb +53 -0
  168. data/spec/models/role_out_dynamic_all_of_spec.rb +77 -0
  169. data/spec/models/role_out_dynamic_spec.rb +107 -0
  170. data/spec/models/role_out_spec.rb +95 -0
  171. data/spec/models/role_pagination_dynamic_all_of_spec.rb +41 -0
  172. data/spec/models/role_pagination_dynamic_spec.rb +53 -0
  173. data/spec/models/role_pagination_spec.rb +53 -0
  174. data/spec/models/role_spec.rb +47 -0
  175. data/spec/models/role_with_access_spec.rb +101 -0
  176. data/spec/models/status_spec.rb +71 -0
  177. data/spec/models/timestamped_spec.rb +47 -0
  178. data/spec/models/uuid_spec.rb +41 -0
  179. data/spec/spec_helper.rb +111 -0
  180. metadata +338 -0
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::RoleIn
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **access** | [**Array<Access>**](Access.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::RoleIn.new(name: RoleA,
17
+ description: A description of RoleA,
18
+ access: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::RoleInAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **access** | [**Array<Access>**](Access.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::RoleInAllOf.new(access: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,35 @@
1
+ # RBACApiClient::RoleOut
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **uuid** | **String** | |
10
+ **created** | **DateTime** | |
11
+ **modified** | **DateTime** | |
12
+ **policy_count** | **Integer** | | [optional]
13
+ **access_count** | **Integer** | | [optional]
14
+ **applications** | **Array<String>** | | [optional]
15
+ **system** | **Boolean** | | [optional] [default to false]
16
+ **platform_default** | **Boolean** | | [optional] [default to false]
17
+
18
+ ## Code Sample
19
+
20
+ ```ruby
21
+ require 'RBACApiClient'
22
+
23
+ instance = RBACApiClient::RoleOut.new(name: RoleA,
24
+ description: A description of RoleA,
25
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
26
+ created: 2019-01-21T17:32:28Z,
27
+ modified: 2019-03-04T07:25:58Z,
28
+ policy_count: null,
29
+ access_count: null,
30
+ applications: null,
31
+ system: null,
32
+ platform_default: null)
33
+ ```
34
+
35
+
@@ -0,0 +1,39 @@
1
+ # RBACApiClient::RoleOutDynamic
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **uuid** | **String** | |
10
+ **created** | **DateTime** | |
11
+ **modified** | **DateTime** | |
12
+ **policy_count** | **Integer** | |
13
+ **access_count** | **Integer** | |
14
+ **applications** | **Array<String>** | |
15
+ **system** | **Boolean** | | [default to false]
16
+ **platform_default** | **Boolean** | | [default to false]
17
+ **groups_in_count** | **Integer** | | [optional]
18
+ **groups_in** | [**Array<AdditionalGroup>**](AdditionalGroup.md) | | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'RBACApiClient'
24
+
25
+ instance = RBACApiClient::RoleOutDynamic.new(name: RoleA,
26
+ description: A description of RoleA,
27
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
28
+ created: 2019-01-21T17:32:28Z,
29
+ modified: 2019-03-04T07:25:58Z,
30
+ policy_count: null,
31
+ access_count: null,
32
+ applications: null,
33
+ system: null,
34
+ platform_default: null,
35
+ groups_in_count: null,
36
+ groups_in: null)
37
+ ```
38
+
39
+
@@ -0,0 +1,29 @@
1
+ # RBACApiClient::RoleOutDynamicAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **policy_count** | **Integer** | |
8
+ **access_count** | **Integer** | |
9
+ **applications** | **Array<String>** | |
10
+ **system** | **Boolean** | | [default to false]
11
+ **platform_default** | **Boolean** | | [default to false]
12
+ **groups_in_count** | **Integer** | | [optional]
13
+ **groups_in** | [**Array<AdditionalGroup>**](AdditionalGroup.md) | | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'RBACApiClient'
19
+
20
+ instance = RBACApiClient::RoleOutDynamicAllOf.new(policy_count: null,
21
+ access_count: null,
22
+ applications: null,
23
+ system: null,
24
+ platform_default: null,
25
+ groups_in_count: null,
26
+ groups_in: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::RolePagination
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
+ **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
+ **data** | [**Array<RoleOut>**](RoleOut.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::RolePagination.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::RolePaginationDynamic
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
+ **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
+ **data** | [**Array<RoleOutDynamic>**](RoleOutDynamic.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::RolePaginationDynamic.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::RolePaginationDynamicAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**Array<RoleOutDynamic>**](RoleOutDynamic.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::RolePaginationDynamicAllOf.new(data: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,37 @@
1
+ # RBACApiClient::RoleWithAccess
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **uuid** | **String** | |
10
+ **created** | **DateTime** | |
11
+ **modified** | **DateTime** | |
12
+ **policy_count** | **Integer** | | [optional]
13
+ **access_count** | **Integer** | | [optional]
14
+ **applications** | **Array<String>** | | [optional]
15
+ **system** | **Boolean** | | [optional] [default to false]
16
+ **platform_default** | **Boolean** | | [optional] [default to false]
17
+ **access** | [**Array<Access>**](Access.md) | |
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'RBACApiClient'
23
+
24
+ instance = RBACApiClient::RoleWithAccess.new(name: RoleA,
25
+ description: A description of RoleA,
26
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
27
+ created: 2019-01-21T17:32:28Z,
28
+ modified: 2019-03-04T07:25:58Z,
29
+ policy_count: null,
30
+ access_count: null,
31
+ applications: null,
32
+ system: null,
33
+ platform_default: null,
34
+ access: null)
35
+ ```
36
+
37
+
@@ -0,0 +1,27 @@
1
+ # RBACApiClient::Status
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **api_version** | **Integer** | |
8
+ **commit** | **String** | | [optional]
9
+ **server_address** | **String** | | [optional]
10
+ **platform_info** | [**Object**](.md) | | [optional]
11
+ **python_version** | **String** | | [optional]
12
+ **modules** | [**Object**](.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'RBACApiClient'
18
+
19
+ instance = RBACApiClient::Status.new(api_version: 1,
20
+ commit: 178d2ea,
21
+ server_address: 127.0.0.1:8000,
22
+ platform_info: {"system":"Darwin","node":"node-1.example.com","release":"17.5.0","version":"Darwin Kernel Version 17.5.0","machine":"x86_64","processor":"i386"},
23
+ python_version: 3.6.1,
24
+ modules: {"coverage":"4.5.1","coverage.version":"4.5.1","coverage.xmlreport":"4.5.1","cryptography":"2.0.3","ctypes":"1.1.0","ctypes.macholib":"1.0","decimal":"1.70","django":"1.11.5","django.utils.six":"1.10.0","django_filters":"1.0.4","http.server":"0.6"})
25
+ ```
26
+
27
+
@@ -0,0 +1,56 @@
1
+ # RBACApiClient::StatusApi
2
+
3
+ All URIs are relative to *http://localhost/api/rbac/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_status**](StatusApi.md#get_status) | **GET** /status/ | Obtain server status
8
+
9
+
10
+
11
+ ## get_status
12
+
13
+ > Status get_status
14
+
15
+ Obtain server status
16
+
17
+ ### Example
18
+
19
+ ```ruby
20
+ # load the gem
21
+ require 'rbac-api-client'
22
+ # setup authorization
23
+ RBACApiClient.configure do |config|
24
+ # Configure HTTP basic authorization: basic_auth
25
+ config.username = 'YOUR USERNAME'
26
+ config.password = 'YOUR PASSWORD'
27
+ end
28
+
29
+ api_instance = RBACApiClient::StatusApi.new
30
+
31
+ begin
32
+ #Obtain server status
33
+ result = api_instance.get_status
34
+ p result
35
+ rescue RBACApiClient::ApiError => e
36
+ puts "Exception when calling StatusApi->get_status: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ This endpoint does not need any parameter.
43
+
44
+ ### Return type
45
+
46
+ [**Status**](Status.md)
47
+
48
+ ### Authorization
49
+
50
+ [basic_auth](../README.md#basic_auth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::Timestamped
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **created** | **DateTime** | |
8
+ **modified** | **DateTime** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::Timestamped.new(created: 2019-01-21T17:32:28Z,
16
+ modified: 2019-03-04T07:25:58Z)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::UUID
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **uuid** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::UUID.new(uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c)
15
+ ```
16
+
17
+
@@ -0,0 +1,7 @@
1
+ rm -rf openapi.json
2
+ curl https://raw.githubusercontent.com/RedHatInsights/insights-rbac/master/docs/source/specs/openapi.json -o openapi.json
3
+ openapi-generator validate -i openapi.json
4
+ rm -rf ./lib
5
+ rm -rf ./spec
6
+ rm -rf ./docs
7
+ openapi-generator generate -g ruby -i openapi.json -c client-meta.json -o .
@@ -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
+
@@ -0,0 +1,93 @@
1
+ =begin
2
+ #Role Based Access Control
3
+
4
+ #The API for Role Based Access Control.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'rbac-api-client/api_client'
15
+ require 'rbac-api-client/api_error'
16
+ require 'rbac-api-client/version'
17
+ require 'rbac-api-client/configuration'
18
+
19
+ # Models
20
+ require 'rbac-api-client/models/access'
21
+ require 'rbac-api-client/models/access_pagination'
22
+ require 'rbac-api-client/models/access_pagination_all_of'
23
+ require 'rbac-api-client/models/additional_group'
24
+ require 'rbac-api-client/models/error'
25
+ require 'rbac-api-client/models/error403'
26
+ require 'rbac-api-client/models/group'
27
+ require 'rbac-api-client/models/group_out'
28
+ require 'rbac-api-client/models/group_pagination'
29
+ require 'rbac-api-client/models/group_pagination_all_of'
30
+ require 'rbac-api-client/models/group_principal_in'
31
+ require 'rbac-api-client/models/group_role_in'
32
+ require 'rbac-api-client/models/group_roles_pagination'
33
+ require 'rbac-api-client/models/group_with_principals'
34
+ require 'rbac-api-client/models/group_with_principals_all_of'
35
+ require 'rbac-api-client/models/group_with_principals_and_roles'
36
+ require 'rbac-api-client/models/group_with_principals_and_roles_all_of'
37
+ require 'rbac-api-client/models/inline_response200'
38
+ require 'rbac-api-client/models/list_pagination'
39
+ require 'rbac-api-client/models/pagination_links'
40
+ require 'rbac-api-client/models/pagination_meta'
41
+ require 'rbac-api-client/models/policy'
42
+ require 'rbac-api-client/models/policy_extended'
43
+ require 'rbac-api-client/models/policy_extended_all_of'
44
+ require 'rbac-api-client/models/policy_in'
45
+ require 'rbac-api-client/models/policy_in_all_of'
46
+ require 'rbac-api-client/models/policy_pagination'
47
+ require 'rbac-api-client/models/policy_pagination_all_of'
48
+ require 'rbac-api-client/models/principal'
49
+ require 'rbac-api-client/models/principal_in'
50
+ require 'rbac-api-client/models/principal_out'
51
+ require 'rbac-api-client/models/principal_pagination'
52
+ require 'rbac-api-client/models/principal_pagination_all_of'
53
+ require 'rbac-api-client/models/resource_definition'
54
+ require 'rbac-api-client/models/resource_definition_filter'
55
+ require 'rbac-api-client/models/role'
56
+ require 'rbac-api-client/models/role_in'
57
+ require 'rbac-api-client/models/role_in_all_of'
58
+ require 'rbac-api-client/models/role_out'
59
+ require 'rbac-api-client/models/role_out_dynamic'
60
+ require 'rbac-api-client/models/role_out_dynamic_all_of'
61
+ require 'rbac-api-client/models/role_pagination'
62
+ require 'rbac-api-client/models/role_pagination_dynamic'
63
+ require 'rbac-api-client/models/role_pagination_dynamic_all_of'
64
+ require 'rbac-api-client/models/role_with_access'
65
+ require 'rbac-api-client/models/status'
66
+ require 'rbac-api-client/models/timestamped'
67
+ require 'rbac-api-client/models/uuid'
68
+
69
+ # APIs
70
+ require 'rbac-api-client/api/access_api'
71
+ require 'rbac-api-client/api/group_api'
72
+ require 'rbac-api-client/api/policy_api'
73
+ require 'rbac-api-client/api/principal_api'
74
+ require 'rbac-api-client/api/role_api'
75
+ require 'rbac-api-client/api/status_api'
76
+
77
+ module RBACApiClient
78
+ class << self
79
+ # Customize default settings for the SDK using block.
80
+ # RBACApiClient.configure do |config|
81
+ # config.username = "xxx"
82
+ # config.password = "xxx"
83
+ # end
84
+ # If no block given, return the default Configuration object.
85
+ def configure
86
+ if block_given?
87
+ yield(Configuration.default)
88
+ else
89
+ Configuration.default
90
+ end
91
+ end
92
+ end
93
+ end