Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Dataflow API Reference for dataflow.projects.locations.sql.validate
.
Synopsis
- type ProjectsLocationsSQLValidateResource = "v1b3" :> ("projects" :> (Capture "projectId" Text :> ("locations" :> (Capture "location" Text :> ("sql:validate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "query" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ValidateResponse))))))))))))
- projectsLocationsSQLValidate :: Text -> Text -> ProjectsLocationsSQLValidate
- data ProjectsLocationsSQLValidate
- plsqlvXgafv :: Lens' ProjectsLocationsSQLValidate (Maybe Xgafv)
- plsqlvUploadProtocol :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
- plsqlvLocation :: Lens' ProjectsLocationsSQLValidate Text
- plsqlvAccessToken :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
- plsqlvUploadType :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
- plsqlvQuery :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
- plsqlvProjectId :: Lens' ProjectsLocationsSQLValidate Text
- plsqlvCallback :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
REST Resource
type ProjectsLocationsSQLValidateResource = "v1b3" :> ("projects" :> (Capture "projectId" Text :> ("locations" :> (Capture "location" Text :> ("sql:validate" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "query" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ValidateResponse)))))))))))) Source #
A resource alias for dataflow.projects.locations.sql.validate
method which the
ProjectsLocationsSQLValidate
request conforms to.
Creating a Request
projectsLocationsSQLValidate Source #
Creates a value of ProjectsLocationsSQLValidate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsSQLValidate Source #
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.
See: projectsLocationsSQLValidate
smart constructor.
Instances
Request Lenses
plsqlvXgafv :: Lens' ProjectsLocationsSQLValidate (Maybe Xgafv) Source #
V1 error format.
plsqlvUploadProtocol :: Lens' ProjectsLocationsSQLValidate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plsqlvLocation :: Lens' ProjectsLocationsSQLValidate Text Source #
The regional endpoint to which to direct the request.
plsqlvAccessToken :: Lens' ProjectsLocationsSQLValidate (Maybe Text) Source #
OAuth access token.
plsqlvUploadType :: Lens' ProjectsLocationsSQLValidate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plsqlvQuery :: Lens' ProjectsLocationsSQLValidate (Maybe Text) Source #
The sql query to validate.
plsqlvProjectId :: Lens' ProjectsLocationsSQLValidate Text Source #
Required. The ID of the Cloud Platform project that the job belongs to.
plsqlvCallback :: Lens' ProjectsLocationsSQLValidate (Maybe Text) Source #
JSONP