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
6 changes: 3 additions & 3 deletions sdk/eventhub/azure-mgmt-eventhub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "8a28143c7271d4496296ed47f70c3cb5a9981e57",
"commit": "b92cf994a290fddab526a73e0e3a2acb48b7d44d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected].7",
"@autorest/[email protected].8",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/eventhub/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/[email protected].7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/eventhub/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/eventhub/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "11.0.0"
VERSION = "0.1.0"
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -511,7 +511,7 @@ def build_get_messaging_plan_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_network_rule_set_request(
def build_create_or_update_network_rule_set_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
_SERIALIZER.client_side_validation = False


def build_list_available_cluster_region_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
def build_list_available_cluster_region_request( # pylint: disable=name-too-long
subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def build_list_ip_filter_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_ip_filter_rule_request(
def build_create_or_update_ip_filter_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, ip_filter_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -401,7 +401,7 @@ def build_list_virtual_network_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_virtual_network_rule_request(
def build_create_or_update_virtual_network_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, virtual_network_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -440,7 +440,7 @@ def build_create_or_update_virtual_network_rule_request(
return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)


def build_delete_virtual_network_rule_request(
def build_delete_virtual_network_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, virtual_network_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -512,7 +512,7 @@ def build_get_virtual_network_rule_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_network_rule_set_request(
def build_create_or_update_network_rule_set_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -614,7 +614,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def build_update_request(
return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_network_rule_set_request(
def build_create_or_update_network_rule_set_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -332,7 +332,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
_SERIALIZER.client_side_validation = False


def build_list_available_cluster_region_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
def build_list_available_cluster_region_request( # pylint: disable=name-too-long
subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def build_update_request(
return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_network_rule_set_request(
def build_create_or_update_network_rule_set_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -332,7 +332,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
_SERIALIZER.client_side_validation = False


def build_list_available_cluster_region_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
def build_list_available_cluster_region_request( # pylint: disable=name-too-long
subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str,
namespace_name: str,
event_hub_name: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def build_update_request(
return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_network_rule_set_request(
def build_create_or_update_network_rule_set_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -365,7 +365,7 @@ def build_list_authorization_rules_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_authorization_rule_request(
def build_create_or_update_authorization_rule_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, authorization_rule_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
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 = "11.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
) -> Optional[_models.ArmDisasterRecovery]:
) -> _models.ArmDisasterRecovery:
"""Creates or updates a new Alias(Disaster Recovery configuration).

:param resource_group_name: Name of the resource group within the azure subscription. Required.
Expand All @@ -559,8 +559,8 @@ async def create_or_update(
Default value is "application/json".
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ArmDisasterRecovery or None or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery or None
:return: ArmDisasterRecovery or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand All @@ -574,7 +574,7 @@ async def create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
) -> Optional[_models.ArmDisasterRecovery]:
) -> _models.ArmDisasterRecovery:
"""Creates or updates a new Alias(Disaster Recovery configuration).

:param resource_group_name: Name of the resource group within the azure subscription. Required.
Expand All @@ -590,8 +590,8 @@ async def create_or_update(
Default value is "application/json".
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ArmDisasterRecovery or None or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery or None
:return: ArmDisasterRecovery or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand All @@ -603,7 +603,7 @@ async def create_or_update(
alias: str,
parameters: Union[_models.ArmDisasterRecovery, IO],
**kwargs: Any
) -> Optional[_models.ArmDisasterRecovery]:
) -> _models.ArmDisasterRecovery:
"""Creates or updates a new Alias(Disaster Recovery configuration).

:param resource_group_name: Name of the resource group within the azure subscription. Required.
Expand All @@ -619,8 +619,8 @@ async def create_or_update(
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ArmDisasterRecovery or None or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery or None
:return: ArmDisasterRecovery or the result of cls(response)
:rtype: ~azure.mgmt.eventhub.v2022_01_01_preview.models.ArmDisasterRecovery
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
Expand All @@ -636,7 +636,7 @@ async def create_or_update(

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
cls: ClsType[Optional[_models.ArmDisasterRecovery]] = kwargs.pop("cls", None)
cls: ClsType[_models.ArmDisasterRecovery] = kwargs.pop("cls", None)

content_type = content_type or "application/json"
_json = None
Expand Down Expand Up @@ -674,14 +674,16 @@ async def create_or_update(
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
deserialized = self._deserialize("ArmDisasterRecovery", pipeline_response)

if response.status_code == 201:
deserialized = self._deserialize("ArmDisasterRecovery", pipeline_response)

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

return deserialized
return deserialized # type: ignore

create_or_update.metadata = {
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def build_list_by_namespace_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


def build_create_or_update_application_group_request(
def build_create_or_update_application_group_request( # pylint: disable=name-too-long
resource_group_name: str, namespace_name: str, application_group_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
_SERIALIZER.client_side_validation = False


def build_list_available_cluster_region_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
def build_list_available_cluster_region_request( # pylint: disable=name-too-long
subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

Expand Down
Loading