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.
- {strongdm-3.6.0 → strongdm-3.7.0}/PKG-INFO +2 -2
- {strongdm-3.6.0 → 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.0 → strongdm-3.7.0}/strongdm/drivers_pb2.py +172 -172
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/models.py +1868 -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.0 → strongdm-3.7.0}/strongdm/plumbing.py +947 -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.6.0 → strongdm-3.7.0}/strongdm/secret_store_types_pb2.py +11 -11
- 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.0 → strongdm-3.7.0}/strongdm/svc.py +1199 -12
- {strongdm-3.6.0 → 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.0/strongdm/client.py +0 -199
- strongdm-3.6.0/strongdm/constants.py +0 -53
- strongdm-3.6.0/strongdm.egg-info/SOURCES.txt +0 -44
- {strongdm-3.6.0 → strongdm-3.7.0}/README.md +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/setup.cfg +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/__init__.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_attachments_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_attachments_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_grants_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/account_grants_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/accounts_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/accounts_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/control_panel_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/control_panel_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/drivers_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/errors.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/nodes_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/nodes_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/options_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/options_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identities_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identities_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/remote_identity_groups_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/resources_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/resources_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/roles_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/roles_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_store_types_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_stores_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/secret_stores_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/spec_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/spec_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/tags_pb2.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm/tags_pb2_grpc.py +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/dependency_links.txt +0 -0
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/requires.txt +1 -1
- {strongdm-3.6.0 → strongdm-3.7.0}/strongdm.egg-info/top_level.txt +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: strongdm
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.7.0
|
4
4
|
Summary: strongDM SDK for the Python programming language.
|
5
5
|
Home-page: https://github.com/strongdm/strongdm-sdk-python
|
6
6
|
Author: strongDM Team
|
7
7
|
Author-email: sdk-feedback@strongdm.com
|
8
8
|
License: apache-2.0
|
9
|
-
Download-URL: https://github.com/strongdm/strongdm-sdk-python/archive/v3.
|
9
|
+
Download-URL: https://github.com/strongdm/strongdm-sdk-python/archive/v3.7.0.tar.gz
|
10
10
|
Description: # strongDM SDK for Python
|
11
11
|
|
12
12
|
This is the official [strongDM](https://www.strongdm.com/) SDK for the Python
|
@@ -23,7 +23,7 @@ from setuptools import setup
|
|
23
23
|
setup(
|
24
24
|
name='strongdm',
|
25
25
|
packages=['strongdm'],
|
26
|
-
version='3.
|
26
|
+
version='3.7.0',
|
27
27
|
license='apache-2.0',
|
28
28
|
description='strongDM SDK for the Python programming language.',
|
29
29
|
long_description=long_description,
|
@@ -32,7 +32,7 @@ setup(
|
|
32
32
|
author_email='sdk-feedback@strongdm.com',
|
33
33
|
url='https://github.com/strongdm/strongdm-sdk-python',
|
34
34
|
download_url=
|
35
|
-
'https://github.com/strongdm/strongdm-sdk-python/archive/v3.
|
35
|
+
'https://github.com/strongdm/strongdm-sdk-python/archive/v3.7.0.tar.gz',
|
36
36
|
keywords=[
|
37
37
|
'strongDM', 'sdm', 'api', 'automation', 'security', 'audit',
|
38
38
|
'database', 'server', 'ssh', 'rdp'
|
@@ -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: account_attachments_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 account_attachments_pb2 as account__attachments__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!account_attachments_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x61\x63\x63ount_attachments.proto\x1a\roptions.proto\x1a\nspec.proto\"h\n#AccountAttachmentHistoryListRequest\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\"\xe2\x01\n$AccountAttachmentHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x39\n\x07history\x18\x02 \x03(\x0b\x32\x1c.v1.AccountAttachmentHistoryB\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\"\xfd\x01\n\x18\x41\x63\x63ountAttachmentHistory\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\x12\x61\x63\x63ount_attachment\x18\x03 \x01(\x0b\x32\x15.v1.AccountAttachmentB\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\xdd\x01\n\x19\x41\x63\x63ountAttachmentsHistory\x12\x91\x01\n\x04List\x12\'.v1.AccountAttachmentHistoryListRequest\x1a(.v1.AccountAttachmentHistoryListResponse\"6\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07$\xaa\xf3\xb3\x07\x1f/v1/account-attachments-history\x1a,\xca\xf9\xb3\x07\x1d\xc2\xf9\xb3\x07\x18\x41\x63\x63ountAttachmentHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42u\n\x19\x63om.strongdm.api.plumbingB!AccountAttachmentsHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
_ACCOUNTATTACHMENTHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['AccountAttachmentHistoryListRequest']
|
40
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['AccountAttachmentHistoryListResponse']
|
41
|
+
_ACCOUNTATTACHMENTHISTORY = DESCRIPTOR.message_types_by_name['AccountAttachmentHistory']
|
42
|
+
AccountAttachmentHistoryListRequest = _reflection.GeneratedProtocolMessageType('AccountAttachmentHistoryListRequest', (_message.Message,), {
|
43
|
+
'DESCRIPTOR' : _ACCOUNTATTACHMENTHISTORYLISTREQUEST,
|
44
|
+
'__module__' : 'account_attachments_history_pb2'
|
45
|
+
# @@protoc_insertion_point(class_scope:v1.AccountAttachmentHistoryListRequest)
|
46
|
+
})
|
47
|
+
_sym_db.RegisterMessage(AccountAttachmentHistoryListRequest)
|
48
|
+
|
49
|
+
AccountAttachmentHistoryListResponse = _reflection.GeneratedProtocolMessageType('AccountAttachmentHistoryListResponse', (_message.Message,), {
|
50
|
+
'DESCRIPTOR' : _ACCOUNTATTACHMENTHISTORYLISTRESPONSE,
|
51
|
+
'__module__' : 'account_attachments_history_pb2'
|
52
|
+
# @@protoc_insertion_point(class_scope:v1.AccountAttachmentHistoryListResponse)
|
53
|
+
})
|
54
|
+
_sym_db.RegisterMessage(AccountAttachmentHistoryListResponse)
|
55
|
+
|
56
|
+
AccountAttachmentHistory = _reflection.GeneratedProtocolMessageType('AccountAttachmentHistory', (_message.Message,), {
|
57
|
+
'DESCRIPTOR' : _ACCOUNTATTACHMENTHISTORY,
|
58
|
+
'__module__' : 'account_attachments_history_pb2'
|
59
|
+
# @@protoc_insertion_point(class_scope:v1.AccountAttachmentHistory)
|
60
|
+
})
|
61
|
+
_sym_db.RegisterMessage(AccountAttachmentHistory)
|
62
|
+
|
63
|
+
_ACCOUNTATTACHMENTSHISTORY = DESCRIPTOR.services_by_name['AccountAttachmentsHistory']
|
64
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
65
|
+
|
66
|
+
DESCRIPTOR._options = None
|
67
|
+
DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB!AccountAttachmentsHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
|
68
|
+
_ACCOUNTATTACHMENTHISTORYLISTREQUEST.fields_by_name['filter']._options = None
|
69
|
+
_ACCOUNTATTACHMENTHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
70
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE.fields_by_name['history']._options = None
|
71
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
|
72
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
|
73
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE.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
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['activity_id']._options = None
|
75
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
76
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['timestamp']._options = None
|
77
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
78
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['account_attachment']._options = None
|
79
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['account_attachment']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
80
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['deleted_at']._options = None
|
81
|
+
_ACCOUNTATTACHMENTHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
82
|
+
_ACCOUNTATTACHMENTHISTORY._options = None
|
83
|
+
_ACCOUNTATTACHMENTHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
84
|
+
_ACCOUNTATTACHMENTSHISTORY._options = None
|
85
|
+
_ACCOUNTATTACHMENTSHISTORY._serialized_options = b'\312\371\263\007\035\302\371\263\007\030AccountAttachmentHistory\312\371\263\007\005\330\371\263\007\001'
|
86
|
+
_ACCOUNTATTACHMENTSHISTORY.methods_by_name['List']._options = None
|
87
|
+
_ACCOUNTATTACHMENTSHISTORY.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\037/v1/account-attachments-history'
|
88
|
+
_ACCOUNTATTACHMENTHISTORYLISTREQUEST._serialized_start=128
|
89
|
+
_ACCOUNTATTACHMENTHISTORYLISTREQUEST._serialized_end=232
|
90
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE._serialized_start=235
|
91
|
+
_ACCOUNTATTACHMENTHISTORYLISTRESPONSE._serialized_end=461
|
92
|
+
_ACCOUNTATTACHMENTHISTORY._serialized_start=464
|
93
|
+
_ACCOUNTATTACHMENTHISTORY._serialized_end=717
|
94
|
+
_ACCOUNTATTACHMENTSHISTORY._serialized_start=720
|
95
|
+
_ACCOUNTATTACHMENTSHISTORY._serialized_end=941
|
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 account_attachments_history_pb2 as account__attachments__history__pb2
|
20
|
+
|
21
|
+
|
22
|
+
class AccountAttachmentsHistoryStub(object):
|
23
|
+
"""AccountAttachmentsHistory records all changes to the state of an AccountAttachment.
|
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.AccountAttachmentsHistory/List',
|
34
|
+
request_serializer=account__attachments__history__pb2.AccountAttachmentHistoryListRequest.SerializeToString,
|
35
|
+
response_deserializer=account__attachments__history__pb2.AccountAttachmentHistoryListResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class AccountAttachmentsHistoryServicer(object):
|
40
|
+
"""AccountAttachmentsHistory records all changes to the state of an AccountAttachment.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def List(self, request, context):
|
44
|
+
"""List gets a list of AccountAttachmentHistory 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_AccountAttachmentsHistoryServicer_to_server(servicer, server):
|
52
|
+
rpc_method_handlers = {
|
53
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
54
|
+
servicer.List,
|
55
|
+
request_deserializer=account__attachments__history__pb2.AccountAttachmentHistoryListRequest.FromString,
|
56
|
+
response_serializer=account__attachments__history__pb2.AccountAttachmentHistoryListResponse.SerializeToString,
|
57
|
+
),
|
58
|
+
}
|
59
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
60
|
+
'v1.AccountAttachmentsHistory', rpc_method_handlers)
|
61
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
62
|
+
|
63
|
+
|
64
|
+
# This class is part of an EXPERIMENTAL API.
|
65
|
+
class AccountAttachmentsHistory(object):
|
66
|
+
"""AccountAttachmentsHistory records all changes to the state of an AccountAttachment.
|
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.AccountAttachmentsHistory/List',
|
81
|
+
account__attachments__history__pb2.AccountAttachmentHistoryListRequest.SerializeToString,
|
82
|
+
account__attachments__history__pb2.AccountAttachmentHistoryListResponse.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: account_grants_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 account_grants_pb2 as account__grants__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\x1c\x61\x63\x63ount_grants_history.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x14\x61\x63\x63ount_grants.proto\x1a\roptions.proto\x1a\nspec.proto\"c\n\x1e\x41\x63\x63ountGrantHistoryListRequest\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\x1f\x41\x63\x63ountGrantHistoryListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x34\n\x07history\x18\x02 \x03(\x0b\x32\x17.v1.AccountGrantHistoryB\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\x13\x41\x63\x63ountGrantHistory\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\raccount_grant\x18\x03 \x01(\x0b\x32\x10.v1.AccountGrantB\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\xc4\x01\n\x14\x41\x63\x63ountGrantsHistory\x12\x82\x01\n\x04List\x12\".v1.AccountGrantHistoryListRequest\x1a#.v1.AccountGrantHistoryListResponse\"1\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x1f\xaa\xf3\xb3\x07\x1a/v1/account-grants-history\x1a\'\xca\xf9\xb3\x07\x18\xc2\xf9\xb3\x07\x13\x41\x63\x63ountGrantHistory\xca\xf9\xb3\x07\x05\xd8\xf9\xb3\x07\x01\x42p\n\x19\x63om.strongdm.api.plumbingB\x1c\x41\x63\x63ountGrantsHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
_ACCOUNTGRANTHISTORYLISTREQUEST = DESCRIPTOR.message_types_by_name['AccountGrantHistoryListRequest']
|
40
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE = DESCRIPTOR.message_types_by_name['AccountGrantHistoryListResponse']
|
41
|
+
_ACCOUNTGRANTHISTORY = DESCRIPTOR.message_types_by_name['AccountGrantHistory']
|
42
|
+
AccountGrantHistoryListRequest = _reflection.GeneratedProtocolMessageType('AccountGrantHistoryListRequest', (_message.Message,), {
|
43
|
+
'DESCRIPTOR' : _ACCOUNTGRANTHISTORYLISTREQUEST,
|
44
|
+
'__module__' : 'account_grants_history_pb2'
|
45
|
+
# @@protoc_insertion_point(class_scope:v1.AccountGrantHistoryListRequest)
|
46
|
+
})
|
47
|
+
_sym_db.RegisterMessage(AccountGrantHistoryListRequest)
|
48
|
+
|
49
|
+
AccountGrantHistoryListResponse = _reflection.GeneratedProtocolMessageType('AccountGrantHistoryListResponse', (_message.Message,), {
|
50
|
+
'DESCRIPTOR' : _ACCOUNTGRANTHISTORYLISTRESPONSE,
|
51
|
+
'__module__' : 'account_grants_history_pb2'
|
52
|
+
# @@protoc_insertion_point(class_scope:v1.AccountGrantHistoryListResponse)
|
53
|
+
})
|
54
|
+
_sym_db.RegisterMessage(AccountGrantHistoryListResponse)
|
55
|
+
|
56
|
+
AccountGrantHistory = _reflection.GeneratedProtocolMessageType('AccountGrantHistory', (_message.Message,), {
|
57
|
+
'DESCRIPTOR' : _ACCOUNTGRANTHISTORY,
|
58
|
+
'__module__' : 'account_grants_history_pb2'
|
59
|
+
# @@protoc_insertion_point(class_scope:v1.AccountGrantHistory)
|
60
|
+
})
|
61
|
+
_sym_db.RegisterMessage(AccountGrantHistory)
|
62
|
+
|
63
|
+
_ACCOUNTGRANTSHISTORY = DESCRIPTOR.services_by_name['AccountGrantsHistory']
|
64
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
65
|
+
|
66
|
+
DESCRIPTOR._options = None
|
67
|
+
DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\034AccountGrantsHistoryPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
|
68
|
+
_ACCOUNTGRANTHISTORYLISTREQUEST.fields_by_name['filter']._options = None
|
69
|
+
_ACCOUNTGRANTHISTORYLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
70
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE.fields_by_name['history']._options = None
|
71
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE.fields_by_name['history']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
|
72
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE.fields_by_name['rate_limit']._options = None
|
73
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE.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
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['activity_id']._options = None
|
75
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['activity_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
76
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['timestamp']._options = None
|
77
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['timestamp']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
78
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['account_grant']._options = None
|
79
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['account_grant']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
80
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['deleted_at']._options = None
|
81
|
+
_ACCOUNTGRANTHISTORY.fields_by_name['deleted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
82
|
+
_ACCOUNTGRANTHISTORY._options = None
|
83
|
+
_ACCOUNTGRANTHISTORY._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
84
|
+
_ACCOUNTGRANTSHISTORY._options = None
|
85
|
+
_ACCOUNTGRANTSHISTORY._serialized_options = b'\312\371\263\007\030\302\371\263\007\023AccountGrantHistory\312\371\263\007\005\330\371\263\007\001'
|
86
|
+
_ACCOUNTGRANTSHISTORY.methods_by_name['List']._options = None
|
87
|
+
_ACCOUNTGRANTSHISTORY.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\037\252\363\263\007\032/v1/account-grants-history'
|
88
|
+
_ACCOUNTGRANTHISTORYLISTREQUEST._serialized_start=118
|
89
|
+
_ACCOUNTGRANTHISTORYLISTREQUEST._serialized_end=217
|
90
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE._serialized_start=220
|
91
|
+
_ACCOUNTGRANTHISTORYLISTRESPONSE._serialized_end=436
|
92
|
+
_ACCOUNTGRANTHISTORY._serialized_start=439
|
93
|
+
_ACCOUNTGRANTHISTORY._serialized_end=677
|
94
|
+
_ACCOUNTGRANTSHISTORY._serialized_start=680
|
95
|
+
_ACCOUNTGRANTSHISTORY._serialized_end=876
|
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 account_grants_history_pb2 as account__grants__history__pb2
|
20
|
+
|
21
|
+
|
22
|
+
class AccountGrantsHistoryStub(object):
|
23
|
+
"""AccountGrantsHistory records all changes to the state of an AccountGrant.
|
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.AccountGrantsHistory/List',
|
34
|
+
request_serializer=account__grants__history__pb2.AccountGrantHistoryListRequest.SerializeToString,
|
35
|
+
response_deserializer=account__grants__history__pb2.AccountGrantHistoryListResponse.FromString,
|
36
|
+
)
|
37
|
+
|
38
|
+
|
39
|
+
class AccountGrantsHistoryServicer(object):
|
40
|
+
"""AccountGrantsHistory records all changes to the state of an AccountGrant.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def List(self, request, context):
|
44
|
+
"""List gets a list of AccountGrantHistory 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_AccountGrantsHistoryServicer_to_server(servicer, server):
|
52
|
+
rpc_method_handlers = {
|
53
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
54
|
+
servicer.List,
|
55
|
+
request_deserializer=account__grants__history__pb2.AccountGrantHistoryListRequest.FromString,
|
56
|
+
response_serializer=account__grants__history__pb2.AccountGrantHistoryListResponse.SerializeToString,
|
57
|
+
),
|
58
|
+
}
|
59
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
60
|
+
'v1.AccountGrantsHistory', rpc_method_handlers)
|
61
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
62
|
+
|
63
|
+
|
64
|
+
# This class is part of an EXPERIMENTAL API.
|
65
|
+
class AccountGrantsHistory(object):
|
66
|
+
"""AccountGrantsHistory records all changes to the state of an AccountGrant.
|
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.AccountGrantsHistory/List',
|
81
|
+
account__grants__history__pb2.AccountGrantHistoryListRequest.SerializeToString,
|
82
|
+
account__grants__history__pb2.AccountGrantHistoryListResponse.FromString,
|
83
|
+
options, channel_credentials,
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,97 @@
|
|
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: account_permissions.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\x19\x61\x63\x63ount_permissions.proto\x12\x02v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\roptions.proto\x1a\nspec.proto\"a\n\x1c\x41\x63\x63ountPermissionListRequest\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\x1d\x41\x63\x63ountPermissionListResponse\x12&\n\x04meta\x18\x01 \x01(\x0b\x32\x18.v1.ListResponseMetadata\x12\x36\n\x0bpermissions\x18\x02 \x03(\x0b\x32\x15.v1.AccountPermissionB\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\x11\x41\x63\x63ountPermission\x12\x1e\n\naccount_id\x18\x01 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12:\n\ngranted_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x1e\n\npermission\x18\x03 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x19\n\x05scope\x18\x04 \x01(\tB\n\xf2\xf8\xb3\x07\x05\xb0\xf3\xb3\x07\x01\x12\x1d\n\tscoped_id\x18\x05 \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\xae\x01\n\x12\x41\x63\x63ountPermissions\x12{\n\x04List\x12 .v1.AccountPermissionListRequest\x1a!.v1.AccountPermissionListResponse\".\x82\xf9\xb3\x07\x08\xa2\xf3\xb3\x07\x03get\x82\xf9\xb3\x07\x1c\xaa\xf3\xb3\x07\x17/v1/account-permissions\x1a\x1b\xca\xf9\xb3\x07\x16\xc2\xf9\xb3\x07\x11\x41\x63\x63ountPermissionBn\n\x19\x63om.strongdm.api.plumbingB\x1a\x41\x63\x63ountPermissionsPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1b\x06proto3')
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
_ACCOUNTPERMISSIONLISTREQUEST = DESCRIPTOR.message_types_by_name['AccountPermissionListRequest']
|
39
|
+
_ACCOUNTPERMISSIONLISTRESPONSE = DESCRIPTOR.message_types_by_name['AccountPermissionListResponse']
|
40
|
+
_ACCOUNTPERMISSION = DESCRIPTOR.message_types_by_name['AccountPermission']
|
41
|
+
AccountPermissionListRequest = _reflection.GeneratedProtocolMessageType('AccountPermissionListRequest', (_message.Message,), {
|
42
|
+
'DESCRIPTOR' : _ACCOUNTPERMISSIONLISTREQUEST,
|
43
|
+
'__module__' : 'account_permissions_pb2'
|
44
|
+
# @@protoc_insertion_point(class_scope:v1.AccountPermissionListRequest)
|
45
|
+
})
|
46
|
+
_sym_db.RegisterMessage(AccountPermissionListRequest)
|
47
|
+
|
48
|
+
AccountPermissionListResponse = _reflection.GeneratedProtocolMessageType('AccountPermissionListResponse', (_message.Message,), {
|
49
|
+
'DESCRIPTOR' : _ACCOUNTPERMISSIONLISTRESPONSE,
|
50
|
+
'__module__' : 'account_permissions_pb2'
|
51
|
+
# @@protoc_insertion_point(class_scope:v1.AccountPermissionListResponse)
|
52
|
+
})
|
53
|
+
_sym_db.RegisterMessage(AccountPermissionListResponse)
|
54
|
+
|
55
|
+
AccountPermission = _reflection.GeneratedProtocolMessageType('AccountPermission', (_message.Message,), {
|
56
|
+
'DESCRIPTOR' : _ACCOUNTPERMISSION,
|
57
|
+
'__module__' : 'account_permissions_pb2'
|
58
|
+
# @@protoc_insertion_point(class_scope:v1.AccountPermission)
|
59
|
+
})
|
60
|
+
_sym_db.RegisterMessage(AccountPermission)
|
61
|
+
|
62
|
+
_ACCOUNTPERMISSIONS = DESCRIPTOR.services_by_name['AccountPermissions']
|
63
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
64
|
+
|
65
|
+
DESCRIPTOR._options = None
|
66
|
+
DESCRIPTOR._serialized_options = b'\n\031com.strongdm.api.plumbingB\032AccountPermissionsPlumbingZ5github.com/strongdm/strongdm-sdk-go/v3/internal/v1;v1'
|
67
|
+
_ACCOUNTPERMISSIONLISTREQUEST.fields_by_name['filter']._options = None
|
68
|
+
_ACCOUNTPERMISSIONLISTREQUEST.fields_by_name['filter']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
69
|
+
_ACCOUNTPERMISSIONLISTRESPONSE.fields_by_name['permissions']._options = None
|
70
|
+
_ACCOUNTPERMISSIONLISTRESPONSE.fields_by_name['permissions']._serialized_options = b'\362\370\263\007\005\270\363\263\007\001'
|
71
|
+
_ACCOUNTPERMISSIONLISTRESPONSE.fields_by_name['rate_limit']._options = None
|
72
|
+
_ACCOUNTPERMISSIONLISTRESPONSE.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
|
+
_ACCOUNTPERMISSION.fields_by_name['account_id']._options = None
|
74
|
+
_ACCOUNTPERMISSION.fields_by_name['account_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
75
|
+
_ACCOUNTPERMISSION.fields_by_name['granted_at']._options = None
|
76
|
+
_ACCOUNTPERMISSION.fields_by_name['granted_at']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
77
|
+
_ACCOUNTPERMISSION.fields_by_name['permission']._options = None
|
78
|
+
_ACCOUNTPERMISSION.fields_by_name['permission']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
79
|
+
_ACCOUNTPERMISSION.fields_by_name['scope']._options = None
|
80
|
+
_ACCOUNTPERMISSION.fields_by_name['scope']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
81
|
+
_ACCOUNTPERMISSION.fields_by_name['scoped_id']._options = None
|
82
|
+
_ACCOUNTPERMISSION.fields_by_name['scoped_id']._serialized_options = b'\362\370\263\007\005\260\363\263\007\001'
|
83
|
+
_ACCOUNTPERMISSION._options = None
|
84
|
+
_ACCOUNTPERMISSION._serialized_options = b'\372\370\263\007\005\250\363\263\007\001'
|
85
|
+
_ACCOUNTPERMISSIONS._options = None
|
86
|
+
_ACCOUNTPERMISSIONS._serialized_options = b'\312\371\263\007\026\302\371\263\007\021AccountPermission'
|
87
|
+
_ACCOUNTPERMISSIONS.methods_by_name['List']._options = None
|
88
|
+
_ACCOUNTPERMISSIONS.methods_by_name['List']._serialized_options = b'\202\371\263\007\010\242\363\263\007\003get\202\371\263\007\034\252\363\263\007\027/v1/account-permissions'
|
89
|
+
_ACCOUNTPERMISSIONLISTREQUEST._serialized_start=93
|
90
|
+
_ACCOUNTPERMISSIONLISTREQUEST._serialized_end=190
|
91
|
+
_ACCOUNTPERMISSIONLISTRESPONSE._serialized_start=193
|
92
|
+
_ACCOUNTPERMISSIONLISTRESPONSE._serialized_end=409
|
93
|
+
_ACCOUNTPERMISSION._serialized_start=412
|
94
|
+
_ACCOUNTPERMISSION._serialized_end=625
|
95
|
+
_ACCOUNTPERMISSIONS._serialized_start=628
|
96
|
+
_ACCOUNTPERMISSIONS._serialized_end=802
|
97
|
+
# @@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 account_permissions_pb2 as account__permissions__pb2
|
20
|
+
|
21
|
+
|
22
|
+
class AccountPermissionsStub(object):
|
23
|
+
"""AccountPermissions records the granular permissions accounts have, allowing them to execute
|
24
|
+
relevant commands via StrongDM's APIs.
|
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.AccountPermissions/List',
|
35
|
+
request_serializer=account__permissions__pb2.AccountPermissionListRequest.SerializeToString,
|
36
|
+
response_deserializer=account__permissions__pb2.AccountPermissionListResponse.FromString,
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
class AccountPermissionsServicer(object):
|
41
|
+
"""AccountPermissions records the granular permissions accounts have, allowing them to execute
|
42
|
+
relevant commands via StrongDM's APIs.
|
43
|
+
"""
|
44
|
+
|
45
|
+
def List(self, request, context):
|
46
|
+
"""List gets a list of Permission 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_AccountPermissionsServicer_to_server(servicer, server):
|
54
|
+
rpc_method_handlers = {
|
55
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
56
|
+
servicer.List,
|
57
|
+
request_deserializer=account__permissions__pb2.AccountPermissionListRequest.FromString,
|
58
|
+
response_serializer=account__permissions__pb2.AccountPermissionListResponse.SerializeToString,
|
59
|
+
),
|
60
|
+
}
|
61
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
62
|
+
'v1.AccountPermissions', rpc_method_handlers)
|
63
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
64
|
+
|
65
|
+
|
66
|
+
# This class is part of an EXPERIMENTAL API.
|
67
|
+
class AccountPermissions(object):
|
68
|
+
"""AccountPermissions records the granular permissions accounts have, allowing them to execute
|
69
|
+
relevant commands via StrongDM's APIs.
|
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.AccountPermissions/List',
|
84
|
+
account__permissions__pb2.AccountPermissionListRequest.SerializeToString,
|
85
|
+
account__permissions__pb2.AccountPermissionListResponse.FromString,
|
86
|
+
options, channel_credentials,
|
87
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|