def main():
    module_args = oci_common_utils.get_common_arg_spec(supports_create=False, supports_wait=False)
    module_args.update(dict(secret_id=dict(aliases=['id'], type='str', required=True), time_of_deletion=dict(type='str'), action=dict(type='str', required=True, choices=['cancel_secret_deletion', 'schedule_secret_deletion'])))
    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='secret', service_client_class=VaultsClient, namespace='vault')
    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=False)
    module_args.update(dict(secret_id=dict(aliases=['id'], type='str', required=True), time_of_deletion=dict(type='str'), action=dict(type='str', required=True, choices=['cancel_secret_deletion', 'schedule_secret_deletion'])))
    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='secret', service_client_class=VaultsClient, namespace='vault')
    result = resource_helper.perform_action(module.params.get('action'))
    module.exit_json(**result)