strongdm 3.6.0__zip → 3.7.0__zip

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.
Files changed (83) hide show
  1. {strongdm-3.6.0 → strongdm-3.7.0}/PKG-INFO +2 -2
  2. {strongdm-3.6.0 → strongdm-3.7.0}/setup.py +2 -2
  3. strongdm-3.7.0/strongdm/account_attachments_history_pb2.py +96 -0
  4. strongdm-3.7.0/strongdm/account_attachments_history_pb2_grpc.py +84 -0
  5. strongdm-3.7.0/strongdm/account_grants_history_pb2.py +96 -0
  6. strongdm-3.7.0/strongdm/account_grants_history_pb2_grpc.py +84 -0
  7. strongdm-3.7.0/strongdm/account_permissions_pb2.py +97 -0
  8. strongdm-3.7.0/strongdm/account_permissions_pb2_grpc.py +87 -0
  9. strongdm-3.7.0/strongdm/account_resources_pb2.py +99 -0
  10. strongdm-3.7.0/strongdm/account_resources_pb2_grpc.py +87 -0
  11. strongdm-3.7.0/strongdm/accounts_history_pb2.py +96 -0
  12. strongdm-3.7.0/strongdm/accounts_history_pb2_grpc.py +84 -0
  13. strongdm-3.7.0/strongdm/activities_pb2.py +177 -0
  14. strongdm-3.7.0/strongdm/activities_pb2_grpc.py +124 -0
  15. strongdm-3.7.0/strongdm/client.py +432 -0
  16. strongdm-3.7.0/strongdm/constants.py +377 -0
  17. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/drivers_pb2.py +172 -172
  18. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/models.py +1868 -132
  19. strongdm-3.7.0/strongdm/nodes_history_pb2.py +96 -0
  20. strongdm-3.7.0/strongdm/nodes_history_pb2_grpc.py +84 -0
  21. strongdm-3.7.0/strongdm/organization_history_pb2.py +154 -0
  22. strongdm-3.7.0/strongdm/organization_history_pb2_grpc.py +84 -0
  23. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/plumbing.py +947 -0
  24. strongdm-3.7.0/strongdm/queries_pb2.py +133 -0
  25. strongdm-3.7.0/strongdm/queries_pb2_grpc.py +90 -0
  26. strongdm-3.7.0/strongdm/remote_identities_history_pb2.py +96 -0
  27. strongdm-3.7.0/strongdm/remote_identities_history_pb2_grpc.py +84 -0
  28. strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2.py +96 -0
  29. strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2_grpc.py +84 -0
  30. strongdm-3.7.0/strongdm/replays_pb2.py +107 -0
  31. strongdm-3.7.0/strongdm/replays_pb2_grpc.py +87 -0
  32. strongdm-3.7.0/strongdm/resources_history_pb2.py +96 -0
  33. strongdm-3.7.0/strongdm/resources_history_pb2_grpc.py +84 -0
  34. strongdm-3.7.0/strongdm/role_resources_history_pb2.py +96 -0
  35. strongdm-3.7.0/strongdm/role_resources_history_pb2_grpc.py +84 -0
  36. strongdm-3.7.0/strongdm/role_resources_pb2.py +93 -0
  37. strongdm-3.7.0/strongdm/role_resources_pb2_grpc.py +87 -0
  38. strongdm-3.7.0/strongdm/roles_history_pb2.py +96 -0
  39. strongdm-3.7.0/strongdm/roles_history_pb2_grpc.py +84 -0
  40. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_store_types_pb2.py +11 -11
  41. strongdm-3.7.0/strongdm/secret_stores_history_pb2.py +96 -0
  42. strongdm-3.7.0/strongdm/secret_stores_history_pb2_grpc.py +84 -0
  43. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/svc.py +1199 -12
  44. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/PKG-INFO +2 -2
  45. strongdm-3.7.0/strongdm.egg-info/SOURCES.txt +78 -0
  46. strongdm-3.6.0/strongdm/client.py +0 -199
  47. strongdm-3.6.0/strongdm/constants.py +0 -53
  48. strongdm-3.6.0/strongdm.egg-info/SOURCES.txt +0 -44
  49. {strongdm-3.6.0 → strongdm-3.7.0}/README.md +0 -0
  50. {strongdm-3.6.0 → strongdm-3.7.0}/setup.cfg +0 -0
  51. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/__init__.py +0 -0
  52. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_attachments_pb2.py +0 -0
  53. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
  54. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_grants_pb2.py +0 -0
  55. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_grants_pb2_grpc.py +0 -0
  56. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/accounts_pb2.py +0 -0
  57. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/accounts_pb2_grpc.py +0 -0
  58. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/control_panel_pb2.py +0 -0
  59. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/control_panel_pb2_grpc.py +0 -0
  60. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/drivers_pb2_grpc.py +0 -0
  61. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/errors.py +0 -0
  62. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/nodes_pb2.py +0 -0
  63. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/nodes_pb2_grpc.py +0 -0
  64. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/options_pb2.py +0 -0
  65. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/options_pb2_grpc.py +0 -0
  66. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identities_pb2.py +0 -0
  67. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
  68. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2.py +0 -0
  69. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
  70. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/resources_pb2.py +0 -0
  71. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/resources_pb2_grpc.py +0 -0
  72. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/roles_pb2.py +0 -0
  73. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/roles_pb2_grpc.py +0 -0
  74. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
  75. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_stores_pb2.py +0 -0
  76. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
  77. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/spec_pb2.py +0 -0
  78. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/spec_pb2_grpc.py +0 -0
  79. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/tags_pb2.py +0 -0
  80. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/tags_pb2_grpc.py +0 -0
  81. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/dependency_links.txt +0 -0
  82. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/requires.txt +1 -1
  83. {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -0,0 +1,107 @@
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
+ # -*- coding: utf-8 -*-
16
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
17
+ # source: replays.proto
18
+ """Generated protocol buffer code."""
19
+ from google.protobuf import descriptor as _descriptor
20
+ from google.protobuf import descriptor_pool as _descriptor_pool
21
+ from google.protobuf import message as _message
22
+ from google.protobuf import reflection as _reflection
23
+ from google.protobuf import symbol_database as _symbol_database
24
+ # @@protoc_insertion_point(imports)
25
+
26
+ _sym_db = _symbol_database.Default()
27
+
28
+
29
+ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
30
+ from . import options_pb2 as options__pb2
31
+ from . import spec_pb2 as spec__pb2
32
+
33
+
34
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rreplays.proto\x12\x02v1\x1a\x1egoogle/protobuf/duration.proto\x1a\roptions.proto\x1a\nspec.proto\"V\n\x11ReplayListRequest\x12%\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.ListRequestMetadata\x12\x1a\n\x06\x66ilter\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\"\xc2\x01\n\x12ReplayListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12+\n\x06\x63hunks\x18\x02 \x03(\x0b\x32\x0f.v1.ReplayChunkB\n\xf2\xf8\xb3\x07\x05\xb8\xf3\xb3\x07\x01\x12W\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataB,\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\"e\n\x0bReplayChunk\x12\x18\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x30\n\x06\x65vents\x18\x02 \x03(\x0b\x32\x14.v1.ReplayChunkEventB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"q\n\x10ReplayChunkEvent\x12\x18\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x37\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\x32\x85\x01\n\x07Replays\x12Y\n\x04List\x12\x15.v1.ReplayListRequest\x1a\x16.v1.ReplayListResponse\"\"\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x10\xaa\xf3\xb3\x07\x0b/v1/replays\x1a\x1f\xca\xf9\xb3\x07\x10\xc2\xf9\xb3\x07\x0bReplayChunk\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42\x63\n\x19\x63om.strongdm.api.plumbingB\x0fReplaysPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
35
+
36
+
37
+
38
+ _REPLAYLISTREQUEST = DESCRIPTOR.message_types_by_name['ReplayListRequest']
39
+ _REPLAYLISTRESPONSE = DESCRIPTOR.message_types_by_name['ReplayListResponse']
40
+ _REPLAYCHUNK = DESCRIPTOR.message_types_by_name['ReplayChunk']
41
+ _REPLAYCHUNKEVENT = DESCRIPTOR.message_types_by_name['ReplayChunkEvent']
42
+ ReplayListRequest = _reflection.GeneratedProtocolMessageType('ReplayListRequest', (_message.Message,), {
43
+ 'DESCRIPTOR' : _REPLAYLISTREQUEST,
44
+ '__module__' : 'replays_pb2'
45
+ # @@protoc_insertion_point(class_scope:v1.ReplayListRequest)
46
+ })
47
+ _sym_db.RegisterMessage(ReplayListRequest)
48
+
49
+ ReplayListResponse = _reflection.GeneratedProtocolMessageType('ReplayListResponse', (_message.Message,), {
50
+ 'DESCRIPTOR' : _REPLAYLISTRESPONSE,
51
+ '__module__' : 'replays_pb2'
52
+ # @@protoc_insertion_point(class_scope:v1.ReplayListResponse)
53
+ })
54
+ _sym_db.RegisterMessage(ReplayListResponse)
55
+
56
+ ReplayChunk = _reflection.GeneratedProtocolMessageType('ReplayChunk', (_message.Message,), {
57
+ 'DESCRIPTOR' : _REPLAYCHUNK,
58
+ '__module__' : 'replays_pb2'
59
+ # @@protoc_insertion_point(class_scope:v1.ReplayChunk)
60
+ })
61
+ _sym_db.RegisterMessage(ReplayChunk)
62
+
63
+ ReplayChunkEvent = _reflection.GeneratedProtocolMessageType('ReplayChunkEvent', (_message.Message,), {
64
+ 'DESCRIPTOR' : _REPLAYCHUNKEVENT,
65
+ '__module__' : 'replays_pb2'
66
+ # @@protoc_insertion_point(class_scope:v1.ReplayChunkEvent)
67
+ })
68
+ _sym_db.RegisterMessage(ReplayChunkEvent)
69
+
70
+ _REPLAYS = DESCRIPTOR.services_by_name['Replays']
71
+ if _descriptor._USE_C_DESCRIPTORS == False:
72
+
73
+ DESCRIPTOR._options = None
74
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\017ReplaysPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
75
+ _REPLAYLISTREQUEST.fields_by_name['filter']._options = None
76
+ _REPLAYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
77
+ _REPLAYLISTRESPONSE.fields_by_name['chunks']._options = None
78
+ _REPLAYLISTRESPONSE.fields_by_name['chunks']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
79
+ _REPLAYLISTRESPONSE.fields_by_name['rate_limit']._options = None
80
+ _REPLAYLISTRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway'
81
+ _REPLAYCHUNK.fields_by_name['data']._options = None
82
+ _REPLAYCHUNK.fields_by_name['data']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
83
+ _REPLAYCHUNK.fields_by_name['events']._options = None
84
+ _REPLAYCHUNK.fields_by_name['events']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
85
+ _REPLAYCHUNK._options = None
86
+ _REPLAYCHUNK._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
87
+ _REPLAYCHUNKEVENT.fields_by_name['data']._options = None
88
+ _REPLAYCHUNKEVENT.fields_by_name['data']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
89
+ _REPLAYCHUNKEVENT.fields_by_name['duration']._options = None
90
+ _REPLAYCHUNKEVENT.fields_by_name['duration']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
91
+ _REPLAYCHUNKEVENT._options = None
92
+ _REPLAYCHUNKEVENT._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
93
+ _REPLAYS._options = None
94
+ _REPLAYS._serialized_options = b'\312\371\263\007\020\302\371\263\007\013ReplayChunk\312\371\263\007\005\330\371\263\007\001'
95
+ _REPLAYS.methods_by_name['List']._options = None
96
+ _REPLAYS.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\020\252\363\263\007\013/v1/replays'
97
+ _REPLAYLISTREQUEST._serialized_start=80
98
+ _REPLAYLISTREQUEST._serialized_end=166
99
+ _REPLAYLISTRESPONSE._serialized_start=169
100
+ _REPLAYLISTRESPONSE._serialized_end=363
101
+ _REPLAYCHUNK._serialized_start=365
102
+ _REPLAYCHUNK._serialized_end=466
103
+ _REPLAYCHUNKEVENT._serialized_start=468
104
+ _REPLAYCHUNKEVENT._serialized_end=581
105
+ _REPLAYS._serialized_start=584
106
+ _REPLAYS._serialized_end=717
107
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,87 @@
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 gRPC Python protocol compiler plugin. DO NOT EDIT!
16
+ """Client and server classes corresponding to protobuf-defined services."""
17
+ import grpc
18
+
19
+ from . import replays_pb2 as replays__pb2
20
+
21
+
22
+ class ReplaysStub(object):
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
+ """
26
+
27
+ def __init__(self, channel):
28
+ """Constructor.
29
+
30
+ Args:
31
+ channel: A grpc.Channel.
32
+ """
33
+ self.List = channel.unary_unary(
34
+ '/v1.Replays/List',
35
+ request_serializer=replays__pb2.ReplayListRequest.SerializeToString,
36
+ response_deserializer=replays__pb2.ReplayListResponse.FromString,
37
+ )
38
+
39
+
40
+ class ReplaysServicer(object):
41
+ """A Replay captures the data transferred over a long-running SSH, RDP, or Kubernetes interactive session
42
+ (otherwise referred to as a query). The Replays service is read-only.
43
+ """
44
+
45
+ def List(self, request, context):
46
+ """List gets a list of ReplayChunks for the Query ID specified by the filter criteria.
47
+ """
48
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
49
+ context.set_details('Method not implemented!')
50
+ raise NotImplementedError('Method not implemented!')
51
+
52
+
53
+ def add_ReplaysServicer_to_server(servicer, server):
54
+ rpc_method_handlers = {
55
+ 'List': grpc.unary_unary_rpc_method_handler(
56
+ servicer.List,
57
+ request_deserializer=replays__pb2.ReplayListRequest.FromString,
58
+ response_serializer=replays__pb2.ReplayListResponse.SerializeToString,
59
+ ),
60
+ }
61
+ generic_handler = grpc.method_handlers_generic_handler(
62
+ 'v1.Replays', rpc_method_handlers)
63
+ server.add_generic_rpc_handlers((generic_handler,))
64
+
65
+
66
+ # This class is part of an EXPERIMENTAL API.
67
+ class Replays(object):
68
+ """A Replay captures the data transferred over a long-running SSH, RDP, or Kubernetes interactive session
69
+ (otherwise referred to as a query). The Replays service is read-only.
70
+ """
71
+
72
+ @staticmethod
73
+ def List(request,
74
+ target,
75
+ options=(),
76
+ channel_credentials=None,
77
+ call_credentials=None,
78
+ insecure=False,
79
+ compression=None,
80
+ wait_for_ready=None,
81
+ timeout=None,
82
+ metadata=None):
83
+ return grpc.experimental.unary_unary(request, target, '/v1.Replays/List',
84
+ replays__pb2.ReplayListRequest.SerializeToString,
85
+ replays__pb2.ReplayListResponse.FromString,
86
+ options, channel_credentials,
87
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,96 @@
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
+ # -*- coding: utf-8 -*-
16
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
17
+ # source: resources_history.proto
18
+ """Generated protocol buffer code."""
19
+ from google.protobuf import descriptor as _descriptor
20
+ from google.protobuf import descriptor_pool as _descriptor_pool
21
+ from google.protobuf import message as _message
22
+ from google.protobuf import reflection as _reflection
23
+ from google.protobuf import symbol_database as _symbol_database
24
+ # @@protoc_insertion_point(imports)
25
+
26
+ _sym_db = _symbol_database.Default()
27
+
28
+
29
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
30
+ from . import drivers_pb2 as drivers__pb2
31
+ from . import options_pb2 as options__pb2
32
+ from . import spec_pb2 as spec__pb2
33
+
34
+
35
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17resources_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\rdrivers.proto\x1a\roptions.proto\x1a\nspec.proto\"_\n\x1aResourceHistoryListRequest\x12%\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.ListRequestMetadata\x12\x1a\n\x06\x66ilter\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\"\xd0\x01\n\x1bResourceHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x30\n\x07history\x18\x02 \x03(\x0b\x32\x13.v1.ResourceHistoryB\n\xf2\xf8\xb3\x07\x05\xb8\xf3\xb3\x07\x01\x12W\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataB,\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\"\xe1\x01\n\x0fResourceHistory\x12\x1f\n\x0b\x61\x63tivity_id\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x39\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12*\n\x08resource\x18\x03 \x01(\x0b\x32\x0c.v1.ResourceB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\ndeleted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\x32\xae\x01\n\x10ResourcesHistory\x12u\n\x04List\x12\x1e.v1.ResourceHistoryListRequest\x1a\x1f.v1.ResourceHistoryListResponse\",\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x1a\xaa\xf3\xb3\x07\x15/v1/resources-history\x1a#\xca\xf9\xb3\x07\x14\xc2\xf9\xb3\x07\x0fResourceHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42l\n\x19\x63om.strongdm.api.plumbingB\x18ResourcesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
36
+
37
+
38
+
39
+ _RESOURCEHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['ResourceHistoryListRequest']
40
+ _RESOURCEHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['ResourceHistoryListResponse']
41
+ _RESOURCEHISTORY = DESCRIPTOR.message_types_by_name['ResourceHistory']
42
+ ResourceHistoryListRequest = _reflection.GeneratedProtocolMessageType('ResourceHistoryListRequest', (_message.Message,), {
43
+ 'DESCRIPTOR' : _RESOURCEHISTORYLISTREQUEST,
44
+ '__module__' : 'resources_history_pb2'
45
+ # @@protoc_insertion_point(class_scope:v1.ResourceHistoryListRequest)
46
+ })
47
+ _sym_db.RegisterMessage(ResourceHistoryListRequest)
48
+
49
+ ResourceHistoryListResponse = _reflection.GeneratedProtocolMessageType('ResourceHistoryListResponse', (_message.Message,), {
50
+ 'DESCRIPTOR' : _RESOURCEHISTORYLISTRESPONSE,
51
+ '__module__' : 'resources_history_pb2'
52
+ # @@protoc_insertion_point(class_scope:v1.ResourceHistoryListResponse)
53
+ })
54
+ _sym_db.RegisterMessage(ResourceHistoryListResponse)
55
+
56
+ ResourceHistory = _reflection.GeneratedProtocolMessageType('ResourceHistory', (_message.Message,), {
57
+ 'DESCRIPTOR' : _RESOURCEHISTORY,
58
+ '__module__' : 'resources_history_pb2'
59
+ # @@protoc_insertion_point(class_scope:v1.ResourceHistory)
60
+ })
61
+ _sym_db.RegisterMessage(ResourceHistory)
62
+
63
+ _RESOURCESHISTORY = DESCRIPTOR.services_by_name['ResourcesHistory']
64
+ if _descriptor._USE_C_DESCRIPTORS == False:
65
+
66
+ DESCRIPTOR._options = None
67
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\030ResourcesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
68
+ _RESOURCEHISTORYLISTREQUEST.fields_by_name['filter']._options = None
69
+ _RESOURCEHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
70
+ _RESOURCEHISTORYLISTRESPONSE.fields_by_name['history']._options = None
71
+ _RESOURCEHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
72
+ _RESOURCEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
73
+ _RESOURCEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway'
74
+ _RESOURCEHISTORY.fields_by_name['activity_id']._options = None
75
+ _RESOURCEHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
76
+ _RESOURCEHISTORY.fields_by_name['timestamp']._options = None
77
+ _RESOURCEHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
78
+ _RESOURCEHISTORY.fields_by_name['resource']._options = None
79
+ _RESOURCEHISTORY.fields_by_name['resource']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
80
+ _RESOURCEHISTORY.fields_by_name['deleted_at']._options = None
81
+ _RESOURCEHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
82
+ _RESOURCEHISTORY._options = None
83
+ _RESOURCEHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
84
+ _RESOURCESHISTORY._options = None
85
+ _RESOURCESHISTORY._serialized_options = b'\312\371\263\007\024\302\371\263\007\017ResourceHistory\312\371\263\007\005\330\371\263\007\001'
86
+ _RESOURCESHISTORY.methods_by_name['List']._options = None
87
+ _RESOURCESHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\032\252\363\263\007\025/v1/resources-history'
88
+ _RESOURCEHISTORYLISTREQUEST._serialized_start=106
89
+ _RESOURCEHISTORYLISTREQUEST._serialized_end=201
90
+ _RESOURCEHISTORYLISTRESPONSE._serialized_start=204
91
+ _RESOURCEHISTORYLISTRESPONSE._serialized_end=412
92
+ _RESOURCEHISTORY._serialized_start=415
93
+ _RESOURCEHISTORY._serialized_end=640
94
+ _RESOURCESHISTORY._serialized_start=643
95
+ _RESOURCESHISTORY._serialized_end=817
96
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,84 @@
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 gRPC Python protocol compiler plugin. DO NOT EDIT!
16
+ """Client and server classes corresponding to protobuf-defined services."""
17
+ import grpc
18
+
19
+ from . import resources_history_pb2 as resources__history__pb2
20
+
21
+
22
+ class ResourcesHistoryStub(object):
23
+ """ResourcesHistory records all changes to the state of a Resource.
24
+ """
25
+
26
+ def __init__(self, channel):
27
+ """Constructor.
28
+
29
+ Args:
30
+ channel: A grpc.Channel.
31
+ """
32
+ self.List = channel.unary_unary(
33
+ '/v1.ResourcesHistory/List',
34
+ request_serializer=resources__history__pb2.ResourceHistoryListRequest.SerializeToString,
35
+ response_deserializer=resources__history__pb2.ResourceHistoryListResponse.FromString,
36
+ )
37
+
38
+
39
+ class ResourcesHistoryServicer(object):
40
+ """ResourcesHistory records all changes to the state of a Resource.
41
+ """
42
+
43
+ def List(self, request, context):
44
+ """List gets a list of ResourceHistory records matching a given set of criteria.
45
+ """
46
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47
+ context.set_details('Method not implemented!')
48
+ raise NotImplementedError('Method not implemented!')
49
+
50
+
51
+ def add_ResourcesHistoryServicer_to_server(servicer, server):
52
+ rpc_method_handlers = {
53
+ 'List': grpc.unary_unary_rpc_method_handler(
54
+ servicer.List,
55
+ request_deserializer=resources__history__pb2.ResourceHistoryListRequest.FromString,
56
+ response_serializer=resources__history__pb2.ResourceHistoryListResponse.SerializeToString,
57
+ ),
58
+ }
59
+ generic_handler = grpc.method_handlers_generic_handler(
60
+ 'v1.ResourcesHistory', rpc_method_handlers)
61
+ server.add_generic_rpc_handlers((generic_handler,))
62
+
63
+
64
+ # This class is part of an EXPERIMENTAL API.
65
+ class ResourcesHistory(object):
66
+ """ResourcesHistory records all changes to the state of a Resource.
67
+ """
68
+
69
+ @staticmethod
70
+ def List(request,
71
+ target,
72
+ options=(),
73
+ channel_credentials=None,
74
+ call_credentials=None,
75
+ insecure=False,
76
+ compression=None,
77
+ wait_for_ready=None,
78
+ timeout=None,
79
+ metadata=None):
80
+ return grpc.experimental.unary_unary(request, target, '/v1.ResourcesHistory/List',
81
+ resources__history__pb2.ResourceHistoryListRequest.SerializeToString,
82
+ resources__history__pb2.ResourceHistoryListResponse.FromString,
83
+ options, channel_credentials,
84
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,96 @@
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
+ # -*- coding: utf-8 -*-
16
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
17
+ # source: role_resources_history.proto
18
+ """Generated protocol buffer code."""
19
+ from google.protobuf import descriptor as _descriptor
20
+ from google.protobuf import descriptor_pool as _descriptor_pool
21
+ from google.protobuf import message as _message
22
+ from google.protobuf import reflection as _reflection
23
+ from google.protobuf import symbol_database as _symbol_database
24
+ # @@protoc_insertion_point(imports)
25
+
26
+ _sym_db = _symbol_database.Default()
27
+
28
+
29
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
30
+ from . import role_resources_pb2 as role__resources__pb2
31
+ from . import options_pb2 as options__pb2
32
+ from . import spec_pb2 as spec__pb2
33
+
34
+
35
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1crole_resources_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14role_resources.proto\x1a\roptions.proto\x1a\nspec.proto\"c\n\x1eRoleResourceHistoryListRequest\x12%\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.ListRequestMetadata\x12\x1a\n\x06\x66ilter\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\"\xd8\x01\n\x1fRoleResourceHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x34\n\x07history\x18\x02 \x03(\x0b\x32\x17.v1.RoleResourceHistoryB\n\xf2\xf8\xb3\x07\x05\xb8\xf3\xb3\x07\x01\x12W\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataB,\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\"\xee\x01\n\x13RoleResourceHistory\x12\x1f\n\x0b\x61\x63tivity_id\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x39\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x33\n\rrole_resource\x18\x03 \x01(\x0b\x32\x10.v1.RoleResourceB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\ndeleted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\x32\xc5\x01\n\x14RoleResourcesHistory\x12\x83\x01\n\x04List\x12\".v1.RoleResourceHistoryListRequest\x1a#.v1.RoleResourceHistoryListResponse\"2\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07 \xaa\xf3\xb3\x07\x1b/v1/roles-resources-history\x1a\'\xca\xf9\xb3\x07\x18\xc2\xf9\xb3\x07\x13RoleResourceHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42p\n\x19\x63om.strongdm.api.plumbingB\x1cRoleResourcesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
36
+
37
+
38
+
39
+ _ROLERESOURCEHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['RoleResourceHistoryListRequest']
40
+ _ROLERESOURCEHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['RoleResourceHistoryListResponse']
41
+ _ROLERESOURCEHISTORY = DESCRIPTOR.message_types_by_name['RoleResourceHistory']
42
+ RoleResourceHistoryListRequest = _reflection.GeneratedProtocolMessageType('RoleResourceHistoryListRequest', (_message.Message,), {
43
+ 'DESCRIPTOR' : _ROLERESOURCEHISTORYLISTREQUEST,
44
+ '__module__' : 'role_resources_history_pb2'
45
+ # @@protoc_insertion_point(class_scope:v1.RoleResourceHistoryListRequest)
46
+ })
47
+ _sym_db.RegisterMessage(RoleResourceHistoryListRequest)
48
+
49
+ RoleResourceHistoryListResponse = _reflection.GeneratedProtocolMessageType('RoleResourceHistoryListResponse', (_message.Message,), {
50
+ 'DESCRIPTOR' : _ROLERESOURCEHISTORYLISTRESPONSE,
51
+ '__module__' : 'role_resources_history_pb2'
52
+ # @@protoc_insertion_point(class_scope:v1.RoleResourceHistoryListResponse)
53
+ })
54
+ _sym_db.RegisterMessage(RoleResourceHistoryListResponse)
55
+
56
+ RoleResourceHistory = _reflection.GeneratedProtocolMessageType('RoleResourceHistory', (_message.Message,), {
57
+ 'DESCRIPTOR' : _ROLERESOURCEHISTORY,
58
+ '__module__' : 'role_resources_history_pb2'
59
+ # @@protoc_insertion_point(class_scope:v1.RoleResourceHistory)
60
+ })
61
+ _sym_db.RegisterMessage(RoleResourceHistory)
62
+
63
+ _ROLERESOURCESHISTORY = DESCRIPTOR.services_by_name['RoleResourcesHistory']
64
+ if _descriptor._USE_C_DESCRIPTORS == False:
65
+
66
+ DESCRIPTOR._options = None
67
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\034RoleResourcesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
68
+ _ROLERESOURCEHISTORYLISTREQUEST.fields_by_name['filter']._options = None
69
+ _ROLERESOURCEHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
70
+ _ROLERESOURCEHISTORYLISTRESPONSE.fields_by_name['history']._options = None
71
+ _ROLERESOURCEHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
72
+ _ROLERESOURCEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
73
+ _ROLERESOURCEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway'
74
+ _ROLERESOURCEHISTORY.fields_by_name['activity_id']._options = None
75
+ _ROLERESOURCEHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
76
+ _ROLERESOURCEHISTORY.fields_by_name['timestamp']._options = None
77
+ _ROLERESOURCEHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
78
+ _ROLERESOURCEHISTORY.fields_by_name['role_resource']._options = None
79
+ _ROLERESOURCEHISTORY.fields_by_name['role_resource']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
80
+ _ROLERESOURCEHISTORY.fields_by_name['deleted_at']._options = None
81
+ _ROLERESOURCEHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
82
+ _ROLERESOURCEHISTORY._options = None
83
+ _ROLERESOURCEHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
84
+ _ROLERESOURCESHISTORY._options = None
85
+ _ROLERESOURCESHISTORY._serialized_options = b'\312\371\263\007\030\302\371\263\007\023RoleResourceHistory\312\371\263\007\005\330\371\263\007\001'
86
+ _ROLERESOURCESHISTORY.methods_by_name['List']._options = None
87
+ _ROLERESOURCESHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007 \252\363\263\007\033/v1/roles-resources-history'
88
+ _ROLERESOURCEHISTORYLISTREQUEST._serialized_start=118
89
+ _ROLERESOURCEHISTORYLISTREQUEST._serialized_end=217
90
+ _ROLERESOURCEHISTORYLISTRESPONSE._serialized_start=220
91
+ _ROLERESOURCEHISTORYLISTRESPONSE._serialized_end=436
92
+ _ROLERESOURCEHISTORY._serialized_start=439
93
+ _ROLERESOURCEHISTORY._serialized_end=677
94
+ _ROLERESOURCESHISTORY._serialized_start=680
95
+ _ROLERESOURCESHISTORY._serialized_end=877
96
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,84 @@
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 gRPC Python protocol compiler plugin. DO NOT EDIT!
16
+ """Client and server classes corresponding to protobuf-defined services."""
17
+ import grpc
18
+
19
+ from . import role_resources_history_pb2 as role__resources__history__pb2
20
+
21
+
22
+ class RoleResourcesHistoryStub(object):
23
+ """RoleResourcesHistory records all changes to the state of a RoleResource.
24
+ """
25
+
26
+ def __init__(self, channel):
27
+ """Constructor.
28
+
29
+ Args:
30
+ channel: A grpc.Channel.
31
+ """
32
+ self.List = channel.unary_unary(
33
+ '/v1.RoleResourcesHistory/List',
34
+ request_serializer=role__resources__history__pb2.RoleResourceHistoryListRequest.SerializeToString,
35
+ response_deserializer=role__resources__history__pb2.RoleResourceHistoryListResponse.FromString,
36
+ )
37
+
38
+
39
+ class RoleResourcesHistoryServicer(object):
40
+ """RoleResourcesHistory records all changes to the state of a RoleResource.
41
+ """
42
+
43
+ def List(self, request, context):
44
+ """List gets a list of RoleResourceHistory records matching a given set of criteria.
45
+ """
46
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47
+ context.set_details('Method not implemented!')
48
+ raise NotImplementedError('Method not implemented!')
49
+
50
+
51
+ def add_RoleResourcesHistoryServicer_to_server(servicer, server):
52
+ rpc_method_handlers = {
53
+ 'List': grpc.unary_unary_rpc_method_handler(
54
+ servicer.List,
55
+ request_deserializer=role__resources__history__pb2.RoleResourceHistoryListRequest.FromString,
56
+ response_serializer=role__resources__history__pb2.RoleResourceHistoryListResponse.SerializeToString,
57
+ ),
58
+ }
59
+ generic_handler = grpc.method_handlers_generic_handler(
60
+ 'v1.RoleResourcesHistory', rpc_method_handlers)
61
+ server.add_generic_rpc_handlers((generic_handler,))
62
+
63
+
64
+ # This class is part of an EXPERIMENTAL API.
65
+ class RoleResourcesHistory(object):
66
+ """RoleResourcesHistory records all changes to the state of a RoleResource.
67
+ """
68
+
69
+ @staticmethod
70
+ def List(request,
71
+ target,
72
+ options=(),
73
+ channel_credentials=None,
74
+ call_credentials=None,
75
+ insecure=False,
76
+ compression=None,
77
+ wait_for_ready=None,
78
+ timeout=None,
79
+ metadata=None):
80
+ return grpc.experimental.unary_unary(request, target, '/v1.RoleResourcesHistory/List',
81
+ role__resources__history__pb2.RoleResourceHistoryListRequest.SerializeToString,
82
+ role__resources__history__pb2.RoleResourceHistoryListResponse.FromString,
83
+ options, channel_credentials,
84
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,93 @@
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
+ # -*- coding: utf-8 -*-
16
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
17
+ # source: role_resources.proto
18
+ """Generated protocol buffer code."""
19
+ from google.protobuf import descriptor as _descriptor
20
+ from google.protobuf import descriptor_pool as _descriptor_pool
21
+ from google.protobuf import message as _message
22
+ from google.protobuf import reflection as _reflection
23
+ from google.protobuf import symbol_database as _symbol_database
24
+ # @@protoc_insertion_point(imports)
25
+
26
+ _sym_db = _symbol_database.Default()
27
+
28
+
29
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
30
+ from . import options_pb2 as options__pb2
31
+ from . import spec_pb2 as spec__pb2
32
+
33
+
34
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14role_resources.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\roptions.proto\x1a\nspec.proto\"\\\n\x17RoleResourceListRequest\x12%\n\x04meta\x18\x01 \x01(\x0b\x32\x17.v1.ListRequestMetadata\x12\x1a\n\x06\x66ilter\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\"\xd1\x01\n\x18RoleResourceListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x34\n\x0erole_resources\x18\x02 \x03(\x0b\x32\x10.v1.RoleResourceB\n\xf2\xf8\xb3\x07\x05\xb8\xf3\xb3\x07\x01\x12W\n\nrate_limit\x18\x03 \x01(\x0b\x32\x15.v1.RateLimitMetadataB,\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\xf2\xf8\xb3\x07\x06\xb2\xf4\xb3\x07\x01*\xf2\xf8\xb3\x07\x12\xb2\xf4\xb3\x07\r!json_gateway\"\x94\x01\n\x0cRoleResource\x12\x1b\n\x07role_id\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x1f\n\x0bresource_id\x18\x02 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\ngranted_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\x32\x95\x01\n\rRoleResources\x12l\n\x04List\x12\x1b.v1.RoleResourceListRequest\x1a\x1c.v1.RoleResourceListResponse\")\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x17\xaa\xf3\xb3\x07\x12/v1/role-resources\x1a\x16\xca\xf9\xb3\x07\x11\xc2\xf9\xb3\x07\x0cRoleResourceBi\n\x19\x63om.strongdm.api.plumbingB\x15RoleResourcesPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
35
+
36
+
37
+
38
+ _ROLERESOURCELISTREQUEST = DESCRIPTOR.message_types_by_name['RoleResourceListRequest']
39
+ _ROLERESOURCELISTRESPONSE = DESCRIPTOR.message_types_by_name['RoleResourceListResponse']
40
+ _ROLERESOURCE = DESCRIPTOR.message_types_by_name['RoleResource']
41
+ RoleResourceListRequest = _reflection.GeneratedProtocolMessageType('RoleResourceListRequest', (_message.Message,), {
42
+ 'DESCRIPTOR' : _ROLERESOURCELISTREQUEST,
43
+ '__module__' : 'role_resources_pb2'
44
+ # @@protoc_insertion_point(class_scope:v1.RoleResourceListRequest)
45
+ })
46
+ _sym_db.RegisterMessage(RoleResourceListRequest)
47
+
48
+ RoleResourceListResponse = _reflection.GeneratedProtocolMessageType('RoleResourceListResponse', (_message.Message,), {
49
+ 'DESCRIPTOR' : _ROLERESOURCELISTRESPONSE,
50
+ '__module__' : 'role_resources_pb2'
51
+ # @@protoc_insertion_point(class_scope:v1.RoleResourceListResponse)
52
+ })
53
+ _sym_db.RegisterMessage(RoleResourceListResponse)
54
+
55
+ RoleResource = _reflection.GeneratedProtocolMessageType('RoleResource', (_message.Message,), {
56
+ 'DESCRIPTOR' : _ROLERESOURCE,
57
+ '__module__' : 'role_resources_pb2'
58
+ # @@protoc_insertion_point(class_scope:v1.RoleResource)
59
+ })
60
+ _sym_db.RegisterMessage(RoleResource)
61
+
62
+ _ROLERESOURCES = DESCRIPTOR.services_by_name['RoleResources']
63
+ if _descriptor._USE_C_DESCRIPTORS == False:
64
+
65
+ DESCRIPTOR._options = None
66
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\025RoleResourcesPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
67
+ _ROLERESOURCELISTREQUEST.fields_by_name['filter']._options = None
68
+ _ROLERESOURCELISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
69
+ _ROLERESOURCELISTRESPONSE.fields_by_name['role_resources']._options = None
70
+ _ROLERESOURCELISTRESPONSE.fields_by_name['role_resources']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
71
+ _ROLERESOURCELISTRESPONSE.fields_by_name['rate_limit']._options = None
72
+ _ROLERESOURCELISTRESPONSE.fields_by_name['rate_limit']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001\362\370\263\007\006\262\364\263\007\001*\362\370\263\007\022\262\364\263\007\r!json_gateway'
73
+ _ROLERESOURCE.fields_by_name['role_id']._options = None
74
+ _ROLERESOURCE.fields_by_name['role_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
75
+ _ROLERESOURCE.fields_by_name['resource_id']._options = None
76
+ _ROLERESOURCE.fields_by_name['resource_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
77
+ _ROLERESOURCE.fields_by_name['granted_at']._options = None
78
+ _ROLERESOURCE.fields_by_name['granted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
79
+ _ROLERESOURCE._options = None
80
+ _ROLERESOURCE._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
81
+ _ROLERESOURCES._options = None
82
+ _ROLERESOURCES._serialized_options = b'\312\371\263\007\021\302\371\263\007\014RoleResource'
83
+ _ROLERESOURCES.methods_by_name['List']._options = None
84
+ _ROLERESOURCES.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\027\252\363\263\007\022/v1/role-resources'
85
+ _ROLERESOURCELISTREQUEST._serialized_start=88
86
+ _ROLERESOURCELISTREQUEST._serialized_end=180
87
+ _ROLERESOURCELISTRESPONSE._serialized_start=183
88
+ _ROLERESOURCELISTRESPONSE._serialized_end=392
89
+ _ROLERESOURCE._serialized_start=395
90
+ _ROLERESOURCE._serialized_end=543
91
+ _ROLERESOURCES._serialized_start=546
92
+ _ROLERESOURCES._serialized_end=695
93
+ # @@protoc_insertion_point(module_scope)