| <html><body> | |
| <style> | |
| body, h1, h2, h3, div, span, p, pre, a { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-weight: inherit; | |
| font-style: inherit; | |
| font-size: 100%; | |
| font-family: inherit; | |
| vertical-align: baseline; | |
| } | |
| body { | |
| font-size: 13px; | |
| padding: 1em; | |
| } | |
| h1 { | |
| font-size: 26px; | |
| margin-bottom: 1em; | |
| } | |
| h2 { | |
| font-size: 24px; | |
| margin-bottom: 1em; | |
| } | |
| h3 { | |
| font-size: 20px; | |
| margin-bottom: 1em; | |
| margin-top: 1em; | |
| } | |
| pre, code { | |
| line-height: 1.5; | |
| font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; | |
| } | |
| pre { | |
| margin-top: 0.5em; | |
| } | |
| h1, h2, h3, p { | |
| font-family: Arial, sans serif; | |
| } | |
| h1, h2, h3 { | |
| border-bottom: solid #CCC 1px; | |
| } | |
| .toc_element { | |
| margin-top: 0.5em; | |
| } | |
| .firstline { | |
| margin-left: 2 em; | |
| } | |
| .method { | |
| margin-top: 1em; | |
| border: solid 1px #CCC; | |
| padding: 1em; | |
| background: #EEE; | |
| } | |
| .details { | |
| font-weight: bold; | |
| font-size: 14px; | |
| } | |
| </style> | |
| <h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.sql.html">sql</a></h1> | |
| <h2>Instance Methods</h2> | |
| <p class="toc_element"> | |
| <code><a href="#validate">validate(projectId, location, query=None, x__xgafv=None)</a></code></p> | |
| <p class="firstline">Validates a GoogleSQL query for Cloud Dataflow syntax. Will always</p> | |
| <h3>Method Details</h3> | |
| <div class="method"> | |
| <code class="details" id="validate">validate(projectId, location, query=None, x__xgafv=None)</code> | |
| <pre>Validates a GoogleSQL query for Cloud Dataflow syntax. Will always | |
| confirm the given query parses correctly, and if able to look up | |
| schema information from DataCatalog, will validate that the query | |
| analyzes properly as well. | |
| Args: | |
| projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required) | |
| location: string, The [regional endpoint] | |
| (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to | |
| which to direct the request. (required) | |
| query: string, The sql query to validate. | |
| x__xgafv: string, V1 error format. | |
| Allowed values | |
| 1 - v1 error format | |
| 2 - v2 error format | |
| Returns: | |
| An object of the form: | |
| { # Response to the validation request. | |
| "queryInfo": { # Information about a validated query. # Information about the validated query. Not defined if validation fails. | |
| "queryProperty": [ # Includes an entry for each satisfied QueryProperty. | |
| "A String", | |
| ], | |
| }, | |
| "errorMessage": "A String", # Will be empty if validation succeeds. | |
| }</pre> | |
| </div> | |
| </body></html> |