strongdm 1.0.11 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/LICENSE.html +1 -3
- data/doc/Object.html +1 -1
- data/doc/README_md.html +1 -3
- data/doc/SDM.html +1 -1
- data/doc/SDM/AKS.html +22 -4
- data/doc/SDM/AKSBasicAuth.html +22 -4
- data/doc/SDM/AKSServiceAccount.html +22 -4
- data/doc/SDM/{DB2.html → AWS.html} +38 -56
- data/doc/SDM/AWSStore.html +283 -0
- data/doc/SDM/AccessRuleCreateResponse.html +267 -0
- data/doc/SDM/AccessRuleDeleteResponse.html +249 -0
- data/doc/SDM/AccessRuleUpdateResponse.html +267 -0
- data/doc/SDM/AccountAttachment.html +2 -2
- data/doc/SDM/AccountAttachmentCreateResponse.html +1 -1
- data/doc/SDM/AccountAttachmentDeleteResponse.html +1 -1
- data/doc/SDM/AccountAttachmentGetResponse.html +1 -1
- data/doc/SDM/AccountAttachments.html +2 -2
- data/doc/SDM/AccountCreateResponse.html +1 -1
- data/doc/SDM/AccountDeleteResponse.html +1 -1
- data/doc/SDM/AccountGetResponse.html +1 -1
- data/doc/SDM/AccountGrant.html +1 -1
- data/doc/SDM/AccountGrantCreateResponse.html +1 -1
- data/doc/SDM/AccountGrantDeleteResponse.html +1 -1
- data/doc/SDM/AccountGrantGetResponse.html +1 -1
- data/doc/SDM/AccountGrants.html +1 -1
- data/doc/SDM/AccountUpdateResponse.html +1 -1
- data/doc/SDM/Accounts.html +9 -9
- data/doc/SDM/AlreadyExistsError.html +1 -1
- data/doc/SDM/AmazonEKS.html +22 -4
- data/doc/SDM/AmazonES.html +22 -4
- data/doc/SDM/Athena.html +22 -4
- data/doc/SDM/AuroraMysql.html +22 -4
- data/doc/SDM/AuroraPostgres.html +22 -4
- data/doc/SDM/AuthenticationError.html +1 -1
- data/doc/SDM/BadRequestError.html +1 -1
- data/doc/SDM/BigQuery.html +22 -4
- data/doc/SDM/Cassandra.html +22 -4
- data/doc/SDM/Citus.html +22 -4
- data/doc/SDM/Client.html +42 -14
- data/doc/SDM/Clustrix.html +22 -4
- data/doc/SDM/Cockroach.html +22 -4
- data/doc/SDM/ControlPanel.html +236 -0
- data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +267 -0
- data/doc/SDM/CreateResponseMetadata.html +1 -1
- data/doc/SDM/DB2LUW.html +22 -4
- data/doc/SDM/DB2i.html +22 -4
- data/doc/SDM/DeadlineExceededError.html +1 -1
- data/doc/SDM/DeleteResponseMetadata.html +1 -1
- data/doc/SDM/Druid.html +22 -4
- data/doc/SDM/DynamoDB.html +22 -4
- data/doc/SDM/Elastic.html +22 -4
- data/doc/SDM/ElasticacheRedis.html +22 -4
- data/doc/SDM/Gateway.html +4 -4
- data/doc/SDM/GetResponseMetadata.html +1 -1
- data/doc/SDM/GoogleGKE.html +22 -4
- data/doc/SDM/Greenplum.html +22 -4
- data/doc/SDM/HTTPAuth.html +22 -4
- data/doc/SDM/HTTPBasicAuth.html +22 -4
- data/doc/SDM/HTTPNoAuth.html +22 -4
- data/doc/SDM/InternalError.html +1 -1
- data/doc/SDM/Kubernetes.html +22 -4
- data/doc/SDM/KubernetesBasicAuth.html +22 -4
- data/doc/SDM/KubernetesServiceAccount.html +22 -4
- data/doc/SDM/Maria.html +22 -4
- data/doc/SDM/Memcached.html +22 -4
- data/doc/SDM/Memsql.html +22 -4
- data/doc/SDM/MongoHost.html +22 -4
- data/doc/SDM/MongoLegacyHost.html +22 -4
- data/doc/SDM/MongoLegacyReplicaset.html +22 -4
- data/doc/SDM/MongoReplicaSet.html +22 -4
- data/doc/SDM/Mysql.html +22 -4
- data/doc/SDM/NodeCreateResponse.html +3 -3
- data/doc/SDM/NodeDeleteResponse.html +3 -3
- data/doc/SDM/NodeGetResponse.html +3 -3
- data/doc/SDM/NodeUpdateResponse.html +3 -3
- data/doc/SDM/Nodes.html +11 -11
- data/doc/SDM/NotFoundError.html +1 -1
- data/doc/SDM/Oracle.html +22 -4
- data/doc/SDM/PermissionError.html +1 -1
- data/doc/SDM/Plumbing.html +2915 -1127
- data/doc/SDM/Postgres.html +22 -4
- data/doc/SDM/Presto.html +22 -4
- data/doc/SDM/RDP.html +22 -4
- data/doc/SDM/RPCError.html +1 -1
- data/doc/SDM/RateLimitError.html +1 -1
- data/doc/SDM/RateLimitMetadata.html +1 -1
- data/doc/SDM/Redis.html +22 -4
- data/doc/SDM/Redshift.html +22 -4
- data/doc/SDM/Relay.html +4 -4
- data/doc/SDM/ResourceCreateResponse.html +3 -3
- data/doc/SDM/ResourceDeleteResponse.html +3 -3
- data/doc/SDM/ResourceGetResponse.html +3 -3
- data/doc/SDM/ResourceUpdateResponse.html +3 -3
- data/doc/SDM/Resources.html +7 -7
- data/doc/SDM/Role.html +4 -4
- data/doc/SDM/RoleAttachment.html +3 -3
- data/doc/SDM/RoleAttachmentCreateResponse.html +3 -3
- data/doc/SDM/RoleAttachmentDeleteResponse.html +3 -3
- data/doc/SDM/RoleAttachmentGetResponse.html +3 -3
- data/doc/SDM/RoleAttachments.html +6 -6
- data/doc/SDM/RoleCreateResponse.html +3 -3
- data/doc/SDM/RoleDeleteResponse.html +3 -3
- data/doc/SDM/RoleGetResponse.html +3 -3
- data/doc/SDM/RoleGrant.html +3 -3
- data/doc/SDM/RoleGrantCreateResponse.html +3 -3
- data/doc/SDM/RoleGrantDeleteResponse.html +3 -3
- data/doc/SDM/RoleGrantGetResponse.html +3 -3
- data/doc/SDM/RoleGrants.html +6 -6
- data/doc/SDM/RoleUpdateResponse.html +3 -3
- data/doc/SDM/Roles.html +7 -7
- data/doc/SDM/SQLServer.html +22 -4
- data/doc/SDM/SSH.html +22 -4
- data/doc/SDM/SSHCert.html +22 -4
- data/doc/SDM/SecretStore.html +303 -0
- data/doc/SDM/SecretStoreCreateResponse.html +267 -0
- data/doc/SDM/SecretStoreDeleteResponse.html +249 -0
- data/doc/SDM/SecretStoreGetResponse.html +267 -0
- data/doc/SDM/SecretStoreUpdateResponse.html +267 -0
- data/doc/SDM/SecretStores.html +492 -0
- data/doc/SDM/Service.html +1 -1
- data/doc/SDM/Snowflake.html +22 -4
- data/doc/SDM/Sybase.html +22 -4
- data/doc/SDM/SybaseIQ.html +22 -4
- data/doc/SDM/Teradata.html +22 -4
- data/doc/SDM/UpdateResponseMetadata.html +1 -1
- data/doc/SDM/User.html +1 -1
- data/doc/SDM/VaultTLSStore.html +337 -0
- data/doc/SDM/VaultTokenStore.html +283 -0
- data/doc/V1.html +301 -1
- data/doc/V1/AccessRules.html +113 -0
- data/doc/V1/AccessRules/Service.html +119 -0
- data/doc/V1/AccountAttachments.html +1 -1
- data/doc/V1/AccountAttachments/Service.html +2 -2
- data/doc/V1/AccountGrants.html +1 -1
- data/doc/V1/AccountGrants/Service.html +1 -1
- data/doc/V1/Accounts.html +1 -1
- data/doc/V1/Accounts/Service.html +3 -3
- data/doc/V1/Audits.html +113 -0
- data/doc/V1/Audits/Service.html +119 -0
- data/doc/V1/BuildsPrivate.html +113 -0
- data/doc/V1/BuildsPrivate/Service.html +119 -0
- data/doc/V1/ControlPanel.html +113 -0
- data/doc/V1/ControlPanel/Service.html +119 -0
- data/doc/V1/DemoProvisioningRequests.html +113 -0
- data/doc/V1/DemoProvisioningRequests/Service.html +119 -0
- data/doc/V1/Nodes.html +1 -1
- data/doc/V1/Nodes/Service.html +5 -5
- data/doc/V1/Resources.html +1 -1
- data/doc/V1/Resources/Service.html +1 -1
- data/doc/V1/RoleAttachments.html +1 -1
- data/doc/V1/RoleAttachments/Service.html +1 -1
- data/doc/V1/RoleGrants.html +1 -1
- data/doc/V1/RoleGrants/Service.html +1 -1
- data/doc/V1/Roles.html +1 -1
- data/doc/V1/Roles/Service.html +1 -1
- data/doc/V1/SecretStoreHealths.html +113 -0
- data/doc/V1/SecretStoreHealths/Service.html +119 -0
- data/doc/V1/SecretStores.html +113 -0
- data/doc/V1/SecretStores/Service.html +119 -0
- data/doc/V1/Tags.html +1 -1
- data/doc/created.rid +51 -39
- data/doc/css/rdoc.css +13 -5
- data/doc/examples/Gemfile.html +1 -3
- data/doc/index.html +51 -3
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +2 -4
- data/doc/table_of_contents.html +686 -236
- data/examples/Gemfile +2 -2
- data/examples/listUsers.rb +8 -8
- data/lib/errors/errors.rb +55 -53
- data/lib/grpc/account_attachments_pb.rb +7 -9
- data/lib/grpc/account_attachments_services_pb.rb +12 -13
- data/lib/grpc/account_grants_pb.rb +8 -10
- data/lib/grpc/account_grants_services_pb.rb +11 -12
- data/lib/grpc/accounts_pb.rb +8 -10
- data/lib/grpc/accounts_services_pb.rb +15 -17
- data/lib/grpc/control_panel_pb.rb +38 -0
- data/lib/grpc/control_panel_services_pb.rb +37 -0
- data/lib/grpc/demo_provisioning_requests_pb.rb +93 -0
- data/lib/grpc/demo_provisioning_requests_services_pb.rb +49 -0
- data/lib/grpc/drivers_pb.rb +68 -8
- data/lib/grpc/nodes_pb.rb +8 -10
- data/lib/grpc/nodes_services_pb.rb +15 -17
- data/lib/grpc/options_pb.rb +23 -5
- data/lib/grpc/plumbing.rb +4904 -4387
- data/lib/grpc/resources_pb.rb +8 -9
- data/lib/grpc/resources_services_pb.rb +12 -13
- data/lib/grpc/role_attachments_pb.rb +7 -9
- data/lib/grpc/role_attachments_services_pb.rb +11 -12
- data/lib/grpc/role_grants_pb.rb +7 -9
- data/lib/grpc/role_grants_services_pb.rb +11 -12
- data/lib/grpc/roles_pb.rb +8 -10
- data/lib/grpc/roles_services_pb.rb +12 -13
- data/lib/grpc/secret_store_types_pb.rb +60 -0
- data/lib/grpc/secret_stores_pb.rb +84 -0
- data/lib/grpc/secret_stores_services_pb.rb +44 -0
- data/lib/grpc/spec_pb.rb +7 -7
- data/lib/grpc/tags_pb.rb +6 -6
- data/lib/models/porcelain.rb +671 -5354
- data/lib/strongdm.rb +98 -95
- data/lib/svc.rb +1414 -1221
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- data/strongdm.gemspec +10 -10
- metadata +39 -5
- data/lib/grpc/protoc-gen-swagger/options/annotations_pb.rb +0 -15
data/examples/Gemfile
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
source
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gem
|
3
|
+
gem "strongdm"
|
data/examples/listUsers.rb
CHANGED
@@ -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[
|
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
|
-
|
21
|
-
}
|
20
|
+
p user
|
21
|
+
}
|
data/lib/errors/errors.rb
CHANGED
@@ -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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
-
|
78
|
-
|
79
|
-
|
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
|
@@ -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
|
18
|
+
require "google/protobuf"
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
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,42 +1,41 @@
|
|
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
|
19
|
-
require
|
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 =
|
29
|
+
self.service_name = "v1.AccountAttachments"
|
31
30
|
|
32
31
|
# Create registers a new AccountAttachment.
|
33
|
-
rpc :Create, AccountAttachmentCreateRequest, AccountAttachmentCreateResponse
|
32
|
+
rpc :Create, ::V1::AccountAttachmentCreateRequest, ::V1::AccountAttachmentCreateResponse
|
34
33
|
# Get reads one AccountAttachment by ID.
|
35
|
-
rpc :Get, AccountAttachmentGetRequest, AccountAttachmentGetResponse
|
34
|
+
rpc :Get, ::V1::AccountAttachmentGetRequest, ::V1::AccountAttachmentGetResponse
|
36
35
|
# Delete removes a AccountAttachment by ID.
|
37
|
-
rpc :Delete, AccountAttachmentDeleteRequest, AccountAttachmentDeleteResponse
|
36
|
+
rpc :Delete, ::V1::AccountAttachmentDeleteRequest, ::V1::AccountAttachmentDeleteResponse
|
38
37
|
# List gets a list of AccountAttachments matching a given set of criteria.
|
39
|
-
rpc :List, AccountAttachmentListRequest, AccountAttachmentListResponse
|
38
|
+
rpc :List, ::V1::AccountAttachmentListRequest, ::V1::AccountAttachmentListResponse
|
40
39
|
end
|
41
40
|
|
42
41
|
Stub = Service.rpc_stub_class
|
@@ -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
|
18
|
+
require "google/protobuf"
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
22
|
-
require
|
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
|
@@ -1,42 +1,41 @@
|
|
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 for package 'v1'
|
17
17
|
|
18
|
-
require
|
19
|
-
require
|
18
|
+
require "grpc"
|
19
|
+
require "account_grants_pb"
|
20
20
|
|
21
21
|
module V1
|
22
22
|
module AccountGrants
|
23
23
|
# AccountGrants assign a resource directly to an account, giving the account the permission to connect to that resource.
|
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 =
|
29
|
+
self.service_name = "v1.AccountGrants"
|
31
30
|
|
32
31
|
# Create registers a new AccountGrant.
|
33
|
-
rpc :Create, AccountGrantCreateRequest, AccountGrantCreateResponse
|
32
|
+
rpc :Create, ::V1::AccountGrantCreateRequest, ::V1::AccountGrantCreateResponse
|
34
33
|
# Get reads one AccountGrant by ID.
|
35
|
-
rpc :Get, AccountGrantGetRequest, AccountGrantGetResponse
|
34
|
+
rpc :Get, ::V1::AccountGrantGetRequest, ::V1::AccountGrantGetResponse
|
36
35
|
# Delete removes a AccountGrant by ID.
|
37
|
-
rpc :Delete, AccountGrantDeleteRequest, AccountGrantDeleteResponse
|
36
|
+
rpc :Delete, ::V1::AccountGrantDeleteRequest, ::V1::AccountGrantDeleteResponse
|
38
37
|
# List gets a list of AccountGrants matching a given set of criteria.
|
39
|
-
rpc :List, AccountGrantListRequest, AccountGrantListResponse
|
38
|
+
rpc :List, ::V1::AccountGrantListRequest, ::V1::AccountGrantListResponse
|
40
39
|
end
|
41
40
|
|
42
41
|
Stub = Service.rpc_stub_class
|
data/lib/grpc/accounts_pb.rb
CHANGED
@@ -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: accounts.proto
|
17
17
|
|
18
|
-
require
|
18
|
+
require "google/protobuf"
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
22
|
-
require
|
23
|
-
require 'spec_pb'
|
24
|
-
require 'tags_pb'
|
20
|
+
require "options_pb"
|
21
|
+
require "spec_pb"
|
22
|
+
require "tags_pb"
|
25
23
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
26
24
|
add_file("accounts.proto", :syntax => :proto3) do
|
27
25
|
add_message "v1.AccountCreateRequest" do
|
@@ -1,47 +1,45 @@
|
|
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: accounts.proto for package 'v1'
|
17
17
|
|
18
|
-
require
|
19
|
-
require
|
18
|
+
require "grpc"
|
19
|
+
require "accounts_pb"
|
20
20
|
|
21
21
|
module V1
|
22
22
|
module Accounts
|
23
|
-
# Accounts are users that have access to strongDM.
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# 2. **Service users:** machines that are authneticated using a service token
|
23
|
+
# Accounts are users that have access to strongDM. There are two types of accounts:
|
24
|
+
# 1. **Users:** humans who are authenticated through username and password or SSO.
|
25
|
+
# 2. **Service Accounts:** machines that are authenticated using a service token.
|
27
26
|
class Service
|
28
|
-
|
29
27
|
include GRPC::GenericService
|
30
28
|
|
31
29
|
self.marshal_class_method = :encode
|
32
30
|
self.unmarshal_class_method = :decode
|
33
|
-
self.service_name =
|
31
|
+
self.service_name = "v1.Accounts"
|
34
32
|
|
35
33
|
# Create registers a new Account.
|
36
|
-
rpc :Create, AccountCreateRequest, AccountCreateResponse
|
34
|
+
rpc :Create, ::V1::AccountCreateRequest, ::V1::AccountCreateResponse
|
37
35
|
# Get reads one Account by ID.
|
38
|
-
rpc :Get, AccountGetRequest, AccountGetResponse
|
36
|
+
rpc :Get, ::V1::AccountGetRequest, ::V1::AccountGetResponse
|
39
37
|
# Update patches a Account by ID.
|
40
|
-
rpc :Update, AccountUpdateRequest, AccountUpdateResponse
|
38
|
+
rpc :Update, ::V1::AccountUpdateRequest, ::V1::AccountUpdateResponse
|
41
39
|
# Delete removes a Account by ID.
|
42
|
-
rpc :Delete, AccountDeleteRequest, AccountDeleteResponse
|
40
|
+
rpc :Delete, ::V1::AccountDeleteRequest, ::V1::AccountDeleteResponse
|
43
41
|
# List gets a list of Accounts matching a given set of criteria.
|
44
|
-
rpc :List, AccountListRequest, AccountListResponse
|
42
|
+
rpc :List, ::V1::AccountListRequest, ::V1::AccountListResponse
|
45
43
|
end
|
46
44
|
|
47
45
|
Stub = Service.rpc_stub_class
|