strongdm 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +30 -0
  4. data/doc/Google.html +95 -0
  5. data/doc/Google/Protobuf.html +95 -0
  6. data/doc/LICENSE.html +294 -0
  7. data/doc/Object.html +290 -0
  8. data/doc/README_md.html +128 -0
  9. data/doc/SDM.html +143 -0
  10. data/doc/SDM/AKS.html +347 -0
  11. data/doc/SDM/AKSBasicAuth.html +279 -0
  12. data/doc/SDM/AKSServiceAccount.html +262 -0
  13. data/doc/SDM/AccountAttachment.html +217 -0
  14. data/doc/SDM/AccountAttachmentCreateOptions.html +182 -0
  15. data/doc/SDM/AccountAttachmentCreateResponse.html +216 -0
  16. data/doc/SDM/AccountAttachmentDeleteResponse.html +199 -0
  17. data/doc/SDM/AccountAttachmentGetResponse.html +215 -0
  18. data/doc/SDM/AccountAttachments.html +429 -0
  19. data/doc/SDM/AccountCreateResponse.html +232 -0
  20. data/doc/SDM/AccountDeleteResponse.html +197 -0
  21. data/doc/SDM/AccountGetResponse.html +214 -0
  22. data/doc/SDM/AccountGrant.html +253 -0
  23. data/doc/SDM/AccountGrantCreateResponse.html +215 -0
  24. data/doc/SDM/AccountGrantDeleteResponse.html +198 -0
  25. data/doc/SDM/AccountGrantGetResponse.html +214 -0
  26. data/doc/SDM/AccountGrants.html +425 -0
  27. data/doc/SDM/AccountUpdateResponse.html +214 -0
  28. data/doc/SDM/Accounts.html +492 -0
  29. data/doc/SDM/AlreadyExistsError.html +161 -0
  30. data/doc/SDM/AmazonEKS.html +330 -0
  31. data/doc/SDM/AmazonES.html +296 -0
  32. data/doc/SDM/Athena.html +296 -0
  33. data/doc/SDM/AuroraMysql.html +313 -0
  34. data/doc/SDM/AuroraPostgres.html +330 -0
  35. data/doc/SDM/AuthenticationError.html +161 -0
  36. data/doc/SDM/BadRequestError.html +161 -0
  37. data/doc/SDM/BigQuery.html +296 -0
  38. data/doc/SDM/Cassandra.html +313 -0
  39. data/doc/SDM/Client.html +549 -0
  40. data/doc/SDM/Clustrix.html +313 -0
  41. data/doc/SDM/Cockroach.html +330 -0
  42. data/doc/SDM/CreateResponseMetadata.html +156 -0
  43. data/doc/SDM/DeadlineExceededError.html +161 -0
  44. data/doc/SDM/DeleteResponseMetadata.html +156 -0
  45. data/doc/SDM/Druid.html +296 -0
  46. data/doc/SDM/DynamoDB.html +296 -0
  47. data/doc/SDM/Elastic.html +313 -0
  48. data/doc/SDM/ElasticacheRedis.html +296 -0
  49. data/doc/SDM/Gateway.html +252 -0
  50. data/doc/SDM/GetResponseMetadata.html +156 -0
  51. data/doc/SDM/GoogleGKE.html +296 -0
  52. data/doc/SDM/Greenplum.html +330 -0
  53. data/doc/SDM/HTTPAuth.html +313 -0
  54. data/doc/SDM/HTTPBasicAuth.html +330 -0
  55. data/doc/SDM/HTTPNoAuth.html +296 -0
  56. data/doc/SDM/InternalError.html +161 -0
  57. data/doc/SDM/Kubernetes.html +347 -0
  58. data/doc/SDM/KubernetesBasicAuth.html +279 -0
  59. data/doc/SDM/KubernetesServiceAccount.html +262 -0
  60. data/doc/SDM/Maria.html +313 -0
  61. data/doc/SDM/Memcached.html +262 -0
  62. data/doc/SDM/Memsql.html +313 -0
  63. data/doc/SDM/MongoHost.html +330 -0
  64. data/doc/SDM/MongoLegacyHost.html +347 -0
  65. data/doc/SDM/MongoLegacyReplicaset.html +364 -0
  66. data/doc/SDM/MongoReplicaSet.html +364 -0
  67. data/doc/SDM/Mysql.html +313 -0
  68. data/doc/SDM/NodeCreateResponse.html +232 -0
  69. data/doc/SDM/NodeDeleteResponse.html +197 -0
  70. data/doc/SDM/NodeGetResponse.html +214 -0
  71. data/doc/SDM/NodeUpdateResponse.html +214 -0
  72. data/doc/SDM/Nodes.html +493 -0
  73. data/doc/SDM/NotFoundError.html +161 -0
  74. data/doc/SDM/Oracle.html +330 -0
  75. data/doc/SDM/PermissionError.html +161 -0
  76. data/doc/SDM/Plumbing.html +15821 -0
  77. data/doc/SDM/Postgres.html +330 -0
  78. data/doc/SDM/Presto.html +330 -0
  79. data/doc/SDM/RDP.html +296 -0
  80. data/doc/SDM/RPCError.html +182 -0
  81. data/doc/SDM/RateLimitError.html +183 -0
  82. data/doc/SDM/RateLimitMetadata.html +233 -0
  83. data/doc/SDM/Redis.html +279 -0
  84. data/doc/SDM/Redshift.html +330 -0
  85. data/doc/SDM/Relay.html +216 -0
  86. data/doc/SDM/ResourceCreateResponse.html +214 -0
  87. data/doc/SDM/ResourceDeleteResponse.html +197 -0
  88. data/doc/SDM/ResourceGetResponse.html +214 -0
  89. data/doc/SDM/ResourceUpdateResponse.html +215 -0
  90. data/doc/SDM/Resources.html +482 -0
  91. data/doc/SDM/Role.html +216 -0
  92. data/doc/SDM/RoleAttachment.html +216 -0
  93. data/doc/SDM/RoleAttachmentCreateResponse.html +216 -0
  94. data/doc/SDM/RoleAttachmentDeleteResponse.html +199 -0
  95. data/doc/SDM/RoleAttachmentGetResponse.html +214 -0
  96. data/doc/SDM/RoleAttachments.html +427 -0
  97. data/doc/SDM/RoleCreateResponse.html +215 -0
  98. data/doc/SDM/RoleDeleteResponse.html +197 -0
  99. data/doc/SDM/RoleGetResponse.html +214 -0
  100. data/doc/SDM/RoleGrant.html +214 -0
  101. data/doc/SDM/RoleGrantCreateResponse.html +215 -0
  102. data/doc/SDM/RoleGrantDeleteResponse.html +198 -0
  103. data/doc/SDM/RoleGrantGetResponse.html +214 -0
  104. data/doc/SDM/RoleGrants.html +427 -0
  105. data/doc/SDM/RoleUpdateResponse.html +215 -0
  106. data/doc/SDM/Roles.html +490 -0
  107. data/doc/SDM/SQLServer.html +347 -0
  108. data/doc/SDM/SSH.html +296 -0
  109. data/doc/SDM/Service.html +215 -0
  110. data/doc/SDM/Snowflake.html +313 -0
  111. data/doc/SDM/Sybase.html +296 -0
  112. data/doc/SDM/SybaseIQ.html +296 -0
  113. data/doc/SDM/Teradata.html +296 -0
  114. data/doc/SDM/UpdateResponseMetadata.html +156 -0
  115. data/doc/SDM/User.html +248 -0
  116. data/doc/V1.html +864 -0
  117. data/doc/V1/AccountAttachments.html +109 -0
  118. data/doc/V1/AccountAttachments/Service.html +116 -0
  119. data/doc/V1/AccountGrants.html +109 -0
  120. data/doc/V1/AccountGrants/Service.html +117 -0
  121. data/doc/V1/Accounts.html +109 -0
  122. data/doc/V1/Accounts/Service.html +122 -0
  123. data/doc/V1/Nodes.html +109 -0
  124. data/doc/V1/Nodes/Service.html +124 -0
  125. data/doc/V1/Resources.html +109 -0
  126. data/doc/V1/Resources/Service.html +113 -0
  127. data/doc/V1/RoleAttachments.html +109 -0
  128. data/doc/V1/RoleAttachments/Service.html +119 -0
  129. data/doc/V1/RoleGrants.html +109 -0
  130. data/doc/V1/RoleGrants/Service.html +119 -0
  131. data/doc/V1/Roles.html +109 -0
  132. data/doc/V1/Roles/Service.html +120 -0
  133. data/doc/created.rid +37 -0
  134. data/doc/css/fonts.css +167 -0
  135. data/doc/css/rdoc.css +590 -0
  136. data/doc/examples/Gemfile.html +95 -0
  137. data/doc/examples/Gemfile_lock.html +112 -0
  138. data/doc/examples/README_md.html +95 -0
  139. data/doc/fonts/Lato-Light.ttf +0 -0
  140. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  141. data/doc/fonts/Lato-Regular.ttf +0 -0
  142. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  143. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  144. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  145. data/doc/images/add.png +0 -0
  146. data/doc/images/arrow_up.png +0 -0
  147. data/doc/images/brick.png +0 -0
  148. data/doc/images/brick_link.png +0 -0
  149. data/doc/images/bug.png +0 -0
  150. data/doc/images/bullet_black.png +0 -0
  151. data/doc/images/bullet_toggle_minus.png +0 -0
  152. data/doc/images/bullet_toggle_plus.png +0 -0
  153. data/doc/images/date.png +0 -0
  154. data/doc/images/delete.png +0 -0
  155. data/doc/images/find.png +0 -0
  156. data/doc/images/loadingAnimation.gif +0 -0
  157. data/doc/images/macFFBgHack.png +0 -0
  158. data/doc/images/package.png +0 -0
  159. data/doc/images/page_green.png +0 -0
  160. data/doc/images/page_white_text.png +0 -0
  161. data/doc/images/page_white_width.png +0 -0
  162. data/doc/images/plugin.png +0 -0
  163. data/doc/images/ruby.png +0 -0
  164. data/doc/images/tag_blue.png +0 -0
  165. data/doc/images/tag_green.png +0 -0
  166. data/doc/images/transparent.png +0 -0
  167. data/doc/images/wrench.png +0 -0
  168. data/doc/images/wrench_orange.png +0 -0
  169. data/doc/images/zoom.png +0 -0
  170. data/doc/index.html +353 -0
  171. data/doc/js/darkfish.js +161 -0
  172. data/doc/js/jquery.js +4 -0
  173. data/doc/js/navigation.js +142 -0
  174. data/doc/js/navigation.js.gz +0 -0
  175. data/doc/js/search.js +109 -0
  176. data/doc/js/search_index.js +1 -0
  177. data/doc/js/search_index.js.gz +0 -0
  178. data/doc/js/searcher.js +228 -0
  179. data/doc/js/searcher.js.gz +0 -0
  180. data/doc/lib/version.html +98 -0
  181. data/doc/strongdm_gemspec.html +117 -0
  182. data/doc/table_of_contents.html +3002 -0
  183. data/examples/Gemfile +3 -0
  184. data/examples/Gemfile.lock +14 -0
  185. data/examples/README.md +5 -0
  186. data/examples/listUsers.rb +21 -0
  187. data/examples/panicButton.rb +154 -0
  188. data/lib/errors/errors.rb +85 -0
  189. data/lib/grpc/account_attachments_pb.rb +84 -0
  190. data/lib/grpc/account_attachments_services_pb.rb +44 -0
  191. data/lib/grpc/account_grants_pb.rb +82 -0
  192. data/lib/grpc/account_grants_services_pb.rb +44 -0
  193. data/lib/grpc/accounts_pb.rb +107 -0
  194. data/lib/grpc/accounts_services_pb.rb +49 -0
  195. data/lib/grpc/drivers_pb.rb +601 -0
  196. data/lib/grpc/nodes_pb.rb +107 -0
  197. data/lib/grpc/nodes_services_pb.rb +49 -0
  198. data/lib/grpc/options_pb.rb +60 -0
  199. data/lib/grpc/plumbing.rb +4283 -0
  200. data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +15 -0
  201. data/lib/grpc/resources_pb.rb +85 -0
  202. data/lib/grpc/resources_services_pb.rb +45 -0
  203. data/lib/grpc/role_attachments_pb.rb +79 -0
  204. data/lib/grpc/role_attachments_services_pb.rb +47 -0
  205. data/lib/grpc/role_grants_pb.rb +79 -0
  206. data/lib/grpc/role_grants_services_pb.rb +47 -0
  207. data/lib/grpc/roles_pb.rb +91 -0
  208. data/lib/grpc/roles_services_pb.rb +50 -0
  209. data/lib/grpc/spec_pb.rb +95 -0
  210. data/lib/models/porcelain.rb +4033 -0
  211. data/lib/strongdm.rb +128 -0
  212. data/lib/svc.rb +1331 -0
  213. data/lib/version +3 -0
  214. data/lib/version.rb +17 -0
  215. data/strongdm.gemspec +23 -0
  216. metadata +318 -0
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # this file is intentionally left empty
@@ -0,0 +1,85 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: resources.proto
17
+
18
+ require 'google/protobuf'
19
+
20
+ require 'google/api/annotations_pb'
21
+ require 'options_pb'
22
+ require 'spec_pb'
23
+ require 'drivers_pb'
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("resources.proto", :syntax => :proto3) do
26
+ add_message "v1.ResourceCreateRequest" do
27
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
28
+ optional :resource, :message, 2, "v1.Resource"
29
+ end
30
+ add_message "v1.ResourceCreateResponse" do
31
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
32
+ optional :resource, :message, 2, "v1.Resource"
33
+ optional :rate_limit, :message, 4, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.ResourceGetRequest" do
36
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
37
+ optional :id, :string, 2
38
+ end
39
+ add_message "v1.ResourceGetResponse" do
40
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
41
+ optional :resource, :message, 2, "v1.Resource"
42
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
43
+ end
44
+ add_message "v1.ResourceUpdateRequest" do
45
+ optional :meta, :message, 1, "v1.UpdateRequestMetadata"
46
+ optional :id, :string, 2
47
+ optional :resource, :message, 3, "v1.Resource"
48
+ end
49
+ add_message "v1.ResourceUpdateResponse" do
50
+ optional :meta, :message, 1, "v1.UpdateResponseMetadata"
51
+ optional :resource, :message, 2, "v1.Resource"
52
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
53
+ end
54
+ add_message "v1.ResourceDeleteRequest" do
55
+ optional :meta, :message, 1, "v1.DeleteRequestMetadata"
56
+ optional :id, :string, 2
57
+ end
58
+ add_message "v1.ResourceDeleteResponse" do
59
+ optional :meta, :message, 1, "v1.DeleteResponseMetadata"
60
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
61
+ end
62
+ add_message "v1.ResourceListRequest" do
63
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
64
+ optional :filter, :string, 2
65
+ end
66
+ add_message "v1.ResourceListResponse" do
67
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
68
+ repeated :resources, :message, 2, "v1.Resource"
69
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
70
+ end
71
+ end
72
+ end
73
+
74
+ module V1
75
+ ResourceCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceCreateRequest").msgclass
76
+ ResourceCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceCreateResponse").msgclass
77
+ ResourceGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceGetRequest").msgclass
78
+ ResourceGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceGetResponse").msgclass
79
+ ResourceUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceUpdateRequest").msgclass
80
+ ResourceUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceUpdateResponse").msgclass
81
+ ResourceDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceDeleteRequest").msgclass
82
+ ResourceDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceDeleteResponse").msgclass
83
+ ResourceListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceListRequest").msgclass
84
+ ResourceListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceListResponse").msgclass
85
+ end
@@ -0,0 +1,45 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # Source: resources.proto for package 'v1'
17
+
18
+ require 'grpc'
19
+ require 'resources_pb'
20
+
21
+ module V1
22
+ module Resources
23
+ class Service
24
+
25
+ include GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = 'v1.Resources'
30
+
31
+ # Create registers a new Resource.
32
+ rpc :Create, ResourceCreateRequest, ResourceCreateResponse
33
+ # Get reads one Resource by ID.
34
+ rpc :Get, ResourceGetRequest, ResourceGetResponse
35
+ # Update patches a Resource by ID.
36
+ rpc :Update, ResourceUpdateRequest, ResourceUpdateResponse
37
+ # Delete removes a Resource by ID.
38
+ rpc :Delete, ResourceDeleteRequest, ResourceDeleteResponse
39
+ # List gets a list of Resources matching a given set of criteria.
40
+ rpc :List, ResourceListRequest, ResourceListResponse
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
@@ -0,0 +1,79 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: role_attachments.proto
17
+
18
+ require 'google/protobuf'
19
+
20
+ require 'google/api/annotations_pb'
21
+ require 'protoc-gen-swagger/options/annotations_pb'
22
+ require 'options_pb'
23
+ require 'spec_pb'
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("role_attachments.proto", :syntax => :proto3) do
26
+ add_message "v1.RoleAttachmentCreateRequest" do
27
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
28
+ optional :role_attachment, :message, 2, "v1.RoleAttachment"
29
+ end
30
+ add_message "v1.RoleAttachmentCreateResponse" do
31
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
32
+ optional :role_attachment, :message, 2, "v1.RoleAttachment"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RoleAttachmentGetRequest" do
36
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
37
+ optional :id, :string, 2
38
+ end
39
+ add_message "v1.RoleAttachmentGetResponse" do
40
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
41
+ optional :role_attachment, :message, 2, "v1.RoleAttachment"
42
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
43
+ end
44
+ add_message "v1.RoleAttachmentDeleteRequest" do
45
+ optional :meta, :message, 1, "v1.DeleteRequestMetadata"
46
+ optional :id, :string, 2
47
+ end
48
+ add_message "v1.RoleAttachmentDeleteResponse" do
49
+ optional :meta, :message, 1, "v1.DeleteResponseMetadata"
50
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
51
+ end
52
+ add_message "v1.RoleAttachmentListRequest" do
53
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
54
+ optional :filter, :string, 2
55
+ end
56
+ add_message "v1.RoleAttachmentListResponse" do
57
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
58
+ repeated :role_attachments, :message, 2, "v1.RoleAttachment"
59
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
60
+ end
61
+ add_message "v1.RoleAttachment" do
62
+ optional :id, :string, 1
63
+ optional :composite_role_id, :string, 2
64
+ optional :attached_role_id, :string, 3
65
+ end
66
+ end
67
+ end
68
+
69
+ module V1
70
+ RoleAttachmentCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentCreateRequest").msgclass
71
+ RoleAttachmentCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentCreateResponse").msgclass
72
+ RoleAttachmentGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentGetRequest").msgclass
73
+ RoleAttachmentGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentGetResponse").msgclass
74
+ RoleAttachmentDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentDeleteRequest").msgclass
75
+ RoleAttachmentDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentDeleteResponse").msgclass
76
+ RoleAttachmentListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentListRequest").msgclass
77
+ RoleAttachmentListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachmentListResponse").msgclass
78
+ RoleAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleAttachment").msgclass
79
+ end
@@ -0,0 +1,47 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # Source: role_attachments.proto for package 'v1'
17
+
18
+ require 'grpc'
19
+ require 'role_attachments_pb'
20
+
21
+ module V1
22
+ module RoleAttachments
23
+ # RoleAttachments represent relationships between composite roles and the roles
24
+ # that make up those composite roles. When a composite role is attached to another
25
+ # role, the permissions granted to members of the composite role are augmented to
26
+ # include the permissions granted to members of the attached role.
27
+ class Service
28
+
29
+ include GRPC::GenericService
30
+
31
+ self.marshal_class_method = :encode
32
+ self.unmarshal_class_method = :decode
33
+ self.service_name = 'v1.RoleAttachments'
34
+
35
+ # Create registers a new RoleAttachment.
36
+ rpc :Create, RoleAttachmentCreateRequest, RoleAttachmentCreateResponse
37
+ # Get reads one RoleAttachment by ID.
38
+ rpc :Get, RoleAttachmentGetRequest, RoleAttachmentGetResponse
39
+ # Delete removes a RoleAttachment by ID.
40
+ rpc :Delete, RoleAttachmentDeleteRequest, RoleAttachmentDeleteResponse
41
+ # List gets a list of RoleAttachments matching a given set of criteria.
42
+ rpc :List, RoleAttachmentListRequest, RoleAttachmentListResponse
43
+ end
44
+
45
+ Stub = Service.rpc_stub_class
46
+ end
47
+ end
@@ -0,0 +1,79 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: role_grants.proto
17
+
18
+ require 'google/protobuf'
19
+
20
+ require 'google/api/annotations_pb'
21
+ require 'protoc-gen-swagger/options/annotations_pb'
22
+ require 'options_pb'
23
+ require 'spec_pb'
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("role_grants.proto", :syntax => :proto3) do
26
+ add_message "v1.RoleGrantCreateRequest" do
27
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
28
+ optional :role_grant, :message, 2, "v1.RoleGrant"
29
+ end
30
+ add_message "v1.RoleGrantCreateResponse" do
31
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
32
+ optional :role_grant, :message, 2, "v1.RoleGrant"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RoleGrantGetRequest" do
36
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
37
+ optional :id, :string, 2
38
+ end
39
+ add_message "v1.RoleGrantGetResponse" do
40
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
41
+ optional :role_grant, :message, 2, "v1.RoleGrant"
42
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
43
+ end
44
+ add_message "v1.RoleGrantDeleteRequest" do
45
+ optional :meta, :message, 1, "v1.DeleteRequestMetadata"
46
+ optional :id, :string, 2
47
+ end
48
+ add_message "v1.RoleGrantDeleteResponse" do
49
+ optional :meta, :message, 1, "v1.DeleteResponseMetadata"
50
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
51
+ end
52
+ add_message "v1.RoleGrantListRequest" do
53
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
54
+ optional :filter, :string, 2
55
+ end
56
+ add_message "v1.RoleGrantListResponse" do
57
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
58
+ repeated :role_grants, :message, 2, "v1.RoleGrant"
59
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
60
+ end
61
+ add_message "v1.RoleGrant" do
62
+ optional :id, :string, 1
63
+ optional :resource_id, :string, 2
64
+ optional :role_id, :string, 3
65
+ end
66
+ end
67
+ end
68
+
69
+ module V1
70
+ RoleGrantCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantCreateRequest").msgclass
71
+ RoleGrantCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantCreateResponse").msgclass
72
+ RoleGrantGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantGetRequest").msgclass
73
+ RoleGrantGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantGetResponse").msgclass
74
+ RoleGrantDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantDeleteRequest").msgclass
75
+ RoleGrantDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantDeleteResponse").msgclass
76
+ RoleGrantListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantListRequest").msgclass
77
+ RoleGrantListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrantListResponse").msgclass
78
+ RoleGrant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGrant").msgclass
79
+ end
@@ -0,0 +1,47 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # Source: role_grants.proto for package 'v1'
17
+
18
+ require 'grpc'
19
+ require 'role_grants_pb'
20
+
21
+ module V1
22
+ module RoleGrants
23
+ # RoleGrants represent relationships between composite roles and the roles
24
+ # that make up those composite roles. When a composite role is attached to another
25
+ # role, the permissions granted to members of the composite role are augmented to
26
+ # include the permissions granted to members of the attached role.
27
+ class Service
28
+
29
+ include GRPC::GenericService
30
+
31
+ self.marshal_class_method = :encode
32
+ self.unmarshal_class_method = :decode
33
+ self.service_name = 'v1.RoleGrants'
34
+
35
+ # Create registers a new RoleGrant.
36
+ rpc :Create, RoleGrantCreateRequest, RoleGrantCreateResponse
37
+ # Get reads one RoleGrant by ID.
38
+ rpc :Get, RoleGrantGetRequest, RoleGrantGetResponse
39
+ # Delete removes a RoleGrant by ID.
40
+ rpc :Delete, RoleGrantDeleteRequest, RoleGrantDeleteResponse
41
+ # List gets a list of RoleGrants matching a given set of criteria.
42
+ rpc :List, RoleGrantListRequest, RoleGrantListResponse
43
+ end
44
+
45
+ Stub = Service.rpc_stub_class
46
+ end
47
+ end
@@ -0,0 +1,91 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: roles.proto
17
+
18
+ require 'google/protobuf'
19
+
20
+ require 'google/api/annotations_pb'
21
+ require 'protoc-gen-swagger/options/annotations_pb'
22
+ require 'options_pb'
23
+ require 'spec_pb'
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("roles.proto", :syntax => :proto3) do
26
+ add_message "v1.RoleCreateRequest" do
27
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
28
+ optional :role, :message, 2, "v1.Role"
29
+ end
30
+ add_message "v1.RoleCreateResponse" do
31
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
32
+ optional :role, :message, 2, "v1.Role"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RoleGetRequest" do
36
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
37
+ optional :id, :string, 2
38
+ end
39
+ add_message "v1.RoleGetResponse" do
40
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
41
+ optional :role, :message, 2, "v1.Role"
42
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
43
+ end
44
+ add_message "v1.RoleUpdateRequest" do
45
+ optional :meta, :message, 1, "v1.UpdateRequestMetadata"
46
+ optional :id, :string, 2
47
+ optional :role, :message, 3, "v1.Role"
48
+ end
49
+ add_message "v1.RoleUpdateResponse" do
50
+ optional :meta, :message, 1, "v1.UpdateResponseMetadata"
51
+ optional :role, :message, 2, "v1.Role"
52
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
53
+ end
54
+ add_message "v1.RoleDeleteRequest" do
55
+ optional :meta, :message, 1, "v1.DeleteRequestMetadata"
56
+ optional :id, :string, 2
57
+ end
58
+ add_message "v1.RoleDeleteResponse" do
59
+ optional :meta, :message, 1, "v1.DeleteResponseMetadata"
60
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
61
+ end
62
+ add_message "v1.RoleListRequest" do
63
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
64
+ optional :filter, :string, 2
65
+ end
66
+ add_message "v1.RoleListResponse" do
67
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
68
+ repeated :roles, :message, 2, "v1.Role"
69
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
70
+ end
71
+ add_message "v1.Role" do
72
+ optional :id, :string, 1
73
+ optional :name, :string, 2
74
+ optional :composite, :bool, 3
75
+ end
76
+ end
77
+ end
78
+
79
+ module V1
80
+ RoleCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleCreateRequest").msgclass
81
+ RoleCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleCreateResponse").msgclass
82
+ RoleGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGetRequest").msgclass
83
+ RoleGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleGetResponse").msgclass
84
+ RoleUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleUpdateRequest").msgclass
85
+ RoleUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleUpdateResponse").msgclass
86
+ RoleDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleDeleteRequest").msgclass
87
+ RoleDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleDeleteResponse").msgclass
88
+ RoleListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleListRequest").msgclass
89
+ RoleListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleListResponse").msgclass
90
+ Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Role").msgclass
91
+ end