strongdm 3.6.1 → 3.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.git/ORIG_HEAD +1 -1
  3. data/.git/index +0 -0
  4. data/.git/logs/HEAD +3 -3
  5. data/.git/logs/refs/heads/master +2 -2
  6. data/.git/logs/refs/remotes/origin/HEAD +1 -1
  7. data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.idx → pack-2d53a487ade528ef84cbb5c91cde76bf875d9e95.idx} +0 -0
  8. data/.git/objects/pack/{pack-c0eff6575c38c9865988c2b59ce4060fff518355.pack → pack-2d53a487ade528ef84cbb5c91cde76bf875d9e95.pack} +0 -0
  9. data/.git/packed-refs +4 -2
  10. data/.git/refs/heads/master +1 -1
  11. data/lib/constants.rb +311 -0
  12. data/lib/errors/errors.rb +1 -1
  13. data/lib/grpc/account_attachments_history_pb.rb +48 -0
  14. data/lib/grpc/account_attachments_history_services_pb.rb +37 -0
  15. data/lib/grpc/account_grants_history_pb.rb +48 -0
  16. data/lib/grpc/account_grants_history_services_pb.rb +37 -0
  17. data/lib/grpc/account_permissions_pb.rb +48 -0
  18. data/lib/grpc/account_permissions_services_pb.rb +38 -0
  19. data/lib/grpc/account_resources_pb.rb +49 -0
  20. data/lib/grpc/account_resources_services_pb.rb +38 -0
  21. data/lib/grpc/accounts_history_pb.rb +48 -0
  22. data/lib/grpc/accounts_history_services_pb.rb +37 -0
  23. data/lib/grpc/activities_pb.rb +77 -0
  24. data/lib/grpc/activities_services_pb.rb +41 -0
  25. data/lib/grpc/drivers_pb.rb +66 -0
  26. data/lib/grpc/nodes_history_pb.rb +48 -0
  27. data/lib/grpc/nodes_history_services_pb.rb +37 -0
  28. data/lib/grpc/organization_history_pb.rb +74 -0
  29. data/lib/grpc/organization_history_services_pb.rb +37 -0
  30. data/lib/grpc/plumbing.rb +1106 -1
  31. data/lib/grpc/queries_pb.rb +67 -0
  32. data/lib/grpc/queries_services_pb.rb +39 -0
  33. data/lib/grpc/remote_identities_history_pb.rb +48 -0
  34. data/lib/grpc/remote_identities_history_services_pb.rb +37 -0
  35. data/lib/grpc/remote_identity_groups_history_pb.rb +48 -0
  36. data/lib/grpc/remote_identity_groups_history_services_pb.rb +37 -0
  37. data/lib/grpc/replays_pb.rb +50 -0
  38. data/lib/grpc/replays_services_pb.rb +38 -0
  39. data/lib/grpc/resources_history_pb.rb +48 -0
  40. data/lib/grpc/resources_history_services_pb.rb +37 -0
  41. data/lib/grpc/role_resources_history_pb.rb +48 -0
  42. data/lib/grpc/role_resources_history_services_pb.rb +37 -0
  43. data/lib/grpc/role_resources_pb.rb +46 -0
  44. data/lib/grpc/role_resources_services_pb.rb +38 -0
  45. data/lib/grpc/roles_history_pb.rb +48 -0
  46. data/lib/grpc/roles_history_services_pb.rb +37 -0
  47. data/lib/grpc/secret_stores_history_pb.rb +48 -0
  48. data/lib/grpc/secret_stores_history_services_pb.rb +37 -0
  49. data/lib/models/porcelain.rb +1177 -1
  50. data/lib/strongdm.rb +220 -2
  51. data/lib/svc.rb +1556 -121
  52. data/lib/version +1 -1
  53. data/lib/version.rb +1 -1
  54. metadata +38 -4
@@ -0,0 +1,67 @@
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: queries.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/duration_pb"
21
+ require "google/protobuf/timestamp_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+ require "tags_pb"
25
+ Google::Protobuf::DescriptorPool.generated_pool.build do
26
+ add_file("queries.proto", :syntax => :proto3) do
27
+ add_message "v1.QueryListRequest" do
28
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
29
+ optional :filter, :string, 2
30
+ end
31
+ add_message "v1.QueryListResponse" do
32
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
33
+ repeated :queries, :message, 2, "v1.Query"
34
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
35
+ end
36
+ add_message "v1.Query" do
37
+ optional :id, :string, 1
38
+ optional :account_id, :string, 2
39
+ optional :resource_id, :string, 3
40
+ optional :query_body, :string, 4
41
+ optional :duration, :message, 5, "google.protobuf.Duration"
42
+ optional :encrypted, :bool, 6
43
+ optional :query_hash, :string, 7
44
+ optional :remote_identity_username, :string, 8
45
+ optional :timestamp, :message, 9, "google.protobuf.Timestamp"
46
+ optional :egress_node_id, :string, 10
47
+ optional :replayable, :bool, 11
48
+ optional :record_count, :int64, 12
49
+ optional :resource_type, :string, 13
50
+ optional :query_category, :string, 14
51
+ optional :query_key, :string, 15
52
+ optional :resource_name, :string, 16
53
+ optional :resource_tags, :message, 17, "v1.Tags"
54
+ optional :account_first_name, :string, 18
55
+ optional :account_last_name, :string, 19
56
+ optional :account_email, :string, 20
57
+ optional :account_tags, :message, 21, "v1.Tags"
58
+ optional :query_key_id, :string, 22
59
+ end
60
+ end
61
+ end
62
+
63
+ module V1
64
+ QueryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.QueryListRequest").msgclass
65
+ QueryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.QueryListResponse").msgclass
66
+ Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Query").msgclass
67
+ end
@@ -0,0 +1,39 @@
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: queries.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "queries_pb"
20
+
21
+ module V1
22
+ module Queries
23
+ # A Query is a record of a single client request to a resource, such as an SQL query.
24
+ # Long-running SSH, RDP, or Kubernetes interactive sessions also count as queries.
25
+ # The Queries service is read-only.
26
+ class Service
27
+ include GRPC::GenericService
28
+
29
+ self.marshal_class_method = :encode
30
+ self.unmarshal_class_method = :decode
31
+ self.service_name = "v1.Queries"
32
+
33
+ # List gets a list of Queries matching a given set of criteria.
34
+ rpc :List, V1::QueryListRequest, V1::QueryListResponse
35
+ end
36
+
37
+ Stub = Service.rpc_stub_class
38
+ end
39
+ end
@@ -0,0 +1,48 @@
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: remote_identities_history.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "remote_identities_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("remote_identities_history.proto", :syntax => :proto3) do
26
+ add_message "v1.RemoteIdentityHistoryListRequest" do
27
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
28
+ optional :filter, :string, 2
29
+ end
30
+ add_message "v1.RemoteIdentityHistoryListResponse" do
31
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
32
+ repeated :history, :message, 2, "v1.RemoteIdentityHistory"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RemoteIdentityHistory" do
36
+ optional :activity_id, :string, 1
37
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
38
+ optional :remote_identity, :message, 3, "v1.RemoteIdentity"
39
+ optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
40
+ end
41
+ end
42
+ end
43
+
44
+ module V1
45
+ RemoteIdentityHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityHistoryListRequest").msgclass
46
+ RemoteIdentityHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityHistoryListResponse").msgclass
47
+ RemoteIdentityHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityHistory").msgclass
48
+ end
@@ -0,0 +1,37 @@
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: remote_identities_history.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "remote_identities_history_pb"
20
+
21
+ module V1
22
+ module RemoteIdentitiesHistory
23
+ # RemoteIdentitiesHistory records all changes to the state of a RemoteIdentity.
24
+ class Service
25
+ include GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = "v1.RemoteIdentitiesHistory"
30
+
31
+ # List gets a list of RemoteIdentityHistory records matching a given set of criteria.
32
+ rpc :List, V1::RemoteIdentityHistoryListRequest, V1::RemoteIdentityHistoryListResponse
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ end
@@ -0,0 +1,48 @@
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: remote_identity_groups_history.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "remote_identity_groups_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("remote_identity_groups_history.proto", :syntax => :proto3) do
26
+ add_message "v1.RemoteIdentityGroupHistoryListRequest" do
27
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
28
+ optional :filter, :string, 2
29
+ end
30
+ add_message "v1.RemoteIdentityGroupHistoryListResponse" do
31
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
32
+ repeated :history, :message, 2, "v1.RemoteIdentityGroupHistory"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RemoteIdentityGroupHistory" do
36
+ optional :activity_id, :string, 1
37
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
38
+ optional :remote_identity_group, :message, 3, "v1.RemoteIdentityGroup"
39
+ optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
40
+ end
41
+ end
42
+ end
43
+
44
+ module V1
45
+ RemoteIdentityGroupHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupHistoryListRequest").msgclass
46
+ RemoteIdentityGroupHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupHistoryListResponse").msgclass
47
+ RemoteIdentityGroupHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RemoteIdentityGroupHistory").msgclass
48
+ end
@@ -0,0 +1,37 @@
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: remote_identity_groups_history.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "remote_identity_groups_history_pb"
20
+
21
+ module V1
22
+ module RemoteIdentityGroupsHistory
23
+ # RemoteIdentityGroupsHistory records all changes to the state of a RemoteIdentityGroup.
24
+ class Service
25
+ include GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = "v1.RemoteIdentityGroupsHistory"
30
+
31
+ # List gets a list of RemoteIdentityGroupHistory records matching a given set of criteria.
32
+ rpc :List, V1::RemoteIdentityGroupHistoryListRequest, V1::RemoteIdentityGroupHistoryListResponse
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ 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: replays.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/duration_pb"
21
+ require "options_pb"
22
+ require "spec_pb"
23
+ Google::Protobuf::DescriptorPool.generated_pool.build do
24
+ add_file("replays.proto", :syntax => :proto3) do
25
+ add_message "v1.ReplayListRequest" do
26
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
27
+ optional :filter, :string, 2
28
+ end
29
+ add_message "v1.ReplayListResponse" do
30
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
31
+ repeated :chunks, :message, 2, "v1.ReplayChunk"
32
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
33
+ end
34
+ add_message "v1.ReplayChunk" do
35
+ optional :data, :bytes, 1
36
+ repeated :events, :message, 2, "v1.ReplayChunkEvent"
37
+ end
38
+ add_message "v1.ReplayChunkEvent" do
39
+ optional :data, :bytes, 1
40
+ optional :duration, :message, 2, "google.protobuf.Duration"
41
+ end
42
+ end
43
+ end
44
+
45
+ module V1
46
+ ReplayListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ReplayListRequest").msgclass
47
+ ReplayListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ReplayListResponse").msgclass
48
+ ReplayChunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ReplayChunk").msgclass
49
+ ReplayChunkEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ReplayChunkEvent").msgclass
50
+ end
@@ -0,0 +1,38 @@
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: replays.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "replays_pb"
20
+
21
+ module V1
22
+ module Replays
23
+ # A Replay captures the data transferred over a long-running SSH, RDP, or Kubernetes interactive session
24
+ # (otherwise referred to as a query). The Replays service is read-only.
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.Replays"
31
+
32
+ # List gets a list of ReplayChunks for the Query ID specified by the filter criteria.
33
+ rpc :List, V1::ReplayListRequest, V1::ReplayListResponse
34
+ end
35
+
36
+ Stub = Service.rpc_stub_class
37
+ end
38
+ end
@@ -0,0 +1,48 @@
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_history.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "drivers_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("resources_history.proto", :syntax => :proto3) do
26
+ add_message "v1.ResourceHistoryListRequest" do
27
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
28
+ optional :filter, :string, 2
29
+ end
30
+ add_message "v1.ResourceHistoryListResponse" do
31
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
32
+ repeated :history, :message, 2, "v1.ResourceHistory"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.ResourceHistory" do
36
+ optional :activity_id, :string, 1
37
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
38
+ optional :resource, :message, 3, "v1.Resource"
39
+ optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
40
+ end
41
+ end
42
+ end
43
+
44
+ module V1
45
+ ResourceHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceHistoryListRequest").msgclass
46
+ ResourceHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceHistoryListResponse").msgclass
47
+ ResourceHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ResourceHistory").msgclass
48
+ end
@@ -0,0 +1,37 @@
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_history.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "resources_history_pb"
20
+
21
+ module V1
22
+ module ResourcesHistory
23
+ # ResourcesHistory records all changes to the state of a Resource.
24
+ class Service
25
+ include GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = "v1.ResourcesHistory"
30
+
31
+ # List gets a list of ResourceHistory records matching a given set of criteria.
32
+ rpc :List, V1::ResourceHistoryListRequest, V1::ResourceHistoryListResponse
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ end
@@ -0,0 +1,48 @@
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_resources_history.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "role_resources_pb"
22
+ require "options_pb"
23
+ require "spec_pb"
24
+ Google::Protobuf::DescriptorPool.generated_pool.build do
25
+ add_file("role_resources_history.proto", :syntax => :proto3) do
26
+ add_message "v1.RoleResourceHistoryListRequest" do
27
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
28
+ optional :filter, :string, 2
29
+ end
30
+ add_message "v1.RoleResourceHistoryListResponse" do
31
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
32
+ repeated :history, :message, 2, "v1.RoleResourceHistory"
33
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
34
+ end
35
+ add_message "v1.RoleResourceHistory" do
36
+ optional :activity_id, :string, 1
37
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
38
+ optional :role_resource, :message, 3, "v1.RoleResource"
39
+ optional :deleted_at, :message, 4, "google.protobuf.Timestamp"
40
+ end
41
+ end
42
+ end
43
+
44
+ module V1
45
+ RoleResourceHistoryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResourceHistoryListRequest").msgclass
46
+ RoleResourceHistoryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResourceHistoryListResponse").msgclass
47
+ RoleResourceHistory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResourceHistory").msgclass
48
+ end
@@ -0,0 +1,37 @@
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_resources_history.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "role_resources_history_pb"
20
+
21
+ module V1
22
+ module RoleResourcesHistory
23
+ # RoleResourcesHistory records all changes to the state of a RoleResource.
24
+ class Service
25
+ include GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = "v1.RoleResourcesHistory"
30
+
31
+ # List gets a list of RoleResourceHistory records matching a given set of criteria.
32
+ rpc :List, V1::RoleResourceHistoryListRequest, V1::RoleResourceHistoryListResponse
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ end
@@ -0,0 +1,46 @@
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_resources.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "google/protobuf/timestamp_pb"
21
+ require "options_pb"
22
+ require "spec_pb"
23
+ Google::Protobuf::DescriptorPool.generated_pool.build do
24
+ add_file("role_resources.proto", :syntax => :proto3) do
25
+ add_message "v1.RoleResourceListRequest" do
26
+ optional :meta, :message, 1, "v1.ListRequestMetadata"
27
+ optional :filter, :string, 2
28
+ end
29
+ add_message "v1.RoleResourceListResponse" do
30
+ optional :meta, :message, 1, "v1.ListResponseMetadata"
31
+ repeated :role_resources, :message, 2, "v1.RoleResource"
32
+ optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
33
+ end
34
+ add_message "v1.RoleResource" do
35
+ optional :role_id, :string, 1
36
+ optional :resource_id, :string, 2
37
+ optional :granted_at, :message, 3, "google.protobuf.Timestamp"
38
+ end
39
+ end
40
+ end
41
+
42
+ module V1
43
+ RoleResourceListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResourceListRequest").msgclass
44
+ RoleResourceListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResourceListResponse").msgclass
45
+ RoleResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RoleResource").msgclass
46
+ end
@@ -0,0 +1,38 @@
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_resources.proto for package 'v1'
17
+
18
+ require "grpc"
19
+ require "role_resources_pb"
20
+
21
+ module V1
22
+ module RoleResources
23
+ # RoleResources enumerates the resources to which roles have access.
24
+ # The RoleResources service is read-only.
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.RoleResources"
31
+
32
+ # List gets a list of RoleResource records matching a given set of criteria.
33
+ rpc :List, V1::RoleResourceListRequest, V1::RoleResourceListResponse
34
+ end
35
+
36
+ Stub = Service.rpc_stub_class
37
+ end
38
+ end