def validate(resource_group_name, validate_request, custom_headers:nil)
      response = validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def validate(resource_group_name, validate_request, custom_headers:nil)
      response = validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Validate if a resource can be created.

 Validate if a resource can be created.

 @param resource_group_name [String] Name of the resource group to which the
 resource belongs.
 @param validate_request [ValidateRequest] Request with the resources to
 validate.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ValidateResponse] operation results.