Skip to content
Merged
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
6 changes: 5 additions & 1 deletion sdk/relay/azure-mgmt-relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release History

## 1.0.0b1 (2019-05-16)
## 1.0.0 (2020-12-22)

- GA release

## 1.0.0b1 (2020-10-28)

This is beta preview version.

Expand Down
2 changes: 1 addition & 1 deletion sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py
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 = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat

from ... import models
from ... import models as _models

T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
Expand All @@ -33,7 +33,7 @@ class HybridConnectionsOperations:
:param deserializer: An object model deserializer.
"""

models = models
models = _models

def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
Expand All @@ -46,7 +46,7 @@ def list_by_namespace(
resource_group_name: str,
namespace_name: str,
**kwargs
) -> AsyncIterable["models.HybridConnectionListResult"]:
) -> AsyncIterable["_models.HybridConnectionListResult"]:
"""Lists the hybrid connection within the namespace.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -58,7 +58,7 @@ def list_by_namespace(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.HybridConnectionListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnectionListResult"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnectionListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -105,7 +105,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

Expand All @@ -121,9 +121,9 @@ async def create_or_update(
resource_group_name: str,
namespace_name: str,
hybrid_connection_name: str,
parameters: "models.HybridConnection",
parameters: "_models.HybridConnection",
**kwargs
) -> "models.HybridConnection":
) -> "_models.HybridConnection":
"""Creates or updates a service hybrid connection. This operation is idempotent.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -139,7 +139,7 @@ async def create_or_update(
:rtype: ~azure.mgmt.relay.models.HybridConnection
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -176,7 +176,7 @@ async def create_or_update(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('HybridConnection', pipeline_response)
Expand Down Expand Up @@ -239,7 +239,7 @@ async def delete(

if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if cls:
Expand All @@ -253,7 +253,7 @@ async def get(
namespace_name: str,
hybrid_connection_name: str,
**kwargs
) -> "models.HybridConnection":
) -> "_models.HybridConnection":
"""Returns the description for the specified hybrid connection.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -267,7 +267,7 @@ async def get(
:rtype: ~azure.mgmt.relay.models.HybridConnection
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -299,7 +299,7 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('HybridConnection', pipeline_response)
Expand All @@ -316,7 +316,7 @@ def list_authorization_rules(
namespace_name: str,
hybrid_connection_name: str,
**kwargs
) -> AsyncIterable["models.AuthorizationRuleListResult"]:
) -> AsyncIterable["_models.AuthorizationRuleListResult"]:
"""Authorization rules for a hybrid connection.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -330,7 +330,7 @@ def list_authorization_rules(
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -378,7 +378,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response

if response.status_code not in [200]:
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

Expand All @@ -395,9 +395,9 @@ async def create_or_update_authorization_rule(
namespace_name: str,
hybrid_connection_name: str,
authorization_rule_name: str,
parameters: "models.AuthorizationRule",
parameters: "_models.AuthorizationRule",
**kwargs
) -> "models.AuthorizationRule":
) -> "_models.AuthorizationRule":
"""Creates or updates an authorization rule for a hybrid connection.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -415,7 +415,7 @@ async def create_or_update_authorization_rule(
:rtype: ~azure.mgmt.relay.models.AuthorizationRule
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -453,7 +453,7 @@ async def create_or_update_authorization_rule(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('AuthorizationRule', pipeline_response)
Expand Down Expand Up @@ -520,7 +520,7 @@ async def delete_authorization_rule(

if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if cls:
Expand All @@ -535,7 +535,7 @@ async def get_authorization_rule(
hybrid_connection_name: str,
authorization_rule_name: str,
**kwargs
) -> "models.AuthorizationRule":
) -> "_models.AuthorizationRule":
"""Hybrid connection authorization rule for a hybrid connection by name.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -551,7 +551,7 @@ async def get_authorization_rule(
:rtype: ~azure.mgmt.relay.models.AuthorizationRule
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -584,7 +584,7 @@ async def get_authorization_rule(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('AuthorizationRule', pipeline_response)
Expand All @@ -602,7 +602,7 @@ async def list_keys(
hybrid_connection_name: str,
authorization_rule_name: str,
**kwargs
) -> "models.AccessKeys":
) -> "_models.AccessKeys":
"""Primary and secondary connection strings to the hybrid connection.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -618,7 +618,7 @@ async def list_keys(
:rtype: ~azure.mgmt.relay.models.AccessKeys
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -651,7 +651,7 @@ async def list_keys(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('AccessKeys', pipeline_response)
Expand All @@ -668,9 +668,9 @@ async def regenerate_keys(
namespace_name: str,
hybrid_connection_name: str,
authorization_rule_name: str,
parameters: "models.RegenerateAccessKeyParameters",
parameters: "_models.RegenerateAccessKeyParameters",
**kwargs
) -> "models.AccessKeys":
) -> "_models.AccessKeys":
"""Regenerates the primary or secondary connection strings to the hybrid connection.

:param resource_group_name: Name of the Resource group within the Azure subscription.
Expand All @@ -688,7 +688,7 @@ async def regenerate_keys(
:rtype: ~azure.mgmt.relay.models.AccessKeys
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -726,7 +726,7 @@ async def regenerate_keys(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
error = self._deserialize(_models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('AccessKeys', pipeline_response)
Expand Down
Loading