class Media extends Resource (View source)

The "media" collection of methods.

Typical usage is:

 $checksService = new Google\Service\ChecksService(...);
 $media = $checksService->media;

Methods

upload(string $parent, GoogleChecksReportV1alphaAnalyzeUploadRequest $postBody, array $optParams = [])

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://check s.googleapis.com/upload/v1alpha/{parent=accounts/apps}/reports:analyzeUpload HTTP/1.1 X-Goog-Upload-Protocol: raw Content-Length: Content-Type: application/octet-stream ## 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/u pload/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 {"code_reference_id":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"} --BOUNDARY --BOUNDARY-- Note: Metadata-only requests are not supported.

Details

Operation upload(string $parent, GoogleChecksReportV1alphaAnalyzeUploadRequest $postBody, array $optParams = [])

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://check s.googleapis.com/upload/v1alpha/{parent=accounts/apps}/reports:analyzeUpload HTTP/1.1 X-Goog-Upload-Protocol: raw Content-Length: Content-Type: application/octet-stream ## 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/u pload/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 {"code_reference_id":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"} --BOUNDARY --BOUNDARY-- Note: Metadata-only requests are not supported.

(media.upload)

Parameters

string $parent

Required. Resource name of the app. Example: accounts/123/apps/456

GoogleChecksReportV1alphaAnalyzeUploadRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception