# Path: mistralclient/api/v2/dynamic_actions.py
# class DynamicAction(base.Resource):
# class DynamicActionManager(base.ResourceManager):
#     def get(self, identifier, namespace=''):
#     def create(self, name, class_name, code_source, scope='private',
#                namespace=''):
#     def update(self, identifier, class_name=None, code_source=None,
#                scope='private', namespace=''):
#     def list(self, marker='', limit=None, sort_keys='', sort_dirs='',
#              fields='', namespace='', **filters):
#     def delete(self, identifier, namespace=''):
# 
# Path: mistralclient/commands/v2/dynamic_actions.py
# class DynamicActionFormatter(base.MistralFormatter):
# class List(base.MistralLister):
# class Get(command.ShowOne):
# class Create(command.ShowOne):
# class Delete(command.Command):
# class Update(command.ShowOne):
#     COLUMNS = [
#         ('id', 'ID'),
#         ('name', 'Name'),
#         ('class_name', 'Class'),
#         ('code_source_id', 'Code source ID'),
#         ('code_source_name', 'Code source name'),
#         ('project_id', 'Project ID'),
#         ('scope', 'Scope'),
#         ('created_at', 'Created at'),
#         ('updated_at', 'Updated at'),
#     ]
#     def format(action=None, lister=False):
#     def _get_format_function(self):
#     def get_parser(self, prog_name):
#     def _get_resources(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
# 
# Path: mistralclient/tests/unit/base.py
# class BaseClientTest(base.BaseTestCase):
# class BaseCommandTest(base.BaseTestCase):
#     def setUp(self):
#     def setUp(self):
#     def call(self, command, app_args=(), prog_name=''):


from unittest import mock
from mistralclient.api.v2 import dynamic_actions
from mistralclient.commands.v2 import dynamic_actions as dyn_actions_cmd
from mistralclient.tests.unit import base
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.





DYN_ACTION_DICT = {
    'id': '1-2-3-4',
    'name': 'my_action',
    'class_name': 'MyAction',
    'code_source_name': 'my_module',
    'code_source_id': '2-3-4-5',
    'namespace': '',
    'project_id': '12345',
    'scope': 'private',
    'created_at': '1',
    'updated_at': '1'
}


# Path: mistralclient/api/v2/dynamic_actions.py
# class DynamicAction(base.Resource):
# class DynamicActionManager(base.ResourceManager):
#     def get(self, identifier, namespace=''):
#     def create(self, name, class_name, code_source, scope='private',
#                namespace=''):
#     def update(self, identifier, class_name=None, code_source=None,
#                scope='private', namespace=''):
#     def list(self, marker='', limit=None, sort_keys='', sort_dirs='',
#              fields='', namespace='', **filters):
#     def delete(self, identifier, namespace=''):
# 
# Path: mistralclient/commands/v2/dynamic_actions.py
# class DynamicActionFormatter(base.MistralFormatter):
# class List(base.MistralLister):
# class Get(command.ShowOne):
# class Create(command.ShowOne):
# class Delete(command.Command):
# class Update(command.ShowOne):
#     COLUMNS = [
#         ('id', 'ID'),
#         ('name', 'Name'),
#         ('class_name', 'Class'),
#         ('code_source_id', 'Code source ID'),
#         ('code_source_name', 'Code source name'),
#         ('project_id', 'Project ID'),
#         ('scope', 'Scope'),
#         ('created_at', 'Created at'),
#         ('updated_at', 'Updated at'),
#     ]
#     def format(action=None, lister=False):
#     def _get_format_function(self):
#     def get_parser(self, prog_name):
#     def _get_resources(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
#     def get_parser(self, prog_name):
#     def take_action(self, parsed_args):
# 
# Path: mistralclient/tests/unit/base.py
# class BaseClientTest(base.BaseTestCase):
# class BaseCommandTest(base.BaseTestCase):
#     def setUp(self):
#     def setUp(self):
#     def call(self, command, app_args=(), prog_name=''):


# Path: mistralclient/tests/unit/v2/test_cli_dynamic_actions.py
from unittest import mock
from mistralclient.api.v2 import dynamic_actions
from mistralclient.commands.v2 import dynamic_actions as dyn_actions_cmd
from mistralclient.tests.unit import base

#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.





DYN_ACTION_DICT = {
    'id': '1-2-3-4',
    'name': 'my_action',
    'class_name': 'MyAction',
    'code_source_name': 'my_module',
    'code_source_id': '2-3-4-5',
    'namespace': '',
    'project_id': '12345',
    'scope': 'private',
    'created_at': '1',
    'updated_at': '1'
}


DYN_ACTION = dynamic_actions.DynamicAction(mock, DYN_ACTION_DICT)