Show / Hide Table of Contents

Class ProjectsResource

The "projects" collection of methods.

Inheritance
System.Object
ProjectsResource
Namespace: Google.Apis.Datastore.v1beta3
Assembly: Google.Apis.Datastore.v1beta3.dll
Syntax
public class ProjectsResource : object

Constructors

ProjectsResource(IClientService)

Constructs a new resource.

Declaration
public ProjectsResource(IClientService service)
Parameters
Type Name Description
IClientService service

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.

System.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.

System.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.

System.String projectId

Required. The ID of the project against which to make the request.

Returns
Type Description
ProjectsResource.CommitRequest

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.

System.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.

System.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.

System.String projectId

Required. The ID of the project against which to make the request.

Returns
Type Description
ProjectsResource.RollbackRequest

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.

System.String projectId

Required. The ID of the project against which to make the request.

Returns
Type Description
ProjectsResource.RunQueryRequest
Back to top