@@ -41,29 +41,34 @@ def details(self) -> Mapping[str, Any]:
41
41
:return: A mapping of details about the long-running operation.
42
42
:rtype: Mapping[str, Any]
43
43
"""
44
+ ...
44
45
45
46
def continuation_token (self ) -> str : # pylint: disable=no-self-use
46
47
"""Return a continuation token that allows to restart the poller later.
47
48
48
49
:returns: An opaque continuation token
49
50
:rtype: str
50
51
"""
52
+ ...
51
53
52
54
def status (self ) -> str : # pylint: disable=no-self-use
53
55
"""Returns the current status string.
54
56
55
57
:returns: The current status string
56
58
:rtype: str
57
59
"""
60
+ ...
58
61
59
- def result (self , timeout : Optional [int ] = None ) -> PollingReturnType : # pylint: disable=no-self-use, unused-argument
62
+ # pylint: disable=no-self-use, unused-argument
63
+ def result (self , timeout : Optional [int ] = None ) -> PollingReturnType_co :
60
64
"""Return the result of the long running operation, or
61
65
the result available after the specified timeout.
62
66
63
67
:returns: The deserialized resource of the long running operation,
64
68
if one is available.
65
69
:raises ~azure.core.exceptions.HttpResponseError: Server problem with the query.
66
70
"""
71
+ ...
67
72
68
73
def wait (self , timeout : Optional [float ] = None ) -> None : # pylint: disable=no-self-use, unused-argument
69
74
"""Wait on the long running operation for a specified length
@@ -74,13 +79,15 @@ def wait(self, timeout: Optional[float] = None) -> None: # pylint: disable=no-s
74
79
operation to complete (in seconds).
75
80
:raises ~azure.core.exceptions.HttpResponseError: Server problem with the query.
76
81
"""
82
+ ...
77
83
78
84
def done (self ) -> bool : # pylint: disable=no-self-use
79
85
"""Check status of the long running operation.
80
86
81
87
:returns: 'True' if the process has completed, else 'False'.
82
88
:rtype: bool
83
89
"""
90
+ ...
84
91
85
92
def add_done_callback (self , func : Callable ) -> None : # pylint: disable=no-self-use, unused-argument
86
93
"""Add callback function to be run once the long running operation
@@ -89,13 +96,15 @@ def add_done_callback(self, func: Callable) -> None: # pylint: disable=no-self-
89
96
:param callable func: Callback function that takes at least one
90
97
argument, a completed LongRunningOperation.
91
98
"""
99
+ ...
92
100
93
101
def remove_done_callback (self , func : Callable ) -> None : # pylint: disable=no-self-use, unused-argument
94
102
"""Remove a callback from the long running operation.
95
103
96
104
:param callable func: The function to be removed from the callbacks.
97
105
:raises ValueError: if the long running operation has already completed.
98
106
"""
107
+ ...
99
108
100
109
def cancel (self ) -> None : # pylint: disable=no-self-use
101
110
"""Cancel the operation currently being polled.
@@ -104,6 +113,7 @@ def cancel(self) -> None: # pylint: disable=no-self-use
104
113
:rtype: None
105
114
:raises ~azure.core.exceptions.HttpResponseError: When the operation has already reached a terminal state.
106
115
"""
116
+ ...
107
117
108
118
109
119
class TextAnalyticsOperationResourcePolling (OperationResourcePolling ):
0 commit comments