Source code for azure.mgmt.monitor.models.itsm_receiver_py3

# 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


[docs]class ItsmReceiver(Model): """An Itsm receiver. All required parameters must be populated in order to send to Azure. :param name: Required. The name of the Itsm receiver. Names must be unique across all receivers within an action group. :type name: str :param workspace_id: Required. OMS LA instance identifier. :type workspace_id: str :param connection_id: Required. Unique identification of ITSM connection among multiple defined in above workspace. :type connection_id: str :param ticket_configuration: Required. JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well. :type ticket_configuration: str :param region: Required. Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' :type region: str """ _validation = { 'name': {'required': True}, 'workspace_id': {'required': True}, 'connection_id': {'required': True}, 'ticket_configuration': {'required': True}, 'region': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, 'connection_id': {'key': 'connectionId', 'type': 'str'}, 'ticket_configuration': {'key': 'ticketConfiguration', 'type': 'str'}, 'region': {'key': 'region', 'type': 'str'}, } def __init__(self, *, name: str, workspace_id: str, connection_id: str, ticket_configuration: str, region: str, **kwargs) -> None: super(ItsmReceiver, self).__init__(**kwargs) self.name = name self.workspace_id = workspace_id self.connection_id = connection_id self.ticket_configuration = ticket_configuration self.region = region