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.
Files changed (163) hide show
  1. meshtrade/common/__init__.py +2 -4
  2. meshtrade/common/config.py +3 -4
  3. meshtrade/common/grpc_client.py +140 -0
  4. meshtrade/common/service_options.py +46 -0
  5. meshtrade/compliance/client/v1/__init__.py +0 -2
  6. meshtrade/compliance/client/v1/client_pb2.py +15 -4
  7. meshtrade/compliance/client/v1/client_pb2.pyi +1 -0
  8. meshtrade/compliance/client/v1/company_pb2.py +25 -8
  9. meshtrade/compliance/client/v1/company_pb2.pyi +1 -0
  10. meshtrade/compliance/client/v1/company_representative_pb2.py +9 -4
  11. meshtrade/compliance/client/v1/company_representative_pb2.pyi +1 -0
  12. meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
  13. meshtrade/compliance/client/v1/fund_pb2.py +13 -4
  14. meshtrade/compliance/client/v1/fund_pb2.pyi +1 -0
  15. meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
  16. meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
  17. meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
  18. meshtrade/compliance/client/v1/natural_person_pb2.py +19 -4
  19. meshtrade/compliance/client/v1/natural_person_pb2.pyi +1 -0
  20. meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
  21. meshtrade/compliance/client/v1/service_meshpy.py +2 -1
  22. meshtrade/compliance/client/v1/service_pb2.py +21 -17
  23. meshtrade/compliance/client/v1/service_pb2.pyi +2 -2
  24. meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
  25. meshtrade/compliance/client/v1/tax_residency_pb2.py +9 -4
  26. meshtrade/compliance/client/v1/tax_residency_pb2.pyi +1 -0
  27. meshtrade/compliance/client/v1/trust_pb2.py +13 -4
  28. meshtrade/compliance/client/v1/trust_pb2.pyi +1 -0
  29. meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
  30. meshtrade/iam/api_user/v1/__init__.py +34 -26
  31. meshtrade/iam/api_user/v1/api_credentials_pb2.py +5 -5
  32. meshtrade/iam/api_user/v1/api_user_pb2.py +13 -9
  33. meshtrade/iam/api_user/v1/api_user_pb2.pyi +2 -4
  34. meshtrade/iam/api_user/v1/api_user_state_machine.py +104 -0
  35. meshtrade/iam/api_user/v1/service_meshpy.py +96 -61
  36. meshtrade/iam/api_user/v1/service_pb2.py +61 -40
  37. meshtrade/iam/api_user/v1/service_pb2.pyi +26 -11
  38. meshtrade/iam/api_user/v1/service_pb2_grpc.py +179 -135
  39. meshtrade/iam/group/v1/__init__.py +4 -2
  40. meshtrade/iam/group/v1/group_pb2.py +13 -4
  41. meshtrade/iam/group/v1/group_pb2.pyi +9 -2
  42. meshtrade/iam/group/v1/service_meshpy.py +41 -6
  43. meshtrade/iam/group/v1/service_pb2.py +47 -20
  44. meshtrade/iam/group/v1/service_pb2.pyi +46 -13
  45. meshtrade/iam/group/v1/service_pb2_grpc.py +151 -16
  46. meshtrade/iam/role/v1/__init__.py +17 -4
  47. meshtrade/iam/role/v1/role.py +162 -11
  48. meshtrade/iam/role/v1/role_pb2.py +4 -7
  49. meshtrade/iam/role/v1/role_pb2.pyi +53 -23
  50. meshtrade/iam/user/v1/__init__.py +22 -4
  51. meshtrade/iam/user/v1/service_meshpy.py +129 -7
  52. meshtrade/iam/user/v1/service_pb2.py +66 -16
  53. meshtrade/iam/user/v1/service_pb2.pyi +81 -9
  54. meshtrade/iam/user/v1/service_pb2_grpc.py +385 -14
  55. meshtrade/iam/user/v1/user_pb2.py +13 -4
  56. meshtrade/iam/user/v1/user_pb2.pyi +7 -2
  57. meshtrade/ledger/transaction/v1/__init__.py +25 -1
  58. meshtrade/ledger/transaction/v1/service_meshpy.py +176 -0
  59. meshtrade/ledger/transaction/v1/service_pb2.py +56 -0
  60. meshtrade/ledger/transaction/v1/service_pb2.pyi +32 -0
  61. meshtrade/ledger/transaction/v1/service_pb2_grpc.py +131 -0
  62. meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
  63. meshtrade/ledger/transaction/v1/transaction_state_machine.py +75 -0
  64. meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
  65. meshtrade/{reporting/income_report → market_data/price}/v1/__init__.py +11 -20
  66. meshtrade/market_data/price/v1/price_pb2.py +40 -0
  67. meshtrade/market_data/price/v1/price_pb2.pyi +23 -0
  68. meshtrade/market_data/price/v1/service_meshpy.py +152 -0
  69. meshtrade/market_data/price/v1/service_pb2.py +49 -0
  70. meshtrade/market_data/price/v1/service_pb2.pyi +18 -0
  71. meshtrade/market_data/price/v1/service_pb2_grpc.py +84 -0
  72. meshtrade/option/method_options/v1/__init__.py +41 -0
  73. meshtrade/option/method_options/v1/method_options_pb2.py +43 -0
  74. meshtrade/option/method_options/v1/method_options_pb2.pyi +40 -0
  75. meshtrade/reporting/account_report/v1/__init__.py +66 -0
  76. meshtrade/reporting/account_report/v1/account_report_pb2.py +46 -0
  77. meshtrade/reporting/account_report/v1/account_report_pb2.pyi +49 -0
  78. meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.py +7 -7
  79. meshtrade/reporting/account_report/v1/fee_entry_pb2.py +39 -0
  80. meshtrade/reporting/account_report/v1/fee_entry_pb2.pyi +26 -0
  81. meshtrade/reporting/account_report/v1/fee_entry_pb2_grpc.py +4 -0
  82. meshtrade/reporting/account_report/v1/income_entry.py +35 -0
  83. meshtrade/reporting/account_report/v1/income_entry_pb2.py +42 -0
  84. meshtrade/reporting/{income_report/v1/entry_pb2.pyi → account_report/v1/income_entry_pb2.pyi} +18 -10
  85. meshtrade/reporting/account_report/v1/income_entry_pb2_grpc.py +4 -0
  86. meshtrade/reporting/{income_report → account_report}/v1/service_meshpy.py +37 -36
  87. meshtrade/reporting/account_report/v1/service_pb2.py +72 -0
  88. meshtrade/reporting/account_report/v1/service_pb2.pyi +43 -0
  89. meshtrade/reporting/account_report/v1/service_pb2_grpc.py +161 -0
  90. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.py +39 -0
  91. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2.pyi +30 -0
  92. meshtrade/reporting/account_report/v1/trading_statement_entry_pb2_grpc.py +4 -0
  93. meshtrade/studio/instrument/v1/__init__.py +43 -0
  94. meshtrade/studio/instrument/v1/instrument_pb2.py +45 -0
  95. meshtrade/studio/instrument/v1/instrument_pb2.pyi +20 -0
  96. meshtrade/studio/instrument/v1/instrument_pb2_grpc.py +4 -0
  97. meshtrade/studio/instrument/v1/instrument_type_pb2.py +37 -0
  98. meshtrade/studio/instrument/v1/instrument_type_pb2.pyi +64 -0
  99. meshtrade/studio/instrument/v1/instrument_type_pb2_grpc.py +4 -0
  100. meshtrade/studio/instrument/v1/unit_pb2.py +37 -0
  101. meshtrade/studio/instrument/v1/unit_pb2.pyi +46 -0
  102. meshtrade/studio/instrument/v1/unit_pb2_grpc.py +4 -0
  103. meshtrade/trading/limit_order/v1/__init__.py +22 -4
  104. meshtrade/trading/limit_order/v1/limit_order_pb2.py +24 -4
  105. meshtrade/trading/limit_order/v1/limit_order_pb2.pyi +55 -5
  106. meshtrade/trading/limit_order/v1/service_meshpy.py +113 -2
  107. meshtrade/trading/limit_order/v1/service_pb2.py +49 -9
  108. meshtrade/trading/limit_order/v1/service_pb2.pyi +67 -7
  109. meshtrade/trading/limit_order/v1/service_pb2_grpc.py +321 -4
  110. meshtrade/trading/market_order/v1/__init__.py +0 -2
  111. meshtrade/trading/market_order/v1/market_order_pb2.py +2 -2
  112. meshtrade/trading/market_order/v1/service_meshpy.py +3 -2
  113. meshtrade/trading/market_order/v1/service_pb2.py +8 -9
  114. meshtrade/trading/market_order/v1/service_pb2.pyi +1 -2
  115. meshtrade/type/v1/__init__.py +82 -12
  116. meshtrade/type/v1/address_pb2.py +2 -2
  117. meshtrade/type/v1/amount.py +429 -5
  118. meshtrade/type/v1/amount_pb2.py +2 -2
  119. meshtrade/type/v1/contact_details_pb2.py +2 -2
  120. meshtrade/type/v1/date_pb2.py +2 -2
  121. meshtrade/type/v1/decimal_built_in_conversions.py +8 -3
  122. meshtrade/type/v1/decimal_operations.py +354 -0
  123. meshtrade/type/v1/decimal_pb2.py +2 -2
  124. meshtrade/type/v1/ledger.py +76 -1
  125. meshtrade/type/v1/ledger_pb2.py +2 -2
  126. meshtrade/type/v1/sorting_pb2.py +2 -2
  127. meshtrade/type/v1/time_of_day_pb2.py +2 -2
  128. meshtrade/type/v1/token.py +144 -0
  129. meshtrade/type/v1/token_pb2.py +2 -2
  130. meshtrade/wallet/account/v1/__init__.py +21 -3
  131. meshtrade/wallet/account/v1/account_pb2.py +28 -4
  132. meshtrade/wallet/account/v1/account_pb2.pyi +57 -3
  133. meshtrade/wallet/account/v1/service_meshpy.py +72 -1
  134. meshtrade/wallet/account/v1/service_pb2.py +67 -23
  135. meshtrade/wallet/account/v1/service_pb2.pyi +81 -21
  136. meshtrade/wallet/account/v1/service_pb2_grpc.py +242 -8
  137. {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/METADATA +1 -1
  138. meshtrade-1.29.0.dist-info/RECORD +217 -0
  139. meshtrade/compliance/client/v1/service_options_meshpy.py +0 -65
  140. meshtrade/iam/api_user/v1/service.py +0 -58
  141. meshtrade/iam/api_user/v1/service_options_meshpy.py +0 -65
  142. meshtrade/iam/group/v1/service_options_meshpy.py +0 -65
  143. meshtrade/iam/user/v1/service_options_meshpy.py +0 -65
  144. meshtrade/option/v1/method_type_pb2.py +0 -38
  145. meshtrade/option/v1/method_type_pb2.pyi +0 -17
  146. meshtrade/reporting/income_report/v1/entry_pb2.py +0 -42
  147. meshtrade/reporting/income_report/v1/income_report_pb2.py +0 -44
  148. meshtrade/reporting/income_report/v1/income_report_pb2.pyi +0 -42
  149. meshtrade/reporting/income_report/v1/service_options_meshpy.py +0 -65
  150. meshtrade/reporting/income_report/v1/service_pb2.py +0 -58
  151. meshtrade/reporting/income_report/v1/service_pb2.pyi +0 -37
  152. meshtrade/reporting/income_report/v1/service_pb2_grpc.py +0 -170
  153. meshtrade/trading/limit_order/v1/service_options_meshpy.py +0 -65
  154. meshtrade/trading/market_order/v1/service_options_meshpy.py +0 -65
  155. meshtrade/wallet/account/v1/service_options_meshpy.py +0 -65
  156. meshtrade-1.0.1.dist-info/RECORD +0 -191
  157. /meshtrade/{option/v1/method_type_pb2_grpc.py → market_data/price/v1/price_pb2_grpc.py} +0 -0
  158. /meshtrade/{reporting/income_report/v1/disclaimer_pb2_grpc.py → option/method_options/v1/method_options_pb2_grpc.py} +0 -0
  159. /meshtrade/reporting/{income_report/v1/entry_pb2_grpc.py → account_report/v1/account_report_pb2_grpc.py} +0 -0
  160. /meshtrade/reporting/{income_report → account_report}/v1/disclaimer_pb2.pyi +0 -0
  161. /meshtrade/reporting/{income_report/v1/income_report_pb2_grpc.py → account_report/v1/disclaimer_pb2_grpc.py} +0 -0
  162. {meshtrade-1.0.1.dist-info → meshtrade-1.29.0.dist-info}/WHEEL +0 -0
  163. {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
- ApiUserService gRPC service wrapper with authentication, timeouts, and resource management.
5
+ APIUserService gRPC service wrapper with authentication, timeouts, and resource management.
6
6
 
7
- This module provides a high-level gRPC service for the ApiUserService service that combines
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 .service_options_meshpy import ServiceOptions
20
+ from meshtrade.common.service_options import ServiceOptions
20
21
  from .service_pb2 import (
21
- ActivateApiUserRequest,
22
- CreateApiUserRequest,
23
- DeactivateApiUserRequest,
24
- GetApiUserByKeyHashRequest,
25
- GetApiUserRequest,
26
- ListApiUsersRequest,
27
- ListApiUsersResponse,
28
- SearchApiUsersRequest,
29
- SearchApiUsersResponse,
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 ApiUserServiceStub
34
+ from .service_pb2_grpc import APIUserServiceStub
32
35
 
33
36
 
34
37
  def _create_apiuserservice_stub(channel):
35
- """Factory function to create ApiUserServiceStub from gRPC channel."""
36
- return ApiUserServiceStub(channel)
38
+ """Factory function to create APIUserServiceStub from gRPC channel."""
39
+ return APIUserServiceStub(channel)
37
40
 
38
41
 
39
- class ApiUserService(BaseGRPCClient):
40
- """ApiUserService gRPC service with authentication, timeouts, and resource management.
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 ApiUserService with proper authentication, timeout handling, and automatic resource cleanup.
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 = ApiUserService()
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 = ApiUserService(options)
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 ApiUserService service.
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 = ApiUserService()
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 = ApiUserService(options)
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="ApiUserService",
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 get_api_user(self, request: GetApiUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
141
- """GetApiUser method.
143
+ def get_apiuser(self, request: GetAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
144
+ """GetAPIUser method.
142
145
 
143
146
  Args:
144
- request: The GetApiUser request message
147
+ request: The GetAPIUser request message
145
148
  timeout: Optional timeout override for this call
146
149
 
147
150
  Returns:
148
- The GetApiUser response message
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("GetApiUser", request, timeout)
157
+ return self._execute_method("GetAPIUser", request, timeout)
155
158
 
156
- def create_api_user(self, request: CreateApiUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
157
- """CreateApiUser method.
159
+ def create_apiuser(self, request: CreateAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
160
+ """CreateAPIUser method.
158
161
 
159
162
  Args:
160
- request: The CreateApiUser request message
163
+ request: The CreateAPIUser request message
161
164
  timeout: Optional timeout override for this call
162
165
 
163
166
  Returns:
164
- The CreateApiUser response message
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("CreateApiUser", request, timeout)
173
+ return self._execute_method("CreateAPIUser", request, timeout)
171
174
 
172
- def list_api_users(self, request: ListApiUsersRequest, timeout: Optional[timedelta] = None) -> ListApiUsersResponse:
173
- """ListApiUsers method.
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 ListApiUsers request message
179
+ request: The AssignRolesToAPIUser request message
177
180
  timeout: Optional timeout override for this call
178
181
 
179
182
  Returns:
180
- The ListApiUsers response message
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("ListApiUsers", request, timeout)
189
+ return self._execute_method("AssignRolesToAPIUser", request, timeout)
187
190
 
188
- def search_api_users(self, request: SearchApiUsersRequest, timeout: Optional[timedelta] = None) -> SearchApiUsersResponse:
189
- """SearchApiUsers method.
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 SearchApiUsers request message
195
+ request: The RevokeRolesFromAPIUser request message
193
196
  timeout: Optional timeout override for this call
194
197
 
195
198
  Returns:
196
- The SearchApiUsers response message
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("SearchApiUsers", request, timeout)
205
+ return self._execute_method("RevokeRolesFromAPIUser", request, timeout)
203
206
 
204
- def activate_api_user(self, request: ActivateApiUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
205
- """ActivateApiUser method.
207
+ def list_apiusers(self, request: ListAPIUsersRequest, timeout: Optional[timedelta] = None) -> ListAPIUsersResponse:
208
+ """ListAPIUsers method.
206
209
 
207
210
  Args:
208
- request: The ActivateApiUser request message
211
+ request: The ListAPIUsers request message
209
212
  timeout: Optional timeout override for this call
210
213
 
211
214
  Returns:
212
- The ActivateApiUser response message
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("ActivateApiUser", request, timeout)
221
+ return self._execute_method("ListAPIUsers", request, timeout)
219
222
 
220
- def deactivate_api_user(self, request: DeactivateApiUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
221
- """DeactivateApiUser method.
223
+ def search_apiusers(self, request: SearchAPIUsersRequest, timeout: Optional[timedelta] = None) -> SearchAPIUsersResponse:
224
+ """SearchAPIUsers method.
222
225
 
223
226
  Args:
224
- request: The DeactivateApiUser request message
227
+ request: The SearchAPIUsers request message
225
228
  timeout: Optional timeout override for this call
226
229
 
227
230
  Returns:
228
- The DeactivateApiUser response message
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("DeactivateApiUser", request, timeout)
237
+ return self._execute_method("SearchAPIUsers", request, timeout)
235
238
 
236
- def get_api_user_by_key_hash(self, request: GetApiUserByKeyHashRequest, timeout: Optional[timedelta] = None) -> APIUser:
237
- """GetApiUserByKeyHash method.
239
+ def activate_apiuser(self, request: ActivateAPIUserRequest, timeout: Optional[timedelta] = None) -> APIUser:
240
+ """ActivateAPIUser method.
238
241
 
239
242
  Args:
240
- request: The GetApiUserByKeyHash request message
243
+ request: The ActivateAPIUser request message
241
244
  timeout: Optional timeout override for this call
242
245
 
243
246
  Returns:
244
- The GetApiUserByKeyHash response message
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("GetApiUserByKeyHash", request, timeout)
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
- ApiUserServiceGRPCClient = ApiUserService
255
- ApiUserServiceGRPCClientInterface = ApiUserService
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.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
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 meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\"\'\n\x11GetApiUserRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"7\n\x1aGetApiUserByKeyHashRequest\x12\x19\n\x08key_hash\x18\x01 \x01(\tR\x07keyHash\"U\n\x14\x43reateApiUserRequest\x12=\n\x08\x61pi_user\x18\x01 \x01(\x0b\x32\".meshtrade.iam.api_user.v1.APIUserR\x07\x61piUser\"\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\"\xd9\x01\n\x16\x41\x63tivateApiUserRequest\x12\xbe\x01\n\x04name\x18\x01 \x01(\tB\xa9\x01\xbaH\xa5\x01r&\x10\x01\x32\"^api_users/[0-9A-HJKMNP-TV-Z]{26}$\xba\x01z\n\rname.required\x12\x35name is required and must be in format api_users/{id}\x1a\x32this.matches(\'^api_users/[0-9A-HJKMNP-TV-Z]{26}$\')R\x04name\"\xdb\x01\n\x18\x44\x65\x61\x63tivateApiUserRequest\x12\xbe\x01\n\x04name\x18\x01 \x01(\tB\xa9\x01\xbaH\xa5\x01r&\x10\x01\x32\"^api_users/[0-9A-HJKMNP-TV-Z]{26}$\xba\x01z\n\rname.required\x12\x35name is required and must be in format api_users/{id}\x1a\x32this.matches(\'^api_users/[0-9A-HJKMNP-TV-Z]{26}$\')R\x04name2\x8b\x07\n\x0e\x41piUserService\x12r\n\nGetApiUser\x12,.meshtrade.iam.api_user.v1.GetApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x01\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\x12t\n\rCreateApiUser\x12/.meshtrade.iam.api_user.v1.CreateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x0e\xa0\xb5\x18\x02\xaa\xb5\x18\x06\n\x04\xc0\x8d\xb7\x01\x12\x83\x01\n\x0cListApiUsers\x12..meshtrade.iam.api_user.v1.ListApiUsersRequest\x1a/.meshtrade.iam.api_user.v1.ListApiUsersResponse\"\x12\xa0\xb5\x18\x01\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\x12\x89\x01\n\x0eSearchApiUsers\x12\x30.meshtrade.iam.api_user.v1.SearchApiUsersRequest\x1a\x31.meshtrade.iam.api_user.v1.SearchApiUsersResponse\"\x12\xa0\xb5\x18\x01\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\x12x\n\x0f\x41\x63tivateApiUser\x12\x31.meshtrade.iam.api_user.v1.ActivateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x0e\xa0\xb5\x18\x02\xaa\xb5\x18\x06\n\x04\xc0\x8d\xb7\x01\x12|\n\x11\x44\x65\x61\x63tivateApiUser\x12\x33.meshtrade.iam.api_user.v1.DeactivateApiUserRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x0e\xa0\xb5\x18\x02\xaa\xb5\x18\x06\n\x04\xc0\x8d\xb7\x01\x12\x84\x01\n\x13GetApiUserByKeyHash\x12\x35.meshtrade.iam.api_user.v1.GetApiUserByKeyHashRequest\x1a\".meshtrade.iam.api_user.v1.APIUser\"\x12\xa0\xb5\x18\x01\xaa\xb5\x18\n\n\x08\xc0\x8d\xb7\x01\xc1\x8d\xb7\x01\x42Z\n co.meshtrade.api.iam.api_user.v1Z6github.com/meshtrade/api/go/iam/api_user/v1;api_userv1b\x06proto3')
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.v1Z6github.com/meshtrade/api/go/iam/api_user/v1;api_userv1'
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\245\001r&\020\0012\"^api_users/[0-9A-HJKMNP-TV-Z]{26}$\272\001z\n\rname.required\0225name is required and must be in format api_users/{id}\0322this.matches(\'^api_users/[0-9A-HJKMNP-TV-Z]{26}$\')'
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\245\001r&\020\0012\"^api_users/[0-9A-HJKMNP-TV-Z]{26}$\272\001z\n\rname.required\0225name is required and must be in format api_users/{id}\0322this.matches(\'^api_users/[0-9A-HJKMNP-TV-Z]{26}$\')'
43
- _globals['_APIUSERSERVICE'].methods_by_name['GetApiUser']._loaded_options = None
44
- _globals['_APIUSERSERVICE'].methods_by_name['GetApiUser']._serialized_options = b'\240\265\030\001\252\265\030\n\n\010\300\215\267\001\301\215\267\001'
45
- _globals['_APIUSERSERVICE'].methods_by_name['CreateApiUser']._loaded_options = None
46
- _globals['_APIUSERSERVICE'].methods_by_name['CreateApiUser']._serialized_options = b'\240\265\030\002\252\265\030\006\n\004\300\215\267\001'
47
- _globals['_APIUSERSERVICE'].methods_by_name['ListApiUsers']._loaded_options = None
48
- _globals['_APIUSERSERVICE'].methods_by_name['ListApiUsers']._serialized_options = b'\240\265\030\001\252\265\030\n\n\010\300\215\267\001\301\215\267\001'
49
- _globals['_APIUSERSERVICE'].methods_by_name['SearchApiUsers']._loaded_options = None
50
- _globals['_APIUSERSERVICE'].methods_by_name['SearchApiUsers']._serialized_options = b'\240\265\030\001\252\265\030\n\n\010\300\215\267\001\301\215\267\001'
51
- _globals['_APIUSERSERVICE'].methods_by_name['ActivateApiUser']._loaded_options = None
52
- _globals['_APIUSERSERVICE'].methods_by_name['ActivateApiUser']._serialized_options = b'\240\265\030\002\252\265\030\006\n\004\300\215\267\001'
53
- _globals['_APIUSERSERVICE'].methods_by_name['DeactivateApiUser']._loaded_options = None
54
- _globals['_APIUSERSERVICE'].methods_by_name['DeactivateApiUser']._serialized_options = b'\240\265\030\002\252\265\030\006\n\004\300\215\267\001'
55
- _globals['_APIUSERSERVICE'].methods_by_name['GetApiUserByKeyHash']._loaded_options = None
56
- _globals['_APIUSERSERVICE'].methods_by_name['GetApiUserByKeyHash']._serialized_options = b'\240\265\030\001\252\265\030\n\n\010\300\215\267\001\301\215\267\001'
57
- _globals['_GETAPIUSERREQUEST']._serialized_start=214
58
- _globals['_GETAPIUSERREQUEST']._serialized_end=253
59
- _globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_start=255
60
- _globals['_GETAPIUSERBYKEYHASHREQUEST']._serialized_end=310
61
- _globals['_CREATEAPIUSERREQUEST']._serialized_start=312
62
- _globals['_CREATEAPIUSERREQUEST']._serialized_end=397
63
- _globals['_LISTAPIUSERSREQUEST']._serialized_start=399
64
- _globals['_LISTAPIUSERSREQUEST']._serialized_end=420
65
- _globals['_LISTAPIUSERSRESPONSE']._serialized_start=422
66
- _globals['_LISTAPIUSERSRESPONSE']._serialized_end=509
67
- _globals['_SEARCHAPIUSERSREQUEST']._serialized_start=511
68
- _globals['_SEARCHAPIUSERSREQUEST']._serialized_end=569
69
- _globals['_SEARCHAPIUSERSRESPONSE']._serialized_start=571
70
- _globals['_SEARCHAPIUSERSRESPONSE']._serialized_end=660
71
- _globals['_ACTIVATEAPIUSERREQUEST']._serialized_start=663
72
- _globals['_ACTIVATEAPIUSERREQUEST']._serialized_end=880
73
- _globals['_DEACTIVATEAPIUSERREQUEST']._serialized_start=883
74
- _globals['_DEACTIVATEAPIUSERREQUEST']._serialized_end=1102
75
- _globals['_APIUSERSERVICE']._serialized_start=1105
76
- _globals['_APIUSERSERVICE']._serialized_end=2012
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.iam.role.v1 import role_pb2 as _role_pb2
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 GetApiUserRequest(_message.Message):
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 GetApiUserByKeyHashRequest(_message.Message):
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 CreateApiUserRequest(_message.Message):
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 ListApiUsersRequest(_message.Message):
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 ListApiUsersResponse(_message.Message):
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 SearchApiUsersRequest(_message.Message):
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 SearchApiUsersResponse(_message.Message):
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 ActivateApiUserRequest(_message.Message):
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 DeactivateApiUserRequest(_message.Message):
74
+ class DeactivateAPIUserRequest(_message.Message):
60
75
  __slots__ = ("name",)
61
76
  NAME_FIELD_NUMBER: _ClassVar[int]
62
77
  name: str