Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 210 additions & 0 deletions sdk/hybridconnectivity/azure-mgmt-hybridconnectivity/CHANGELOG.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commit": "3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184",
"commit": "c2e4113b9a57a471dff9fcb8bed9dad94d15351b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/hybridconnectivity/HybridConnectivity.Management",
"@azure-tools/typespec-python": "0.41.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"azure.mgmt.hybridconnectivity.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.hybridconnectivity.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest": "Microsoft.HybridConnectivity.GenerateAwsTemplateRequest",
"azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse": "Microsoft.HybridConnectivity.GenerateAwsTemplateResponse",
"azure.mgmt.hybridconnectivity.models.IngressGatewayResource": "Microsoft.HybridConnectivity.IngressGatewayResource",
"azure.mgmt.hybridconnectivity.models.IngressProfileProperties": "Microsoft.HybridConnectivity.IngressProfileProperties",
"azure.mgmt.hybridconnectivity.models.InventoryProperties": "Microsoft.HybridConnectivity.InventoryProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0b1"
VERSION = "2.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ async def post(
*,
content_type: str = "application/json",
**kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -1939,15 +1939,16 @@ async def post(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@overload
async def post(
self, generate_aws_template_request: JSON, *, content_type: str = "application/json", **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -1956,15 +1957,16 @@ async def post(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@overload
async def post(
self, generate_aws_template_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -1973,24 +1975,26 @@ async def post(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@distributed_trace_async
async def post(
self, generate_aws_template_request: Union[_models.GenerateAwsTemplateRequest, JSON, IO[bytes]], **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Generate AWS CFT Template. Is one of the following types: GenerateAwsTemplateRequest, JSON,
IO[bytes] Required.
:type generate_aws_template_request:
~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest or JSON or IO[bytes]
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand All @@ -2005,7 +2009,7 @@ async def post(
_params = kwargs.pop("params", {}) or {}

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

content_type = content_type or "application/json"
_content = None
Expand Down Expand Up @@ -2047,7 +2051,7 @@ async def post(
if _stream:
deserialized = response.iter_bytes()
else:
deserialized = _deserialize(Any, response.json())
deserialized = _deserialize(_models.GenerateAwsTemplateResponse, response.json())

if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ErrorResponse,
ExtensionResource,
GenerateAwsTemplateRequest,
GenerateAwsTemplateResponse,
IngressGatewayResource,
IngressProfileProperties,
InventoryProperties,
Expand Down Expand Up @@ -89,6 +90,7 @@
"ErrorResponse",
"ExtensionResource",
"GenerateAwsTemplateRequest",
"GenerateAwsTemplateResponse",
"IngressGatewayResource",
"IngressProfileProperties",
"InventoryProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class GenerateAwsTemplateResponse(_model_base.Model):
"""The HybridConnectivity post operation response."""


class IngressGatewayResource(_model_base.Model):
"""The ingress gateway access credentials.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2827,7 +2827,7 @@ def post(
*,
content_type: str = "application/json",
**kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -2837,15 +2837,16 @@ def post(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@overload
def post(
self, generate_aws_template_request: JSON, *, content_type: str = "application/json", **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -2854,15 +2855,16 @@ def post(
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@overload
def post(
self, generate_aws_template_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Expand All @@ -2871,24 +2873,26 @@ def post(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""

@distributed_trace
def post(
self, generate_aws_template_request: Union[_models.GenerateAwsTemplateRequest, JSON, IO[bytes]], **kwargs: Any
) -> Any:
) -> _models.GenerateAwsTemplateResponse:
"""Retrieve AWS Cloud Formation template.

:param generate_aws_template_request: ConnectorId and SolutionTypes and their properties to
Generate AWS CFT Template. Is one of the following types: GenerateAwsTemplateRequest, JSON,
IO[bytes] Required.
:type generate_aws_template_request:
~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateRequest or JSON or IO[bytes]
:return: any
:rtype: any
:return: GenerateAwsTemplateResponse. The GenerateAwsTemplateResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.hybridconnectivity.models.GenerateAwsTemplateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
Expand All @@ -2903,7 +2907,7 @@ def post(
_params = kwargs.pop("params", {}) or {}

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

content_type = content_type or "application/json"
_content = None
Expand Down Expand Up @@ -2945,7 +2949,7 @@ def post(
if _stream:
deserialized = response.iter_bytes()
else:
deserialized = _deserialize(Any, response.json())
deserialized = _deserialize(_models.GenerateAwsTemplateResponse, response.json())

if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
url="https://github.com/Azure/azure-sdk-for-python",
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/hybridconnectivity/HybridConnectivity.Management
commit: 3db6867b8e524ea6d1bc7a3bbb989fe50dd2f184
commit: c2e4113b9a57a471dff9fcb8bed9dad94d15351b
repo: Azure/azure-rest-api-specs
additionalDirectories: