# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Monitor::Mgmt::V2017_04_01 module Models # # An action group resource. # class ActionGroupResource < Resource include MsRestAzure # @return [String] The short name of the action group. This will be used # in SMS messages. attr_accessor :group_short_name # @return [Boolean] Indicates whether this action group is enabled. If an # action group is not enabled, then none of its receivers will receive # communications. Default value: true . attr_accessor :enabled # @return [Array] The list of email receivers that are # part of this action group. attr_accessor :email_receivers # @return [Array] The list of SMS receivers that are part of # this action group. attr_accessor :sms_receivers # @return [Array] The list of webhook receivers that are # part of this action group. attr_accessor :webhook_receivers # @return [Array] The list of ITSM receivers that are part # of this action group. attr_accessor :itsm_receivers # @return [Array] The list of AzureAppPush # receivers that are part of this action group. attr_accessor :azure_app_push_receivers # @return [Array] The list of # AutomationRunbook receivers that are part of this action group. attr_accessor :automation_runbook_receivers # # Mapper for ActionGroupResource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ActionGroupResource', type: { name: 'Composite', class_name: 'ActionGroupResource', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, group_short_name: { client_side_validation: true, required: true, serialized_name: 'properties.groupShortName', constraints: { MaxLength: 12 }, type: { name: 'String' } }, enabled: { client_side_validation: true, required: true, serialized_name: 'properties.enabled', default_value: true, type: { name: 'Boolean' } }, email_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.emailReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EmailReceiverElementType', type: { name: 'Composite', class_name: 'EmailReceiver' } } } }, sms_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.smsReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'SmsReceiverElementType', type: { name: 'Composite', class_name: 'SmsReceiver' } } } }, webhook_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.webhookReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'WebhookReceiverElementType', type: { name: 'Composite', class_name: 'WebhookReceiver' } } } }, itsm_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.itsmReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ItsmReceiverElementType', type: { name: 'Composite', class_name: 'ItsmReceiver' } } } }, azure_app_push_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.azureAppPushReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AzureAppPushReceiverElementType', type: { name: 'Composite', class_name: 'AzureAppPushReceiver' } } } }, automation_runbook_receivers: { client_side_validation: true, required: false, serialized_name: 'properties.automationRunbookReceivers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AutomationRunbookReceiverElementType', type: { name: 'Composite', class_name: 'AutomationRunbookReceiver' } } } } } } } end end end end