Show / Hide Table of Contents

Class MediaResource.UploadRequest

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.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Operation>
ChecksServiceBaseServiceRequest<Operation>
MediaResource.UploadRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
ChecksServiceBaseServiceRequest<Operation>.Xgafv
ChecksServiceBaseServiceRequest<Operation>.AccessToken
ChecksServiceBaseServiceRequest<Operation>.Alt
ChecksServiceBaseServiceRequest<Operation>.Callback
ChecksServiceBaseServiceRequest<Operation>.Fields
ChecksServiceBaseServiceRequest<Operation>.Key
ChecksServiceBaseServiceRequest<Operation>.OauthToken
ChecksServiceBaseServiceRequest<Operation>.PrettyPrint
ChecksServiceBaseServiceRequest<Operation>.QuotaUser
ChecksServiceBaseServiceRequest<Operation>.UploadType
ChecksServiceBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ChecksService.v1alpha
Assembly: Google.Apis.ChecksService.v1alpha.dll
Syntax
public class MediaResource.UploadRequest : ChecksServiceBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest

Constructors

UploadRequest(IClientService, GoogleChecksReportV1alphaAnalyzeUploadRequest, string)

Constructs a new Upload request.

Declaration
public UploadRequest(IClientService service, GoogleChecksReportV1alphaAnalyzeUploadRequest body, string parent)
Parameters
Type Name Description
IClientService service
GoogleChecksReportV1alphaAnalyzeUploadRequest body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.MethodName

Parent

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

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Operation>.GetBody()

InitParameters()

Initializes Upload parameter list.

Declaration
protected override void InitParameters()
Overrides
ChecksServiceBaseServiceRequest<Operation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX