|
1 | 1 | # Copyright (c) Microsoft Corporation. |
2 | 2 | # Licensed under the MIT License. |
3 | 3 |
|
4 | | -from typing import Callable, Iterable, Optional, Protocol, Sequence, cast |
| 4 | +from typing import Iterable, Optional, Protocol, Sequence, cast |
5 | 5 |
|
6 | 6 | import grpc |
7 | 7 | from azure.core.credentials import TokenCredential |
|
16 | 16 |
|
17 | 17 |
|
18 | 18 | class _OnDemandSandboxActivitiesStub(Protocol): |
19 | | - DeclareOnDemandSandboxActivities: Callable[ |
20 | | - [pb.OnDemandSandboxActivityDeclaration], |
21 | | - pb.OnDemandSandboxActivityDeclarationResult, |
22 | | - ] |
23 | | - RemoveOnDemandSandboxActivityDeclaration: Callable[ |
24 | | - [pb.RemoveOnDemandSandboxActivityDeclarationRequest], |
25 | | - pb.RemoveOnDemandSandboxActivityDeclarationResult, |
26 | | - ] |
27 | | - ConnectOnDemandSandboxActivityWorker: Callable[ |
28 | | - [Iterable[pb.OnDemandSandboxActivityWorkerMessage]], |
29 | | - pb.OnDemandSandboxActivityWorkerSessionResult, |
30 | | - ] |
| 19 | + def DeclareOnDemandSandboxActivities( |
| 20 | + self, |
| 21 | + request: pb.OnDemandSandboxActivityDeclaration) -> pb.OnDemandSandboxActivityDeclarationResult: |
| 22 | + ... |
| 23 | + |
| 24 | + def RemoveOnDemandSandboxActivityDeclaration( |
| 25 | + self, |
| 26 | + request: pb.RemoveOnDemandSandboxActivityDeclarationRequest) -> pb.RemoveOnDemandSandboxActivityDeclarationResult: |
| 27 | + ... |
| 28 | + |
| 29 | + def ConnectOnDemandSandboxActivityWorker( |
| 30 | + self, |
| 31 | + request_iterator: Iterable[pb.OnDemandSandboxActivityWorkerMessage]) -> pb.OnDemandSandboxActivityWorkerSessionResult: |
| 32 | + ... |
31 | 33 |
|
32 | 34 |
|
33 | 35 | class OnDemandSandboxActivitiesGrpcTransport: |
|
0 commit comments