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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions sdk/monitor/azure-mgmt-monitor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "7d313ecb6a58a51046a3916ee5ea6b6d29973522",
"commit": "3f0285327fed2f01daac115d9f560ea83c16534c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected].3",
"@autorest/[email protected].8",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/monitor/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].3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/monitor/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/monitor/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
if xml_desc.get("attr", False):
if xml_ns:
ET.register_namespace(xml_prefix, xml_ns)
xml_name = "{}{}".format(xml_ns, xml_name)
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
serialized.set(xml_name, new_attr) # type: ignore
continue
if xml_desc.get("text", False):
Expand Down Expand Up @@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
xml_ns = internal_type_xml_map.get("ns", None)
if xml_ns:
xml_name = "{}{}".format(xml_ns, xml_name)
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
return xml_name


Expand All @@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
# Integrate namespace if necessary
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
if xml_ns:
xml_name = "{}{}".format(xml_ns, xml_name)
xml_name = "{{{}}}{}".format(xml_ns, xml_name)

# If it's an attribute, that's simple
if xml_desc.get("attr", False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "6.0.0"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,19 @@ class MonitorManagementClient: # pylint: disable=client-accepts-api-version-key
"""Monitor Management Client.

:ivar activity_logs: ActivityLogsOperations operations
:vartype activity_logs: $(python-base-namespace).v2015_04_01.operations.ActivityLogsOperations
:vartype activity_logs: azure.mgmt.monitor.v2015_04_01.operations.ActivityLogsOperations
:ivar autoscale_settings: AutoscaleSettingsOperations operations
:vartype autoscale_settings:
$(python-base-namespace).v2015_04_01.operations.AutoscaleSettingsOperations
azure.mgmt.monitor.v2015_04_01.operations.AutoscaleSettingsOperations
:ivar event_categories: EventCategoriesOperations operations
:vartype event_categories:
$(python-base-namespace).v2015_04_01.operations.EventCategoriesOperations
:vartype event_categories: azure.mgmt.monitor.v2015_04_01.operations.EventCategoriesOperations
:ivar operations: Operations operations
:vartype operations: $(python-base-namespace).v2015_04_01.operations.Operations
:vartype operations: azure.mgmt.monitor.v2015_04_01.operations.Operations
:ivar tenant_activity_logs: TenantActivityLogsOperations operations
:vartype tenant_activity_logs:
$(python-base-namespace).v2015_04_01.operations.TenantActivityLogsOperations
azure.mgmt.monitor.v2015_04_01.operations.TenantActivityLogsOperations
:ivar alert_rules: AlertRulesOperations operations
:vartype alert_rules: $(python-base-namespace).v2015_04_01.operations.AlertRulesOperations
:vartype alert_rules: azure.mgmt.monitor.v2015_04_01.operations.AlertRulesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
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 = "6.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,20 @@ class MonitorManagementClient: # pylint: disable=client-accepts-api-version-key
"""Monitor Management Client.

:ivar activity_logs: ActivityLogsOperations operations
:vartype activity_logs:
$(python-base-namespace).v2015_04_01.aio.operations.ActivityLogsOperations
:vartype activity_logs: azure.mgmt.monitor.v2015_04_01.aio.operations.ActivityLogsOperations
:ivar autoscale_settings: AutoscaleSettingsOperations operations
:vartype autoscale_settings:
$(python-base-namespace).v2015_04_01.aio.operations.AutoscaleSettingsOperations
azure.mgmt.monitor.v2015_04_01.aio.operations.AutoscaleSettingsOperations
:ivar event_categories: EventCategoriesOperations operations
:vartype event_categories:
$(python-base-namespace).v2015_04_01.aio.operations.EventCategoriesOperations
azure.mgmt.monitor.v2015_04_01.aio.operations.EventCategoriesOperations
:ivar operations: Operations operations
:vartype operations: $(python-base-namespace).v2015_04_01.aio.operations.Operations
:vartype operations: azure.mgmt.monitor.v2015_04_01.aio.operations.Operations
:ivar tenant_activity_logs: TenantActivityLogsOperations operations
:vartype tenant_activity_logs:
$(python-base-namespace).v2015_04_01.aio.operations.TenantActivityLogsOperations
azure.mgmt.monitor.v2015_04_01.aio.operations.TenantActivityLogsOperations
:ivar alert_rules: AlertRulesOperations operations
:vartype alert_rules: $(python-base-namespace).v2015_04_01.aio.operations.AlertRulesOperations
:vartype alert_rules: azure.mgmt.monitor.v2015_04_01.aio.operations.AlertRulesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -29,10 +28,6 @@
from ..._vendor import _convert_request
from ...operations._activity_logs_operations import build_list_request

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand All @@ -43,7 +38,7 @@ class ActivityLogsOperations:
**DO NOT** instantiate this class directly.

Instead, you should access the following operations through
:class:`~$(python-base-namespace).v2015_04_01.aio.MonitorManagementClient`'s
:class:`~azure.mgmt.monitor.v2015_04_01.aio.MonitorManagementClient`'s
:attr:`activity_logs` attribute.
"""

Expand Down Expand Up @@ -87,13 +82,13 @@ def list(self, filter: str, select: Optional[str] = None, **kwargs: Any) -> Asyn
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either EventData or the result of cls(response)
:rtype:
~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2015_04_01.models.EventData]
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.monitor.v2015_04_01.models.EventData]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2015-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
cls: ClsType[_models.EventDataCollection] = kwargs.pop("cls", None)

error_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -37,10 +36,6 @@
build_update_request,
)

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand All @@ -51,7 +46,7 @@ class AlertRulesOperations:
**DO NOT** instantiate this class directly.

Instead, you should access the following operations through
:class:`~$(python-base-namespace).v2015_04_01.aio.MonitorManagementClient`'s
:class:`~azure.mgmt.monitor.v2015_04_01.aio.MonitorManagementClient`'s
:attr:`alert_rules` attribute.
"""

Expand Down Expand Up @@ -82,13 +77,13 @@ async def create_or_update(
:param rule_name: The name of the rule. Required.
:type rule_name: str
:param parameters: The parameters of the rule to create or update. Required.
:type parameters: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:type parameters: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
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: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand Down Expand Up @@ -116,7 +111,7 @@ async def create_or_update(
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand All @@ -133,13 +128,13 @@ async def create_or_update(
:type rule_name: str
:param parameters: The parameters of the rule to create or update. Is either a
AlertRuleResource type or a IO type. Required.
:type parameters: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource or IO
:type parameters: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
Expand All @@ -153,7 +148,7 @@ async def create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
cls: ClsType[_models.AlertRuleResource] = kwargs.pop("cls", None)

Expand Down Expand Up @@ -234,7 +229,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
cls: ClsType[None] = kwargs.pop("cls", None)

request = build_delete_request(
Expand Down Expand Up @@ -279,7 +274,7 @@ async def get(self, resource_group_name: str, rule_name: str, **kwargs: Any) ->
:type rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
Expand All @@ -293,7 +288,7 @@ async def get(self, resource_group_name: str, rule_name: str, **kwargs: Any) ->
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
cls: ClsType[_models.AlertRuleResource] = kwargs.pop("cls", None)

request = build_get_request(
Expand Down Expand Up @@ -350,13 +345,13 @@ async def update(
:param rule_name: The name of the rule. Required.
:type rule_name: str
:param alert_rules_resource: Parameters supplied to the operation. Required.
:type alert_rules_resource: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResourcePatch
:type alert_rules_resource: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResourcePatch
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
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: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand Down Expand Up @@ -385,7 +380,7 @@ async def update(
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""

Expand All @@ -407,14 +402,13 @@ async def update(
:type rule_name: str
:param alert_rules_resource: Parameters supplied to the operation. Is either a
AlertRuleResourcePatch type or a IO type. Required.
:type alert_rules_resource: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResourcePatch
or IO
:type alert_rules_resource: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResourcePatch or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AlertRuleResource or the result of cls(response)
:rtype: ~$(python-base-namespace).v2015_04_01.models.AlertRuleResource
:rtype: ~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
Expand All @@ -428,7 +422,7 @@ async def update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
cls: ClsType[_models.AlertRuleResource] = kwargs.pop("cls", None)

Expand Down Expand Up @@ -494,13 +488,13 @@ def list_by_resource_group(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either AlertRuleResource or the result of cls(response)
:rtype:
~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2015_04_01.models.AlertRuleResource]
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
cls: ClsType[_models.AlertRuleResourceCollection] = kwargs.pop("cls", None)

error_map = {
Expand Down Expand Up @@ -568,13 +562,13 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.AlertRul
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either AlertRuleResource or the result of cls(response)
:rtype:
~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2015_04_01.models.AlertRuleResource]
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.monitor.v2015_04_01.models.AlertRuleResource]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: Literal["2014-04-01"] = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2014-04-01"))
cls: ClsType[_models.AlertRuleResourceCollection] = kwargs.pop("cls", None)

error_map = {
Expand Down
Loading