Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Datastore.v1beta3
Assembly: Google.Apis.Datastore.v1beta3.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
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 |
---|---|---|
Allocate |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
BeginTransaction(BeginTransactionRequest, string)
Begins a new transaction.
Declaration
public virtual ProjectsResource.BeginTransactionRequest BeginTransaction(BeginTransactionRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
Begin |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
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 |
---|---|---|
Commit |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
Lookup(LookupRequest, string)
Looks up entities by key.
Declaration
public virtual ProjectsResource.LookupRequest Lookup(LookupRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
Lookup |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
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 |
---|---|---|
Reserve |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
Rollback(RollbackRequest, string)
Rolls back a transaction.
Declaration
public virtual ProjectsResource.RollbackRequest Rollback(RollbackRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
Rollback |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
RunAggregationQuery(RunAggregationQueryRequest, string)
Runs an aggregation query.
Declaration
public virtual ProjectsResource.RunAggregationQueryRequest RunAggregationQuery(RunAggregationQueryRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
Run |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |
RunQuery(RunQueryRequest, string)
Queries for entities.
Declaration
public virtual ProjectsResource.RunQueryRequest RunQuery(RunQueryRequest body, string projectId)
Parameters
Type | Name | Description |
---|---|---|
Run |
body | The body of the request. |
string | projectId | Required. The ID of the project against which to make the request. |
Returns
Type | Description |
---|---|
Projects |