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.
- {strongdm-3.6.1 → strongdm-3.7.0}/PKG-INFO +2 -2
- {strongdm-3.6.1 → strongdm-3.7.0}/setup.py +2 -2
- strongdm-3.7.0/strongdm/account_attachments_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/account_attachments_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/account_grants_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/account_grants_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/account_permissions_pb2.py +97 -0
- strongdm-3.7.0/strongdm/account_permissions_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/account_resources_pb2.py +99 -0
- strongdm-3.7.0/strongdm/account_resources_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/accounts_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/accounts_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/activities_pb2.py +177 -0
- strongdm-3.7.0/strongdm/activities_pb2_grpc.py +124 -0
- strongdm-3.7.0/strongdm/client.py +432 -0
- strongdm-3.7.0/strongdm/constants.py +377 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/drivers_pb2.py +6 -6
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/models.py +1872 -132
- strongdm-3.7.0/strongdm/nodes_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/nodes_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/organization_history_pb2.py +154 -0
- strongdm-3.7.0/strongdm/organization_history_pb2_grpc.py +84 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/plumbing.py +935 -0
- strongdm-3.7.0/strongdm/queries_pb2.py +133 -0
- strongdm-3.7.0/strongdm/queries_pb2_grpc.py +90 -0
- strongdm-3.7.0/strongdm/remote_identities_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/remote_identities_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/remote_identity_groups_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/replays_pb2.py +107 -0
- strongdm-3.7.0/strongdm/replays_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/resources_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/resources_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/role_resources_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/role_resources_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/role_resources_pb2.py +93 -0
- strongdm-3.7.0/strongdm/role_resources_pb2_grpc.py +87 -0
- strongdm-3.7.0/strongdm/roles_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/roles_history_pb2_grpc.py +84 -0
- strongdm-3.7.0/strongdm/secret_stores_history_pb2.py +96 -0
- strongdm-3.7.0/strongdm/secret_stores_history_pb2_grpc.py +84 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/svc.py +1199 -12
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/PKG-INFO +2 -2
- strongdm-3.7.0/strongdm.egg-info/SOURCES.txt +78 -0
- strongdm-3.6.1/strongdm/client.py +0 -199
- strongdm-3.6.1/strongdm/constants.py +0 -66
- strongdm-3.6.1/strongdm.egg-info/SOURCES.txt +0 -44
- {strongdm-3.6.1 → strongdm-3.7.0}/README.md +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/setup.cfg +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/__init__.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/account_grants_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/accounts_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/control_panel_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/drivers_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/errors.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/nodes_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/options_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/resources_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/roles_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/spec_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm/tags_pb2_grpc.py +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/dependency_links.txt +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/requires.txt +0 -0
- {strongdm-3.6.1 → strongdm-3.7.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -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: nodes_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 nodes_pb2 as nodes__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\x13nodes_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0bnodes.proto\x1a\roptions.proto\x1a\nspec.proto\"[\n\x16NodeHistoryListRequest\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\x17NodeHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12,\n\x07history\x18\x02 \x03(\x0b\x32\x0f.v1.NodeHistoryB\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\x0bNodeHistory\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\x04node\x18\x03 \x01(\x0b\x32\x08.v1.NodeB\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\x0cNodesHistory\x12i\n\x04List\x12\x1a.v1.NodeHistoryListRequest\x1a\x1b.v1.NodeHistoryListResponse\"(\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x16\xaa\xf3\xb3\x07\x11/v1/nodes-history\x1a\x1f\xca\xf9\xb3\x07\x10\xc2\xf9\xb3\x07\x0bNodeHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42h\n\x19\x63om.strongdm.api.plumbingB\x14NodesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
_NODEHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['NodeHistoryListRequest']
|
40
|
+
_NODEHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['NodeHistoryListResponse']
|
41
|
+
_NODEHISTORY = DESCRIPTOR.message_types_by_name['NodeHistory']
|
42
|
+
NodeHistoryListRequest = _reflection.GeneratedProtocolMessageType('NodeHistoryListRequest', (_message.Message,), {
|
43
|
+
'DESCRIPTOR' : _NODEHISTORYLISTREQUEST,
|
44
|
+
'__module__' : 'nodes_history_pb2'
|
45
|
+
# @@protoc_insertion_point(class_scope:v1.NodeHistoryListRequest)
|
46
|
+
})
|
47
|
+
_sym_db.RegisterMessage(NodeHistoryListRequest)
|
48
|
+
|
49
|
+
NodeHistoryListResponse = _reflection.GeneratedProtocolMessageType('NodeHistoryListResponse', (_message.Message,), {
|
50
|
+
'DESCRIPTOR' : _NODEHISTORYLISTRESPONSE,
|
51
|
+
'__module__' : 'nodes_history_pb2'
|
52
|
+
# @@protoc_insertion_point(class_scope:v1.NodeHistoryListResponse)
|
53
|
+
})
|
54
|
+
_sym_db.RegisterMessage(NodeHistoryListResponse)
|
55
|
+
|
56
|
+
NodeHistory = _reflection.GeneratedProtocolMessageType('NodeHistory', (_message.Message,), {
|
57
|
+
'DESCRIPTOR' : _NODEHISTORY,
|
58
|
+
'__module__' : 'nodes_history_pb2'
|
59
|
+
# @@protoc_insertion_point(class_scope:v1.NodeHistory)
|
60
|
+
})
|
61
|
+
_sym_db.RegisterMessage(NodeHistory)
|
62
|
+
|
63
|
+
_NODESHISTORY = DESCRIPTOR.services_by_name['NodesHistory']
|
64
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
65
|
+
|
66
|
+
DESCRIPTOR._options = None
|
67
|
+
DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\024NodesHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
|
68
|
+
_NODEHISTORYLISTREQUEST.fields_by_name['filter']._options = None
|
69
|
+
_NODEHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
70
|
+
_NODEHISTORYLISTRESPONSE.fields_by_name['history']._options = None
|
71
|
+
_NODEHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
|
72
|
+
_NODEHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
|
73
|
+
_NODEHISTORYLISTRESPONSE.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
|
+
_NODEHISTORY.fields_by_name['activity_id']._options = None
|
75
|
+
_NODEHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
76
|
+
_NODEHISTORY.fields_by_name['timestamp']._options = None
|
77
|
+
_NODEHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
78
|
+
_NODEHISTORY.fields_by_name['node']._options = None
|
79
|
+
_NODEHISTORY.fields_by_name['node']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
80
|
+
_NODEHISTORY.fields_by_name['deleted_at']._options = None
|
81
|
+
_NODEHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
82
|
+
_NODEHISTORY._options = None
|
83
|
+
_NODEHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
84
|
+
_NODESHISTORY._options = None
|
85
|
+
_NODESHISTORY._serialized_options = b'\312\371\263\007\020\302\371\263\007\013NodeHistory\312\371\263\007\005\330\371\263\007\001'
|
86
|
+
_NODESHISTORY.methods_by_name['List']._options = None
|
87
|
+
_NODESHISTORY.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/nodes-history'
|
88
|
+
_NODEHISTORYLISTREQUEST._serialized_start=100
|
89
|
+
_NODEHISTORYLISTREQUEST._serialized_end=191
|
90
|
+
_NODEHISTORYLISTRESPONSE._serialized_start=194
|
91
|
+
_NODEHISTORYLISTRESPONSE._serialized_end=394
|
92
|
+
_NODEHISTORY._serialized_start=397
|
93
|
+
_NODEHISTORY._serialized_end=610
|
94
|
+
_NODESHISTORY._serialized_start=613
|
95
|
+
_NODESHISTORY._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 nodes_history_pb2 as nodes__history__pb2
|
20
|
+
|
21
|
+
|
22
|
+
class NodesHistoryStub(object):
|
23
|
+
"""NodesHistory records all changes to the state of a Node.
|
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.NodesHistory/List',
|
34
|
+
request_serializer=nodes__history__pb2.NodeHistoryListRequest.SerializeToString,
|
35
|
+
response_deserializer=nodes__history__pb2.NodeHistoryListResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class NodesHistoryServicer(object):
|
40
|
+
"""NodesHistory records all changes to the state of a Node.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def List(self, request, context):
|
44
|
+
"""List gets a list of NodeHistory 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_NodesHistoryServicer_to_server(servicer, server):
|
52
|
+
rpc_method_handlers = {
|
53
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
54
|
+
servicer.List,
|
55
|
+
request_deserializer=nodes__history__pb2.NodeHistoryListRequest.FromString,
|
56
|
+
response_serializer=nodes__history__pb2.NodeHistoryListResponse.SerializeToString,
|
57
|
+
),
|
58
|
+
}
|
59
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
60
|
+
'v1.NodesHistory', rpc_method_handlers)
|
61
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
62
|
+
|
63
|
+
|
64
|
+
# This class is part of an EXPERIMENTAL API.
|
65
|
+
class NodesHistory(object):
|
66
|
+
"""NodesHistory records all changes to the state of a Node.
|
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.NodesHistory/List',
|
81
|
+
nodes__history__pb2.NodeHistoryListRequest.SerializeToString,
|
82
|
+
nodes__history__pb2.NodeHistoryListResponse.FromString,
|
83
|
+
options, channel_credentials,
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,154 @@
|
|
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: organization_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 duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
30
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__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\x1aorganization_history.proto\x12\x02v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\roptions.proto\x1a\nspec.proto\"c\n\x1eOrganizationHistoryListRequest\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\"\xde\x01\n\x1fOrganizationHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12:\n\x07history\x18\x02 \x03(\x0b\x32\x1d.v1.OrganizationHistoryRecordB\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\"\xb7\x01\n\x19OrganizationHistoryRecord\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\x32\n\x0corganization\x18\x03 \x01(\x0b\x32\x10.v1.OrganizationB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\"\xa5\n\n\x0cOrganization\x12\x18\n\x04name\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12!\n\rauth_provider\x18\x04 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12(\n\x14idle_timeout_enabled\x18\x05 \x01(\x08\x42\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12;\n\x0cidle_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12+\n\x17session_timeout_enabled\x18\x07 \x01(\x08\x42\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12>\n\x0fsession_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x39\n\x0bmfa_enabled\x18\t \x01(\x08\x42$\xf2\xf8\xb3\x07\x1f\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07\x15\xc2\xf4\xb3\x07\x10\n\x02go\x12\nMFAEnabled\x12;\n\x0cmfa_provider\x18\n \x01(\tB%\xf2\xf8\xb3\x07 \xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07\x16\xc2\xf4\xb3\x07\x11\n\x02go\x12\x0bMFAProvider\x12&\n\x12log_remote_encoder\x18\x0b \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12%\n\x11log_local_storage\x18\x0c \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12%\n\x11log_local_encoder\x18\r \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12$\n\x10log_local_format\x18\x0e \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12@\n\x0flog_tcp_address\x18\x0f \x01(\tB\'\xf2\xf8\xb3\x07\"\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07\x18\xc2\xf4\xb3\x07\x13\n\x02go\x12\rLogTCPAddress\x12#\n\x0flog_socket_path\x18\x10 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12=\n\rscim_provider\x18\x11 \x01(\tB&\xf2\xf8\xb3\x07!\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07\x17\xc2\xf4\xb3\x07\x12\n\x02go\x12\x0cSCIMProvider\x12&\n\x12websites_subdomain\x18\x12 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12h\n$ssh_certificate_authority_public_key\x18\x13 \x01(\tB:\xf2\xf8\xb3\x07\x35\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07+\xc2\xf4\xb3\x07&\n\x02go\x12 SSHCertificateAuthorityPublicKey\x12\x84\x01\n$ssh_certificate_authority_updated_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampB:\xf2\xf8\xb3\x07\x35\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07+\xc2\xf4\xb3\x07&\n\x02go\x12 SSHCertificateAuthorityUpdatedAt\x12(\n\x14require_secret_store\x18\x15 \x01(\x08\x42\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12#\n\x0fsensitive_label\x18\x16 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x44\n\x11saml_metadata_url\x18\x17 \x01(\tB)\xf2\xf8\xb3\x07$\xb0\xf3\xb3\x07\x01\xca\xf3\xb3\x07\x1a\xc2\xf4\xb3\x07\x15\n\x02go\x12\x0fSAMLMetadataURL\x12\x18\n\x04kind\x18\x18 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01:\n\xfa\xf8\xb3\x07\x05\xa8\xf3\xb3\x07\x01\x32\xc7\x01\n\x13OrganizationHistory\x12\x80\x01\n\x04List\x12\".v1.OrganizationHistoryListRequest\x1a#.v1.OrganizationHistoryListResponse\"/\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x1d\xaa\xf3\xb3\x07\x18/v1/organization-history\x1a-\xca\xf9\xb3\x07\x1e\xc2\xf9\xb3\x07\x19OrganizationHistoryRecord\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42o\n\x19\x63om.strongdm.api.plumbingB\x1bOrganizationHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
_ORGANIZATIONHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['OrganizationHistoryListRequest']
|
40
|
+
_ORGANIZATIONHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['OrganizationHistoryListResponse']
|
41
|
+
_ORGANIZATIONHISTORYRECORD = DESCRIPTOR.message_types_by_name['OrganizationHistoryRecord']
|
42
|
+
_ORGANIZATION = DESCRIPTOR.message_types_by_name['Organization']
|
43
|
+
OrganizationHistoryListRequest = _reflection.GeneratedProtocolMessageType('OrganizationHistoryListRequest', (_message.Message,), {
|
44
|
+
'DESCRIPTOR' : _ORGANIZATIONHISTORYLISTREQUEST,
|
45
|
+
'__module__' : 'organization_history_pb2'
|
46
|
+
# @@protoc_insertion_point(class_scope:v1.OrganizationHistoryListRequest)
|
47
|
+
})
|
48
|
+
_sym_db.RegisterMessage(OrganizationHistoryListRequest)
|
49
|
+
|
50
|
+
OrganizationHistoryListResponse = _reflection.GeneratedProtocolMessageType('OrganizationHistoryListResponse', (_message.Message,), {
|
51
|
+
'DESCRIPTOR' : _ORGANIZATIONHISTORYLISTRESPONSE,
|
52
|
+
'__module__' : 'organization_history_pb2'
|
53
|
+
# @@protoc_insertion_point(class_scope:v1.OrganizationHistoryListResponse)
|
54
|
+
})
|
55
|
+
_sym_db.RegisterMessage(OrganizationHistoryListResponse)
|
56
|
+
|
57
|
+
OrganizationHistoryRecord = _reflection.GeneratedProtocolMessageType('OrganizationHistoryRecord', (_message.Message,), {
|
58
|
+
'DESCRIPTOR' : _ORGANIZATIONHISTORYRECORD,
|
59
|
+
'__module__' : 'organization_history_pb2'
|
60
|
+
# @@protoc_insertion_point(class_scope:v1.OrganizationHistoryRecord)
|
61
|
+
})
|
62
|
+
_sym_db.RegisterMessage(OrganizationHistoryRecord)
|
63
|
+
|
64
|
+
Organization = _reflection.GeneratedProtocolMessageType('Organization', (_message.Message,), {
|
65
|
+
'DESCRIPTOR' : _ORGANIZATION,
|
66
|
+
'__module__' : 'organization_history_pb2'
|
67
|
+
# @@protoc_insertion_point(class_scope:v1.Organization)
|
68
|
+
})
|
69
|
+
_sym_db.RegisterMessage(Organization)
|
70
|
+
|
71
|
+
_ORGANIZATIONHISTORY = DESCRIPTOR.services_by_name['OrganizationHistory']
|
72
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
73
|
+
|
74
|
+
DESCRIPTOR._options = None
|
75
|
+
DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\033OrganizationHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
|
76
|
+
_ORGANIZATIONHISTORYLISTREQUEST.fields_by_name['filter']._options = None
|
77
|
+
_ORGANIZATIONHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
78
|
+
_ORGANIZATIONHISTORYLISTRESPONSE.fields_by_name['history']._options = None
|
79
|
+
_ORGANIZATIONHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
|
80
|
+
_ORGANIZATIONHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
|
81
|
+
_ORGANIZATIONHISTORYLISTRESPONSE.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'
|
82
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['activity_id']._options = None
|
83
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
84
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['timestamp']._options = None
|
85
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
86
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['organization']._options = None
|
87
|
+
_ORGANIZATIONHISTORYRECORD.fields_by_name['organization']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
88
|
+
_ORGANIZATIONHISTORYRECORD._options = None
|
89
|
+
_ORGANIZATIONHISTORYRECORD._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
90
|
+
_ORGANIZATION.fields_by_name['name']._options = None
|
91
|
+
_ORGANIZATION.fields_by_name['name']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
92
|
+
_ORGANIZATION.fields_by_name['created_at']._options = None
|
93
|
+
_ORGANIZATION.fields_by_name['created_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
94
|
+
_ORGANIZATION.fields_by_name['updated_at']._options = None
|
95
|
+
_ORGANIZATION.fields_by_name['updated_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
96
|
+
_ORGANIZATION.fields_by_name['auth_provider']._options = None
|
97
|
+
_ORGANIZATION.fields_by_name['auth_provider']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
98
|
+
_ORGANIZATION.fields_by_name['idle_timeout_enabled']._options = None
|
99
|
+
_ORGANIZATION.fields_by_name['idle_timeout_enabled']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
100
|
+
_ORGANIZATION.fields_by_name['idle_timeout']._options = None
|
101
|
+
_ORGANIZATION.fields_by_name['idle_timeout']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
102
|
+
_ORGANIZATION.fields_by_name['session_timeout_enabled']._options = None
|
103
|
+
_ORGANIZATION.fields_by_name['session_timeout_enabled']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
104
|
+
_ORGANIZATION.fields_by_name['session_timeout']._options = None
|
105
|
+
_ORGANIZATION.fields_by_name['session_timeout']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
106
|
+
_ORGANIZATION.fields_by_name['mfa_enabled']._options = None
|
107
|
+
_ORGANIZATION.fields_by_name['mfa_enabled']._serialized_options = b'\362\370\263\007\037\260\363\263\007\001\312\363\263\007\025\302\364\263\007\020\n\002go\022\nMFAEnabled'
|
108
|
+
_ORGANIZATION.fields_by_name['mfa_provider']._options = None
|
109
|
+
_ORGANIZATION.fields_by_name['mfa_provider']._serialized_options = b'\362\370\263\007 \260\363\263\007\001\312\363\263\007\026\302\364\263\007\021\n\002go\022\013MFAProvider'
|
110
|
+
_ORGANIZATION.fields_by_name['log_remote_encoder']._options = None
|
111
|
+
_ORGANIZATION.fields_by_name['log_remote_encoder']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
112
|
+
_ORGANIZATION.fields_by_name['log_local_storage']._options = None
|
113
|
+
_ORGANIZATION.fields_by_name['log_local_storage']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
114
|
+
_ORGANIZATION.fields_by_name['log_local_encoder']._options = None
|
115
|
+
_ORGANIZATION.fields_by_name['log_local_encoder']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
116
|
+
_ORGANIZATION.fields_by_name['log_local_format']._options = None
|
117
|
+
_ORGANIZATION.fields_by_name['log_local_format']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
118
|
+
_ORGANIZATION.fields_by_name['log_tcp_address']._options = None
|
119
|
+
_ORGANIZATION.fields_by_name['log_tcp_address']._serialized_options = b'\362\370\263\007\"\260\363\263\007\001\312\363\263\007\030\302\364\263\007\023\n\002go\022\rLogTCPAddress'
|
120
|
+
_ORGANIZATION.fields_by_name['log_socket_path']._options = None
|
121
|
+
_ORGANIZATION.fields_by_name['log_socket_path']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
122
|
+
_ORGANIZATION.fields_by_name['scim_provider']._options = None
|
123
|
+
_ORGANIZATION.fields_by_name['scim_provider']._serialized_options = b'\362\370\263\007!\260\363\263\007\001\312\363\263\007\027\302\364\263\007\022\n\002go\022\014SCIMProvider'
|
124
|
+
_ORGANIZATION.fields_by_name['websites_subdomain']._options = None
|
125
|
+
_ORGANIZATION.fields_by_name['websites_subdomain']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
126
|
+
_ORGANIZATION.fields_by_name['ssh_certificate_authority_public_key']._options = None
|
127
|
+
_ORGANIZATION.fields_by_name['ssh_certificate_authority_public_key']._serialized_options = b'\362\370\263\0075\260\363\263\007\001\312\363\263\007+\302\364\263\007&\n\002go\022 SSHCertificateAuthorityPublicKey'
|
128
|
+
_ORGANIZATION.fields_by_name['ssh_certificate_authority_updated_at']._options = None
|
129
|
+
_ORGANIZATION.fields_by_name['ssh_certificate_authority_updated_at']._serialized_options = b'\362\370\263\0075\260\363\263\007\001\312\363\263\007+\302\364\263\007&\n\002go\022 SSHCertificateAuthorityUpdatedAt'
|
130
|
+
_ORGANIZATION.fields_by_name['require_secret_store']._options = None
|
131
|
+
_ORGANIZATION.fields_by_name['require_secret_store']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
132
|
+
_ORGANIZATION.fields_by_name['sensitive_label']._options = None
|
133
|
+
_ORGANIZATION.fields_by_name['sensitive_label']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
134
|
+
_ORGANIZATION.fields_by_name['saml_metadata_url']._options = None
|
135
|
+
_ORGANIZATION.fields_by_name['saml_metadata_url']._serialized_options = b'\362\370\263\007$\260\363\263\007\001\312\363\263\007\032\302\364\263\007\025\n\002go\022\017SAMLMetadataURL'
|
136
|
+
_ORGANIZATION.fields_by_name['kind']._options = None
|
137
|
+
_ORGANIZATION.fields_by_name['kind']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
138
|
+
_ORGANIZATION._options = None
|
139
|
+
_ORGANIZATION._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
140
|
+
_ORGANIZATIONHISTORY._options = None
|
141
|
+
_ORGANIZATIONHISTORY._serialized_options = b'\312\371\263\007\036\302\371\263\007\031OrganizationHistoryRecord\312\371\263\007\005\330\371\263\007\001'
|
142
|
+
_ORGANIZATIONHISTORY.methods_by_name['List']._options = None
|
143
|
+
_ORGANIZATIONHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\035\252\363\263\007\030/v1/organization-history'
|
144
|
+
_ORGANIZATIONHISTORYLISTREQUEST._serialized_start=126
|
145
|
+
_ORGANIZATIONHISTORYLISTREQUEST._serialized_end=225
|
146
|
+
_ORGANIZATIONHISTORYLISTRESPONSE._serialized_start=228
|
147
|
+
_ORGANIZATIONHISTORYLISTRESPONSE._serialized_end=450
|
148
|
+
_ORGANIZATIONHISTORYRECORD._serialized_start=453
|
149
|
+
_ORGANIZATIONHISTORYRECORD._serialized_end=636
|
150
|
+
_ORGANIZATION._serialized_start=639
|
151
|
+
_ORGANIZATION._serialized_end=1956
|
152
|
+
_ORGANIZATIONHISTORY._serialized_start=1959
|
153
|
+
_ORGANIZATIONHISTORY._serialized_end=2158
|
154
|
+
# @@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 organization_history_pb2 as organization__history__pb2
|
20
|
+
|
21
|
+
|
22
|
+
class OrganizationHistoryStub(object):
|
23
|
+
"""OrganizationHistory records all changes to the state of an Organization.
|
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.OrganizationHistory/List',
|
34
|
+
request_serializer=organization__history__pb2.OrganizationHistoryListRequest.SerializeToString,
|
35
|
+
response_deserializer=organization__history__pb2.OrganizationHistoryListResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class OrganizationHistoryServicer(object):
|
40
|
+
"""OrganizationHistory records all changes to the state of an Organization.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def List(self, request, context):
|
44
|
+
"""List gets a list of OrganizationHistory 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_OrganizationHistoryServicer_to_server(servicer, server):
|
52
|
+
rpc_method_handlers = {
|
53
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
54
|
+
servicer.List,
|
55
|
+
request_deserializer=organization__history__pb2.OrganizationHistoryListRequest.FromString,
|
56
|
+
response_serializer=organization__history__pb2.OrganizationHistoryListResponse.SerializeToString,
|
57
|
+
),
|
58
|
+
}
|
59
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
60
|
+
'v1.OrganizationHistory', rpc_method_handlers)
|
61
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
62
|
+
|
63
|
+
|
64
|
+
# This class is part of an EXPERIMENTAL API.
|
65
|
+
class OrganizationHistory(object):
|
66
|
+
"""OrganizationHistory records all changes to the state of an Organization.
|
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.OrganizationHistory/List',
|
81
|
+
organization__history__pb2.OrganizationHistoryListRequest.SerializeToString,
|
82
|
+
organization__history__pb2.OrganizationHistoryListResponse.FromString,
|
83
|
+
options, channel_credentials,
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|