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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ActionGroupResource(Resource):
used in SMS messages.
:type group_short_name: str
:param enabled: Indicates whether this action group is enabled. If an
action group is not enabled, then none of its receviers will receive
action group is not enabled, then none of its receivers will receive
communications. Default value: True .
:type enabled: bool
:param email_receivers: The list of email receivers that are part of this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ActivityLogAlertResource(Resource):
an activity log alert is not enabled, then none of its actions will be
activated. Default value: True .
:type enabled: bool
:param condition: The conditon that will cause this alert to activate.
:param condition: The condition that will cause this alert to activate.
:type condition: :class:`ActivityLogAlertAllOfCondition
<azure.mgmt.monitor.models.ActivityLogAlertAllOfCondition>`
:param actions: The actions that will activate when the condition is met.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ServiceDiagnosticSettingsResource(Resource):
ID}/authorizationrules/{key name}'.
:type service_bus_rule_id: str
:param event_hub_authorization_rule_id: The resource Id for the event hub
authorization rule.
namespace authorization rule.
:type event_hub_authorization_rule_id: str
:param metrics: the list of metric settings.
:type metrics: list of :class:`MetricSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ServiceDiagnosticSettingsResourcePatch(Model):
ID}/authorizationrules/{key name}'.
:type service_bus_rule_id: str
:param event_hub_authorization_rule_id: The resource Id for the event hub
authorization rule.
namespace authorization rule.
:type event_hub_authorization_rule_id: str
:param metrics: the list of metric settings.
:type metrics: list of :class:`MetricSettings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import uuid
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError

from .. import models

Expand Down Expand Up @@ -58,7 +57,8 @@ def create_or_update(
:rtype: :class:`ActionGroupResource
<azure.mgmt.monitor.models.ActionGroupResource>` or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
Expand Down Expand Up @@ -92,9 +92,7 @@ def create_or_update(
request, header_parameters, body_content, **operation_config)

if response.status_code not in [200, 201]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None

Expand Down Expand Up @@ -129,7 +127,8 @@ def get(
:rtype: :class:`ActionGroupResource
<azure.mgmt.monitor.models.ActionGroupResource>` or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
Expand Down Expand Up @@ -159,9 +158,7 @@ def get(
response = self._client.send(request, header_parameters, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
raise models.ErrorResponseException(self._deserialize, response)

deserialized = None

Expand Down Expand Up @@ -192,7 +189,8 @@ def delete(
raw=true
:rtype: None or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}'
Expand Down Expand Up @@ -222,9 +220,7 @@ def delete(
response = self._client.send(request, header_parameters, **operation_config)

if response.status_code not in [200, 204]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
raise models.ErrorResponseException(self._deserialize, response)

if raw:
client_raw_response = ClientRawResponse(None, response)
Expand All @@ -243,7 +239,8 @@ def list_by_subscription_id(
<azure.mgmt.monitor.models.ActionGroupResource>`
:rtype: :class:`ActionGroupResourcePaged
<azure.mgmt.monitor.models.ActionGroupResourcePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -279,9 +276,7 @@ def internal_paging(next_link=None, raw=False):
request, header_parameters, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
raise models.ErrorResponseException(self._deserialize, response)

return response

Expand Down Expand Up @@ -310,7 +305,8 @@ def list_by_resource_group(
<azure.mgmt.monitor.models.ActionGroupResource>`
:rtype: :class:`ActionGroupResourcePaged
<azure.mgmt.monitor.models.ActionGroupResourcePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -347,9 +343,7 @@ def internal_paging(next_link=None, raw=False):
request, header_parameters, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
raise models.ErrorResponseException(self._deserialize, response)

return response

Expand Down Expand Up @@ -384,7 +378,8 @@ def enable_receiver(
raw=true
:rtype: None or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
:raises:
:class:`ErrorResponseException<azure.mgmt.monitor.models.ErrorResponseException>`
"""
enable_request = models.EnableRequest(receiver_name=receiver_name)

Expand Down Expand Up @@ -419,10 +414,8 @@ def enable_receiver(
response = self._client.send(
request, header_parameters, body_content, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
if response.status_code not in [200, 409]:
raise models.ErrorResponseException(self._deserialize, response)

if raw:
client_raw_response = ClientRawResponse(None, response)
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-monitor/build.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-08T22:19:02Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-09-07T16:19:30Z", "version": ""}