Show / Hide Table of Contents

Class IndexingResource.DatasourcesResource.ItemsResource.UploadRequest

Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<UploadItemRef>
CloudSearchBaseServiceRequest<UploadItemRef>
IndexingResource.DatasourcesResource.ItemsResource.UploadRequest
Implements
Google.Apis.Requests.IClientServiceRequest<UploadItemRef>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
CloudSearchBaseServiceRequest<UploadItemRef>.Xgafv
CloudSearchBaseServiceRequest<UploadItemRef>.AccessToken
CloudSearchBaseServiceRequest<UploadItemRef>.Alt
CloudSearchBaseServiceRequest<UploadItemRef>.Callback
CloudSearchBaseServiceRequest<UploadItemRef>.Fields
CloudSearchBaseServiceRequest<UploadItemRef>.Key
CloudSearchBaseServiceRequest<UploadItemRef>.OauthToken
CloudSearchBaseServiceRequest<UploadItemRef>.PrettyPrint
CloudSearchBaseServiceRequest<UploadItemRef>.QuotaUser
CloudSearchBaseServiceRequest<UploadItemRef>.UploadType
CloudSearchBaseServiceRequest<UploadItemRef>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSearch.v1.Data.UploadItemRef>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.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<UploadItemRef>, IClientServiceRequest<UploadItemRef>, IClientServiceRequest

Constructors

UploadRequest(IClientService, StartUploadItemRequest, String)

Constructs a new Upload request.

Declaration
public UploadRequest(IClientService service, StartUploadItemRequest body, string name)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
StartUploadItemRequest body
System.String name

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.UploadItemRef>.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.UploadItemRef>.MethodName

Name

The name of the Item to start a resumable upload. Format: datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes.

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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.UploadItemRef>.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.UploadItemRef>.GetBody()

InitParameters()

Initializes Upload parameter list.

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

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top