
target.apidocs.com.google.api.services.checks.v1alpha.ChecksService.Media.html Maven / Gradle / Ivy
ChecksService.Media (Checks API v1alpha-rev20241203-2.0.0)
com.google.api.services.checks.v1alpha
Class ChecksService.Media
- java.lang.Object
-
- com.google.api.services.checks.v1alpha.ChecksService.Media
-
- Enclosing class:
- ChecksService
public class ChecksService.Media
extends Object
The "media" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
ChecksService.Media.Upload
-
Constructor Summary
Constructors
Constructor and Description
Media()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ChecksService.Media.Upload
upload(String parent,
GoogleChecksReportV1alphaAnalyzeUploadRequest content)
Analyzes the uploaded app bundle and returns a google.longrunning.Operation containing the
generated Report.
ChecksService.Media.Upload
upload(String parent,
GoogleChecksReportV1alphaAnalyzeUploadRequest content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Analyzes the uploaded app bundle and returns a google.longrunning.Operation containing the
generated Report.
-
-
Method Detail
-
upload
public ChecksService.Media.Upload upload(String parent,
GoogleChecksReportV1alphaAnalyzeUploadRequest content)
throws IOException
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: 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/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
{"code_reference_id":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"} --BOUNDARY --BOUNDARY-- ```
*Note:* Metadata-only requests are not supported.
Create a request for the method "media.upload".
This request holds the parameters needed by the checks server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. Resource name of the app. Example: `accounts/123/apps/456`
content
- the GoogleChecksReportV1alphaAnalyzeUploadRequest
- Returns:
- the request
- Throws:
IOException
-
upload
public ChecksService.Media.Upload upload(String parent,
GoogleChecksReportV1alphaAnalyzeUploadRequest content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
throws IOException
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: 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/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
{"code_reference_id":"db5bcc20f94055fb5bc08cbb9b0e7a5530308786"} --BOUNDARY --BOUNDARY-- ```
*Note:* Metadata-only requests are not supported.
Create a request for the method "media.upload".
This request holds the parameters needed by the the checks server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
- Parameters:
parent
- Required. Resource name of the app. Example: `accounts/123/apps/456`
content
- the GoogleChecksReportV1alphaAnalyzeUploadRequest
media metadata or null
if none
mediaContent
- The media HTTP content.
- Returns:
- the request
- Throws:
IOException
- if the initialization of the request fails
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy