Skip to content

Commit

Permalink
[AutoRelease] t2-webpubsub-2024-08-26-65426(can only be merged by SDK…
Browse files Browse the repository at this point in the history
… owner) (#37023)

* code and test

* update-testcase

* update-testcase

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: azure-sdk <PythonSdkPipelines>
Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com>
Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
4 people authored Sep 24, 2024
1 parent ff85dab commit 11fa9c1
Show file tree
Hide file tree
Showing 111 changed files with 5,415 additions and 2,633 deletions.
32 changes: 32 additions & 0 deletions sdk/webpubsub/azure-mgmt-webpubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Release History

## 2.0.0 (2024-09-23)

### Features Added

- The 'WebPubSubManagementClient' client had operation group 'web_pub_sub_replicas' added in the current version
- The 'WebPubSubManagementClient' client had operation group 'web_pub_sub_replica_shared_private_link_resources' added in the current version
- The 'WebPubSubManagementClient' client had operation group 'web_pub_sub_replicas' added in the current version
- The 'WebPubSubManagementClient' client had operation group 'web_pub_sub_replica_shared_private_link_resources' added in the current version
- The 'WebPubSubOperations' method 'list_replica_skus' was added in the current version
- The model or publicly exposed class 'WebPubSubReplicaSharedPrivateLinkResourcesOperations' was added in the current version
- The model or publicly exposed class 'WebPubSubReplicasOperations' was added in the current version
- The 'WebPubSubOperations' method 'list_replica_skus' was added in the current version
- The model or publicly exposed class 'WebPubSubReplicaSharedPrivateLinkResourcesOperations' was added in the current version
- The model or publicly exposed class 'WebPubSubReplicasOperations' was added in the current version
- The model or publicly exposed class 'Resource' had property 'system_data' added in the current version
- The model or publicly exposed class 'WebPubSubHubProperties' had property 'web_socket_keep_alive_interval_in_seconds' added in the current version
- The model or publicly exposed class 'WebPubSubNetworkACLs' had property 'ip_rules' added in the current version
- The model or publicly exposed class 'WebPubSubResource' had property 'kind' added in the current version
- The model or publicly exposed class 'WebPubSubResource' had property 'region_endpoint_enabled' added in the current version
- The model or publicly exposed class 'WebPubSubResource' had property 'resource_stopped' added in the current version
- The model or publicly exposed class 'WebPubSubResource' had property 'socket_io' added in the current version
- The model or publicly exposed class 'IPRule' was added in the current version
- The model or publicly exposed class 'Replica' was added in the current version
- The model or publicly exposed class 'ReplicaList' was added in the current version
- The model or publicly exposed class 'ServiceKind' was added in the current version
- The model or publicly exposed class 'WebPubSubSocketIOSettings' was added in the current version

### Breaking Changes

- Parameter `location` of model `TrackedResource` is now required
- Parameter `location` of model `WebPubSubResource` is now required

## 2.0.0b2 (2023-10-23)

### Features Added
Expand Down
4 changes: 2 additions & 2 deletions sdk/webpubsub/azure-mgmt-webpubsub/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure WebPubSub Management Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.8+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.7+ is required to use this package.
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down
10 changes: 5 additions & 5 deletions sdk/webpubsub/azure-mgmt-webpubsub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c280892951a9e45c059132c05aace25a9c752d48",
"commit": "0629824cb7947f5b349c7602675432b2f29da1cb",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/webpubsub/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/webpubsub/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-2024-03-01 --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/webpubsub/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

Expand All @@ -19,7 +18,7 @@
from azure.core.credentials import TokenCredential


class WebPubSubManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
class WebPubSubManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
"""Configuration for WebPubSubManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand All @@ -29,14 +28,13 @@ class WebPubSubManagementClientConfiguration(Configuration): # pylint: disable=
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-08-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(WebPubSubManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-08-01-preview")
api_version: str = kwargs.pop("api_version", "2024-03-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand All @@ -48,6 +46,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-webpubsub/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(self, **kwargs: Any) -> None:
Expand All @@ -56,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None:
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.authentication_policy = kwargs.get("authentication_policy")
if self.credential and not self.authentication_policy:
self.authentication_policy = ARMChallengeAuthenticationPolicy(
Expand Down
Loading

0 comments on commit 11fa9c1

Please sign in to comment.