def main():
    module_args = oci_common_utils.get_common_arg_spec(supports_create=False, supports_wait=True)
    module_args.update(dict(recommendation_id=dict(aliases=['id'], type='str', required=True), resource_action_ids=dict(type='list', elements='str'), actions=dict(type='list', elements='dict', options=dict(resource_action_id=dict(type='str', required=True), status=dict(type='str', choices=['PENDING', 'DISMISSED', 'POSTPONED', 'IMPLEMENTED']), time_status_end=dict(type='str'), parameters=dict(type='dict'), strategy_name=dict(type='str'))), status=dict(type='str', required=True, choices=['PENDING', 'DISMISSED', 'POSTPONED', 'IMPLEMENTED']), time_status_end=dict(type='str'), action=dict(type='str', required=True, choices=['bulk_apply'])))
    module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
    if (not HAS_OCI_PY_SDK):
        module.fail_json(msg='oci python sdk required for this module.')
    resource_helper = ResourceHelper(module=module, resource_type='recommendation', service_client_class=OptimizerClient, namespace='optimizer')
    result = resource_helper.perform_action(module.params.get('action'))
    module.exit_json(**result)
def main():
    module_args = oci_common_utils.get_common_arg_spec(supports_create=False, supports_wait=True)
    module_args.update(dict(recommendation_id=dict(aliases=['id'], type='str', required=True), resource_action_ids=dict(type='list', elements='str'), actions=dict(type='list', elements='dict', options=dict(resource_action_id=dict(type='str', required=True), status=dict(type='str', choices=['PENDING', 'DISMISSED', 'POSTPONED', 'IMPLEMENTED']), time_status_end=dict(type='str'), parameters=dict(type='dict'), strategy_name=dict(type='str'))), status=dict(type='str', required=True, choices=['PENDING', 'DISMISSED', 'POSTPONED', 'IMPLEMENTED']), time_status_end=dict(type='str'), action=dict(type='str', required=True, choices=['bulk_apply'])))
    module = AnsibleModule(argument_spec=module_args, supports_check_mode=True)
    if (not HAS_OCI_PY_SDK):
        module.fail_json(msg='oci python sdk required for this module.')
    resource_helper = ResourceHelper(module=module, resource_type='recommendation', service_client_class=OptimizerClient, namespace='optimizer')
    result = resource_helper.perform_action(module.params.get('action'))
    module.exit_json(**result)