Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, **kwargs):
super(Action, self).__init__(**kwargs)
self.sql_expression = kwargs.get('sql_expression', None)
self.compatibility_level = kwargs.get('compatibility_level', None)
self.requires_preprocessing = kwargs.get('requires_preprocessing', True)
# 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 .action import Action
class SqlRuleAction(Action):
"""Represents set of actions written in SQL language-based syntax that is
performed against a ServiceBus.Messaging.BrokeredMessage .
:param sql_expression: SQL expression. e.g. MyProperty='ABC'
:type sql_expression: str
:param compatibility_level: This property is reserved for future use. An
integer value showing the compatibility level, currently hard-coded to 20.
:type compatibility_level: int
:param requires_preprocessing: Value that indicates whether the rule
action requires preprocessing. Default value: True .
:type requires_preprocessing: bool
"""
_attribute_map = {
'sql_expression': {'key': 'sqlExpression', 'type': 'str'},
'compatibility_level': {'key': 'compatibilityLevel', 'type': 'int'},