Skip to content

Commit 78d30f2

Browse files
[conv authoring] make all custom poller private (#42869)
* make all custom poller private * changed released date
1 parent b70241c commit 78d30f2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0b1 (2025-08-25)
3+
## 1.0.0b1 (2025-09-05)
44

55
### Features Added
66
* Initial release

sdk/cognitivelanguage/azure-ai-language-conversations-authoring/azure/ai/language/conversations/authoring/aio/operations/_project_op_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ...models import (
2323
AssignedDeploymentResource,
2424
AssignDeploymentResourcesDetails,
25-
AsyncJobsPollingMethod,
25+
_AsyncJobsPollingMethod,
2626
CopyProjectDetails,
2727
CopyProjectState,
2828
DeploymentResourcesState,
@@ -428,7 +428,7 @@ def get_long_running_output(pipeline_response):
428428
if polling is True:
429429
polling_method: AsyncPollingMethod = cast(
430430
AsyncPollingMethod,
431-
AsyncJobsPollingMethod(
431+
_AsyncJobsPollingMethod(
432432
polling_interval=lro_delay,
433433
path_format_arguments=path_format_arguments,
434434
),

sdk/cognitivelanguage/azure-ai-language-conversations-authoring/azure/ai/language/conversations/authoring/models/_patch.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262

6363

64-
class JobsStrategy(LongRunningOperation):
64+
class _JobsStrategy(LongRunningOperation):
6565
"""Interprets job-status responses and tells the poller which URL to use."""
6666

6767
def __init__(self, async_url: str):
@@ -101,7 +101,7 @@ def get_final_get_url(self, pipeline_response: PipelineResponse) -> Optional[str
101101
return self._async_url
102102

103103

104-
class JobsPollingMethod(PollingMethod):
104+
class _JobsPollingMethod(PollingMethod):
105105
def __init__(self, polling_interval: float = 30.0, *, path_format_arguments: Optional[dict] = None, **kwargs: Any):
106106
self._polling_interval = polling_interval
107107
self._kwargs = kwargs
@@ -135,7 +135,7 @@ def initialize(self, client: Any, initial_response: PipelineResponse, deserializ
135135
op_loc = self._client.format_url(op_loc, **self._path_format_arguments)
136136

137137
# Strategy: always use jobs URL
138-
self._operation = JobsStrategy(op_loc)
138+
self._operation = _JobsStrategy(op_loc)
139139
if not self._operation.can_poll(initial_response):
140140
raise BadResponse("Cannot poll: no jobs URL")
141141

@@ -216,7 +216,7 @@ def from_continuation_token(cls, continuation_token: str, **kwargs: Any) -> Tupl
216216
return client, initial_response, deserialization_callback
217217

218218

219-
class AsyncJobsPollingMethod(AsyncPollingMethod):
219+
class _AsyncJobsPollingMethod(AsyncPollingMethod):
220220
def __init__(
221221
self,
222222
polling_interval: float = 30.0,
@@ -254,7 +254,7 @@ def initialize(self, client: Any, initial_response: PipelineResponse, deserializ
254254
if self._path_format_arguments:
255255
op_loc = self._client.format_url(op_loc, **self._path_format_arguments)
256256

257-
self._operation = JobsStrategy(op_loc)
257+
self._operation = _JobsStrategy(op_loc)
258258
if not self._operation.can_poll(initial_response):
259259
raise BadResponse("Cannot poll: no jobs URL")
260260

@@ -356,8 +356,8 @@ def patch_sdk():
356356

357357

358358
__all__ = [
359-
"JobsStrategy",
360-
"JobsPollingMethod",
359+
"_JobsStrategy",
360+
"_JobsPollingMethod",
361361
"AssignDeploymentResourcesDetails",
362362
"UnassignDeploymentResourcesDetails",
363363
"SwapDeploymentsDetails",
@@ -383,7 +383,7 @@ def patch_sdk():
383383
"CopyProjectDetails",
384384
"EvaluationJobResult",
385385
"EvaluationState",
386-
"AsyncJobsPollingMethod",
386+
"_AsyncJobsPollingMethod",
387387
"ConversationExportedProjectAsset",
388388
"ConversationExportedIntent",
389389
"ConversationExportedEntity",

sdk/cognitivelanguage/azure-ai-language-conversations-authoring/azure/ai/language/conversations/authoring/operations/_project_op_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ExportedProject,
2929
ExportedProjectFormat,
3030
ExportedTrainedModel,
31-
JobsPollingMethod,
31+
_JobsPollingMethod,
3232
ProjectDeletionState,
3333
ProjectDeployment,
3434
ProjectDetails,
@@ -429,7 +429,7 @@ def get_long_running_output(pipeline_response):
429429
if polling is True:
430430
polling_method: PollingMethod = cast(
431431
PollingMethod,
432-
JobsPollingMethod(
432+
_JobsPollingMethod(
433433
polling_interval=lro_delay,
434434
path_format_arguments=path_format_arguments,
435435
# any extra kwargs your poller needs

0 commit comments

Comments
 (0)