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
IndexingResource.DatasourcesResource.ItemsResource.UploadRequest
Inherited Members
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class IndexingResource.DatasourcesResource.ItemsResource.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 |
---|---|---|
IClientService | service | |
StartUploadItemRequest | body | |
string | name |
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
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 |
---|---|
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()