Skip to content

Commit 4392d12

Browse files
[ACS JobRouter] Max concurrent offers on workers (#34193)
* Max concurrent offers on workers * Max concurrent offers on workers updated with tests * update commit for tspconfig to account for beta release * fix apiview issues * update CHANGELOG.md and add samples * fix lint and mypy errors * update assets.json
1 parent 6175879 commit 4392d12

24 files changed

+8735
-731
lines changed

sdk/communication/azure-communication-jobrouter/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# Release History
2+
## 1.1.0b1 (Unreleased)
3+
4+
This is the beta release of Azure Communication Job Router Python SDK. For more information, please see the [README][read_me].
5+
6+
This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for Python GitHub repo][issues].
7+
8+
### Features Added
9+
- `JobRouterClient`
10+
- `upsert_worker`
11+
- keyword argument `max_concurrent_offers: Optional[int]` added.
12+
- `RouterWorker`
13+
- Add `max_concurrent_offers`
214

315
## 1.0.0 (2023-11-01)
416

sdk/communication/azure-communication-jobrouter/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/communication/azure-communication-jobrouter",
5-
"Tag": "python/communication/azure-communication-jobrouter_19ef87bca3"
5+
"Tag": "python/communication/azure-communication-jobrouter_6a96a2c6e0"
66
}

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_api_versions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2022_07_18_PREVIEW = "2022-07-18-preview"
1212
V2023_11_01 = "2023-11-01"
13+
V2024_01_18_PREVIEW = "2024-01-18-preview"
1314

1415

15-
DEFAULT_VERSION = ApiVersion.V2023_11_01.value
16+
DEFAULT_VERSION = ApiVersion.V2024_01_18_PREVIEW.value

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class JobRouterAdministrationClient(
2525
2626
:param endpoint: Uri of your Communication resource. Required.
2727
:type endpoint: str
28-
:keyword api_version: The API version to use for this operation. Default value is "2023-11-01".
29-
Note that overriding this default value may result in unsupported behavior.
28+
:keyword api_version: The API version to use for this operation. Default value is
29+
"2024-01-18-preview". Note that overriding this default value may result in unsupported
30+
behavior.
3031
:paramtype api_version: str
3132
"""
3233

@@ -100,8 +101,9 @@ class JobRouterClient(JobRouterClientOperationsMixin): # pylint: disable=client
100101
101102
:param endpoint: Uri of your Communication resource. Required.
102103
:type endpoint: str
103-
:keyword api_version: The API version to use for this operation. Default value is "2023-11-01".
104-
Note that overriding this default value may result in unsupported behavior.
104+
:keyword api_version: The API version to use for this operation. Default value is
105+
"2024-01-18-preview". Note that overriding this default value may result in unsupported
106+
behavior.
105107
:paramtype api_version: str
106108
"""
107109

sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_configuration.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ class JobRouterAdministrationClientConfiguration: # pylint: disable=too-many-in
2121
2222
:param endpoint: Uri of your Communication resource. Required.
2323
:type endpoint: str
24-
:keyword api_version: The API version to use for this operation. Default value is "2023-11-01".
25-
Note that overriding this default value may result in unsupported behavior.
24+
:keyword api_version: The API version to use for this operation. Default value is
25+
"2024-01-18-preview". Note that overriding this default value may result in unsupported
26+
behavior.
2627
:paramtype api_version: str
2728
"""
2829

2930
def __init__(self, endpoint: str, **kwargs: Any) -> None:
30-
api_version: str = kwargs.pop("api_version", "2023-11-01")
31+
api_version: str = kwargs.pop("api_version", "2024-01-18-preview")
3132

3233
if endpoint is None:
3334
raise ValueError("Parameter 'endpoint' must not be None.")
@@ -58,13 +59,14 @@ class JobRouterClientConfiguration: # pylint: disable=too-many-instance-attribu
5859
5960
:param endpoint: Uri of your Communication resource. Required.
6061
:type endpoint: str
61-
:keyword api_version: The API version to use for this operation. Default value is "2023-11-01".
62-
Note that overriding this default value may result in unsupported behavior.
62+
:keyword api_version: The API version to use for this operation. Default value is
63+
"2024-01-18-preview". Note that overriding this default value may result in unsupported
64+
behavior.
6365
:paramtype api_version: str
6466
"""
6567

6668
def __init__(self, endpoint: str, **kwargs: Any) -> None:
67-
api_version: str = kwargs.pop("api_version", "2023-11-01")
69+
api_version: str = kwargs.pop("api_version", "2024-01-18-preview")
6870

6971
if endpoint is None:
7072
raise ValueError("Parameter 'endpoint' must not be None.")

0 commit comments

Comments
 (0)