meshtrade 1.11.0__py3-none-any.whl → 1.16.0__py3-none-any.whl
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.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- meshtrade/iam/api_user/v1/__init__.py +2 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +3 -3
- meshtrade/iam/api_user/v1/service_meshpy.py +17 -0
- meshtrade/iam/api_user/v1/service_pb2.py +30 -22
- meshtrade/iam/api_user/v1/service_pb2.pyi +8 -0
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +49 -0
- {meshtrade-1.11.0.dist-info → meshtrade-1.16.0.dist-info}/METADATA +1 -1
- {meshtrade-1.11.0.dist-info → meshtrade-1.16.0.dist-info}/RECORD +10 -10
- {meshtrade-1.11.0.dist-info → meshtrade-1.16.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.11.0.dist-info → meshtrade-1.16.0.dist-info}/top_level.txt +0 -0
|
@@ -24,6 +24,7 @@ from .service_pb2 import (
|
|
|
24
24
|
GetApiUserRequest,
|
|
25
25
|
ListApiUsersRequest,
|
|
26
26
|
ListApiUsersResponse,
|
|
27
|
+
RevokeRoleFromAPIUserRequest,
|
|
27
28
|
SearchApiUsersRequest,
|
|
28
29
|
SearchApiUsersResponse,
|
|
29
30
|
)
|
|
@@ -87,6 +88,7 @@ __all__ = [
|
|
|
87
88
|
"GetApiUserRequest",
|
|
88
89
|
"ListApiUsersRequest",
|
|
89
90
|
"ListApiUsersResponse",
|
|
91
|
+
"RevokeRoleFromAPIUserRequest",
|
|
90
92
|
"SearchApiUsersRequest",
|
|
91
93
|
"SearchApiUsersResponse",
|
|
92
94
|
# Manual exports
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/iam/api_user/v1/api_credentials.proto\x12\x19meshtrade.iam.api_user.v1\x1a\x1b\x62uf/validate/validate.proto\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/iam/api_user/v1/api_credentials.proto\x12\x19meshtrade.iam.api_user.v1\x1a\x1b\x62uf/validate/validate.proto\"\xb0\x03\n\x0e\x41PICredentials\x12\x39\n\x07\x61pi_key\x18\x01 \x01(\tB \xbaH\x1dr\x18\x32\x13^[A-Za-z0-9_-]{43}$\x98\x01+\xc8\x01\x01R\x06\x61piKey\x12\xe2\x02\n\x05group\x18\x02 \x01(\tB\xcb\x02\xbaH\xc7\x02r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01!\xba\x01Y\n\x0egroup.required\x12\x35group is required and must be in format groups/{ulid}\x1a\x10size(this) == 33\xba\x01\xb1\x01\n\x0cgroup.format\x12`group must be in format groups/{ulid} where ulid is a 26-character ULID (uppercase alphanumeric)\x1a?this.matches(\'^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')R\x05groupB[\n co.meshtrade.api.iam.api_user.v1Z7github.com/meshtrade/api/go/iam/api_user/v1;api_user_v1b\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -34,9 +34,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
34
34
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
35
|
_globals['DESCRIPTOR']._serialized_options = b'\n co.meshtrade.api.iam.api_user.v1Z7github.com/meshtrade/api/go/iam/api_user/v1;api_user_v1'
|
|
36
36
|
_globals['_APICREDENTIALS'].fields_by_name['api_key']._loaded_options = None
|
|
37
|
-
_globals['_APICREDENTIALS'].fields_by_name['api_key']._serialized_options = b'\272H\
|
|
37
|
+
_globals['_APICREDENTIALS'].fields_by_name['api_key']._serialized_options = b'\272H\035r\0302\023^[A-Za-z0-9_-]{43}$\230\001+\310\001\001'
|
|
38
38
|
_globals['_APICREDENTIALS'].fields_by_name['group']._loaded_options = None
|
|
39
39
|
_globals['_APICREDENTIALS'].fields_by_name['group']._serialized_options = b'\272H\307\002r42/^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001!\272\001Y\n\016group.required\0225group is required and must be in format groups/{ulid}\032\020size(this) == 33\272\001\261\001\n\014group.format\022`group must be in format groups/{ulid} where ulid is a 26-character ULID (uppercase alphanumeric)\032?this.matches(\'^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\')'
|
|
40
40
|
_globals['_APICREDENTIALS']._serialized_start=108
|
|
41
|
-
_globals['_APICREDENTIALS']._serialized_end=
|
|
41
|
+
_globals['_APICREDENTIALS']._serialized_end=540
|
|
42
42
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -26,6 +26,7 @@ GetApiUserByKeyHashRequest,
|
|
|
26
26
|
GetApiUserRequest,
|
|
27
27
|
ListApiUsersRequest,
|
|
28
28
|
ListApiUsersResponse,
|
|
29
|
+
RevokeRoleFromAPIUserRequest,
|
|
29
30
|
SearchApiUsersRequest,
|
|
30
31
|
SearchApiUsersResponse,
|
|
31
32
|
)
|
|
@@ -186,6 +187,22 @@ class ApiUserService(BaseGRPCClient):
|
|
|
186
187
|
"""
|
|
187
188
|
return self._execute_method("AssignRoleToAPIUser", request, timeout)
|
|
188
189
|
|
|
190
|
+
def revoke_role_from_apiuser(self, request: RevokeRoleFromAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
191
|
+
"""RevokeRoleFromAPIUser method.
|
|
192
|
+
|
|
193
|
+
Args:
|
|
194
|
+
request: The RevokeRoleFromAPIUser request message
|
|
195
|
+
timeout: Optional timeout override for this call
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
The RevokeRoleFromAPIUser response message
|
|
199
|
+
|
|
200
|
+
Raises:
|
|
201
|
+
grpc.RpcError: If the gRPC call fails
|
|
202
|
+
ValueError: If authentication credentials are missing
|
|
203
|
+
"""
|
|
204
|
+
return self._execute_method("RevokeRoleFromAPIUser", request, timeout)
|
|
205
|
+
|
|
189
206
|
def list_api_users(self, request: ListApiUsersRequest, timeout: Optional[timedelta] = None) -> ListApiUsersResponse:
|
|
190
207
|
"""ListApiUsers method.
|
|
191
208
|
|
|
@@ -28,7 +28,7 @@ from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_
|
|
|
28
28
|
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'meshtrade/iam/api_user/v1/service.proto\x12\x19meshtrade.iam.api_user.v1\x1a\x1b\x62uf/validate/validate.proto\x1a(meshtrade/iam/api_user/v1/api_user.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"h\n\x11GetApiUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\"
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'meshtrade/iam/api_user/v1/service.proto\x12\x19meshtrade.iam.api_user.v1\x1a\x1b\x62uf/validate/validate.proto\x1a(meshtrade/iam/api_user/v1/api_user.proto\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"h\n\x11GetApiUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\"Z\n\x1aGetApiUserByKeyHashRequest\x12<\n\x08key_hash\x18\x01 \x01(\tB!\xbaH\x1er\x19\x32\x14^[A-Za-z0-9+/]{43}=$\x98\x01,\xc8\x01\x01R\x07keyHash\"]\n\x14\x43reateApiUserRequest\x12\x45\n\x08\x61pi_user\x18\x01 \x01(\x0b\x32\".meshtrade.iam.api_user.v1.APIUserB\x06\xbaH\x03\xc8\x01\x01R\x07\x61piUser\"\xd4\x01\n\x1a\x41ssignRoleToAPIUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\x12\x61\n\x04role\x18\x04 \x01(\tBM\xbaHJrE2@^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/[123456][0-9]{6}$\x98\x01)\xc8\x01\x01R\x04role\"\xd6\x01\n\x1cRevokeRoleFromAPIUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\x12\x61\n\x04role\x18\x02 \x01(\tBM\xbaHJrE2@^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/[123456][0-9]{6}$\x98\x01)\xc8\x01\x01R\x04role\"\x15\n\x13ListApiUsersRequest\"W\n\x14ListApiUsersResponse\x12?\n\tapi_users\x18\x01 \x03(\x0b\x32\".meshtrade.iam.api_user.v1.APIUserR\x08\x61piUsers\":\n\x15SearchApiUsersRequest\x12!\n\x0c\x64isplay_name\x18\x01 \x01(\tR\x0b\x64isplayName\"Y\n\x16SearchApiUsersResponse\x12?\n\tapi_users\x18\x01 \x03(\x0b\x32\".meshtrade.iam.api_user.v1.APIUserR\x08\x61piUsers\"m\n\x16\x41\x63tivateApiUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\"o\n\x18\x44\x65\x61\x63tivateApiUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name2\xca\t\n\x0e\x41piUserService\x12z\n\nGetApiUser\x12,.meshtrade.iam.api_user.v1.GetApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc2\x8d\xb7\x01\xc3\x8d\xb7\x01\x12x\n\rCreateApiUser\x12/.meshtrade.iam.api_user.v1.CreateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x84\x01\n\x13\x41ssignRoleToAPIUser\x12\x35.meshtrade.iam.api_user.v1.AssignRoleToAPIUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x88\x01\n\x15RevokeRoleFromAPIUser\x12\x37.meshtrade.iam.api_user.v1.RevokeRoleFromAPIUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x8b\x01\n\x0cListApiUsers\x12..meshtrade.iam.api_user.v1.ListApiUsersRequest\x1a/.meshtrade.iam.api_user.v1.ListApiUsersResponse\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc2\x8d\xb7\x01\xc3\x8d\xb7\x01\x12\x91\x01\n\x0eSearchApiUsers\x12\x30.meshtrade.iam.api_user.v1.SearchApiUsersRequest\x1a\x31.meshtrade.iam.api_user.v1.SearchApiUsersResponse\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc2\x8d\xb7\x01\xc3\x8d\xb7\x01\x12|\n\x0f\x41\x63tivateApiUser\x12\x31.meshtrade.iam.api_user.v1.ActivateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x80\x01\n\x11\x44\x65\x61\x63tivateApiUser\x12\x33.meshtrade.iam.api_user.v1.DeactivateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x02\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x8c\x01\n\x13GetApiUserByKeyHash\x12\x35.meshtrade.iam.api_user.v1.GetApiUserByKeyHashRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x1a\xa0\xb5\x18\x01\xaa\xb5\x18\x12\n\x10\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\xc2\x8d\xb7\x01\xc3\x8d\xb7\x01\x42[\n co.meshtrade.api.iam.api_user.v1Z7github.com/meshtrade/api/go/iam/api_user/v1;api_user_v1b\x06proto3')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -39,13 +39,17 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
39
39
|
_globals['_GETAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
40
40
|
_globals['_GETAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
41
41
|
_globals['_GETAPIUSERBYKEYHASHREQUEST'].fields_by_name['key_hash']._loaded_options = None
|
|
42
|
-
_globals['_GETAPIUSERBYKEYHASHREQUEST'].fields_by_name['key_hash']._serialized_options = b'\272H\
|
|
42
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST'].fields_by_name['key_hash']._serialized_options = b'\272H\036r\0312\024^[A-Za-z0-9+/]{43}=$\230\001,\310\001\001'
|
|
43
43
|
_globals['_CREATEAPIUSERREQUEST'].fields_by_name['api_user']._loaded_options = None
|
|
44
44
|
_globals['_CREATEAPIUSERREQUEST'].fields_by_name['api_user']._serialized_options = b'\272H\003\310\001\001'
|
|
45
45
|
_globals['_ASSIGNROLETOAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
46
|
-
_globals['_ASSIGNROLETOAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\
|
|
46
|
+
_globals['_ASSIGNROLETOAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
47
47
|
_globals['_ASSIGNROLETOAPIUSERREQUEST'].fields_by_name['role']._loaded_options = None
|
|
48
48
|
_globals['_ASSIGNROLETOAPIUSERREQUEST'].fields_by_name['role']._serialized_options = b'\272HJrE2@^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/[123456][0-9]{6}$\230\001)\310\001\001'
|
|
49
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
50
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
51
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST'].fields_by_name['role']._loaded_options = None
|
|
52
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST'].fields_by_name['role']._serialized_options = b'\272HJrE2@^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/[123456][0-9]{6}$\230\001)\310\001\001'
|
|
49
53
|
_globals['_ACTIVATEAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
50
54
|
_globals['_ACTIVATEAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
51
55
|
_globals['_DEACTIVATEAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
@@ -56,6 +60,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
56
60
|
_globals['_APIUSERSERVICE'].methods_by_name['CreateApiUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\302\215\267\001'
|
|
57
61
|
_globals['_APIUSERSERVICE'].methods_by_name['AssignRoleToAPIUser']._loaded_options = None
|
|
58
62
|
_globals['_APIUSERSERVICE'].methods_by_name['AssignRoleToAPIUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\302\215\267\001'
|
|
63
|
+
_globals['_APIUSERSERVICE'].methods_by_name['RevokeRoleFromAPIUser']._loaded_options = None
|
|
64
|
+
_globals['_APIUSERSERVICE'].methods_by_name['RevokeRoleFromAPIUser']._serialized_options = b'\240\265\030\002\252\265\030\n\n\010\300\215\267\001\302\215\267\001'
|
|
59
65
|
_globals['_APIUSERSERVICE'].methods_by_name['ListApiUsers']._loaded_options = None
|
|
60
66
|
_globals['_APIUSERSERVICE'].methods_by_name['ListApiUsers']._serialized_options = b'\240\265\030\001\252\265\030\022\n\020\300\215\267\001\301\215\267\001\302\215\267\001\303\215\267\001'
|
|
61
67
|
_globals['_APIUSERSERVICE'].methods_by_name['SearchApiUsers']._loaded_options = None
|
|
@@ -69,23 +75,25 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
69
75
|
_globals['_GETAPIUSERREQUEST']._serialized_start=214
|
|
70
76
|
_globals['_GETAPIUSERREQUEST']._serialized_end=318
|
|
71
77
|
_globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_start=320
|
|
72
|
-
_globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_end=
|
|
73
|
-
_globals['_CREATEAPIUSERREQUEST']._serialized_start=
|
|
74
|
-
_globals['_CREATEAPIUSERREQUEST']._serialized_end=
|
|
75
|
-
_globals['_ASSIGNROLETOAPIUSERREQUEST']._serialized_start=
|
|
76
|
-
_globals['_ASSIGNROLETOAPIUSERREQUEST']._serialized_end=
|
|
77
|
-
_globals['
|
|
78
|
-
_globals['
|
|
79
|
-
_globals['
|
|
80
|
-
_globals['
|
|
81
|
-
_globals['
|
|
82
|
-
_globals['
|
|
83
|
-
_globals['
|
|
84
|
-
_globals['
|
|
85
|
-
_globals['
|
|
86
|
-
_globals['
|
|
87
|
-
_globals['
|
|
88
|
-
_globals['
|
|
89
|
-
_globals['
|
|
90
|
-
_globals['
|
|
78
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_end=410
|
|
79
|
+
_globals['_CREATEAPIUSERREQUEST']._serialized_start=412
|
|
80
|
+
_globals['_CREATEAPIUSERREQUEST']._serialized_end=505
|
|
81
|
+
_globals['_ASSIGNROLETOAPIUSERREQUEST']._serialized_start=508
|
|
82
|
+
_globals['_ASSIGNROLETOAPIUSERREQUEST']._serialized_end=720
|
|
83
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST']._serialized_start=723
|
|
84
|
+
_globals['_REVOKEROLEFROMAPIUSERREQUEST']._serialized_end=937
|
|
85
|
+
_globals['_LISTAPIUSERSREQUEST']._serialized_start=939
|
|
86
|
+
_globals['_LISTAPIUSERSREQUEST']._serialized_end=960
|
|
87
|
+
_globals['_LISTAPIUSERSRESPONSE']._serialized_start=962
|
|
88
|
+
_globals['_LISTAPIUSERSRESPONSE']._serialized_end=1049
|
|
89
|
+
_globals['_SEARCHAPIUSERSREQUEST']._serialized_start=1051
|
|
90
|
+
_globals['_SEARCHAPIUSERSREQUEST']._serialized_end=1109
|
|
91
|
+
_globals['_SEARCHAPIUSERSRESPONSE']._serialized_start=1111
|
|
92
|
+
_globals['_SEARCHAPIUSERSRESPONSE']._serialized_end=1200
|
|
93
|
+
_globals['_ACTIVATEAPIUSERREQUEST']._serialized_start=1202
|
|
94
|
+
_globals['_ACTIVATEAPIUSERREQUEST']._serialized_end=1311
|
|
95
|
+
_globals['_DEACTIVATEAPIUSERREQUEST']._serialized_start=1313
|
|
96
|
+
_globals['_DEACTIVATEAPIUSERREQUEST']._serialized_end=1424
|
|
97
|
+
_globals['_APIUSERSERVICE']._serialized_start=1427
|
|
98
|
+
_globals['_APIUSERSERVICE']._serialized_end=2653
|
|
91
99
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -36,6 +36,14 @@ class AssignRoleToAPIUserRequest(_message.Message):
|
|
|
36
36
|
role: str
|
|
37
37
|
def __init__(self, name: _Optional[str] = ..., role: _Optional[str] = ...) -> None: ...
|
|
38
38
|
|
|
39
|
+
class RevokeRoleFromAPIUserRequest(_message.Message):
|
|
40
|
+
__slots__ = ("name", "role")
|
|
41
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
name: str
|
|
44
|
+
role: str
|
|
45
|
+
def __init__(self, name: _Optional[str] = ..., role: _Optional[str] = ...) -> None: ...
|
|
46
|
+
|
|
39
47
|
class ListApiUsersRequest(_message.Message):
|
|
40
48
|
__slots__ = ()
|
|
41
49
|
def __init__(self) -> None: ...
|
|
@@ -42,6 +42,11 @@ class ApiUserServiceStub(object):
|
|
|
42
42
|
request_serializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.AssignRoleToAPIUserRequest.SerializeToString,
|
|
43
43
|
response_deserializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2.APIUser.FromString,
|
|
44
44
|
_registered_method=True)
|
|
45
|
+
self.RevokeRoleFromAPIUser = channel.unary_unary(
|
|
46
|
+
'/meshtrade.iam.api_user.v1.ApiUserService/RevokeRoleFromAPIUser',
|
|
47
|
+
request_serializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.RevokeRoleFromAPIUserRequest.SerializeToString,
|
|
48
|
+
response_deserializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2.APIUser.FromString,
|
|
49
|
+
_registered_method=True)
|
|
45
50
|
self.ListApiUsers = channel.unary_unary(
|
|
46
51
|
'/meshtrade.iam.api_user.v1.ApiUserService/ListApiUsers',
|
|
47
52
|
request_serializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.ListApiUsersRequest.SerializeToString,
|
|
@@ -115,6 +120,18 @@ class ApiUserServiceServicer(object):
|
|
|
115
120
|
context.set_details('Method not implemented!')
|
|
116
121
|
raise NotImplementedError('Method not implemented!')
|
|
117
122
|
|
|
123
|
+
def RevokeRoleFromAPIUser(self, request, context):
|
|
124
|
+
"""
|
|
125
|
+
Revokes a role from an existing API user within the authenticated group context.
|
|
126
|
+
|
|
127
|
+
The role revocation removes the permissions associated with that role from
|
|
128
|
+
the API user within the group hierarchy. The API user will no longer be able
|
|
129
|
+
to perform operations that require the revoked role.
|
|
130
|
+
"""
|
|
131
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
132
|
+
context.set_details('Method not implemented!')
|
|
133
|
+
raise NotImplementedError('Method not implemented!')
|
|
134
|
+
|
|
118
135
|
def ListApiUsers(self, request, context):
|
|
119
136
|
"""
|
|
120
137
|
Lists all API users in the authenticated group context.
|
|
@@ -188,6 +205,11 @@ def add_ApiUserServiceServicer_to_server(servicer, server):
|
|
|
188
205
|
request_deserializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.AssignRoleToAPIUserRequest.FromString,
|
|
189
206
|
response_serializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2.APIUser.SerializeToString,
|
|
190
207
|
),
|
|
208
|
+
'RevokeRoleFromAPIUser': grpc.unary_unary_rpc_method_handler(
|
|
209
|
+
servicer.RevokeRoleFromAPIUser,
|
|
210
|
+
request_deserializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.RevokeRoleFromAPIUserRequest.FromString,
|
|
211
|
+
response_serializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2.APIUser.SerializeToString,
|
|
212
|
+
),
|
|
191
213
|
'ListApiUsers': grpc.unary_unary_rpc_method_handler(
|
|
192
214
|
servicer.ListApiUsers,
|
|
193
215
|
request_deserializer=meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.ListApiUsersRequest.FromString,
|
|
@@ -317,6 +339,33 @@ class ApiUserService(object):
|
|
|
317
339
|
metadata,
|
|
318
340
|
_registered_method=True)
|
|
319
341
|
|
|
342
|
+
@staticmethod
|
|
343
|
+
def RevokeRoleFromAPIUser(request,
|
|
344
|
+
target,
|
|
345
|
+
options=(),
|
|
346
|
+
channel_credentials=None,
|
|
347
|
+
call_credentials=None,
|
|
348
|
+
insecure=False,
|
|
349
|
+
compression=None,
|
|
350
|
+
wait_for_ready=None,
|
|
351
|
+
timeout=None,
|
|
352
|
+
metadata=None):
|
|
353
|
+
return grpc.experimental.unary_unary(
|
|
354
|
+
request,
|
|
355
|
+
target,
|
|
356
|
+
'/meshtrade.iam.api_user.v1.ApiUserService/RevokeRoleFromAPIUser',
|
|
357
|
+
meshtrade_dot_iam_dot_api__user_dot_v1_dot_service__pb2.RevokeRoleFromAPIUserRequest.SerializeToString,
|
|
358
|
+
meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2.APIUser.FromString,
|
|
359
|
+
options,
|
|
360
|
+
channel_credentials,
|
|
361
|
+
insecure,
|
|
362
|
+
call_credentials,
|
|
363
|
+
compression,
|
|
364
|
+
wait_for_ready,
|
|
365
|
+
timeout,
|
|
366
|
+
metadata,
|
|
367
|
+
_registered_method=True)
|
|
368
|
+
|
|
320
369
|
@staticmethod
|
|
321
370
|
def ListApiUsers(request,
|
|
322
371
|
target,
|
|
@@ -55,20 +55,20 @@ meshtrade/compliance/client/v1/verification_status_pb2.py,sha256=RBI8-LnSLSSv6pV
|
|
|
55
55
|
meshtrade/compliance/client/v1/verification_status_pb2.pyi,sha256=kqP24po3o2Ks8HWAoQ-tLlMirCJCKwxlQlWJXWkRmAI,880
|
|
56
56
|
meshtrade/compliance/client/v1/verification_status_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
57
57
|
meshtrade/iam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
|
-
meshtrade/iam/api_user/v1/__init__.py,sha256=
|
|
58
|
+
meshtrade/iam/api_user/v1/__init__.py,sha256=54WOBmu0nZCfs2poryrYw9tY5pUXz19EB8mJQwMSksU,3105
|
|
59
59
|
meshtrade/iam/api_user/v1/api_credentials.py,sha256=apo3p_YcncNphbxLXegqoYh35bPydhjR-ULsZ7kj4D4,5272
|
|
60
|
-
meshtrade/iam/api_user/v1/api_credentials_pb2.py,sha256=
|
|
60
|
+
meshtrade/iam/api_user/v1/api_credentials_pb2.py,sha256=ssnkOj_oJWlMPXot99Fp1vn4V5u2zKDmie4hKL49x20,3098
|
|
61
61
|
meshtrade/iam/api_user/v1/api_credentials_pb2.pyi,sha256=TRv0xnm4VJ62sCMz_utdLvQR_vNQqWH_wCE0mtF3ZsY,547
|
|
62
62
|
meshtrade/iam/api_user/v1/api_credentials_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
63
63
|
meshtrade/iam/api_user/v1/api_user_pb2.py,sha256=GC6gB0Yb0pPlvFR0h5k5jODkTqaMzWogIZAxSCNoYIc,4957
|
|
64
64
|
meshtrade/iam/api_user/v1/api_user_pb2.pyi,sha256=ke6t8bEYc6QUw6V8GWC7iTqju7-WrYrRIj5Lw2rdNZ0,2158
|
|
65
65
|
meshtrade/iam/api_user/v1/api_user_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
66
66
|
meshtrade/iam/api_user/v1/service.py,sha256=_7-LK9LDkKh7JOQHOryNBE1Xgr-DclAMO2QQhGoumUg,1827
|
|
67
|
-
meshtrade/iam/api_user/v1/service_meshpy.py,sha256=
|
|
67
|
+
meshtrade/iam/api_user/v1/service_meshpy.py,sha256=RUEmkNpDdxfvNY2hNId0a7VH1hZPWlXT3k4wYrc-L4E,10571
|
|
68
68
|
meshtrade/iam/api_user/v1/service_options_meshpy.py,sha256=hkWJmNCsNDQ_OBdwZBK_zAUgl-B9ZsddmcrPfF7PyZI,2541
|
|
69
|
-
meshtrade/iam/api_user/v1/service_pb2.py,sha256=
|
|
70
|
-
meshtrade/iam/api_user/v1/service_pb2.pyi,sha256=
|
|
71
|
-
meshtrade/iam/api_user/v1/service_pb2_grpc.py,sha256=
|
|
69
|
+
meshtrade/iam/api_user/v1/service_pb2.py,sha256=nRLNwaWvdU0yDgLko1Owj7nFysIF-OnmwCZeNixitoc,11876
|
|
70
|
+
meshtrade/iam/api_user/v1/service_pb2.pyi,sha256=6EfMPzUQuCUn_Dgzqybv-4Opt62xYGHpfafWhBBsw5A,3173
|
|
71
|
+
meshtrade/iam/api_user/v1/service_pb2_grpc.py,sha256=PQ06cCgKtjQU6cbQQpT5AaeaK1UFpByZPYVTQlHfG_4,22280
|
|
72
72
|
meshtrade/iam/group/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
73
|
meshtrade/iam/group/v1/__init__.py,sha256=tayQlse2nLxoo0oZbM9FYdX-jH7_jkCTLCf0Yw8IaeY,2069
|
|
74
74
|
meshtrade/iam/group/v1/group_pb2.py,sha256=5VZ1m6uUDm7_dRPP1CPHdBfc35UO_D7BcWscU2fp29c,3187
|
|
@@ -201,7 +201,7 @@ meshtrade/wallet/account/v1/service_options_meshpy.py,sha256=ROVvFr-sub9TMtzHO-s
|
|
|
201
201
|
meshtrade/wallet/account/v1/service_pb2.py,sha256=NQv7lnrplTcR2xg50xXGazE6eOrjgf-45XHbAP-cWZw,12781
|
|
202
202
|
meshtrade/wallet/account/v1/service_pb2.pyi,sha256=wLMWFI5dqcabuFojdskc2N5Cast1CRLPw1I7mXc6DnU,5318
|
|
203
203
|
meshtrade/wallet/account/v1/service_pb2_grpc.py,sha256=TDGEjiEg_HI1nUOpHns9cDrers7O4aQTOSX4hnQCFJs,20794
|
|
204
|
-
meshtrade-1.
|
|
205
|
-
meshtrade-1.
|
|
206
|
-
meshtrade-1.
|
|
207
|
-
meshtrade-1.
|
|
204
|
+
meshtrade-1.16.0.dist-info/METADATA,sha256=5Q9Yp3spsj0xWGPOB_byfBEaJSvxDS7k_RyBSGz-qNY,3007
|
|
205
|
+
meshtrade-1.16.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
206
|
+
meshtrade-1.16.0.dist-info/top_level.txt,sha256=NV0mf_yWXSvBwj2_q5aSz2hN5hQF0QypAiJwV4schJI,14
|
|
207
|
+
meshtrade-1.16.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|