Class ProjectsResource.ImportRequest
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.
Inheritance
ProjectsResource.ImportRequest
Inherited Members
Namespace: Google.Apis.Datastore.v1
Assembly: Google.Apis.Datastore.v1.dll
Syntax
public class ProjectsResource.ImportRequest : DatastoreBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
ImportRequest(IClientService, GoogleDatastoreAdminV1ImportEntitiesRequest, string)
Constructs a new Import request.
Declaration
public ImportRequest(IClientService service, GoogleDatastoreAdminV1ImportEntitiesRequest body, string projectId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleDatastoreAdminV1ImportEntitiesRequest | body | |
| string | projectId |
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
ProjectId
Required. Project ID against which to make the request.
Declaration
[RequestParameter("projectId", RequestParameterType.Path)]
public virtual string ProjectId { 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 Import parameter list.
Declaration
protected override void InitParameters()