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
9 changes: 9 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
from .itsm_receiver_py3 import ItsmReceiver
from .azure_app_push_receiver_py3 import AzureAppPushReceiver
from .automation_runbook_receiver_py3 import AutomationRunbookReceiver
from .voice_receiver_py3 import VoiceReceiver
from .logic_app_receiver_py3 import LogicAppReceiver
from .azure_function_receiver_py3 import AzureFunctionReceiver
from .action_group_resource_py3 import ActionGroupResource
from .enable_request_py3 import EnableRequest
from .action_group_patch_body_py3 import ActionGroupPatchBody
Expand Down Expand Up @@ -144,6 +147,9 @@
from .itsm_receiver import ItsmReceiver
from .azure_app_push_receiver import AzureAppPushReceiver
from .automation_runbook_receiver import AutomationRunbookReceiver
from .voice_receiver import VoiceReceiver
from .logic_app_receiver import LogicAppReceiver
from .azure_function_receiver import AzureFunctionReceiver
from .action_group_resource import ActionGroupResource
from .enable_request import EnableRequest
from .action_group_patch_body import ActionGroupPatchBody
Expand Down Expand Up @@ -257,6 +263,9 @@
'ItsmReceiver',
'AzureAppPushReceiver',
'AutomationRunbookReceiver',
'VoiceReceiver',
'LogicAppReceiver',
'AzureFunctionReceiver',
'ActionGroupResource',
'EnableRequest',
'ActionGroupPatchBody',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ class ActionGroupResource(Resource):
receivers that are part of this action group.
:type automation_runbook_receivers:
list[~azure.mgmt.monitor.models.AutomationRunbookReceiver]
:param voice_receivers: The list of voice receivers that are part of this
action group.
:type voice_receivers: list[~azure.mgmt.monitor.models.VoiceReceiver]
:param logic_app_receivers: The list of logic app receivers that are part
of this action group.
:type logic_app_receivers:
list[~azure.mgmt.monitor.models.LogicAppReceiver]
:param azure_function_receivers: The list of azure function receivers that
are part of this action group.
:type azure_function_receivers:
list[~azure.mgmt.monitor.models.AzureFunctionReceiver]
"""

_validation = {
Expand All @@ -82,6 +93,9 @@ class ActionGroupResource(Resource):
'itsm_receivers': {'key': 'properties.itsmReceivers', 'type': '[ItsmReceiver]'},
'azure_app_push_receivers': {'key': 'properties.azureAppPushReceivers', 'type': '[AzureAppPushReceiver]'},
'automation_runbook_receivers': {'key': 'properties.automationRunbookReceivers', 'type': '[AutomationRunbookReceiver]'},
'voice_receivers': {'key': 'properties.voiceReceivers', 'type': '[VoiceReceiver]'},
'logic_app_receivers': {'key': 'properties.logicAppReceivers', 'type': '[LogicAppReceiver]'},
'azure_function_receivers': {'key': 'properties.azureFunctionReceivers', 'type': '[AzureFunctionReceiver]'},
}

def __init__(self, **kwargs):
Expand All @@ -94,3 +108,6 @@ def __init__(self, **kwargs):
self.itsm_receivers = kwargs.get('itsm_receivers', None)
self.azure_app_push_receivers = kwargs.get('azure_app_push_receivers', None)
self.automation_runbook_receivers = kwargs.get('automation_runbook_receivers', None)
self.voice_receivers = kwargs.get('voice_receivers', None)
self.logic_app_receivers = kwargs.get('logic_app_receivers', None)
self.azure_function_receivers = kwargs.get('azure_function_receivers', None)
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ class ActionGroupResource(Resource):
receivers that are part of this action group.
:type automation_runbook_receivers:
list[~azure.mgmt.monitor.models.AutomationRunbookReceiver]
:param voice_receivers: The list of voice receivers that are part of this
action group.
:type voice_receivers: list[~azure.mgmt.monitor.models.VoiceReceiver]
:param logic_app_receivers: The list of logic app receivers that are part
of this action group.
:type logic_app_receivers:
list[~azure.mgmt.monitor.models.LogicAppReceiver]
:param azure_function_receivers: The list of azure function receivers that
are part of this action group.
:type azure_function_receivers:
list[~azure.mgmt.monitor.models.AzureFunctionReceiver]
"""

_validation = {
Expand All @@ -82,9 +93,12 @@ class ActionGroupResource(Resource):
'itsm_receivers': {'key': 'properties.itsmReceivers', 'type': '[ItsmReceiver]'},
'azure_app_push_receivers': {'key': 'properties.azureAppPushReceivers', 'type': '[AzureAppPushReceiver]'},
'automation_runbook_receivers': {'key': 'properties.automationRunbookReceivers', 'type': '[AutomationRunbookReceiver]'},
'voice_receivers': {'key': 'properties.voiceReceivers', 'type': '[VoiceReceiver]'},
'logic_app_receivers': {'key': 'properties.logicAppReceivers', 'type': '[LogicAppReceiver]'},
'azure_function_receivers': {'key': 'properties.azureFunctionReceivers', 'type': '[AzureFunctionReceiver]'},
}

def __init__(self, *, location: str, group_short_name: str, tags=None, enabled: bool=True, email_receivers=None, sms_receivers=None, webhook_receivers=None, itsm_receivers=None, azure_app_push_receivers=None, automation_runbook_receivers=None, **kwargs) -> None:
def __init__(self, *, location: str, group_short_name: str, tags=None, enabled: bool=True, email_receivers=None, sms_receivers=None, webhook_receivers=None, itsm_receivers=None, azure_app_push_receivers=None, automation_runbook_receivers=None, voice_receivers=None, logic_app_receivers=None, azure_function_receivers=None, **kwargs) -> None:
super(ActionGroupResource, self).__init__(location=location, tags=tags, **kwargs)
self.group_short_name = group_short_name
self.enabled = enabled
Expand All @@ -94,3 +108,6 @@ def __init__(self, *, location: str, group_short_name: str, tags=None, enabled:
self.itsm_receivers = itsm_receivers
self.azure_app_push_receivers = azure_app_push_receivers
self.automation_runbook_receivers = automation_runbook_receivers
self.voice_receivers = voice_receivers
self.logic_app_receivers = logic_app_receivers
self.azure_function_receivers = azure_function_receivers
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AzureFunctionReceiver(Model):
"""An azure function receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the azure function receiver. Names must
be unique across all receivers within an action group.
:type name: str
:param function_app_resource_id: Required. The azure resource id of the
function app.
:type function_app_resource_id: str
:param function_name: Required. The function name in the function app.
:type function_name: str
:param http_trigger_url: Required. The http trigger url where http request
sent to.
:type http_trigger_url: str
"""

_validation = {
'name': {'required': True},
'function_app_resource_id': {'required': True},
'function_name': {'required': True},
'http_trigger_url': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'function_app_resource_id': {'key': 'functionAppResourceId', 'type': 'str'},
'function_name': {'key': 'functionName', 'type': 'str'},
'http_trigger_url': {'key': 'httpTriggerUrl', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFunctionReceiver, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.function_app_resource_id = kwargs.get('function_app_resource_id', None)
self.function_name = kwargs.get('function_name', None)
self.http_trigger_url = kwargs.get('http_trigger_url', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AzureFunctionReceiver(Model):
"""An azure function receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the azure function receiver. Names must
be unique across all receivers within an action group.
:type name: str
:param function_app_resource_id: Required. The azure resource id of the
function app.
:type function_app_resource_id: str
:param function_name: Required. The function name in the function app.
:type function_name: str
:param http_trigger_url: Required. The http trigger url where http request
sent to.
:type http_trigger_url: str
"""

_validation = {
'name': {'required': True},
'function_app_resource_id': {'required': True},
'function_name': {'required': True},
'http_trigger_url': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'function_app_resource_id': {'key': 'functionAppResourceId', 'type': 'str'},
'function_name': {'key': 'functionName', 'type': 'str'},
'http_trigger_url': {'key': 'httpTriggerUrl', 'type': 'str'},
}

def __init__(self, *, name: str, function_app_resource_id: str, function_name: str, http_trigger_url: str, **kwargs) -> None:
super(AzureFunctionReceiver, self).__init__(**kwargs)
self.name = name
self.function_app_resource_id = function_app_resource_id
self.function_name = function_name
self.http_trigger_url = http_trigger_url
47 changes: 47 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/logic_app_receiver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class LogicAppReceiver(Model):
"""A logic app receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the logic app receiver. Names must be
unique across all receivers within an action group.
:type name: str
:param resource_id: Required. The azure resource id of the logic app
receiver.
:type resource_id: str
:param callback_url: Required. The callback url where http request sent
to.
:type callback_url: str
"""

_validation = {
'name': {'required': True},
'resource_id': {'required': True},
'callback_url': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'callback_url': {'key': 'callbackUrl', 'type': 'str'},
}

def __init__(self, **kwargs):
super(LogicAppReceiver, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.resource_id = kwargs.get('resource_id', None)
self.callback_url = kwargs.get('callback_url', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class LogicAppReceiver(Model):
"""A logic app receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the logic app receiver. Names must be
unique across all receivers within an action group.
:type name: str
:param resource_id: Required. The azure resource id of the logic app
receiver.
:type resource_id: str
:param callback_url: Required. The callback url where http request sent
to.
:type callback_url: str
"""

_validation = {
'name': {'required': True},
'resource_id': {'required': True},
'callback_url': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'callback_url': {'key': 'callbackUrl', 'type': 'str'},
}

def __init__(self, *, name: str, resource_id: str, callback_url: str, **kwargs) -> None:
super(LogicAppReceiver, self).__init__(**kwargs)
self.name = name
self.resource_id = resource_id
self.callback_url = callback_url
45 changes: 45 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/voice_receiver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class VoiceReceiver(Model):
"""A voice receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the voice receiver. Names must be
unique across all receivers within an action group.
:type name: str
:param country_code: Required. The country code of the voice receiver.
:type country_code: str
:param phone_number: Required. The phone number of the voice receiver.
:type phone_number: str
"""

_validation = {
'name': {'required': True},
'country_code': {'required': True},
'phone_number': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'country_code': {'key': 'countryCode', 'type': 'str'},
'phone_number': {'key': 'phoneNumber', 'type': 'str'},
}

def __init__(self, **kwargs):
super(VoiceReceiver, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.country_code = kwargs.get('country_code', None)
self.phone_number = kwargs.get('phone_number', None)
45 changes: 45 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/voice_receiver_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class VoiceReceiver(Model):
"""A voice receiver.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the voice receiver. Names must be
unique across all receivers within an action group.
:type name: str
:param country_code: Required. The country code of the voice receiver.
:type country_code: str
:param phone_number: Required. The phone number of the voice receiver.
:type phone_number: str
"""

_validation = {
'name': {'required': True},
'country_code': {'required': True},
'phone_number': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'country_code': {'key': 'countryCode', 'type': 'str'},
'phone_number': {'key': 'phoneNumber', 'type': 'str'},
}

def __init__(self, *, name: str, country_code: str, phone_number: str, **kwargs) -> None:
super(VoiceReceiver, self).__init__(**kwargs)
self.name = name
self.country_code = country_code
self.phone_number = phone_number
Loading