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
MediaResource.UploadRequest
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()