strongdm 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.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +30 -0
- data/doc/Google.html +95 -0
- data/doc/Google/Protobuf.html +95 -0
- data/doc/LICENSE.html +294 -0
- data/doc/Object.html +290 -0
- data/doc/README_md.html +128 -0
- data/doc/SDM.html +143 -0
- data/doc/SDM/AKS.html +347 -0
- data/doc/SDM/AKSBasicAuth.html +279 -0
- data/doc/SDM/AKSServiceAccount.html +262 -0
- data/doc/SDM/AccountAttachment.html +217 -0
- data/doc/SDM/AccountAttachmentCreateOptions.html +182 -0
- data/doc/SDM/AccountAttachmentCreateResponse.html +216 -0
- data/doc/SDM/AccountAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/AccountAttachmentGetResponse.html +215 -0
- data/doc/SDM/AccountAttachments.html +429 -0
- data/doc/SDM/AccountCreateResponse.html +232 -0
- data/doc/SDM/AccountDeleteResponse.html +197 -0
- data/doc/SDM/AccountGetResponse.html +214 -0
- data/doc/SDM/AccountGrant.html +253 -0
- data/doc/SDM/AccountGrantCreateResponse.html +215 -0
- data/doc/SDM/AccountGrantDeleteResponse.html +198 -0
- data/doc/SDM/AccountGrantGetResponse.html +214 -0
- data/doc/SDM/AccountGrants.html +425 -0
- data/doc/SDM/AccountUpdateResponse.html +214 -0
- data/doc/SDM/Accounts.html +492 -0
- data/doc/SDM/AlreadyExistsError.html +161 -0
- data/doc/SDM/AmazonEKS.html +330 -0
- data/doc/SDM/AmazonES.html +296 -0
- data/doc/SDM/Athena.html +296 -0
- data/doc/SDM/AuroraMysql.html +313 -0
- data/doc/SDM/AuroraPostgres.html +330 -0
- data/doc/SDM/AuthenticationError.html +161 -0
- data/doc/SDM/BadRequestError.html +161 -0
- data/doc/SDM/BigQuery.html +296 -0
- data/doc/SDM/Cassandra.html +313 -0
- data/doc/SDM/Client.html +549 -0
- data/doc/SDM/Clustrix.html +313 -0
- data/doc/SDM/Cockroach.html +330 -0
- data/doc/SDM/CreateResponseMetadata.html +156 -0
- data/doc/SDM/DeadlineExceededError.html +161 -0
- data/doc/SDM/DeleteResponseMetadata.html +156 -0
- data/doc/SDM/Druid.html +296 -0
- data/doc/SDM/DynamoDB.html +296 -0
- data/doc/SDM/Elastic.html +313 -0
- data/doc/SDM/ElasticacheRedis.html +296 -0
- data/doc/SDM/Gateway.html +252 -0
- data/doc/SDM/GetResponseMetadata.html +156 -0
- data/doc/SDM/GoogleGKE.html +296 -0
- data/doc/SDM/Greenplum.html +330 -0
- data/doc/SDM/HTTPAuth.html +313 -0
- data/doc/SDM/HTTPBasicAuth.html +330 -0
- data/doc/SDM/HTTPNoAuth.html +296 -0
- data/doc/SDM/InternalError.html +161 -0
- data/doc/SDM/Kubernetes.html +347 -0
- data/doc/SDM/KubernetesBasicAuth.html +279 -0
- data/doc/SDM/KubernetesServiceAccount.html +262 -0
- data/doc/SDM/Maria.html +313 -0
- data/doc/SDM/Memcached.html +262 -0
- data/doc/SDM/Memsql.html +313 -0
- data/doc/SDM/MongoHost.html +330 -0
- data/doc/SDM/MongoLegacyHost.html +347 -0
- data/doc/SDM/MongoLegacyReplicaset.html +364 -0
- data/doc/SDM/MongoReplicaSet.html +364 -0
- data/doc/SDM/Mysql.html +313 -0
- data/doc/SDM/NodeCreateResponse.html +232 -0
- data/doc/SDM/NodeDeleteResponse.html +197 -0
- data/doc/SDM/NodeGetResponse.html +214 -0
- data/doc/SDM/NodeUpdateResponse.html +214 -0
- data/doc/SDM/Nodes.html +493 -0
- data/doc/SDM/NotFoundError.html +161 -0
- data/doc/SDM/Oracle.html +330 -0
- data/doc/SDM/PermissionError.html +161 -0
- data/doc/SDM/Plumbing.html +15821 -0
- data/doc/SDM/Postgres.html +330 -0
- data/doc/SDM/Presto.html +330 -0
- data/doc/SDM/RDP.html +296 -0
- data/doc/SDM/RPCError.html +182 -0
- data/doc/SDM/RateLimitError.html +183 -0
- data/doc/SDM/RateLimitMetadata.html +233 -0
- data/doc/SDM/Redis.html +279 -0
- data/doc/SDM/Redshift.html +330 -0
- data/doc/SDM/Relay.html +216 -0
- data/doc/SDM/ResourceCreateResponse.html +214 -0
- data/doc/SDM/ResourceDeleteResponse.html +197 -0
- data/doc/SDM/ResourceGetResponse.html +214 -0
- data/doc/SDM/ResourceUpdateResponse.html +215 -0
- data/doc/SDM/Resources.html +482 -0
- data/doc/SDM/Role.html +216 -0
- data/doc/SDM/RoleAttachment.html +216 -0
- data/doc/SDM/RoleAttachmentCreateResponse.html +216 -0
- data/doc/SDM/RoleAttachmentDeleteResponse.html +199 -0
- data/doc/SDM/RoleAttachmentGetResponse.html +214 -0
- data/doc/SDM/RoleAttachments.html +427 -0
- data/doc/SDM/RoleCreateResponse.html +215 -0
- data/doc/SDM/RoleDeleteResponse.html +197 -0
- data/doc/SDM/RoleGetResponse.html +214 -0
- data/doc/SDM/RoleGrant.html +214 -0
- data/doc/SDM/RoleGrantCreateResponse.html +215 -0
- data/doc/SDM/RoleGrantDeleteResponse.html +198 -0
- data/doc/SDM/RoleGrantGetResponse.html +214 -0
- data/doc/SDM/RoleGrants.html +427 -0
- data/doc/SDM/RoleUpdateResponse.html +215 -0
- data/doc/SDM/Roles.html +490 -0
- data/doc/SDM/SQLServer.html +347 -0
- data/doc/SDM/SSH.html +296 -0
- data/doc/SDM/Service.html +215 -0
- data/doc/SDM/Snowflake.html +313 -0
- data/doc/SDM/Sybase.html +296 -0
- data/doc/SDM/SybaseIQ.html +296 -0
- data/doc/SDM/Teradata.html +296 -0
- data/doc/SDM/UpdateResponseMetadata.html +156 -0
- data/doc/SDM/User.html +248 -0
- data/doc/V1.html +864 -0
- data/doc/V1/AccountAttachments.html +109 -0
- data/doc/V1/AccountAttachments/Service.html +116 -0
- data/doc/V1/AccountGrants.html +109 -0
- data/doc/V1/AccountGrants/Service.html +117 -0
- data/doc/V1/Accounts.html +109 -0
- data/doc/V1/Accounts/Service.html +122 -0
- data/doc/V1/Nodes.html +109 -0
- data/doc/V1/Nodes/Service.html +124 -0
- data/doc/V1/Resources.html +109 -0
- data/doc/V1/Resources/Service.html +113 -0
- data/doc/V1/RoleAttachments.html +109 -0
- data/doc/V1/RoleAttachments/Service.html +119 -0
- data/doc/V1/RoleGrants.html +109 -0
- data/doc/V1/RoleGrants/Service.html +119 -0
- data/doc/V1/Roles.html +109 -0
- data/doc/V1/Roles/Service.html +120 -0
- data/doc/created.rid +37 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/examples/Gemfile.html +95 -0
- data/doc/examples/Gemfile_lock.html +112 -0
- data/doc/examples/README_md.html +95 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +353 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +98 -0
- data/doc/strongdm_gemspec.html +117 -0
- data/doc/table_of_contents.html +3002 -0
- data/examples/Gemfile +3 -0
- data/examples/Gemfile.lock +14 -0
- data/examples/README.md +5 -0
- data/examples/listUsers.rb +21 -0
- data/examples/panicButton.rb +154 -0
- data/lib/errors/errors.rb +85 -0
- data/lib/grpc/account_attachments_pb.rb +84 -0
- data/lib/grpc/account_attachments_services_pb.rb +44 -0
- data/lib/grpc/account_grants_pb.rb +82 -0
- data/lib/grpc/account_grants_services_pb.rb +44 -0
- data/lib/grpc/accounts_pb.rb +107 -0
- data/lib/grpc/accounts_services_pb.rb +49 -0
- data/lib/grpc/drivers_pb.rb +601 -0
- data/lib/grpc/nodes_pb.rb +107 -0
- data/lib/grpc/nodes_services_pb.rb +49 -0
- data/lib/grpc/options_pb.rb +60 -0
- data/lib/grpc/plumbing.rb +4283 -0
- data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +15 -0
- data/lib/grpc/resources_pb.rb +85 -0
- data/lib/grpc/resources_services_pb.rb +45 -0
- data/lib/grpc/role_attachments_pb.rb +79 -0
- data/lib/grpc/role_attachments_services_pb.rb +47 -0
- data/lib/grpc/role_grants_pb.rb +79 -0
- data/lib/grpc/role_grants_services_pb.rb +47 -0
- data/lib/grpc/roles_pb.rb +91 -0
- data/lib/grpc/roles_services_pb.rb +50 -0
- data/lib/grpc/spec_pb.rb +95 -0
- data/lib/models/porcelain.rb +4033 -0
- data/lib/strongdm.rb +128 -0
- data/lib/svc.rb +1331 -0
- data/lib/version +3 -0
- data/lib/version.rb +17 -0
- data/strongdm.gemspec +23 -0
- 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
|