Show / Hide Table of Contents

Class MediaResource.UploadRequest

Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during index requests](https://developers.google.com /cloud-search/docs/reference/rest/v1/indexing.datasources.items#itemcontent). To index large content: 1. Call indexing.datasources.items.upload with the item name to begin an upload session and retrieve the UploadItemRef. 1. Call media.upload to upload the content, as a streaming request, using the same resource name from the UploadItemRef from step 1. 1. Call indexing.datasources.items.index to index the item. Populate the ItemContent with the UploadItemRef from step 1. For additional information, see Create a content connector using the REST API. Note: This API requires a service account to execute.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<Media>
CloudSearchBaseServiceRequest<Media>
MediaResource.UploadRequest
Implements
IClientServiceRequest<Media>
IClientServiceRequest
Inherited Members
CloudSearchBaseServiceRequest<Media>.Xgafv
CloudSearchBaseServiceRequest<Media>.AccessToken
CloudSearchBaseServiceRequest<Media>.Alt
CloudSearchBaseServiceRequest<Media>.Callback
CloudSearchBaseServiceRequest<Media>.Fields
CloudSearchBaseServiceRequest<Media>.Key
CloudSearchBaseServiceRequest<Media>.OauthToken
CloudSearchBaseServiceRequest<Media>.PrettyPrint
CloudSearchBaseServiceRequest<Media>.QuotaUser
CloudSearchBaseServiceRequest<Media>.UploadType
CloudSearchBaseServiceRequest<Media>.UploadProtocol
ClientServiceRequest<Media>.Execute()
ClientServiceRequest<Media>.ExecuteAsStream()
ClientServiceRequest<Media>.ExecuteAsync()
ClientServiceRequest<Media>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Media>.ExecuteAsStreamAsync()
ClientServiceRequest<Media>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Media>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<Media>.GenerateRequestUri()
ClientServiceRequest<Media>.GetDefaultETagAction(String)
ClientServiceRequest<Media>.ETagAction
ClientServiceRequest<Media>.ModifyRequest
ClientServiceRequest<Media>.RequestParameters
ClientServiceRequest<Media>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class UploadRequest : CloudSearchBaseServiceRequest<Media>, IClientServiceRequest<Media>, IClientServiceRequest

Constructors

UploadRequest(IClientService, Media, String)

Constructs a new Upload request.

Declaration
public UploadRequest(IClientService service, Media body, string resourceName)
Parameters
Type Name Description
IClientService service
Media body
System.String resourceName

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.Media>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.Media>.MethodName

ResourceName

Name of the media that is being downloaded. See ReadRequest.resource_name.

Declaration
[RequestParameter("resourceName", RequestParameterType.Path)]
public virtual string ResourceName { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.Media>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.Media>.GetBody()

InitParameters()

Initializes Upload parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudSearch.v1.CloudSearchBaseServiceRequest<Google.Apis.CloudSearch.v1.Data.Media>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top