def validate_by_location(resource_group_name, location, workflow_name, workflow, custom_headers:nil)
      response = validate_by_location_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value!
      nil
    end
def validate_by_location(resource_group_name, location, workflow_name, workflow, custom_headers:nil)
      response = validate_by_location_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value!
      nil
    end
Validates the workflow definition.

 @param resource_group_name [String] The resource group name.
 @param location [String] The workflow location.
 @param workflow_name [String] The workflow name.
 @param workflow [Workflow] The workflow definition.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.