meshtrade 1.0.1__py3-none-any.whl → 1.29.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.
- meshtrade/common/__init__.py +2 -4
- meshtrade/common/config.py +3 -4
- meshtrade/common/grpc_client.py +140 -0
- meshtrade/common/service_options.py +46 -0
- meshtrade/compliance/client/v1/__init__.py +0 -2
- meshtrade/compliance/client/v1/client_pb2.py +15 -4
- meshtrade/compliance/client/v1/client_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_pb2.py +25 -8
- meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
- meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2.py +13 -4
- meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
- meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/service_meshpy.py +2 -1
- meshtrade/compliance/client/v1/service_pb2.py +21 -17
- meshtrade/compliance/client/v1/service_pb2.pyi +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
- meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/trust_pb2.py +13 -4
- meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/iam/api_user/v1/__init__.py +34 -26
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +5 -5
- meshtrade/iam/api_user/v1/api_user_pb2.py +13 -9
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
- meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +96 -61
- meshtrade/iam/api_user/v1/service_pb2.py +61 -40
- meshtrade/iam/api_user/v1/service_pb2.pyi +26 -11
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +179 -135
- meshtrade/iam/group/v1/__init__.py +4 -2
- meshtrade/iam/group/v1/group_pb2.py +13 -4
- meshtrade/iam/group/v1/group_pb2.pyi +9 -2
- meshtrade/iam/group/v1/service_meshpy.py +41 -6
- meshtrade/iam/group/v1/service_pb2.py +47 -20
- meshtrade/iam/group/v1/service_pb2.pyi +46 -13
- meshtrade/iam/group/v1/service_pb2_grpc.py +151 -16
- meshtrade/iam/role/v1/__init__.py +17 -4
- meshtrade/iam/role/v1/role.py +162 -11
- meshtrade/iam/role/v1/role_pb2.py +4 -7
- meshtrade/iam/role/v1/role_pb2.pyi +53 -23
- meshtrade/iam/user/v1/__init__.py +22 -4
- meshtrade/iam/user/v1/service_meshpy.py +129 -7
- meshtrade/iam/user/v1/service_pb2.py +66 -16
- meshtrade/iam/user/v1/service_pb2.pyi +81 -9
- meshtrade/iam/user/v1/service_pb2_grpc.py +385 -14
- meshtrade/iam/user/v1/user_pb2.py +13 -4
- meshtrade/iam/user/v1/user_pb2.pyi +7 -2
- meshtrade/ledger/transaction/v1/__init__.py +25 -1
- meshtrade/ledger/transaction/v1/service_meshpy.py +176 -0
- meshtrade/ledger/transaction/v1/service_pb2.py +56 -0
- meshtrade/ledger/transaction/v1/service_pb2.pyi +32 -0
- meshtrade/ledger/transaction/v1/service_pb2_grpc.py +131 -0
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/{reporting/income_report → market_data/price}/v1/__init__.py +11 -20
- meshtrade/market_data/price/v1/price_pb2.py +40 -0
- meshtrade/market_data/price/v1/price_pb2.pyi +23 -0
- meshtrade/market_data/price/v1/service_meshpy.py +152 -0
- meshtrade/market_data/price/v1/service_pb2.py +49 -0
- meshtrade/market_data/price/v1/service_pb2.pyi +18 -0
- meshtrade/market_data/price/v1/service_pb2_grpc.py +84 -0
- meshtrade/option/method_options/v1/__init__.py +41 -0
- meshtrade/option/method_options/v1/method_options_pb2.py +43 -0
- meshtrade/option/method_options/v1/method_options_pb2.pyi +40 -0
- meshtrade/reporting/account_report/v1/__init__.py +66 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
- meshtrade/reporting/account_report/v1/account_report_pb2.pyi +49 -0
- meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
- meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
- meshtrade/reporting/account_report/v1/fee_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/account_report/v1/income_entry.py +35 -0
- meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
- meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +18 -10
- meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
- meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +37 -36
- meshtrade/reporting/account_report/v1/service_pb2.py +72 -0
- meshtrade/reporting/account_report/v1/service_pb2.pyi +43 -0
- meshtrade/reporting/account_report/v1/service_pb2_grpc.py +161 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
- meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/__init__.py +43 -0
- meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
- meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
- meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.py +37 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2.pyi +64 -0
- meshtrade/studio/instrument/v1/instrument_type_pb2_grpc.py +4 -0
- meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
- meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
- meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/__init__.py +22 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +24 -4
- meshtrade/trading/limit_order/v1/limit_order_pb2.pyi +55 -5
- meshtrade/trading/limit_order/v1/service_meshpy.py +113 -2
- meshtrade/trading/limit_order/v1/service_pb2.py +49 -9
- meshtrade/trading/limit_order/v1/service_pb2.pyi +67 -7
- meshtrade/trading/limit_order/v1/service_pb2_grpc.py +321 -4
- meshtrade/trading/market_order/v1/__init__.py +0 -2
- meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
- meshtrade/trading/market_order/v1/service_meshpy.py +3 -2
- meshtrade/trading/market_order/v1/service_pb2.py +8 -9
- meshtrade/trading/market_order/v1/service_pb2.pyi +1 -2
- meshtrade/type/v1/__init__.py +82 -12
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/amount.py +429 -5
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/date_pb2.py +2 -2
- meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
- meshtrade/type/v1/decimal_operations.py +354 -0
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/ledger.py +76 -1
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/sorting_pb2.py +2 -2
- meshtrade/type/v1/time_of_day_pb2.py +2 -2
- meshtrade/type/v1/token.py +144 -0
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/wallet/account/v1/__init__.py +21 -3
- meshtrade/wallet/account/v1/account_pb2.py +28 -4
- meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
- meshtrade/wallet/account/v1/service_meshpy.py +72 -1
- meshtrade/wallet/account/v1/service_pb2.py +67 -23
- meshtrade/wallet/account/v1/service_pb2.pyi +81 -21
- meshtrade/wallet/account/v1/service_pb2_grpc.py +242 -8
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/METADATA +1 -1
- meshtrade-1.29.0.dist-info/RECORD +217 -0
- meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/api_user/v1/service.py +0 -58
- meshtrade/iam/api_user/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/group/v1/service_options_meshpy.py +0 -65
- meshtrade/iam/user/v1/service_options_meshpy.py +0 -65
- meshtrade/option/v1/method_type_pb2.py +0 -38
- meshtrade/option/v1/method_type_pb2.pyi +0 -17
- meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
- meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
- meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
- meshtrade/reporting/income_report/v1/service_options_meshpy.py +0 -65
- meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
- meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
- meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
- meshtrade/trading/limit_order/v1/service_options_meshpy.py +0 -65
- meshtrade/trading/market_order/v1/service_options_meshpy.py +0 -65
- meshtrade/wallet/account/v1/service_options_meshpy.py +0 -65
- meshtrade-1.0.1.dist-info/RECORD +0 -191
- /meshtrade/{option/v1/method_type_pb2_grpc.py → market_data/price/v1/price_pb2_grpc.py} +0 -0
- /meshtrade/{reporting/income_report/v1/disclaimer_pb2_grpc.py → option/method_options/v1/method_options_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
- /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
- /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/WHEEL +0 -0
- {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/top_level.txt +0 -0
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
# source: meshtrade/iam/api_user/v1/service.proto
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
|
-
|
|
5
|
+
APIUserService gRPC service wrapper with authentication, timeouts, and resource management.
|
|
6
6
|
|
|
7
|
-
This module provides a high-level gRPC service for the
|
|
7
|
+
This module provides a high-level gRPC service for the APIUserService service that combines
|
|
8
8
|
the service interface with resource management capabilities, providing authentication,
|
|
9
9
|
timeouts, and proper connection handling.
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
|
+
from collections.abc import Iterator
|
|
12
13
|
from datetime import timedelta
|
|
13
14
|
from typing import Optional
|
|
14
15
|
|
|
@@ -16,36 +17,38 @@ from meshtrade.common import BaseGRPCClient
|
|
|
16
17
|
from .api_credentials import find_credentials
|
|
17
18
|
|
|
18
19
|
from .api_user_pb2 import APIUser
|
|
19
|
-
from .
|
|
20
|
+
from meshtrade.common.service_options import ServiceOptions
|
|
20
21
|
from .service_pb2 import (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
ActivateAPIUserRequest,
|
|
23
|
+
AssignRolesToAPIUserRequest,
|
|
24
|
+
CreateAPIUserRequest,
|
|
25
|
+
DeactivateAPIUserRequest,
|
|
26
|
+
GetAPIUserByKeyHashRequest,
|
|
27
|
+
GetAPIUserRequest,
|
|
28
|
+
ListAPIUsersRequest,
|
|
29
|
+
ListAPIUsersResponse,
|
|
30
|
+
RevokeRolesFromAPIUserRequest,
|
|
31
|
+
SearchAPIUsersRequest,
|
|
32
|
+
SearchAPIUsersResponse,
|
|
30
33
|
)
|
|
31
|
-
from .service_pb2_grpc import
|
|
34
|
+
from .service_pb2_grpc import APIUserServiceStub
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
def _create_apiuserservice_stub(channel):
|
|
35
|
-
"""Factory function to create
|
|
36
|
-
return
|
|
38
|
+
"""Factory function to create APIUserServiceStub from gRPC channel."""
|
|
39
|
+
return APIUserServiceStub(channel)
|
|
37
40
|
|
|
38
41
|
|
|
39
|
-
class
|
|
40
|
-
"""
|
|
42
|
+
class APIUserService(BaseGRPCClient):
|
|
43
|
+
"""APIUserService gRPC service with authentication, timeouts, and resource management.
|
|
41
44
|
|
|
42
|
-
This service provides a complete implementation of the
|
|
45
|
+
This service provides a complete implementation of the APIUserService with proper authentication, timeout handling, and automatic resource cleanup.
|
|
43
46
|
|
|
44
47
|
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/iam/api_user/v1
|
|
45
48
|
|
|
46
49
|
Basic service usage with default SDK Configuration:
|
|
47
50
|
```python
|
|
48
|
-
service =
|
|
51
|
+
service = APIUserService()
|
|
49
52
|
|
|
50
53
|
with service: # `with` ensures proper clean up of underlying connection after use
|
|
51
54
|
response = service.get_api_user(request)
|
|
@@ -76,7 +79,7 @@ class ApiUserService(BaseGRPCClient):
|
|
|
76
79
|
timeout=timedelta(seconds=60)
|
|
77
80
|
)
|
|
78
81
|
|
|
79
|
-
service =
|
|
82
|
+
service = APIUserService(options)
|
|
80
83
|
|
|
81
84
|
with service: # `with` ensures proper clean up of underlying connection after use
|
|
82
85
|
response = service.get_api_user(request)
|
|
@@ -86,7 +89,7 @@ class ApiUserService(BaseGRPCClient):
|
|
|
86
89
|
"""
|
|
87
90
|
|
|
88
91
|
def __init__(self, options: Optional[ServiceOptions] = None):
|
|
89
|
-
"""Construct and initialize the
|
|
92
|
+
"""Construct and initialize the APIUserService service.
|
|
90
93
|
|
|
91
94
|
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/iam/api_user/v1
|
|
92
95
|
|
|
@@ -110,7 +113,7 @@ class ApiUserService(BaseGRPCClient):
|
|
|
110
113
|
Example:
|
|
111
114
|
```python
|
|
112
115
|
# construct with default configuration
|
|
113
|
-
service =
|
|
116
|
+
service = APIUserService()
|
|
114
117
|
|
|
115
118
|
# construct with custom configuration
|
|
116
119
|
options = ServiceOptions(
|
|
@@ -118,7 +121,7 @@ class ApiUserService(BaseGRPCClient):
|
|
|
118
121
|
api_key="your-key",
|
|
119
122
|
group="groups/your-group"
|
|
120
123
|
)
|
|
121
|
-
service =
|
|
124
|
+
service = APIUserService(options)
|
|
122
125
|
```
|
|
123
126
|
"""
|
|
124
127
|
if options is None:
|
|
@@ -126,7 +129,7 @@ class ApiUserService(BaseGRPCClient):
|
|
|
126
129
|
|
|
127
130
|
# Initialize the base client with all common functionality
|
|
128
131
|
super().__init__(
|
|
129
|
-
service_name="
|
|
132
|
+
service_name="APIUserService",
|
|
130
133
|
stub_factory=_create_apiuserservice_stub,
|
|
131
134
|
find_credentials_func=find_credentials,
|
|
132
135
|
url=options.url,
|
|
@@ -137,119 +140,151 @@ class ApiUserService(BaseGRPCClient):
|
|
|
137
140
|
tls=options.tls,
|
|
138
141
|
)
|
|
139
142
|
|
|
140
|
-
def
|
|
141
|
-
"""
|
|
143
|
+
def get_apiuser(self, request: GetAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
144
|
+
"""GetAPIUser method.
|
|
142
145
|
|
|
143
146
|
Args:
|
|
144
|
-
request: The
|
|
147
|
+
request: The GetAPIUser request message
|
|
145
148
|
timeout: Optional timeout override for this call
|
|
146
149
|
|
|
147
150
|
Returns:
|
|
148
|
-
The
|
|
151
|
+
The GetAPIUser response message
|
|
149
152
|
|
|
150
153
|
Raises:
|
|
151
154
|
grpc.RpcError: If the gRPC call fails
|
|
152
155
|
ValueError: If authentication credentials are missing
|
|
153
156
|
"""
|
|
154
|
-
return self._execute_method("
|
|
157
|
+
return self._execute_method("GetAPIUser", request, timeout)
|
|
155
158
|
|
|
156
|
-
def
|
|
157
|
-
"""
|
|
159
|
+
def create_apiuser(self, request: CreateAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
160
|
+
"""CreateAPIUser method.
|
|
158
161
|
|
|
159
162
|
Args:
|
|
160
|
-
request: The
|
|
163
|
+
request: The CreateAPIUser request message
|
|
161
164
|
timeout: Optional timeout override for this call
|
|
162
165
|
|
|
163
166
|
Returns:
|
|
164
|
-
The
|
|
167
|
+
The CreateAPIUser response message
|
|
165
168
|
|
|
166
169
|
Raises:
|
|
167
170
|
grpc.RpcError: If the gRPC call fails
|
|
168
171
|
ValueError: If authentication credentials are missing
|
|
169
172
|
"""
|
|
170
|
-
return self._execute_method("
|
|
173
|
+
return self._execute_method("CreateAPIUser", request, timeout)
|
|
171
174
|
|
|
172
|
-
def
|
|
173
|
-
"""
|
|
175
|
+
def assign_roles_to_apiuser(self, request: AssignRolesToAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
176
|
+
"""AssignRolesToAPIUser method.
|
|
174
177
|
|
|
175
178
|
Args:
|
|
176
|
-
request: The
|
|
179
|
+
request: The AssignRolesToAPIUser request message
|
|
177
180
|
timeout: Optional timeout override for this call
|
|
178
181
|
|
|
179
182
|
Returns:
|
|
180
|
-
The
|
|
183
|
+
The AssignRolesToAPIUser response message
|
|
181
184
|
|
|
182
185
|
Raises:
|
|
183
186
|
grpc.RpcError: If the gRPC call fails
|
|
184
187
|
ValueError: If authentication credentials are missing
|
|
185
188
|
"""
|
|
186
|
-
return self._execute_method("
|
|
189
|
+
return self._execute_method("AssignRolesToAPIUser", request, timeout)
|
|
187
190
|
|
|
188
|
-
def
|
|
189
|
-
"""
|
|
191
|
+
def revoke_roles_from_apiuser(self, request: RevokeRolesFromAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
192
|
+
"""RevokeRolesFromAPIUser method.
|
|
190
193
|
|
|
191
194
|
Args:
|
|
192
|
-
request: The
|
|
195
|
+
request: The RevokeRolesFromAPIUser request message
|
|
193
196
|
timeout: Optional timeout override for this call
|
|
194
197
|
|
|
195
198
|
Returns:
|
|
196
|
-
The
|
|
199
|
+
The RevokeRolesFromAPIUser response message
|
|
197
200
|
|
|
198
201
|
Raises:
|
|
199
202
|
grpc.RpcError: If the gRPC call fails
|
|
200
203
|
ValueError: If authentication credentials are missing
|
|
201
204
|
"""
|
|
202
|
-
return self._execute_method("
|
|
205
|
+
return self._execute_method("RevokeRolesFromAPIUser", request, timeout)
|
|
203
206
|
|
|
204
|
-
def
|
|
205
|
-
"""
|
|
207
|
+
def list_apiusers(self, request: ListAPIUsersRequest, timeout: Optional[timedelta] = None) -> ListAPIUsersResponse:
|
|
208
|
+
"""ListAPIUsers method.
|
|
206
209
|
|
|
207
210
|
Args:
|
|
208
|
-
request: The
|
|
211
|
+
request: The ListAPIUsers request message
|
|
209
212
|
timeout: Optional timeout override for this call
|
|
210
213
|
|
|
211
214
|
Returns:
|
|
212
|
-
The
|
|
215
|
+
The ListAPIUsers response message
|
|
213
216
|
|
|
214
217
|
Raises:
|
|
215
218
|
grpc.RpcError: If the gRPC call fails
|
|
216
219
|
ValueError: If authentication credentials are missing
|
|
217
220
|
"""
|
|
218
|
-
return self._execute_method("
|
|
221
|
+
return self._execute_method("ListAPIUsers", request, timeout)
|
|
219
222
|
|
|
220
|
-
def
|
|
221
|
-
"""
|
|
223
|
+
def search_apiusers(self, request: SearchAPIUsersRequest, timeout: Optional[timedelta] = None) -> SearchAPIUsersResponse:
|
|
224
|
+
"""SearchAPIUsers method.
|
|
222
225
|
|
|
223
226
|
Args:
|
|
224
|
-
request: The
|
|
227
|
+
request: The SearchAPIUsers request message
|
|
225
228
|
timeout: Optional timeout override for this call
|
|
226
229
|
|
|
227
230
|
Returns:
|
|
228
|
-
The
|
|
231
|
+
The SearchAPIUsers response message
|
|
229
232
|
|
|
230
233
|
Raises:
|
|
231
234
|
grpc.RpcError: If the gRPC call fails
|
|
232
235
|
ValueError: If authentication credentials are missing
|
|
233
236
|
"""
|
|
234
|
-
return self._execute_method("
|
|
237
|
+
return self._execute_method("SearchAPIUsers", request, timeout)
|
|
235
238
|
|
|
236
|
-
def
|
|
237
|
-
"""
|
|
239
|
+
def activate_apiuser(self, request: ActivateAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
240
|
+
"""ActivateAPIUser method.
|
|
238
241
|
|
|
239
242
|
Args:
|
|
240
|
-
request: The
|
|
243
|
+
request: The ActivateAPIUser request message
|
|
241
244
|
timeout: Optional timeout override for this call
|
|
242
245
|
|
|
243
246
|
Returns:
|
|
244
|
-
The
|
|
247
|
+
The ActivateAPIUser response message
|
|
245
248
|
|
|
246
249
|
Raises:
|
|
247
250
|
grpc.RpcError: If the gRPC call fails
|
|
248
251
|
ValueError: If authentication credentials are missing
|
|
249
252
|
"""
|
|
250
|
-
return self._execute_method("
|
|
253
|
+
return self._execute_method("ActivateAPIUser", request, timeout)
|
|
254
|
+
|
|
255
|
+
def deactivate_apiuser(self, request: DeactivateAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
256
|
+
"""DeactivateAPIUser method.
|
|
257
|
+
|
|
258
|
+
Args:
|
|
259
|
+
request: The DeactivateAPIUser request message
|
|
260
|
+
timeout: Optional timeout override for this call
|
|
261
|
+
|
|
262
|
+
Returns:
|
|
263
|
+
The DeactivateAPIUser response message
|
|
264
|
+
|
|
265
|
+
Raises:
|
|
266
|
+
grpc.RpcError: If the gRPC call fails
|
|
267
|
+
ValueError: If authentication credentials are missing
|
|
268
|
+
"""
|
|
269
|
+
return self._execute_method("DeactivateAPIUser", request, timeout)
|
|
270
|
+
|
|
271
|
+
def get_apiuser_by_key_hash(self, request: GetAPIUserByKeyHashRequest, timeout: Optional[timedelta] = None) -> APIUser:
|
|
272
|
+
"""GetAPIUserByKeyHash method.
|
|
273
|
+
|
|
274
|
+
Args:
|
|
275
|
+
request: The GetAPIUserByKeyHash request message
|
|
276
|
+
timeout: Optional timeout override for this call
|
|
277
|
+
|
|
278
|
+
Returns:
|
|
279
|
+
The GetAPIUserByKeyHash response message
|
|
280
|
+
|
|
281
|
+
Raises:
|
|
282
|
+
grpc.RpcError: If the gRPC call fails
|
|
283
|
+
ValueError: If authentication credentials are missing
|
|
284
|
+
"""
|
|
285
|
+
return self._execute_method("GetAPIUserByKeyHash", request, timeout)
|
|
251
286
|
|
|
252
287
|
|
|
253
288
|
# Create aliases to match expected exports
|
|
254
|
-
|
|
255
|
-
|
|
289
|
+
APIUserServiceGRPCClient = APIUserService
|
|
290
|
+
APIUserServiceGRPCClientInterface = APIUserService
|
|
@@ -24,54 +24,75 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
26
|
from meshtrade.iam.api_user.v1 import api_user_pb2 as meshtrade_dot_iam_dot_api__user_dot_v1_dot_api__user__pb2
|
|
27
|
-
from meshtrade.
|
|
28
|
-
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
27
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as meshtrade_dot_option_dot_method__options_dot_v1_dot_method__options__pb2
|
|
29
28
|
|
|
30
29
|
|
|
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
|
|
30
|
+
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\x37meshtrade/option/method_options/v1/method_options.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\"\xe2\x01\n\x1b\x41ssignRolesToAPIUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\x12n\n\x05roles\x18\x02 \x03(\tBX\xbaHU\x92\x01O\"MrK\x10/\x18\x30\x32\x45^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/roles/[1-9][0-9]{6,7}$\xc8\x01\x01R\x05roles\"\xe4\x01\n\x1dRevokeRolesFromAPIUserRequest\x12S\n\x04name\x18\x01 \x01(\tB?\xbaH<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\x98\x01$\xc8\x01\x01R\x04name\x12n\n\x05roles\x18\x02 \x03(\tBX\xbaHU\x92\x01O\"MrK\x10/\x18\x30\x32\x45^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/roles/[1-9][0-9]{6,7}$\xc8\x01\x01R\x05roles\"\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\xce\t\n\x0e\x41PIUserService\x12z\n\nGetAPIUser\x12,.meshtrade.iam.api_user.v1.GetAPIUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x1a\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x86\x01\n\x14\x41ssignRolesToAPIUser\x12\x36.meshtrade.iam.api_user.v1.AssignRolesToAPIUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\x08\xc0\x8d\xb7\x01\xc2\x8d\xb7\x01\x12\x8a\x01\n\x16RevokeRolesFromAPIUser\x12\x38.meshtrade.iam.api_user.v1.RevokeRolesFromAPIUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\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\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\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\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\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\xb2\xb5\x18\x0e\x08\x02\x10\x02\x1a\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\xb2\xb5\x18\x16\x08\x01\x10\x02\x1a\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
31
|
|
|
33
32
|
_globals = globals()
|
|
34
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
34
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.iam.api_user.v1.service_pb2', _globals)
|
|
36
35
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
36
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n co.meshtrade.api.iam.api_user.
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n co.meshtrade.api.iam.api_user.v1Z7github.com/meshtrade/api/go/iam/api_user/v1;api_user_v1'
|
|
38
|
+
_globals['_GETAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
39
|
+
_globals['_GETAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
40
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST'].fields_by_name['key_hash']._loaded_options = None
|
|
41
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST'].fields_by_name['key_hash']._serialized_options = b'\272H\036r\0312\024^[A-Za-z0-9+/]{43}=$\230\001,\310\001\001'
|
|
42
|
+
_globals['_CREATEAPIUSERREQUEST'].fields_by_name['api_user']._loaded_options = None
|
|
43
|
+
_globals['_CREATEAPIUSERREQUEST'].fields_by_name['api_user']._serialized_options = b'\272H\003\310\001\001'
|
|
44
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
45
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
46
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST'].fields_by_name['roles']._loaded_options = None
|
|
47
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST'].fields_by_name['roles']._serialized_options = b'\272HU\222\001O\"MrK\020/\03002E^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/roles/[1-9][0-9]{6,7}$\310\001\001'
|
|
48
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
49
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
50
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST'].fields_by_name['roles']._loaded_options = None
|
|
51
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST'].fields_by_name['roles']._serialized_options = b'\272HU\222\001O\"MrK\020/\03002E^groups/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}/roles/[1-9][0-9]{6,7}$\310\001\001'
|
|
39
52
|
_globals['_ACTIVATEAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
40
|
-
_globals['_ACTIVATEAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H
|
|
53
|
+
_globals['_ACTIVATEAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
41
54
|
_globals['_DEACTIVATEAPIUSERREQUEST'].fields_by_name['name']._loaded_options = None
|
|
42
|
-
_globals['_DEACTIVATEAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H
|
|
43
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
44
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
45
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
46
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
47
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
48
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
49
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
50
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
51
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
52
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
53
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
54
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
55
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
56
|
-
_globals['_APIUSERSERVICE'].methods_by_name['
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
59
|
-
_globals['
|
|
60
|
-
_globals['
|
|
61
|
-
_globals['
|
|
62
|
-
_globals['
|
|
63
|
-
_globals['
|
|
64
|
-
_globals['
|
|
65
|
-
_globals['
|
|
66
|
-
_globals['
|
|
67
|
-
_globals['
|
|
68
|
-
_globals['
|
|
69
|
-
_globals['
|
|
70
|
-
_globals['
|
|
71
|
-
_globals['
|
|
72
|
-
_globals['
|
|
73
|
-
_globals['
|
|
74
|
-
_globals['
|
|
75
|
-
_globals['
|
|
76
|
-
_globals['
|
|
55
|
+
_globals['_DEACTIVATEAPIUSERREQUEST'].fields_by_name['name']._serialized_options = b'\272H<r722^api_users/[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$\230\001$\310\001\001'
|
|
56
|
+
_globals['_APIUSERSERVICE'].methods_by_name['GetAPIUser']._loaded_options = None
|
|
57
|
+
_globals['_APIUSERSERVICE'].methods_by_name['GetAPIUser']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\215\267\001\301\215\267\001\302\215\267\001\303\215\267\001'
|
|
58
|
+
_globals['_APIUSERSERVICE'].methods_by_name['CreateAPIUser']._loaded_options = None
|
|
59
|
+
_globals['_APIUSERSERVICE'].methods_by_name['CreateAPIUser']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\215\267\001\302\215\267\001'
|
|
60
|
+
_globals['_APIUSERSERVICE'].methods_by_name['AssignRolesToAPIUser']._loaded_options = None
|
|
61
|
+
_globals['_APIUSERSERVICE'].methods_by_name['AssignRolesToAPIUser']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\215\267\001\302\215\267\001'
|
|
62
|
+
_globals['_APIUSERSERVICE'].methods_by_name['RevokeRolesFromAPIUser']._loaded_options = None
|
|
63
|
+
_globals['_APIUSERSERVICE'].methods_by_name['RevokeRolesFromAPIUser']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\215\267\001\302\215\267\001'
|
|
64
|
+
_globals['_APIUSERSERVICE'].methods_by_name['ListAPIUsers']._loaded_options = None
|
|
65
|
+
_globals['_APIUSERSERVICE'].methods_by_name['ListAPIUsers']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\215\267\001\301\215\267\001\302\215\267\001\303\215\267\001'
|
|
66
|
+
_globals['_APIUSERSERVICE'].methods_by_name['SearchAPIUsers']._loaded_options = None
|
|
67
|
+
_globals['_APIUSERSERVICE'].methods_by_name['SearchAPIUsers']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\215\267\001\301\215\267\001\302\215\267\001\303\215\267\001'
|
|
68
|
+
_globals['_APIUSERSERVICE'].methods_by_name['ActivateAPIUser']._loaded_options = None
|
|
69
|
+
_globals['_APIUSERSERVICE'].methods_by_name['ActivateAPIUser']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\215\267\001\302\215\267\001'
|
|
70
|
+
_globals['_APIUSERSERVICE'].methods_by_name['DeactivateAPIUser']._loaded_options = None
|
|
71
|
+
_globals['_APIUSERSERVICE'].methods_by_name['DeactivateAPIUser']._serialized_options = b'\262\265\030\016\010\002\020\002\032\010\300\215\267\001\302\215\267\001'
|
|
72
|
+
_globals['_APIUSERSERVICE'].methods_by_name['GetAPIUserByKeyHash']._loaded_options = None
|
|
73
|
+
_globals['_APIUSERSERVICE'].methods_by_name['GetAPIUserByKeyHash']._serialized_options = b'\262\265\030\026\010\001\020\002\032\020\300\215\267\001\301\215\267\001\302\215\267\001\303\215\267\001'
|
|
74
|
+
_globals['_GETAPIUSERREQUEST']._serialized_start=198
|
|
75
|
+
_globals['_GETAPIUSERREQUEST']._serialized_end=302
|
|
76
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_start=304
|
|
77
|
+
_globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_end=394
|
|
78
|
+
_globals['_CREATEAPIUSERREQUEST']._serialized_start=396
|
|
79
|
+
_globals['_CREATEAPIUSERREQUEST']._serialized_end=489
|
|
80
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST']._serialized_start=492
|
|
81
|
+
_globals['_ASSIGNROLESTOAPIUSERREQUEST']._serialized_end=718
|
|
82
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST']._serialized_start=721
|
|
83
|
+
_globals['_REVOKEROLESFROMAPIUSERREQUEST']._serialized_end=949
|
|
84
|
+
_globals['_LISTAPIUSERSREQUEST']._serialized_start=951
|
|
85
|
+
_globals['_LISTAPIUSERSREQUEST']._serialized_end=972
|
|
86
|
+
_globals['_LISTAPIUSERSRESPONSE']._serialized_start=974
|
|
87
|
+
_globals['_LISTAPIUSERSRESPONSE']._serialized_end=1061
|
|
88
|
+
_globals['_SEARCHAPIUSERSREQUEST']._serialized_start=1063
|
|
89
|
+
_globals['_SEARCHAPIUSERSREQUEST']._serialized_end=1121
|
|
90
|
+
_globals['_SEARCHAPIUSERSRESPONSE']._serialized_start=1123
|
|
91
|
+
_globals['_SEARCHAPIUSERSRESPONSE']._serialized_end=1212
|
|
92
|
+
_globals['_ACTIVATEAPIUSERREQUEST']._serialized_start=1214
|
|
93
|
+
_globals['_ACTIVATEAPIUSERREQUEST']._serialized_end=1323
|
|
94
|
+
_globals['_DEACTIVATEAPIUSERREQUEST']._serialized_start=1325
|
|
95
|
+
_globals['_DEACTIVATEAPIUSERREQUEST']._serialized_end=1436
|
|
96
|
+
_globals['_APIUSERSERVICE']._serialized_start=1439
|
|
97
|
+
_globals['_APIUSERSERVICE']._serialized_end=2669
|
|
77
98
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
2
|
from meshtrade.iam.api_user.v1 import api_user_pb2 as _api_user_pb2
|
|
3
|
-
from meshtrade.
|
|
4
|
-
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
3
|
+
from meshtrade.option.method_options.v1 import method_options_pb2 as _method_options_pb2
|
|
5
4
|
from google.protobuf.internal import containers as _containers
|
|
6
5
|
from google.protobuf import descriptor as _descriptor
|
|
7
6
|
from google.protobuf import message as _message
|
|
@@ -10,53 +9,69 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
10
9
|
|
|
11
10
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
11
|
|
|
13
|
-
class
|
|
12
|
+
class GetAPIUserRequest(_message.Message):
|
|
14
13
|
__slots__ = ("name",)
|
|
15
14
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
16
15
|
name: str
|
|
17
16
|
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
18
17
|
|
|
19
|
-
class
|
|
18
|
+
class GetAPIUserByKeyHashRequest(_message.Message):
|
|
20
19
|
__slots__ = ("key_hash",)
|
|
21
20
|
KEY_HASH_FIELD_NUMBER: _ClassVar[int]
|
|
22
21
|
key_hash: str
|
|
23
22
|
def __init__(self, key_hash: _Optional[str] = ...) -> None: ...
|
|
24
23
|
|
|
25
|
-
class
|
|
24
|
+
class CreateAPIUserRequest(_message.Message):
|
|
26
25
|
__slots__ = ("api_user",)
|
|
27
26
|
API_USER_FIELD_NUMBER: _ClassVar[int]
|
|
28
27
|
api_user: _api_user_pb2.APIUser
|
|
29
28
|
def __init__(self, api_user: _Optional[_Union[_api_user_pb2.APIUser, _Mapping]] = ...) -> None: ...
|
|
30
29
|
|
|
31
|
-
class
|
|
30
|
+
class AssignRolesToAPIUserRequest(_message.Message):
|
|
31
|
+
__slots__ = ("name", "roles")
|
|
32
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
name: str
|
|
35
|
+
roles: _containers.RepeatedScalarFieldContainer[str]
|
|
36
|
+
def __init__(self, name: _Optional[str] = ..., roles: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
37
|
+
|
|
38
|
+
class RevokeRolesFromAPIUserRequest(_message.Message):
|
|
39
|
+
__slots__ = ("name", "roles")
|
|
40
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
name: str
|
|
43
|
+
roles: _containers.RepeatedScalarFieldContainer[str]
|
|
44
|
+
def __init__(self, name: _Optional[str] = ..., roles: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
45
|
+
|
|
46
|
+
class ListAPIUsersRequest(_message.Message):
|
|
32
47
|
__slots__ = ()
|
|
33
48
|
def __init__(self) -> None: ...
|
|
34
49
|
|
|
35
|
-
class
|
|
50
|
+
class ListAPIUsersResponse(_message.Message):
|
|
36
51
|
__slots__ = ("api_users",)
|
|
37
52
|
API_USERS_FIELD_NUMBER: _ClassVar[int]
|
|
38
53
|
api_users: _containers.RepeatedCompositeFieldContainer[_api_user_pb2.APIUser]
|
|
39
54
|
def __init__(self, api_users: _Optional[_Iterable[_Union[_api_user_pb2.APIUser, _Mapping]]] = ...) -> None: ...
|
|
40
55
|
|
|
41
|
-
class
|
|
56
|
+
class SearchAPIUsersRequest(_message.Message):
|
|
42
57
|
__slots__ = ("display_name",)
|
|
43
58
|
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
44
59
|
display_name: str
|
|
45
60
|
def __init__(self, display_name: _Optional[str] = ...) -> None: ...
|
|
46
61
|
|
|
47
|
-
class
|
|
62
|
+
class SearchAPIUsersResponse(_message.Message):
|
|
48
63
|
__slots__ = ("api_users",)
|
|
49
64
|
API_USERS_FIELD_NUMBER: _ClassVar[int]
|
|
50
65
|
api_users: _containers.RepeatedCompositeFieldContainer[_api_user_pb2.APIUser]
|
|
51
66
|
def __init__(self, api_users: _Optional[_Iterable[_Union[_api_user_pb2.APIUser, _Mapping]]] = ...) -> None: ...
|
|
52
67
|
|
|
53
|
-
class
|
|
68
|
+
class ActivateAPIUserRequest(_message.Message):
|
|
54
69
|
__slots__ = ("name",)
|
|
55
70
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
56
71
|
name: str
|
|
57
72
|
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
58
73
|
|
|
59
|
-
class
|
|
74
|
+
class DeactivateAPIUserRequest(_message.Message):
|
|
60
75
|
__slots__ = ("name",)
|
|
61
76
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
62
77
|
name: str
|