Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Datastore.v1
Assembly: Google.Apis.Datastore.v1.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Indexes
Gets the Indexes resource.
Declaration
public virtual ProjectsResource.IndexesResource Indexes { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.IndexesResource |
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.OperationsResource |
Methods
AllocateIds(AllocateIdsRequest, string)
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
Declaration
public virtual ProjectsResource.AllocateIdsRequest AllocateIds(AllocateIdsRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
AllocateIdsRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.AllocateIdsRequest |
BeginTransaction(BeginTransactionRequest, string)
Begins a new transaction.
Declaration
public virtual ProjectsResource.BeginTransactionRequest BeginTransaction(BeginTransactionRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
BeginTransactionRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.BeginTransactionRequest |
Commit(CommitRequest, string)
Commits a transaction, optionally creating, deleting or modifying some entities.
Declaration
public virtual ProjectsResource.CommitRequest Commit(CommitRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
CommitRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.CommitRequest |
Export(GoogleDatastoreAdminV1ExportEntitiesRequest, string)
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
Declaration
public virtual ProjectsResource.ExportRequest Export(GoogleDatastoreAdminV1ExportEntitiesRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
GoogleDatastoreAdminV1ExportEntitiesRequest | body | The body of the request. |
string | projectId | Required. Project ID against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.ExportRequest |
Import(GoogleDatastoreAdminV1ImportEntitiesRequest, string)
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.
Declaration
public virtual ProjectsResource.ImportRequest Import(GoogleDatastoreAdminV1ImportEntitiesRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
GoogleDatastoreAdminV1ImportEntitiesRequest | body | The body of the request. |
string | projectId | Required. Project ID against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.ImportRequest |
Lookup(LookupRequest, string)
Looks up entities by key.
Declaration
public virtual ProjectsResource.LookupRequest Lookup(LookupRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
LookupRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.LookupRequest |
ReserveIds(ReserveIdsRequest, string)
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
Declaration
public virtual ProjectsResource.ReserveIdsRequest ReserveIds(ReserveIdsRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
ReserveIdsRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.ReserveIdsRequest |
Rollback(RollbackRequest, string)
Rolls back a transaction.
Declaration
public virtual ProjectsResource.RollbackRequest Rollback(RollbackRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
RollbackRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RollbackRequest |
RunAggregationQuery(RunAggregationQueryRequest, string)
Runs an aggregation query.
Declaration
public virtual ProjectsResource.RunAggregationQueryRequest RunAggregationQuery(RunAggregationQueryRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
RunAggregationQueryRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RunAggregationQueryRequest |
RunQuery(RunQueryRequest, string)
Queries for entities.
Declaration
public virtual ProjectsResource.RunQueryRequest RunQuery(RunQueryRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
RunQueryRequest | body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
ProjectsResource.RunQueryRequest |