def process_action_group_detail_for_creation(namespace):
    from azure.mgmt.monitor.models import ActionGroupResource, EmailReceiver, SmsReceiver, WebhookReceiver
    _validate_tags(namespace)
    ns = vars(namespace)
    name = ns['action_group_name']
    receivers = (ns.pop('receivers') or [])
    action_group_resource_properties = {'location': 'global', 'group_short_name': (ns.pop('short_name') or name[:12]), 'email_receivers': [r for r in receivers if isinstance(r, EmailReceiver)], 'sms_receivers': [r for r in receivers if isinstance(r, SmsReceiver)], 'webhook_receivers': [r for r in receivers if isinstance(r, WebhookReceiver)], 'tags': (ns.get('tags') or None)}
    ns['action_group'] = ActionGroupResource(**action_group_resource_properties)
def process_action_group_detail_for_creation(namespace):
    from azure.mgmt.monitor.models import ActionGroupResource, EmailReceiver, SmsReceiver, WebhookReceiver
    _validate_tags(namespace)
    ns = vars(namespace)
    name = ns['action_group_name']
    receivers = (ns.pop('receivers') or [])
    action_group_resource_properties = {'location': 'global', 'group_short_name': (ns.pop('short_name') or name[:12]), 'email_receivers': [r for r in receivers if isinstance(r, EmailReceiver)], 'sms_receivers': [r for r in receivers if isinstance(r, SmsReceiver)], 'webhook_receivers': [r for r in receivers if isinstance(r, WebhookReceiver)], 'tags': (ns.get('tags') or None)}
    ns['action_group'] = ActionGroupResource(**action_group_resource_properties)