strongdm 1.0.10 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/doc/LICENSE.html +1 -3
  3. data/doc/Object.html +1 -1
  4. data/doc/README_md.html +1 -3
  5. data/doc/SDM.html +1 -1
  6. data/doc/SDM/AKS.html +22 -58
  7. data/doc/SDM/AKSBasicAuth.html +22 -4
  8. data/doc/SDM/AKSServiceAccount.html +22 -4
  9. data/doc/SDM/{DB2.html → AWS.html} +38 -56
  10. data/doc/SDM/AWSStore.html +283 -0
  11. data/doc/SDM/AccessRuleCreateResponse.html +267 -0
  12. data/doc/SDM/AccessRuleDeleteResponse.html +249 -0
  13. data/doc/SDM/AccessRuleUpdateResponse.html +267 -0
  14. data/doc/SDM/AccountAttachment.html +2 -2
  15. data/doc/SDM/AccountAttachmentCreateResponse.html +1 -1
  16. data/doc/SDM/AccountAttachmentDeleteResponse.html +1 -1
  17. data/doc/SDM/AccountAttachmentGetResponse.html +1 -1
  18. data/doc/SDM/AccountAttachments.html +2 -2
  19. data/doc/SDM/AccountCreateResponse.html +1 -1
  20. data/doc/SDM/AccountDeleteResponse.html +1 -1
  21. data/doc/SDM/AccountGetResponse.html +1 -1
  22. data/doc/SDM/AccountGrant.html +1 -1
  23. data/doc/SDM/AccountGrantCreateResponse.html +1 -1
  24. data/doc/SDM/AccountGrantDeleteResponse.html +1 -1
  25. data/doc/SDM/AccountGrantGetResponse.html +1 -1
  26. data/doc/SDM/AccountGrants.html +1 -1
  27. data/doc/SDM/AccountUpdateResponse.html +1 -1
  28. data/doc/SDM/Accounts.html +9 -9
  29. data/doc/SDM/AlreadyExistsError.html +1 -1
  30. data/doc/SDM/AmazonEKS.html +22 -22
  31. data/doc/SDM/AmazonES.html +22 -4
  32. data/doc/SDM/Athena.html +22 -4
  33. data/doc/SDM/AuroraMysql.html +22 -4
  34. data/doc/SDM/AuroraPostgres.html +22 -4
  35. data/doc/SDM/AuthenticationError.html +1 -1
  36. data/doc/SDM/BadRequestError.html +1 -1
  37. data/doc/SDM/BigQuery.html +22 -4
  38. data/doc/SDM/Cassandra.html +22 -4
  39. data/doc/SDM/Citus.html +22 -4
  40. data/doc/SDM/Client.html +40 -12
  41. data/doc/SDM/Clustrix.html +22 -4
  42. data/doc/SDM/Cockroach.html +22 -4
  43. data/doc/SDM/ControlPanel.html +236 -0
  44. data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +267 -0
  45. data/doc/SDM/CreateResponseMetadata.html +1 -1
  46. data/doc/SDM/DB2LUW.html +22 -4
  47. data/doc/SDM/DB2i.html +22 -4
  48. data/doc/SDM/DeadlineExceededError.html +1 -1
  49. data/doc/SDM/DeleteResponseMetadata.html +1 -1
  50. data/doc/SDM/Druid.html +22 -4
  51. data/doc/SDM/DynamoDB.html +22 -4
  52. data/doc/SDM/Elastic.html +22 -4
  53. data/doc/SDM/ElasticacheRedis.html +22 -4
  54. data/doc/SDM/Gateway.html +4 -4
  55. data/doc/SDM/GetResponseMetadata.html +1 -1
  56. data/doc/SDM/GoogleGKE.html +14 -32
  57. data/doc/SDM/Greenplum.html +22 -4
  58. data/doc/SDM/HTTPAuth.html +22 -4
  59. data/doc/SDM/HTTPBasicAuth.html +22 -4
  60. data/doc/SDM/HTTPNoAuth.html +22 -4
  61. data/doc/SDM/InternalError.html +1 -1
  62. data/doc/SDM/Kubernetes.html +22 -58
  63. data/doc/SDM/KubernetesBasicAuth.html +22 -4
  64. data/doc/SDM/KubernetesServiceAccount.html +22 -4
  65. data/doc/SDM/Maria.html +22 -4
  66. data/doc/SDM/Memcached.html +22 -4
  67. data/doc/SDM/Memsql.html +22 -4
  68. data/doc/SDM/MongoHost.html +22 -4
  69. data/doc/SDM/MongoLegacyHost.html +22 -4
  70. data/doc/SDM/MongoLegacyReplicaset.html +22 -4
  71. data/doc/SDM/MongoReplicaSet.html +22 -4
  72. data/doc/SDM/Mysql.html +22 -4
  73. data/doc/SDM/NodeCreateResponse.html +3 -3
  74. data/doc/SDM/NodeDeleteResponse.html +3 -3
  75. data/doc/SDM/NodeGetResponse.html +3 -3
  76. data/doc/SDM/NodeUpdateResponse.html +3 -3
  77. data/doc/SDM/Nodes.html +11 -11
  78. data/doc/SDM/NotFoundError.html +1 -1
  79. data/doc/SDM/Oracle.html +22 -4
  80. data/doc/SDM/PermissionError.html +1 -1
  81. data/doc/SDM/Plumbing.html +2911 -1141
  82. data/doc/SDM/Postgres.html +22 -4
  83. data/doc/SDM/Presto.html +22 -4
  84. data/doc/SDM/RDP.html +22 -4
  85. data/doc/SDM/RPCError.html +1 -1
  86. data/doc/SDM/RateLimitError.html +1 -1
  87. data/doc/SDM/RateLimitMetadata.html +1 -1
  88. data/doc/SDM/Redis.html +22 -4
  89. data/doc/SDM/Redshift.html +22 -4
  90. data/doc/SDM/Relay.html +4 -4
  91. data/doc/SDM/ResourceCreateResponse.html +3 -3
  92. data/doc/SDM/ResourceDeleteResponse.html +3 -3
  93. data/doc/SDM/ResourceGetResponse.html +3 -3
  94. data/doc/SDM/ResourceUpdateResponse.html +3 -3
  95. data/doc/SDM/Resources.html +7 -7
  96. data/doc/SDM/Role.html +4 -4
  97. data/doc/SDM/RoleAttachment.html +3 -3
  98. data/doc/SDM/RoleAttachmentCreateResponse.html +3 -3
  99. data/doc/SDM/RoleAttachmentDeleteResponse.html +3 -3
  100. data/doc/SDM/RoleAttachmentGetResponse.html +3 -3
  101. data/doc/SDM/RoleAttachments.html +6 -6
  102. data/doc/SDM/RoleCreateResponse.html +3 -3
  103. data/doc/SDM/RoleDeleteResponse.html +3 -3
  104. data/doc/SDM/RoleGetResponse.html +3 -3
  105. data/doc/SDM/RoleGrant.html +3 -3
  106. data/doc/SDM/RoleGrantCreateResponse.html +3 -3
  107. data/doc/SDM/RoleGrantDeleteResponse.html +3 -3
  108. data/doc/SDM/RoleGrantGetResponse.html +3 -3
  109. data/doc/SDM/RoleGrants.html +6 -6
  110. data/doc/SDM/RoleUpdateResponse.html +3 -3
  111. data/doc/SDM/Roles.html +7 -7
  112. data/doc/SDM/SQLServer.html +22 -4
  113. data/doc/SDM/SSH.html +22 -4
  114. data/doc/SDM/SSHCert.html +22 -4
  115. data/doc/SDM/SecretStore.html +303 -0
  116. data/doc/SDM/SecretStoreCreateResponse.html +267 -0
  117. data/doc/SDM/SecretStoreDeleteResponse.html +249 -0
  118. data/doc/SDM/SecretStoreGetResponse.html +267 -0
  119. data/doc/SDM/SecretStoreUpdateResponse.html +267 -0
  120. data/doc/SDM/SecretStores.html +492 -0
  121. data/doc/SDM/Service.html +1 -1
  122. data/doc/SDM/Snowflake.html +22 -4
  123. data/doc/SDM/Sybase.html +22 -4
  124. data/doc/SDM/SybaseIQ.html +22 -4
  125. data/doc/SDM/Teradata.html +22 -4
  126. data/doc/SDM/UpdateResponseMetadata.html +1 -1
  127. data/doc/SDM/User.html +1 -1
  128. data/doc/SDM/VaultTLSStore.html +337 -0
  129. data/doc/SDM/VaultTokenStore.html +283 -0
  130. data/doc/V1.html +256 -1
  131. data/doc/V1/AccessRules.html +113 -0
  132. data/doc/V1/AccessRules/Service.html +119 -0
  133. data/doc/V1/AccountAttachments.html +1 -1
  134. data/doc/V1/AccountAttachments/Service.html +2 -2
  135. data/doc/V1/AccountGrants.html +1 -1
  136. data/doc/V1/AccountGrants/Service.html +1 -1
  137. data/doc/V1/Accounts.html +1 -1
  138. data/doc/V1/Accounts/Service.html +3 -3
  139. data/doc/V1/Audits.html +113 -0
  140. data/doc/V1/Audits/Service.html +119 -0
  141. data/doc/V1/ControlPanel.html +113 -0
  142. data/doc/V1/ControlPanel/Service.html +119 -0
  143. data/doc/V1/DemoProvisioningRequests.html +113 -0
  144. data/doc/V1/DemoProvisioningRequests/Service.html +119 -0
  145. data/doc/V1/Nodes.html +1 -1
  146. data/doc/V1/Nodes/Service.html +5 -5
  147. data/doc/V1/Resources.html +1 -1
  148. data/doc/V1/Resources/Service.html +1 -1
  149. data/doc/V1/RoleAttachments.html +1 -1
  150. data/doc/V1/RoleAttachments/Service.html +1 -1
  151. data/doc/V1/RoleGrants.html +1 -1
  152. data/doc/V1/RoleGrants/Service.html +1 -1
  153. data/doc/V1/Roles.html +1 -1
  154. data/doc/V1/Roles/Service.html +1 -1
  155. data/doc/V1/SecretStoreHealths.html +113 -0
  156. data/doc/V1/SecretStoreHealths/Service.html +119 -0
  157. data/doc/V1/SecretStores.html +113 -0
  158. data/doc/V1/SecretStores/Service.html +119 -0
  159. data/doc/V1/Tags.html +1 -1
  160. data/doc/created.rid +47 -38
  161. data/doc/css/rdoc.css +13 -5
  162. data/doc/examples/Gemfile.html +1 -3
  163. data/doc/index.html +47 -3
  164. data/doc/js/navigation.js.gz +0 -0
  165. data/doc/js/search_index.js +1 -1
  166. data/doc/js/search_index.js.gz +0 -0
  167. data/doc/js/searcher.js.gz +0 -0
  168. data/doc/lib/version.html +2 -4
  169. data/doc/table_of_contents.html +680 -240
  170. data/examples/Gemfile +2 -2
  171. data/examples/listUsers.rb +8 -8
  172. data/lib/errors/errors.rb +55 -53
  173. data/lib/grpc/access_rules_pb.rb +115 -0
  174. data/lib/grpc/access_rules_services_pb.rb +50 -0
  175. data/lib/grpc/account_attachments_pb.rb +7 -9
  176. data/lib/grpc/account_attachments_services_pb.rb +8 -9
  177. data/lib/grpc/account_grants_pb.rb +8 -10
  178. data/lib/grpc/account_grants_services_pb.rb +7 -8
  179. data/lib/grpc/accounts_pb.rb +8 -10
  180. data/lib/grpc/accounts_services_pb.rb +10 -12
  181. data/lib/grpc/audits_pb.rb +40 -0
  182. data/lib/grpc/audits_services_pb.rb +37 -0
  183. data/lib/grpc/control_panel_pb.rb +38 -0
  184. data/lib/grpc/control_panel_services_pb.rb +37 -0
  185. data/lib/grpc/demo_provisioning_requests_pb.rb +93 -0
  186. data/lib/grpc/demo_provisioning_requests_services_pb.rb +49 -0
  187. data/lib/grpc/drivers_pb.rb +68 -17
  188. data/lib/grpc/nodes_pb.rb +8 -10
  189. data/lib/grpc/nodes_services_pb.rb +10 -12
  190. data/lib/grpc/options_pb.rb +23 -5
  191. data/lib/grpc/plumbing.rb +4920 -4418
  192. data/lib/grpc/resources_pb.rb +8 -9
  193. data/lib/grpc/resources_services_pb.rb +7 -8
  194. data/lib/grpc/role_attachments_pb.rb +7 -9
  195. data/lib/grpc/role_attachments_services_pb.rb +7 -8
  196. data/lib/grpc/role_grants_pb.rb +7 -9
  197. data/lib/grpc/role_grants_services_pb.rb +7 -8
  198. data/lib/grpc/roles_pb.rb +8 -10
  199. data/lib/grpc/roles_services_pb.rb +7 -8
  200. data/lib/grpc/secret_store_healths_pb.rb +61 -0
  201. data/lib/grpc/secret_store_healths_services_pb.rb +39 -0
  202. data/lib/grpc/secret_store_types_pb.rb +60 -0
  203. data/lib/grpc/secret_stores_pb.rb +84 -0
  204. data/lib/grpc/secret_stores_services_pb.rb +44 -0
  205. data/lib/grpc/spec_pb.rb +7 -7
  206. data/lib/grpc/tags_pb.rb +6 -6
  207. data/lib/models/porcelain.rb +5645 -5348
  208. data/lib/strongdm.rb +98 -95
  209. data/lib/svc.rb +1414 -1221
  210. data/lib/version +1 -1
  211. data/lib/version.rb +1 -1
  212. data/strongdm.gemspec +10 -10
  213. metadata +43 -5
  214. data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +0 -15
@@ -1,3 +1,3 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'strongdm'
3
+ gem "strongdm"
@@ -1,21 +1,21 @@
1
1
  # Copyright 2020 StrongDM Inc
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+ #
15
15
  require "strongdm"
16
16
 
17
- client = SDM::Client.new(ENV['SDM_API_ACCESS_KEY'], ENV['SDM_API_SECRET_KEY'])
18
- users = client.accounts.list('')
17
+ client = SDM::Client.new(ENV["SDM_API_ACCESS_KEY"], ENV["SDM_API_SECRET_KEY"])
18
+ users = client.accounts.list("")
19
19
  users.each { |user|
20
- p user
21
- }
20
+ p user
21
+ }
@@ -1,85 +1,87 @@
1
1
  # Copyright 2020 StrongDM Inc
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+ #
15
15
  # This file was generated by protogen. DO NOT EDIT.
16
16
 
17
17
  module SDM
18
18
 
19
- # RPCError is a generic RPC error
20
- class RPCError < StandardError
21
- attr_reader :code
22
- def initialize(msg, code)
23
- @code = code
24
- super(msg)
25
- end
19
+ # RPCError is a generic RPC error
20
+ class RPCError < StandardError
21
+ attr_reader :code
22
+
23
+ def initialize(msg, code)
24
+ @code = code
25
+ super(msg)
26
26
  end
27
+ end
27
28
 
28
- # DeadlineExceededError indicates an RPC call timed out
29
- class DeadlineExceededError < RPCError
30
- def initialize(msg)
31
- super(msg, 4)
32
- end
29
+ # DeadlineExceededError indicates an RPC call timed out
30
+ class DeadlineExceededError < RPCError
31
+ def initialize(msg)
32
+ super(msg, 4)
33
33
  end
34
+ end
34
35
 
35
- # AlreadyExistsError is used when an entity already exists in the system
36
- class AlreadyExistsError < RPCError
37
- def initialize(msg)
38
- super(msg, 6)
39
- end
36
+ # AlreadyExistsError is used when an entity already exists in the system
37
+ class AlreadyExistsError < RPCError
38
+ def initialize(msg)
39
+ super(msg, 6)
40
40
  end
41
+ end
41
42
 
42
- # NotFoundError is used when an entity does not exist in the system
43
- class NotFoundError < RPCError
44
- def initialize(msg)
45
- super(msg, 5)
46
- end
43
+ # NotFoundError is used when an entity does not exist in the system
44
+ class NotFoundError < RPCError
45
+ def initialize(msg)
46
+ super(msg, 5)
47
47
  end
48
+ end
48
49
 
49
- # BadRequestError identifies a bad request sent by the client
50
- class BadRequestError < RPCError
51
- def initialize(msg)
52
- super(msg, 3)
53
- end
50
+ # BadRequestError identifies a bad request sent by the client
51
+ class BadRequestError < RPCError
52
+ def initialize(msg)
53
+ super(msg, 3)
54
54
  end
55
+ end
55
56
 
56
- # AuthenticationError is used to specify an authentication failure condition
57
- class AuthenticationError < RPCError
58
- def initialize(msg)
59
- super(msg, 16)
60
- end
57
+ # AuthenticationError is used to specify an authentication failure condition
58
+ class AuthenticationError < RPCError
59
+ def initialize(msg)
60
+ super(msg, 16)
61
61
  end
62
+ end
62
63
 
63
- # PermissionError is used to specify a permissions violation
64
- class PermissionError < RPCError
65
- def initialize(msg)
66
- super(msg, 7)
67
- end
64
+ # PermissionError is used to specify a permissions violation
65
+ class PermissionError < RPCError
66
+ def initialize(msg)
67
+ super(msg, 7)
68
68
  end
69
+ end
69
70
 
70
- # InternalError is used to specify an internal system error
71
- class InternalError < RPCError
72
- def initialize(msg)
73
- super(msg, 13)
74
- end
71
+ # InternalError is used to specify an internal system error
72
+ class InternalError < RPCError
73
+ def initialize(msg)
74
+ super(msg, 13)
75
75
  end
76
+ end
77
+
78
+ # RateLimitError is used for rate limit excess condition
79
+ class RateLimitError < RPCError
80
+ attr_reader :rate_limit
76
81
 
77
- # RateLimitError is used for rate limit excess condition
78
- class RateLimitError < RPCError
79
- attr_reader :rate_limit
80
- def initialize(msg, rate_limit)
81
- @rate_limit = rate_limit
82
- super(msg, 8)
83
- end
82
+ def initialize(msg, rate_limit)
83
+ @rate_limit = rate_limit
84
+ super(msg, 8)
84
85
  end
86
+ end
85
87
  end
@@ -0,0 +1,115 @@
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: access_rules.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "options_pb"
21
+ require "spec_pb"
22
+ require "tags_pb"
23
+ Google::Protobuf::DescriptorPool.generated_pool.build do
24
+ add_file("access_rules.proto", :syntax => :proto3) do
25
+ add_message "v1.AccessRuleCreateRequest" do
26
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
27
+ optional :access_rule, :message, 2, "v1.AccessRule"
28
+ end
29
+ add_message "v1.AccessRuleCreateResponse" do
30
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
31
+ optional :access_rule, :message, 2, "v1.AccessRule"
32
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
33
+ end
34
+ add_message "v1.AccessRuleGetRequest" do
35
+ optional :meta, :message, 1, "v1.GetRequestMetadata"
36
+ optional :id, :string, 2
37
+ end
38
+ add_message "v1.AccessRuleGetResponse" do
39
+ optional :meta, :message, 1, "v1.GetResponseMetadata"
40
+ optional :access_rule, :message, 2, "v1.AccessRule"
41
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
42
+ end
43
+ add_message "v1.AccessRuleUpdateRequest" do
44
+ optional :meta, :message, 1, "v1.UpdateRequestMetadata"
45
+ optional :id, :string, 2
46
+ optional :access_rule, :message, 3, "v1.AccessRule"
47
+ end
48
+ add_message "v1.AccessRuleUpdateResponse" do
49
+ optional :meta, :message, 1, "v1.UpdateResponseMetadata"
50
+ optional :access_rule, :message, 2, "v1.AccessRule"
51
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
52
+ end
53
+ add_message "v1.AccessRuleDeleteRequest" do
54
+ optional :meta, :message, 1, "v1.DeleteRequestMetadata"
55
+ optional :id, :string, 2
56
+ end
57
+ add_message "v1.AccessRuleDeleteResponse" do
58
+ optional :meta, :message, 1, "v1.DeleteResponseMetadata"
59
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
60
+ end
61
+ add_message "v1.AccessRuleListRequest" do
62
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
63
+ optional :filter, :string, 2
64
+ end
65
+ add_message "v1.AccessRuleListResponse" do
66
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
67
+ repeated :access_rules, :message, 2, "v1.AccessRule"
68
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
69
+ end
70
+ add_message "v1.AccessRule" do
71
+ optional :id, :string, 1
72
+ optional :resource_type, :string, 2
73
+ optional :role_id, :string, 3
74
+ repeated :resource_ids, :string, 4
75
+ optional :tags, :message, 5, "v1.Tags"
76
+ optional :affected_resources, :int64, 6
77
+ end
78
+ add_message "v1.AccessRulePlanRequest" do
79
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
80
+ optional :access_rule, :message, 2, "v1.AccessRule"
81
+ end
82
+ add_message "v1.AccessRulePlanResponse" do
83
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
84
+ optional :affected_resources, :int64, 2
85
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
86
+ end
87
+ add_message "v1.ApplyAccessRuleRequest" do
88
+ optional :meta, :message, 1, "v1.CreateRequestMetadata"
89
+ optional :role_id, :string, 2
90
+ repeated :access_rules, :message, 3, "v1.AccessRule"
91
+ end
92
+ add_message "v1.ApplyAccessRuleResponse" do
93
+ optional :meta, :message, 1, "v1.CreateResponseMetadata"
94
+ optional :rate_limit, :message, 2, "v1.RateLimitMetadata"
95
+ end
96
+ end
97
+ end
98
+
99
+ module V1
100
+ AccessRuleCreateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleCreateRequest").msgclass
101
+ AccessRuleCreateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleCreateResponse").msgclass
102
+ AccessRuleGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleGetRequest").msgclass
103
+ AccessRuleGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleGetResponse").msgclass
104
+ AccessRuleUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleUpdateRequest").msgclass
105
+ AccessRuleUpdateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleUpdateResponse").msgclass
106
+ AccessRuleDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleDeleteRequest").msgclass
107
+ AccessRuleDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleDeleteResponse").msgclass
108
+ AccessRuleListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleListRequest").msgclass
109
+ AccessRuleListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRuleListResponse").msgclass
110
+ AccessRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRule").msgclass
111
+ AccessRulePlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRulePlanRequest").msgclass
112
+ AccessRulePlanResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AccessRulePlanResponse").msgclass
113
+ ApplyAccessRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ApplyAccessRuleRequest").msgclass
114
+ ApplyAccessRuleResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ApplyAccessRuleResponse").msgclass
115
+ end
@@ -0,0 +1,50 @@
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: access_rules.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "access_rules_pb"
20
+
21
+ module V1
22
+ module AccessRules
23
+ # AccessRules allows the use of tags and other attributes to grant resources
24
+ # to roles. Each Role may have several access rules.
25
+ class Service
26
+ include GRPC::GenericService
27
+
28
+ self.marshal_class_method = :encode
29
+ self.unmarshal_class_method = :decode
30
+ self.service_name = "v1.AccessRules"
31
+
32
+ # Plan registers a new AccessRule.
33
+ rpc :Plan, AccessRulePlanRequest, AccessRulePlanResponse
34
+ # Create registers a new AccessRule.
35
+ rpc :Create, AccessRuleCreateRequest, AccessRuleCreateResponse
36
+ # Get reads one AccessRule by ID.
37
+ rpc :Get, AccessRuleGetRequest, AccessRuleGetResponse
38
+ # Update patches a AccessRule by ID.
39
+ rpc :Update, AccessRuleUpdateRequest, AccessRuleUpdateResponse
40
+ # Delete removes a AccessRule by ID.
41
+ rpc :Delete, AccessRuleDeleteRequest, AccessRuleDeleteResponse
42
+ # List gets a list of Access Rules matching a given set of criteria.
43
+ rpc :List, AccessRuleListRequest, AccessRuleListResponse
44
+ # Apply resets a role and apply all given access rules.
45
+ rpc :Apply, ApplyAccessRuleRequest, ApplyAccessRuleResponse
46
+ end
47
+
48
+ Stub = Service.rpc_stub_class
49
+ end
50
+ end
@@ -1,26 +1,24 @@
1
1
  # Copyright 2020 StrongDM Inc
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+ #
15
15
  # Generated by the protocol buffer compiler. DO NOT EDIT!
16
16
  # source: account_attachments.proto
17
17
 
18
- require 'google/protobuf'
18
+ require "google/protobuf"
19
19
 
20
- require 'google/api/annotations_pb'
21
- require 'protoc-gen-swagger/options/annotations_pb'
22
- require 'options_pb'
23
- require 'spec_pb'
20
+ require "options_pb"
21
+ require "spec_pb"
24
22
  Google::Protobuf::DescriptorPool.generated_pool.build do
25
23
  add_file("account_attachments.proto", :syntax => :proto3) do
26
24
  add_message "v1.AccountAttachmentCreateRequest" do
@@ -1,33 +1,32 @@
1
1
  # Copyright 2020 StrongDM Inc
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+ #
15
15
  # Generated by the protocol buffer compiler. DO NOT EDIT!
16
16
  # Source: account_attachments.proto for package 'v1'
17
17
 
18
- require 'grpc'
19
- require 'account_attachments_pb'
18
+ require "grpc"
19
+ require "account_attachments_pb"
20
20
 
21
21
  module V1
22
22
  module AccountAttachments
23
- # AccountAttachments assign an account to a role.
23
+ # AccountAttachments assign an account to a role or composite role.
24
24
  class Service
25
-
26
25
  include GRPC::GenericService
27
26
 
28
27
  self.marshal_class_method = :encode
29
28
  self.unmarshal_class_method = :decode
30
- self.service_name = 'v1.AccountAttachments'
29
+ self.service_name = "v1.AccountAttachments"
31
30
 
32
31
  # Create registers a new AccountAttachment.
33
32
  rpc :Create, AccountAttachmentCreateRequest, AccountAttachmentCreateResponse
@@ -1,27 +1,25 @@
1
1
  # Copyright 2020 StrongDM Inc
2
- #
2
+ #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
- #
6
+ #
7
7
  # http://www.apache.org/licenses/LICENSE-2.0
8
- #
8
+ #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- #
14
+ #
15
15
  # Generated by the protocol buffer compiler. DO NOT EDIT!
16
16
  # source: account_grants.proto
17
17
 
18
- require 'google/protobuf'
18
+ require "google/protobuf"
19
19
 
20
- require 'google/api/annotations_pb'
21
- require 'protoc-gen-swagger/options/annotations_pb'
22
- require 'google/protobuf/timestamp_pb'
23
- require 'options_pb'
24
- require 'spec_pb'
20
+ require "google/protobuf/timestamp_pb"
21
+ require "options_pb"
22
+ require "spec_pb"
25
23
  Google::Protobuf::DescriptorPool.generated_pool.build do
26
24
  add_file("account_grants.proto", :syntax => :proto3) do
27
25
  add_message "v1.AccountGrantCreateRequest" do