All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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

  • Enclosing class:
    ChecksService


    public class ChecksService.Media
    extends Object
    The "media" collection of methods.
    • Constructor Detail

      • Media

        public Media()
    • 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