Skip to content

Commit 969a447

Browse files
author
SDKAuto
committed
CodeGen from PR 33687 in Azure/azure-rest-api-specs
Merge fcd7d38205a1d62928fdba2af354bd9a0c07b4ec into 166c3a2ace3d2511cbdeeada95826cd67a45895e
1 parent 5d250cd commit 969a447

File tree

10 files changed

+257
-32
lines changed

10 files changed

+257
-32
lines changed

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

Lines changed: 210 additions & 0 deletions
Large diffs are not rendered by default.

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184",
2+
"commit": "c2e4113b9a57a471dff9fcb8bed9dad94d15351b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/hybridconnectivity/HybridConnectivity.Management",
55
"@azure-tools/typespec-python": "0.41.0"

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"azure.mgmt.hybridconnectivity.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
1414
"azure.mgmt.hybridconnectivity.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
1515
"azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest": "Microsoft.HybridConnectivity.GenerateAwsTemplateRequest",
16+
"azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse": "Microsoft.HybridConnectivity.GenerateAwsTemplateResponse",
1617
"azure.mgmt.hybridconnectivity.models.IngressGatewayResource": "Microsoft.HybridConnectivity.IngressGatewayResource",
1718
"azure.mgmt.hybridconnectivity.models.IngressProfileProperties": "Microsoft.HybridConnectivity.IngressProfileProperties",
1819
"azure.mgmt.hybridconnectivity.models.InventoryProperties": "Microsoft.HybridConnectivity.InventoryProperties",

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/azure/mgmt/hybridconnectivity/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.0.0b1"
9+
VERSION = "2.0.0"

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/azure/mgmt/hybridconnectivity/aio/operations/_operations.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ async def post(
19291929
*,
19301930
content_type: str = "application/json",
19311931
**kwargs: Any
1932-
) -> Any:
1932+
) -> _models.GenerateAwsTemplateResponse:
19331933
"""Retrieve AWS Cloud Formation template.
19341934
19351935
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -1939,15 +1939,16 @@ async def post(
19391939
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
19401940
Default value is "application/json".
19411941
:paramtype content_type: str
1942-
:return: any
1943-
:rtype: any
1942+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
1943+
MutableMapping
1944+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
19441945
:raises ~azure.core.exceptions.HttpResponseError:
19451946
"""
19461947

19471948
@overload
19481949
async def post(
19491950
self, generate_aws_template_request: JSON, *, content_type: str = "application/json", **kwargs: Any
1950-
) -> Any:
1951+
) -> _models.GenerateAwsTemplateResponse:
19511952
"""Retrieve AWS Cloud Formation template.
19521953
19531954
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -1956,15 +1957,16 @@ async def post(
19561957
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
19571958
Default value is "application/json".
19581959
:paramtype content_type: str
1959-
:return: any
1960-
:rtype: any
1960+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
1961+
MutableMapping
1962+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
19611963
:raises ~azure.core.exceptions.HttpResponseError:
19621964
"""
19631965

19641966
@overload
19651967
async def post(
19661968
self, generate_aws_template_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
1967-
) -> Any:
1969+
) -> _models.GenerateAwsTemplateResponse:
19681970
"""Retrieve AWS Cloud Formation template.
19691971
19701972
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -1973,24 +1975,26 @@ async def post(
19731975
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
19741976
Default value is "application/json".
19751977
:paramtype content_type: str
1976-
:return: any
1977-
:rtype: any
1978+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
1979+
MutableMapping
1980+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
19781981
:raises ~azure.core.exceptions.HttpResponseError:
19791982
"""
19801983

19811984
@distributed_trace_async
19821985
async def post(
19831986
self, generate_aws_template_request: Union[_models.GenerateAwsTemplateRequest, JSON, IO[bytes]], **kwargs: Any
1984-
) -> Any:
1987+
) -> _models.GenerateAwsTemplateResponse:
19851988
"""Retrieve AWS Cloud Formation template.
19861989
19871990
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
19881991
Generate AWS CFT Template. Is one of the following types: GenerateAwsTemplateRequest, JSON,
19891992
IO[bytes] Required.
19901993
:type generate_aws_template_request:
19911994
~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest or JSON or IO[bytes]
1992-
:return: any
1993-
:rtype: any
1995+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
1996+
MutableMapping
1997+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
19941998
:raises ~azure.core.exceptions.HttpResponseError:
19951999
"""
19962000
error_map: MutableMapping = {
@@ -2005,7 +2009,7 @@ async def post(
20052009
_params = kwargs.pop("params", {}) or {}
20062010

20072011
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2008-
cls: ClsType[Any] = kwargs.pop("cls", None)
2012+
cls: ClsType[_models.GenerateAwsTemplateResponse] = kwargs.pop("cls", None)
20092013

20102014
content_type = content_type or "application/json"
20112015
_content = None
@@ -2047,7 +2051,7 @@ async def post(
20472051
if _stream:
20482052
deserialized = response.iter_bytes()
20492053
else:
2050-
deserialized = _deserialize(Any, response.json())
2054+
deserialized = _deserialize(_models.GenerateAwsTemplateResponse, response.json())
20512055

20522056
if cls:
20532057
return cls(pipeline_response, deserialized, {}) # type: ignore

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/azure/mgmt/hybridconnectivity/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
ErrorResponse,
2626
ExtensionResource,
2727
GenerateAwsTemplateRequest,
28+
GenerateAwsTemplateResponse,
2829
IngressGatewayResource,
2930
IngressProfileProperties,
3031
InventoryProperties,
@@ -89,6 +90,7 @@
8990
"ErrorResponse",
9091
"ExtensionResource",
9192
"GenerateAwsTemplateRequest",
93+
"GenerateAwsTemplateResponse",
9294
"IngressGatewayResource",
9395
"IngressProfileProperties",
9496
"InventoryProperties",

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/azure/mgmt/hybridconnectivity/models/_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
416416
super().__init__(*args, **kwargs)
417417

418418

419+
class GenerateAwsTemplateResponse(_model_base.Model):
420+
"""The HybridConnectivity post operation response."""
421+
422+
419423
class IngressGatewayResource(_model_base.Model):
420424
"""The ingress gateway access credentials.
421425

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/azure/mgmt/hybridconnectivity/operations/_operations.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ def post(
28272827
*,
28282828
content_type: str = "application/json",
28292829
**kwargs: Any
2830-
) -> Any:
2830+
) -> _models.GenerateAwsTemplateResponse:
28312831
"""Retrieve AWS Cloud Formation template.
28322832
28332833
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -2837,15 +2837,16 @@ def post(
28372837
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
28382838
Default value is "application/json".
28392839
:paramtype content_type: str
2840-
:return: any
2841-
:rtype: any
2840+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
2841+
MutableMapping
2842+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
28422843
:raises ~azure.core.exceptions.HttpResponseError:
28432844
"""
28442845

28452846
@overload
28462847
def post(
28472848
self, generate_aws_template_request: JSON, *, content_type: str = "application/json", **kwargs: Any
2848-
) -> Any:
2849+
) -> _models.GenerateAwsTemplateResponse:
28492850
"""Retrieve AWS Cloud Formation template.
28502851
28512852
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -2854,15 +2855,16 @@ def post(
28542855
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
28552856
Default value is "application/json".
28562857
:paramtype content_type: str
2857-
:return: any
2858-
:rtype: any
2858+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
2859+
MutableMapping
2860+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
28592861
:raises ~azure.core.exceptions.HttpResponseError:
28602862
"""
28612863

28622864
@overload
28632865
def post(
28642866
self, generate_aws_template_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
2865-
) -> Any:
2867+
) -> _models.GenerateAwsTemplateResponse:
28662868
"""Retrieve AWS Cloud Formation template.
28672869
28682870
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
@@ -2871,24 +2873,26 @@ def post(
28712873
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
28722874
Default value is "application/json".
28732875
:paramtype content_type: str
2874-
:return: any
2875-
:rtype: any
2876+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
2877+
MutableMapping
2878+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
28762879
:raises ~azure.core.exceptions.HttpResponseError:
28772880
"""
28782881

28792882
@distributed_trace
28802883
def post(
28812884
self, generate_aws_template_request: Union[_models.GenerateAwsTemplateRequest, JSON, IO[bytes]], **kwargs: Any
2882-
) -> Any:
2885+
) -> _models.GenerateAwsTemplateResponse:
28832886
"""Retrieve AWS Cloud Formation template.
28842887
28852888
:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
28862889
Generate AWS CFT Template. Is one of the following types: GenerateAwsTemplateRequest, JSON,
28872890
IO[bytes] Required.
28882891
:type generate_aws_template_request:
28892892
~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest or JSON or IO[bytes]
2890-
:return: any
2891-
:rtype: any
2893+
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
2894+
MutableMapping
2895+
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
28922896
:raises ~azure.core.exceptions.HttpResponseError:
28932897
"""
28942898
error_map: MutableMapping = {
@@ -2903,7 +2907,7 @@ def post(
29032907
_params = kwargs.pop("params", {}) or {}
29042908

29052909
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2906-
cls: ClsType[Any] = kwargs.pop("cls", None)
2910+
cls: ClsType[_models.GenerateAwsTemplateResponse] = kwargs.pop("cls", None)
29072911

29082912
content_type = content_type or "application/json"
29092913
_content = None
@@ -2945,7 +2949,7 @@ def post(
29452949
if _stream:
29462950
deserialized = response.iter_bytes()
29472951
else:
2948-
deserialized = _deserialize(Any, response.json())
2952+
deserialized = _deserialize(_models.GenerateAwsTemplateResponse, response.json())
29492953

29502954
if cls:
29512955
return cls(pipeline_response, deserialized, {}) # type: ignore

sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
url="https://github.com/Azure/azure-sdk-for-python",
5050
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
5151
classifiers=[
52-
"Development Status :: 4 - Beta",
52+
"Development Status :: 5 - Production/Stable",
5353
"Programming Language :: Python",
5454
"Programming Language :: Python :: 3 :: Only",
5555
"Programming Language :: Python :: 3",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/hybridconnectivity/HybridConnectivity.Management
2-
commit: 3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184
2+
commit: c2e4113b9a57a471dff9fcb8bed9dad94d15351b
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)