Analyzes the uploaded app bundle and returns a google.longrunning.Operation
containing the generated Report
.
Example (upload only)
Send a regular POST request with the header X-Goog-Upload-Protocol: raw
.
POST https://checks.googleapis.com/upload/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload HTTP/1.1
X-Goog-Upload-Protocol: raw
Content-Length: <binary size>
Content-Type: application/octet-stream
<binary>
Example (upload with metadata)
Send a multipart POST request where the first body part contains the metadata JSON and the second body part contains the binary upload. Include the header X-Goog-Upload-Protocol: multipart
.
POST https://checks.googleapis.com/upload/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload HTTP/1.1
X-Goog-Upload-Protocol: multipart
Content-Length: ?
Content-Type: multipart/related; boundary=BOUNDARY
--BOUNDARY
Content-Type: application/json
{"codeReferenceId":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"}
--BOUNDARY
<binary>
--BOUNDARY--
HTTP request
- Upload URI, for media upload requests:
POST https://checks.googleapis.com/upload/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload
- Metadata URI, for metadata-only requests:
POST https://checks.googleapis.com/v1alpha/{parent=accounts/*/apps/*}/reports:analyzeUpload
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Resource name of the app. Example: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "codeReferenceId": string } |
Fields | |
---|---|
codeReferenceId |
Optional. Git commit hash or changelist number associated with the upload. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/checks
For more information, see the OAuth 2.0 Overview.