strongdm 3.6.1__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.1 → strongdm-3.7.0}/PKG-INFO +2 -2
  2. {strongdm-3.6.1 → 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.1 → strongdm-3.7.0}/strongdm/drivers_pb2.py +6 -6
  18. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/models.py +1872 -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.1 → strongdm-3.7.0}/strongdm/plumbing.py +935 -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.7.0/strongdm/secret_stores_history_pb2.py +96 -0
  41. strongdm-3.7.0/strongdm/secret_stores_history_pb2_grpc.py +84 -0
  42. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/svc.py +1199 -12
  43. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/PKG-INFO +2 -2
  44. strongdm-3.7.0/strongdm.egg-info/SOURCES.txt +78 -0
  45. strongdm-3.6.1/strongdm/client.py +0 -199
  46. strongdm-3.6.1/strongdm/constants.py +0 -66
  47. strongdm-3.6.1/strongdm.egg-info/SOURCES.txt +0 -44
  48. {strongdm-3.6.1 → strongdm-3.7.0}/README.md +0 -0
  49. {strongdm-3.6.1 → strongdm-3.7.0}/setup.cfg +0 -0
  50. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/__init__.py +0 -0
  51. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2.py +0 -0
  52. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
  53. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2.py +0 -0
  54. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2_grpc.py +0 -0
  55. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2.py +0 -0
  56. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2_grpc.py +0 -0
  57. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2.py +0 -0
  58. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2_grpc.py +0 -0
  59. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/drivers_pb2_grpc.py +0 -0
  60. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/errors.py +0 -0
  61. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2.py +0 -0
  62. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2_grpc.py +0 -0
  63. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2.py +0 -0
  64. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2_grpc.py +0 -0
  65. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2.py +0 -0
  66. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
  67. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2.py +0 -0
  68. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
  69. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2.py +0 -0
  70. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2_grpc.py +0 -0
  71. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2.py +0 -0
  72. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2_grpc.py +0 -0
  73. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2.py +0 -0
  74. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
  75. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2.py +0 -0
  76. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
  77. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2.py +0 -0
  78. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2_grpc.py +0 -0
  79. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2.py +0 -0
  80. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2_grpc.py +0 -0
  81. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/dependency_links.txt +0 -0
  82. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/requires.txt +0 -0
  83. {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -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 role_resources_pb2 as role__resources__pb2
20
+
21
+
22
+ class RoleResourcesStub(object):
23
+ """RoleResources enumerates the resources to which roles have access.
24
+ The RoleResources 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.RoleResources/List',
35
+ request_serializer=role__resources__pb2.RoleResourceListRequest.SerializeToString,
36
+ response_deserializer=role__resources__pb2.RoleResourceListResponse.FromString,
37
+ )
38
+
39
+
40
+ class RoleResourcesServicer(object):
41
+ """RoleResources enumerates the resources to which roles have access.
42
+ The RoleResources service is read-only.
43
+ """
44
+
45
+ def List(self, request, context):
46
+ """List gets a list of RoleResource records matching a given set of 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_RoleResourcesServicer_to_server(servicer, server):
54
+ rpc_method_handlers = {
55
+ 'List': grpc.unary_unary_rpc_method_handler(
56
+ servicer.List,
57
+ request_deserializer=role__resources__pb2.RoleResourceListRequest.FromString,
58
+ response_serializer=role__resources__pb2.RoleResourceListResponse.SerializeToString,
59
+ ),
60
+ }
61
+ generic_handler = grpc.method_handlers_generic_handler(
62
+ 'v1.RoleResources', rpc_method_handlers)
63
+ server.add_generic_rpc_handlers((generic_handler,))
64
+
65
+
66
+ # This class is part of an EXPERIMENTAL API.
67
+ class RoleResources(object):
68
+ """RoleResources enumerates the resources to which roles have access.
69
+ The RoleResources 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.RoleResources/List',
84
+ role__resources__pb2.RoleResourceListRequest.SerializeToString,
85
+ role__resources__pb2.RoleResourceListResponse.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: roles_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 roles_pb2 as roles__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\x13roles_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0broles.proto\x1a\roptions.proto\x1a\nspec.proto\"[\n\x16RoleHistoryListRequest\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\"\xc8\x01\n\x17RoleHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12,\n\x07history\x18\x02 \x03(\x0b\x32\x0f.v1.RoleHistoryB\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\"\xd5\x01\n\x0bRoleHistory\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\x04role\x18\x03 \x01(\x0b\x32\x08.v1.RoleB\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\x9a\x01\n\x0cRolesHistory\x12i\n\x04List\x12\x1a.v1.RoleHistoryListRequest\x1a\x1b.v1.RoleHistoryListResponse\"(\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x16\xaa\xf3\xb3\x07\x11/v1/roles-history\x1a\x1f\xca\xf9\xb3\x07\x10\xc2\xf9\xb3\x07\x0bRoleHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42h\n\x19\x63om.strongdm.api.plumbingB\x14RolesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
36
+
37
+
38
+
39
+ _ROLEHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['RoleHistoryListRequest']
40
+ _ROLEHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['RoleHistoryListResponse']
41
+ _ROLEHISTORY = DESCRIPTOR.message_types_by_name['RoleHistory']
42
+ RoleHistoryListRequest = _reflection.GeneratedProtocolMessageType('RoleHistoryListRequest', (_message.Message,), {
43
+ 'DESCRIPTOR' : _ROLEHISTORYLISTREQUEST,
44
+ '__module__' : 'roles_history_pb2'
45
+ # @@protoc_insertion_point(class_scope:v1.RoleHistoryListRequest)
46
+ })
47
+ _sym_db.RegisterMessage(RoleHistoryListRequest)
48
+
49
+ RoleHistoryListResponse = _reflection.GeneratedProtocolMessageType('RoleHistoryListResponse', (_message.Message,), {
50
+ 'DESCRIPTOR' : _ROLEHISTORYLISTRESPONSE,
51
+ '__module__' : 'roles_history_pb2'
52
+ # @@protoc_insertion_point(class_scope:v1.RoleHistoryListResponse)
53
+ })
54
+ _sym_db.RegisterMessage(RoleHistoryListResponse)
55
+
56
+ RoleHistory = _reflection.GeneratedProtocolMessageType('RoleHistory', (_message.Message,), {
57
+ 'DESCRIPTOR' : _ROLEHISTORY,
58
+ '__module__' : 'roles_history_pb2'
59
+ # @@protoc_insertion_point(class_scope:v1.RoleHistory)
60
+ })
61
+ _sym_db.RegisterMessage(RoleHistory)
62
+
63
+ _ROLESHISTORY = DESCRIPTOR.services_by_name['RolesHistory']
64
+ if _descriptor._USE_C_DESCRIPTORS == False:
65
+
66
+ DESCRIPTOR._options = None
67
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\024RolesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
68
+ _ROLEHISTORYLISTREQUEST.fields_by_name['filter']._options = None
69
+ _ROLEHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
70
+ _ROLEHISTORYLISTRESPONSE.fields_by_name['history']._options = None
71
+ _ROLEHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
72
+ _ROLEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
73
+ _ROLEHISTORYLISTRESPONSE.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
+ _ROLEHISTORY.fields_by_name['activity_id']._options = None
75
+ _ROLEHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
76
+ _ROLEHISTORY.fields_by_name['timestamp']._options = None
77
+ _ROLEHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
78
+ _ROLEHISTORY.fields_by_name['role']._options = None
79
+ _ROLEHISTORY.fields_by_name['role']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
80
+ _ROLEHISTORY.fields_by_name['deleted_at']._options = None
81
+ _ROLEHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
82
+ _ROLEHISTORY._options = None
83
+ _ROLEHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
84
+ _ROLESHISTORY._options = None
85
+ _ROLESHISTORY._serialized_options = b'\312\371\263\007\020\302\371\263\007\013RoleHistory\312\371\263\007\005\330\371\263\007\001'
86
+ _ROLESHISTORY.methods_by_name['List']._options = None
87
+ _ROLESHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\026\252\363\263\007\021/v1/roles-history'
88
+ _ROLEHISTORYLISTREQUEST._serialized_start=100
89
+ _ROLEHISTORYLISTREQUEST._serialized_end=191
90
+ _ROLEHISTORYLISTRESPONSE._serialized_start=194
91
+ _ROLEHISTORYLISTRESPONSE._serialized_end=394
92
+ _ROLEHISTORY._serialized_start=397
93
+ _ROLEHISTORY._serialized_end=610
94
+ _ROLESHISTORY._serialized_start=613
95
+ _ROLESHISTORY._serialized_end=767
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 roles_history_pb2 as roles__history__pb2
20
+
21
+
22
+ class RolesHistoryStub(object):
23
+ """RolesHistory records all changes to the state of a Role.
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.RolesHistory/List',
34
+ request_serializer=roles__history__pb2.RoleHistoryListRequest.SerializeToString,
35
+ response_deserializer=roles__history__pb2.RoleHistoryListResponse.FromString,
36
+ )
37
+
38
+
39
+ class RolesHistoryServicer(object):
40
+ """RolesHistory records all changes to the state of a Role.
41
+ """
42
+
43
+ def List(self, request, context):
44
+ """List gets a list of RoleHistory 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_RolesHistoryServicer_to_server(servicer, server):
52
+ rpc_method_handlers = {
53
+ 'List': grpc.unary_unary_rpc_method_handler(
54
+ servicer.List,
55
+ request_deserializer=roles__history__pb2.RoleHistoryListRequest.FromString,
56
+ response_serializer=roles__history__pb2.RoleHistoryListResponse.SerializeToString,
57
+ ),
58
+ }
59
+ generic_handler = grpc.method_handlers_generic_handler(
60
+ 'v1.RolesHistory', rpc_method_handlers)
61
+ server.add_generic_rpc_handlers((generic_handler,))
62
+
63
+
64
+ # This class is part of an EXPERIMENTAL API.
65
+ class RolesHistory(object):
66
+ """RolesHistory records all changes to the state of a Role.
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.RolesHistory/List',
81
+ roles__history__pb2.RoleHistoryListRequest.SerializeToString,
82
+ roles__history__pb2.RoleHistoryListResponse.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: secret_stores_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 secret_store_types_pb2 as secret__store__types__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\x1bsecret_stores_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18secret_store_types.proto\x1a\roptions.proto\x1a\nspec.proto\"b\n\x1dSecretStoreHistoryListRequest\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\"\xd6\x01\n\x1eSecretStoreHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x33\n\x07history\x18\x02 \x03(\x0b\x32\x16.v1.SecretStoreHistoryB\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\"\xeb\x01\n\x12SecretStoreHistory\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\x31\n\x0csecret_store\x18\x03 \x01(\x0b\x32\x0f.v1.SecretStoreB\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\xbe\x01\n\x13SecretStoresHistory\x12\x7f\n\x04List\x12!.v1.SecretStoreHistoryListRequest\x1a\".v1.SecretStoreHistoryListResponse\"0\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x1e\xaa\xf3\xb3\x07\x19/v1/secret-stores-history\x1a&\xca\xf9\xb3\x07\x17\xc2\xf9\xb3\x07\x12SecretStoreHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42o\n\x19\x63om.strongdm.api.plumbingB\x1bSecretStoresHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
36
+
37
+
38
+
39
+ _SECRETSTOREHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['SecretStoreHistoryListRequest']
40
+ _SECRETSTOREHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['SecretStoreHistoryListResponse']
41
+ _SECRETSTOREHISTORY = DESCRIPTOR.message_types_by_name['SecretStoreHistory']
42
+ SecretStoreHistoryListRequest = _reflection.GeneratedProtocolMessageType('SecretStoreHistoryListRequest', (_message.Message,), {
43
+ 'DESCRIPTOR' : _SECRETSTOREHISTORYLISTREQUEST,
44
+ '__module__' : 'secret_stores_history_pb2'
45
+ # @@protoc_insertion_point(class_scope:v1.SecretStoreHistoryListRequest)
46
+ })
47
+ _sym_db.RegisterMessage(SecretStoreHistoryListRequest)
48
+
49
+ SecretStoreHistoryListResponse = _reflection.GeneratedProtocolMessageType('SecretStoreHistoryListResponse', (_message.Message,), {
50
+ 'DESCRIPTOR' : _SECRETSTOREHISTORYLISTRESPONSE,
51
+ '__module__' : 'secret_stores_history_pb2'
52
+ # @@protoc_insertion_point(class_scope:v1.SecretStoreHistoryListResponse)
53
+ })
54
+ _sym_db.RegisterMessage(SecretStoreHistoryListResponse)
55
+
56
+ SecretStoreHistory = _reflection.GeneratedProtocolMessageType('SecretStoreHistory', (_message.Message,), {
57
+ 'DESCRIPTOR' : _SECRETSTOREHISTORY,
58
+ '__module__' : 'secret_stores_history_pb2'
59
+ # @@protoc_insertion_point(class_scope:v1.SecretStoreHistory)
60
+ })
61
+ _sym_db.RegisterMessage(SecretStoreHistory)
62
+
63
+ _SECRETSTORESHISTORY = DESCRIPTOR.services_by_name['SecretStoresHistory']
64
+ if _descriptor._USE_C_DESCRIPTORS == False:
65
+
66
+ DESCRIPTOR._options = None
67
+ DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\033SecretStoresHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
68
+ _SECRETSTOREHISTORYLISTREQUEST.fields_by_name['filter']._options = None
69
+ _SECRETSTOREHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
70
+ _SECRETSTOREHISTORYLISTRESPONSE.fields_by_name['history']._options = None
71
+ _SECRETSTOREHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
72
+ _SECRETSTOREHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
73
+ _SECRETSTOREHISTORYLISTRESPONSE.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
+ _SECRETSTOREHISTORY.fields_by_name['activity_id']._options = None
75
+ _SECRETSTOREHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
76
+ _SECRETSTOREHISTORY.fields_by_name['timestamp']._options = None
77
+ _SECRETSTOREHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
78
+ _SECRETSTOREHISTORY.fields_by_name['secret_store']._options = None
79
+ _SECRETSTOREHISTORY.fields_by_name['secret_store']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
80
+ _SECRETSTOREHISTORY.fields_by_name['deleted_at']._options = None
81
+ _SECRETSTOREHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
82
+ _SECRETSTOREHISTORY._options = None
83
+ _SECRETSTOREHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
84
+ _SECRETSTORESHISTORY._options = None
85
+ _SECRETSTORESHISTORY._serialized_options = b'\312\371\263\007\027\302\371\263\007\022SecretStoreHistory\312\371\263\007\005\330\371\263\007\001'
86
+ _SECRETSTORESHISTORY.methods_by_name['List']._options = None
87
+ _SECRETSTORESHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\036\252\363\263\007\031/v1/secret-stores-history'
88
+ _SECRETSTOREHISTORYLISTREQUEST._serialized_start=121
89
+ _SECRETSTOREHISTORYLISTREQUEST._serialized_end=219
90
+ _SECRETSTOREHISTORYLISTRESPONSE._serialized_start=222
91
+ _SECRETSTOREHISTORYLISTRESPONSE._serialized_end=436
92
+ _SECRETSTOREHISTORY._serialized_start=439
93
+ _SECRETSTOREHISTORY._serialized_end=674
94
+ _SECRETSTORESHISTORY._serialized_start=677
95
+ _SECRETSTORESHISTORY._serialized_end=867
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 secret_stores_history_pb2 as secret__stores__history__pb2
20
+
21
+
22
+ class SecretStoresHistoryStub(object):
23
+ """SecretStoresHistory records all changes to the state of a SecretStore.
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.SecretStoresHistory/List',
34
+ request_serializer=secret__stores__history__pb2.SecretStoreHistoryListRequest.SerializeToString,
35
+ response_deserializer=secret__stores__history__pb2.SecretStoreHistoryListResponse.FromString,
36
+ )
37
+
38
+
39
+ class SecretStoresHistoryServicer(object):
40
+ """SecretStoresHistory records all changes to the state of a SecretStore.
41
+ """
42
+
43
+ def List(self, request, context):
44
+ """List gets a list of SecretStoreHistory 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_SecretStoresHistoryServicer_to_server(servicer, server):
52
+ rpc_method_handlers = {
53
+ 'List': grpc.unary_unary_rpc_method_handler(
54
+ servicer.List,
55
+ request_deserializer=secret__stores__history__pb2.SecretStoreHistoryListRequest.FromString,
56
+ response_serializer=secret__stores__history__pb2.SecretStoreHistoryListResponse.SerializeToString,
57
+ ),
58
+ }
59
+ generic_handler = grpc.method_handlers_generic_handler(
60
+ 'v1.SecretStoresHistory', rpc_method_handlers)
61
+ server.add_generic_rpc_handlers((generic_handler,))
62
+
63
+
64
+ # This class is part of an EXPERIMENTAL API.
65
+ class SecretStoresHistory(object):
66
+ """SecretStoresHistory records all changes to the state of a SecretStore.
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.SecretStoresHistory/List',
81
+ secret__stores__history__pb2.SecretStoreHistoryListRequest.SerializeToString,
82
+ secret__stores__history__pb2.SecretStoreHistoryListResponse.FromString,
83
+ options, channel_credentials,
84
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)