Skip to content

Commit 1d023ea

Browse files
azure-sdkWzb123456789msyyc
authored
[AutoRelease] t2-vmwarecloudsimple-2022-11-02-62501(Do not merge) (Azure#27248)
* code and test * Update CHANGELOG.md * Update _version.py * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: zhenbiao wei <424401670@qq.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent f4c0572 commit 1d023ea

File tree

85 files changed

+12736
-7309
lines changed

Some content is hidden

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

85 files changed

+12736
-7309
lines changed

sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# Release History
22

3+
## 1.0.0b2 (2022-11-07)
4+
5+
### Features Added
6+
7+
- Model CustomizationPolicy has a new parameter type_properties_type
8+
- Model DedicatedCloudNode has a new parameter id_properties_sku_description_id
9+
- Model DedicatedCloudNode has a new parameter name_properties_sku_description_name
10+
- Model PrivateCloud has a new parameter type_properties_type
11+
12+
### Breaking Changes
13+
14+
- Client name is changed from `VMwareCloudSimpleClient` to `VMwareCloudSimple`
15+
- Model CustomizationPolicy no longer has parameter customization_policy_properties_type
16+
- Model DedicatedCloudNode no longer has parameter id1
17+
- Model DedicatedCloudNode no longer has parameter name1
18+
- Model PrivateCloud no longer has parameter private_cloud_properties_type
19+
- Operation CustomizationPoliciesOperations.get has a new parameter kwargs
20+
- Operation CustomizationPoliciesOperations.list has a new parameter kwargs
21+
- Operation DedicatedCloudNodesOperations.delete has a new parameter kwargs
22+
- Operation DedicatedCloudNodesOperations.get has a new parameter kwargs
23+
- Operation DedicatedCloudNodesOperations.list_by_resource_group has a new parameter kwargs
24+
- Operation DedicatedCloudNodesOperations.list_by_subscription has a new parameter kwargs
25+
- Operation DedicatedCloudNodesOperations.update has a new parameter dedicated_cloud_node_request
26+
- Operation DedicatedCloudNodesOperations.update has a new parameter kwargs
27+
- Operation DedicatedCloudNodesOperations.update no longer has parameter tags
28+
- Operation DedicatedCloudServicesOperations.create_or_update has a new parameter kwargs
29+
- Operation DedicatedCloudServicesOperations.get has a new parameter kwargs
30+
- Operation DedicatedCloudServicesOperations.list_by_resource_group has a new parameter kwargs
31+
- Operation DedicatedCloudServicesOperations.list_by_subscription has a new parameter kwargs
32+
- Operation DedicatedCloudServicesOperations.update has a new parameter dedicated_cloud_service_request
33+
- Operation DedicatedCloudServicesOperations.update has a new parameter kwargs
34+
- Operation DedicatedCloudServicesOperations.update no longer has parameter tags
35+
- Operation Operations.get has a new parameter kwargs
36+
- Operation Operations.get has a new parameter referer
37+
- Operation Operations.list has a new parameter kwargs
38+
- Operation PrivateCloudsOperations.get has a new parameter kwargs
39+
- Operation PrivateCloudsOperations.list has a new parameter kwargs
40+
- Operation ResourcePoolsOperations.get has a new parameter kwargs
41+
- Operation ResourcePoolsOperations.list has a new parameter kwargs
42+
- Operation SkusAvailabilityOperations.list has a new parameter kwargs
43+
- Operation UsagesOperations.list has a new parameter kwargs
44+
- Operation VirtualMachineTemplatesOperations.get has a new parameter kwargs
45+
- Operation VirtualMachineTemplatesOperations.list has a new parameter kwargs
46+
- Operation VirtualMachinesOperations.get has a new parameter kwargs
47+
- Operation VirtualMachinesOperations.list_by_resource_group has a new parameter kwargs
48+
- Operation VirtualMachinesOperations.list_by_subscription has a new parameter kwargs
49+
- Operation VirtualNetworksOperations.get has a new parameter kwargs
50+
- Operation VirtualNetworksOperations.list has a new parameter kwargs
51+
- Renamed operation DedicatedCloudNodesOperations.create_or_update to DedicatedCloudNodesOperations.begin_create_or_update
52+
- Renamed operation DedicatedCloudServicesOperations.delete to DedicatedCloudServicesOperations.begin_delete
53+
- Renamed operation VirtualMachinesOperations.create_or_update to VirtualMachinesOperations.begin_create_or_update
54+
- Renamed operation VirtualMachinesOperations.delete to VirtualMachinesOperations.begin_delete
55+
- Renamed operation VirtualMachinesOperations.start to VirtualMachinesOperations.begin_start
56+
- Renamed operation VirtualMachinesOperations.stop to VirtualMachinesOperations.begin_stop
57+
- Renamed operation VirtualMachinesOperations.update to VirtualMachinesOperations.begin_update
58+
359
## 1.0.0b1 (2021-05-26)
460

561
This is beta preview version.
@@ -40,4 +96,4 @@ This version uses a next-generation code generator that introduces important bre
4096

4197
## 0.1.0 (2019-10-08)
4298

43-
- Initial Release
99+
- Initial Release

sdk/compute/azure-mgmt-vmwarecloudsimple/MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include _meta.json
2-
recursive-include tests *.py *.yaml
2+
recursive-include tests *.py *.json
3+
recursive-include samples *.py *.md
34
include *.md
45
include azure/__init__.py
56
include azure/mgmt/__init__.py

sdk/compute/azure-mgmt-vmwarecloudsimple/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 VMWare Cloud Simple 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 [VMWare Cloud Simple 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"commit": "0c21115ccacbbad11c4aa13a711e4990ebf07752",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.9.2",
35
"use": [
4-
"@autorest/python@5.8.0",
5-
"@autorest/modelerfour@4.19.1"
6+
"@autorest/python@6.2.1",
7+
"@autorest/modelerfour@4.24.3"
68
],
7-
"commit": "b983192c03c5db5072c6090976753dc7218a096a",
8-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/vmwarecloudsimple/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
9+
"autorest_command": "autorest specification/vmwarecloudsimple/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.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/vmwarecloudsimple/resource-manager/readme.md"
1111
}

sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/__init__.py

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

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

1514
try:
16-
from ._patch import patch_sdk # type: ignore
17-
patch_sdk()
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
1817
except ImportError:
19-
pass
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
20+
21+
__all__ = [
22+
"VMwareCloudSimple",
23+
]
24+
__all__.extend([p for p in _patch_all if p not in __all__])
25+
26+
_patch_sdk()

sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_configuration.py

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,70 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import TYPE_CHECKING
9+
import sys
10+
from typing import Any, TYPE_CHECKING
1011

1112
from azure.core.configuration import Configuration
1213
from azure.core.pipeline import policies
13-
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
14+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1415

1516
from ._version import VERSION
1617

18+
if sys.version_info >= (3, 8):
19+
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20+
else:
21+
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22+
1723
if TYPE_CHECKING:
1824
# pylint: disable=unused-import,ungrouped-imports
19-
from typing import Any
20-
2125
from azure.core.credentials import TokenCredential
2226

2327

24-
class VMwareCloudSimpleConfiguration(Configuration):
28+
class VMwareCloudSimpleConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2529
"""Configuration for VMwareCloudSimple.
2630
2731
Note that all parameters used to create this instance are saved as instance
2832
attributes.
2933
30-
:param credential: Credential needed for the client to connect to Azure.
34+
:param credential: Credential needed for the client to connect to Azure. Required.
3135
:type credential: ~azure.core.credentials.TokenCredential
32-
:param subscription_id: The subscription ID.
36+
:param subscription_id: The subscription ID. Required.
3337
:type subscription_id: str
34-
:param referer: referer url.
35-
:type referer: str
38+
:keyword api_version: Api Version. Default value is "2019-04-01". Note that overriding this
39+
default value may result in unsupported behavior.
40+
:paramtype api_version: str
3641
"""
3742

38-
def __init__(
39-
self,
40-
credential, # type: "TokenCredential"
41-
subscription_id, # type: str
42-
referer, # type: str
43-
**kwargs # type: Any
44-
):
45-
# type: (...) -> None
43+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
44+
super(VMwareCloudSimpleConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop("api_version", "2019-04-01") # type: Literal["2019-04-01"]
46+
4647
if credential is None:
4748
raise ValueError("Parameter 'credential' must not be None.")
4849
if subscription_id is None:
4950
raise ValueError("Parameter 'subscription_id' must not be None.")
50-
if referer is None:
51-
raise ValueError("Parameter 'referer' must not be None.")
52-
super(VMwareCloudSimpleConfiguration, self).__init__(**kwargs)
5351

5452
self.credential = credential
5553
self.subscription_id = subscription_id
56-
self.referer = referer
57-
self.api_version = "2019-04-01"
58-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
59-
kwargs.setdefault('sdk_moniker', 'mgmt-vmwarecloudsimple/{}'.format(VERSION))
54+
self.api_version = api_version
55+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
56+
kwargs.setdefault("sdk_moniker", "mgmt-vmwarecloudsimple/{}".format(VERSION))
6057
self._configure(**kwargs)
6158

6259
def _configure(
63-
self,
64-
**kwargs # type: Any
60+
self, **kwargs # type: Any
6561
):
6662
# type: (...) -> None
67-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
68-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
69-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
70-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
71-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
72-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
73-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
74-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
75-
self.authentication_policy = kwargs.get('authentication_policy')
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")
7672
if self.credential and not self.authentication_policy:
77-
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
73+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
74+
self.credential, *self.credential_scopes, **kwargs
75+
)

sdk/compute/azure-mgmt-vmwarecloudsimple/azure/mgmt/vmwarecloudsimple/_metadata.json

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)