class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::NotificationChannelFragment

A notification.

Attributes

description[RW]

@return [String] Description of notification.

email_recipient[RW]

@return [String] The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

events[RW]

@return [Array<EventFragment>] The list of event for which this notification is enabled.

notification_locale[RW]

@return [String] The locale to use when sending a notification (fallback for unsupported languages is EN).

web_hook_url[RW]

@return [String] The webhook URL to send notifications to.

Private Class Methods

mapper() click to toggle source

Mapper for NotificationChannelFragment class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb, line 38
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NotificationChannelFragment',
    type: {
      name: 'Composite',
      class_name: 'NotificationChannelFragment',
      model_properties: {
        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'
                }
            }
          }
        },
        web_hook_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.webHookUrl',
          type: {
            name: 'String'
          }
        },
        email_recipient: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.emailRecipient',
          type: {
            name: 'String'
          }
        },
        notification_locale: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.notificationLocale',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        events: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.events',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EventFragmentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EventFragment'
                }
            }
          }
        }
      }
    }
  }
end