Skip to content

Commit 9a8a7c5

Browse files
[AutoRelease] t2-servicefabricmanagedclusters-2022-09-09-06055(Do not merge) (Azure#26115)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen <[email protected]>
1 parent b3e9bb7 commit 9a8a7c5

Some content is hidden

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

52 files changed

+12557
-7994
lines changed

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 2.0.0b2 (2022-09-14)
4+
5+
### Features Added
6+
7+
- Model FrontendConfiguration has a new parameter application_gateway_backend_address_pool_id
8+
- Model NodeType has a new parameter eviction_policy
9+
- Model NodeType has a new parameter host_group_id
10+
- Model NodeType has a new parameter spot_restore_timeout
11+
- Model NodeType has a new parameter use_ephemeral_os_disk
12+
- Model NodeType has a new parameter vm_image_resource_id
13+
314
## 2.0.0b1 (2022-06-02)
415

516
**Features**

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include _meta.json
2-
recursive-include tests *.py *.yaml
2+
recursive-include tests *.py *.json
33
include *.md
44
include azure/__init__.py
55
include azure/mgmt/__init__.py

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

Lines changed: 1 addition & 3 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 Service Fabric Managed Clusters Management Client Library.
4-
This package has been tested with Python 3.6+.
4+
This package has been tested with Python 3.7+.
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,8 +12,6 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313

1414
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
1715

1816
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
1917
Code samples for this package can be found at [Service Fabric Managed Clusters Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.7.2",
2+
"autorest": "3.8.4",
33
"use": [
4-
"@autorest/python@5.13.0",
5-
"@autorest/modelerfour@4.19.3"
4+
"@autorest/python@6.1.5",
5+
"@autorest/modelerfour@4.23.5"
66
],
7-
"commit": "805e16a53f0a725471e0caa6007b48986c7722d9",
7+
"commit": "208c91dc71eec634400fb0c0a7e073e35afd2978",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.5 --use=@autorest/modelerfour@4.23.5 --version=3.8.4 --version-tolerant=False",
1010
"readme": "specification/servicefabricmanagedclusters/resource-manager/readme.md"
1111
}

sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/azure/mgmt/servicefabricmanagedclusters/__init__.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13-
__all__ = ['ServiceFabricManagedClustersManagementClient']
1413

15-
# `._patch.py` is used for handwritten extensions to the generated code
16-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17-
from ._patch import patch_sdk
18-
patch_sdk()
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
20+
21+
__all__ = ["ServiceFabricManagedClustersManagementClient"]
22+
__all__.extend([p for p in _patch_all if p not in __all__])
23+
24+
_patch_sdk()

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

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,26 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class ServiceFabricManagedClustersManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
22+
class ServiceFabricManagedClustersManagementClientConfiguration(
23+
Configuration
24+
): # pylint: disable=too-many-instance-attributes
2325
"""Configuration for ServiceFabricManagedClustersManagementClient.
2426
2527
Note that all parameters used to create this instance are saved as instance
2628
attributes.
2729
28-
:param credential: Credential needed for the client to connect to Azure.
30+
:param credential: Credential needed for the client to connect to Azure. Required.
2931
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The customer subscription identifier.
32+
:param subscription_id: The customer subscription identifier. Required.
3133
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2022-02-01-preview". Note that overriding
34+
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
3335
this default value may result in unsupported behavior.
3436
:paramtype api_version: str
3537
"""
3638

37-
def __init__(
38-
self,
39-
credential: "TokenCredential",
40-
subscription_id: str,
41-
**kwargs: Any
42-
) -> None:
39+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4340
super(ServiceFabricManagedClustersManagementClientConfiguration, self).__init__(**kwargs)
44-
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
41+
api_version = kwargs.pop("api_version", "2022-08-01-preview") # type: str
4542

4643
if credential is None:
4744
raise ValueError("Parameter 'credential' must not be None.")
@@ -51,23 +48,24 @@ def __init__(
5148
self.credential = credential
5249
self.subscription_id = subscription_id
5350
self.api_version = api_version
54-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
55-
kwargs.setdefault('sdk_moniker', 'mgmt-servicefabricmanagedclusters/{}'.format(VERSION))
51+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
52+
kwargs.setdefault("sdk_moniker", "mgmt-servicefabricmanagedclusters/{}".format(VERSION))
5653
self._configure(**kwargs)
5754

5855
def _configure(
59-
self,
60-
**kwargs # type: Any
56+
self, **kwargs # type: Any
6157
):
6258
# type: (...) -> None
63-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
64-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
65-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
66-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
67-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
68-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
69-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
70-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
71-
self.authentication_policy = kwargs.get('authentication_policy')
59+
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
60+
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
61+
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
62+
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
63+
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
64+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
65+
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
66+
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
67+
self.authentication_policy = kwargs.get("authentication_policy")
7268
if self.credential and not self.authentication_policy:
73-
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
69+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
70+
self.credential, *self.credential_scopes, **kwargs
71+
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
# This file is used for handwritten extensions to the generated code. Example:
2929
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3030
def patch_sdk():
31-
pass
31+
pass

0 commit comments

Comments
 (0)