Skip to content

Commit 65ea174

Browse files
author
SDKAuto
committed
CodeGen from PR 29938 in Azure/azure-rest-api-specs
Merge cff8233bd23398a224c5d7bb9a0e5c60b72e7c66 into 3c4ddfa53535e9e2b775d885d91aa1ab57a7a7fd
1 parent 5eba2a8 commit 65ea174

File tree

168 files changed

+4404
-9075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+4404
-9075
lines changed

sdk/streamanalytics/azure-mgmt-streamanalytics/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

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

1313
### Prerequisites
1414

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

1818
### Install the package
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "4792bce7667477529991457890b4a6b670e70508",
2+
"commit": "31fa09b45b4386dadd55b67eec58894d0f4a19ff",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.7.1",
7-
"@autorest/modelerfour@4.26.2"
6+
"@autorest/python@6.19.0",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/streamanalytics/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 --tag=package-2021-10-preview --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/streamanalytics/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/streamanalytics/resource-manager/readme.md"
1111
}

sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/_configuration.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from typing import Any, TYPE_CHECKING
1010

11-
from azure.core.configuration import Configuration
1211
from azure.core.pipeline import policies
1312
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1413

@@ -19,7 +18,7 @@
1918
from azure.core.credentials import TokenCredential
2019

2120

22-
class StreamAnalyticsManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
21+
class StreamAnalyticsManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
2322
"""Configuration for StreamAnalyticsManagementClient.
2423
2524
Note that all parameters used to create this instance are saved as instance
@@ -29,19 +28,25 @@ class StreamAnalyticsManagementClientConfiguration(Configuration): # pylint: di
2928
:type credential: ~azure.core.credentials.TokenCredential
3029
:param subscription_id: The ID of the target subscription. Required.
3130
:type subscription_id: str
31+
:keyword api_version: Api Version. Default value is "2020-03-01". Note that overriding this
32+
default value may result in unsupported behavior.
33+
:paramtype api_version: str
3234
"""
3335

3436
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
35-
super(StreamAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
37+
api_version: str = kwargs.pop("api_version", "2020-03-01")
38+
3639
if credential is None:
3740
raise ValueError("Parameter 'credential' must not be None.")
3841
if subscription_id is None:
3942
raise ValueError("Parameter 'subscription_id' must not be None.")
4043

4144
self.credential = credential
4245
self.subscription_id = subscription_id
46+
self.api_version = api_version
4347
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4448
kwargs.setdefault("sdk_moniker", "mgmt-streamanalytics/{}".format(VERSION))
49+
self.polling_interval = kwargs.get("polling_interval", 30)
4550
self._configure(**kwargs)
4651

4752
def _configure(self, **kwargs: Any) -> None:
@@ -50,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None:
5055
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
5156
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
5257
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
53-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5458
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
5559
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
60+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5661
self.authentication_policy = kwargs.get("authentication_policy")
5762
if self.credential and not self.authentication_policy:
5863
self.authentication_policy = ARMChallengeAuthenticationPolicy(

sdk/streamanalytics/azure-mgmt-streamanalytics/azure/mgmt/streamanalytics/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

0 commit comments

Comments
 (0)