Copyright | (c) 2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- PropertyOrderDirection
- RollbackRequest
- Property
- PartitionId
- QueryResultBatch
- EntityProperties
- BeginTransactionRequest
- RunQueryRequest
- AllocateIdsRequest
- QueryResultBatchEntityResultType
- CompositeFilter
- CompositeFilterOperator
- QueryResultBatchMoreResults
- BeginTransactionResponse
- MutationResult
- AllocateIdsResponse
- GqlQuery
- RunQueryResponse
- Value
- LookupRequest
- ReadOptionsReadConsistency
- Mutation
- ResponseHeader
- KeyPathElement
- PropertyReference
- GqlQueryArg
- Key
- PropertyFilterOperator
- PropertyFilter
- Query
- EntityResult
- CommitResponse
- KindExpression
- ReadOptions
- RollbackResponse
- PropertyExpression
- Filter
- BeginTransactionRequestIsolationLevel
- CommitRequest
- CommitRequestMode
- PropertyExpressionAggregationFunction
- Entity
- LookupResponse
- PropertyOrder
- datastoreService :: Service
- userinfoEmailScope :: OAuthScope
- cloudPlatformScope :: OAuthScope
- datastoreScope :: OAuthScope
- data PropertyOrderDirection
- data RollbackRequest
- rollbackRequest :: RollbackRequest
- rrTransaction :: Lens' RollbackRequest (Maybe Word8)
- data Property
- property :: Property
- pKeyValue :: Lens' Property (Maybe Key)
- pBlobKeyValue :: Lens' Property (Maybe Text)
- pDateTimeValue :: Lens' Property (Maybe UTCTime)
- pIntegerValue :: Lens' Property (Maybe Int64)
- pEntityValue :: Lens' Property (Maybe Entity)
- pDoubleValue :: Lens' Property (Maybe Double)
- pStringValue :: Lens' Property (Maybe Text)
- pListValue :: Lens' Property [Value]
- pIndexed :: Lens' Property (Maybe Bool)
- pBooleanValue :: Lens' Property (Maybe Bool)
- pMeaning :: Lens' Property (Maybe Int32)
- pBlobValue :: Lens' Property (Maybe Word8)
- data PartitionId
- partitionId :: PartitionId
- piNamespace :: Lens' PartitionId (Maybe Text)
- piDataSetId :: Lens' PartitionId (Maybe Text)
- data QueryResultBatch
- queryResultBatch :: QueryResultBatch
- qrbSkippedResults :: Lens' QueryResultBatch (Maybe Int32)
- qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType)
- qrbEntityResults :: Lens' QueryResultBatch [EntityResult]
- qrbMoreResults :: Lens' QueryResultBatch (Maybe QueryResultBatchMoreResults)
- qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8)
- data EntityProperties
- entityProperties :: HashMap Text Property -> EntityProperties
- epAddtional :: Lens' EntityProperties (HashMap Text Property)
- data BeginTransactionRequest
- beginTransactionRequest :: BeginTransactionRequest
- btrIsolationLevel :: Lens' BeginTransactionRequest (Maybe BeginTransactionRequestIsolationLevel)
- data RunQueryRequest
- runQueryRequest :: RunQueryRequest
- rqrPartitionId :: Lens' RunQueryRequest (Maybe PartitionId)
- rqrGqlQuery :: Lens' RunQueryRequest (Maybe GqlQuery)
- rqrQuery :: Lens' RunQueryRequest (Maybe Query)
- rqrReadOptions :: Lens' RunQueryRequest (Maybe ReadOptions)
- data AllocateIdsRequest
- allocateIdsRequest :: AllocateIdsRequest
- airKeys :: Lens' AllocateIdsRequest [Key]
- data QueryResultBatchEntityResultType
- = Full
- | KeyOnly
- | Projection
- data CompositeFilter
- compositeFilter :: CompositeFilter
- cfOperator :: Lens' CompositeFilter (Maybe CompositeFilterOperator)
- cfFilters :: Lens' CompositeFilter [Filter]
- data CompositeFilterOperator = And
- data QueryResultBatchMoreResults
- data BeginTransactionResponse
- beginTransactionResponse :: BeginTransactionResponse
- btrTransaction :: Lens' BeginTransactionResponse (Maybe Word8)
- btrHeader :: Lens' BeginTransactionResponse (Maybe ResponseHeader)
- data MutationResult
- mutationResult :: MutationResult
- mrInsertAutoIdKeys :: Lens' MutationResult [Key]
- mrIndexUpdates :: Lens' MutationResult (Maybe Int32)
- data AllocateIdsResponse
- allocateIdsResponse :: AllocateIdsResponse
- aKeys :: Lens' AllocateIdsResponse [Key]
- aHeader :: Lens' AllocateIdsResponse (Maybe ResponseHeader)
- data GqlQuery
- gqlQuery :: GqlQuery
- gqAllowLiteral :: Lens' GqlQuery (Maybe Bool)
- gqNumberArgs :: Lens' GqlQuery [GqlQueryArg]
- gqQueryString :: Lens' GqlQuery (Maybe Text)
- gqNameArgs :: Lens' GqlQuery [GqlQueryArg]
- data RunQueryResponse
- runQueryResponse :: RunQueryResponse
- rqrBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch)
- rqrHeader :: Lens' RunQueryResponse (Maybe ResponseHeader)
- data Value
- value :: Value
- vKeyValue :: Lens' Value (Maybe Key)
- vBlobKeyValue :: Lens' Value (Maybe Text)
- vDateTimeValue :: Lens' Value (Maybe UTCTime)
- vIntegerValue :: Lens' Value (Maybe Int64)
- vEntityValue :: Lens' Value (Maybe Entity)
- vDoubleValue :: Lens' Value (Maybe Double)
- vStringValue :: Lens' Value (Maybe Text)
- vListValue :: Lens' Value [Value]
- vIndexed :: Lens' Value (Maybe Bool)
- vBooleanValue :: Lens' Value (Maybe Bool)
- vMeaning :: Lens' Value (Maybe Int32)
- vBlobValue :: Lens' Value (Maybe Word8)
- data LookupRequest
- lookupRequest :: LookupRequest
- lrKeys :: Lens' LookupRequest [Key]
- lrReadOptions :: Lens' LookupRequest (Maybe ReadOptions)
- data ReadOptionsReadConsistency
- data Mutation
- mutation :: Mutation
- mInsert :: Lens' Mutation [Entity]
- mForce :: Lens' Mutation (Maybe Bool)
- mInsertAutoId :: Lens' Mutation [Entity]
- mUpsert :: Lens' Mutation [Entity]
- mDelete :: Lens' Mutation [Key]
- mUpdate :: Lens' Mutation [Entity]
- data ResponseHeader
- responseHeader :: ResponseHeader
- rhKind :: Lens' ResponseHeader Text
- data KeyPathElement
- keyPathElement :: KeyPathElement
- kpeKind :: Lens' KeyPathElement (Maybe Text)
- kpeName :: Lens' KeyPathElement (Maybe Text)
- kpeId :: Lens' KeyPathElement (Maybe Int64)
- data PropertyReference
- propertyReference :: PropertyReference
- prName :: Lens' PropertyReference (Maybe Text)
- data GqlQueryArg
- gqlQueryArg :: GqlQueryArg
- gqaCursor :: Lens' GqlQueryArg (Maybe Word8)
- gqaValue :: Lens' GqlQueryArg (Maybe Value)
- gqaName :: Lens' GqlQueryArg (Maybe Text)
- data Key
- key :: Key
- kPartitionId :: Lens' Key (Maybe PartitionId)
- kPath :: Lens' Key [KeyPathElement]
- data PropertyFilterOperator
- data PropertyFilter
- propertyFilter :: PropertyFilter
- pfProperty :: Lens' PropertyFilter (Maybe PropertyReference)
- pfOperator :: Lens' PropertyFilter (Maybe PropertyFilterOperator)
- pfValue :: Lens' PropertyFilter (Maybe Value)
- data Query
- query :: Query
- qGroupBy :: Lens' Query [PropertyReference]
- qStartCursor :: Lens' Query (Maybe Word8)
- qOffSet :: Lens' Query (Maybe Int32)
- qEndCursor :: Lens' Query (Maybe Word8)
- qLimit :: Lens' Query (Maybe Int32)
- qProjection :: Lens' Query [PropertyExpression]
- qFilter :: Lens' Query (Maybe Filter)
- qKinds :: Lens' Query [KindExpression]
- qOrder :: Lens' Query [PropertyOrder]
- data EntityResult
- entityResult :: EntityResult
- erEntity :: Lens' EntityResult (Maybe Entity)
- data CommitResponse
- commitResponse :: CommitResponse
- crMutationResult :: Lens' CommitResponse (Maybe MutationResult)
- crHeader :: Lens' CommitResponse (Maybe ResponseHeader)
- data KindExpression
- kindExpression :: KindExpression
- keName :: Lens' KindExpression (Maybe Text)
- data ReadOptions
- readOptions :: ReadOptions
- roReadConsistency :: Lens' ReadOptions (Maybe ReadOptionsReadConsistency)
- roTransaction :: Lens' ReadOptions (Maybe Word8)
- data RollbackResponse
- rollbackResponse :: RollbackResponse
- rrHeader :: Lens' RollbackResponse (Maybe ResponseHeader)
- data PropertyExpression
- propertyExpression :: PropertyExpression
- peProperty :: Lens' PropertyExpression (Maybe PropertyReference)
- peAggregationFunction :: Lens' PropertyExpression (Maybe PropertyExpressionAggregationFunction)
- data Filter
- filter' :: Filter
- fCompositeFilter :: Lens' Filter (Maybe CompositeFilter)
- fPropertyFilter :: Lens' Filter (Maybe PropertyFilter)
- data BeginTransactionRequestIsolationLevel
- data CommitRequest
- commitRequest :: CommitRequest
- crMode :: Lens' CommitRequest (Maybe CommitRequestMode)
- crMutation :: Lens' CommitRequest (Maybe Mutation)
- crTransaction :: Lens' CommitRequest (Maybe Word8)
- crIgnoreReadOnly :: Lens' CommitRequest (Maybe Bool)
- data CommitRequestMode
- data PropertyExpressionAggregationFunction = First
- data Entity
- entity :: Entity
- eKey :: Lens' Entity (Maybe Key)
- eProperties :: Lens' Entity (Maybe EntityProperties)
- data LookupResponse
- lookupResponse :: LookupResponse
- lrDeferred :: Lens' LookupResponse [Key]
- lrFound :: Lens' LookupResponse [EntityResult]
- lrMissing :: Lens' LookupResponse [EntityResult]
- lrHeader :: Lens' LookupResponse (Maybe ResponseHeader)
- data PropertyOrder
- propertyOrder :: PropertyOrder
- poProperty :: Lens' PropertyOrder (Maybe PropertyReference)
- poDirection :: Lens' PropertyOrder (Maybe PropertyOrderDirection)
Service Configuration
datastoreService :: Service Source
Default request referring to version v1beta2
of the Google Cloud Datastore API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
userinfoEmailScope :: OAuthScope Source
View your email address
cloudPlatformScope :: OAuthScope Source
View and manage your data across Google Cloud Platform services
datastoreScope :: OAuthScope Source
View and manage your Google Cloud Datastore data
PropertyOrderDirection
data PropertyOrderDirection Source
The direction to order by. One of ascending or descending. Optional, defaults to ascending.
Ascending | ASCENDING |
Descending | DESCENDING |
RollbackRequest
data RollbackRequest Source
rollbackRequest :: RollbackRequest Source
Creates a value of RollbackRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rrTransaction :: Lens' RollbackRequest (Maybe Word8) Source
The transaction identifier, returned by a call to beginTransaction.
Property
An entity property.
See: property
smart constructor.
Creates a value of Property
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pEntityValue :: Lens' Property (Maybe Entity) Source
An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
pStringValue :: Lens' Property (Maybe Text) Source
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters.
pListValue :: Lens' Property [Value] Source
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
pIndexed :: Lens' Property (Maybe Bool) Source
If the value should be indexed. The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
pMeaning :: Lens' Property (Maybe Int32) Source
The meaning field is reserved and should not be used.
pBlobValue :: Lens' Property (Maybe Word8) Source
A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.
PartitionId
data PartitionId Source
An identifier for a particular subset of entities. Entities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth.
See: partitionId
smart constructor.
partitionId :: PartitionId Source
Creates a value of PartitionId
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
piNamespace :: Lens' PartitionId (Maybe Text) Source
The namespace.
piDataSetId :: Lens' PartitionId (Maybe Text) Source
The dataset ID.
QueryResultBatch
data QueryResultBatch Source
A batch of results produced by a query.
See: queryResultBatch
smart constructor.
queryResultBatch :: QueryResultBatch Source
Creates a value of QueryResultBatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
qrbSkippedResults :: Lens' QueryResultBatch (Maybe Int32) Source
The number of results skipped because of Query.offset.
qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType) Source
The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key.
qrbEntityResults :: Lens' QueryResultBatch [EntityResult] Source
The results for this batch.
qrbMoreResults :: Lens' QueryResultBatch (Maybe QueryResultBatchMoreResults) Source
The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults.
qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8) Source
A cursor that points to the position after the last result in the batch. May be absent. TODO(arfuller): Once all plans produce cursors update documentation here.
EntityProperties
data EntityProperties Source
The entity's properties.
See: entityProperties
smart constructor.
Creates a value of EntityProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
epAddtional :: Lens' EntityProperties (HashMap Text Property) Source
The name of the property. A property name matching regex ".*" is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. Cannot be "".
BeginTransactionRequest
beginTransactionRequest :: BeginTransactionRequest Source
Creates a value of BeginTransactionRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
btrIsolationLevel :: Lens' BeginTransactionRequest (Maybe BeginTransactionRequestIsolationLevel) Source
The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction.
RunQueryRequest
data RunQueryRequest Source
runQueryRequest :: RunQueryRequest Source
Creates a value of RunQueryRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rqrPartitionId :: Lens' RunQueryRequest (Maybe PartitionId) Source
Entities are partitioned into subsets, identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID, but all other partition IDs in RunQueryRequest are normalized with this partition ID as the context partition ID.
rqrGqlQuery :: Lens' RunQueryRequest (Maybe GqlQuery) Source
The GQL query to run. Either this field or field query must be set, but not both.
rqrQuery :: Lens' RunQueryRequest (Maybe Query) Source
The query to run. Either this field or field gql_query must be set, but not both.
rqrReadOptions :: Lens' RunQueryRequest (Maybe ReadOptions) Source
The options for this query.
AllocateIdsRequest
data AllocateIdsRequest Source
allocateIdsRequest :: AllocateIdsRequest Source
Creates a value of AllocateIdsRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
airKeys :: Lens' AllocateIdsRequest [Key] Source
A list of keys with incomplete key paths to allocate IDs for. No key may be reserved/read-only.
QueryResultBatchEntityResultType
data QueryResultBatchEntityResultType Source
The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key.
Full | FULL |
KeyOnly | KEY_ONLY |
Projection | PROJECTION |
CompositeFilter
data CompositeFilter Source
A filter that merges the multiple other filters using the given operation.
See: compositeFilter
smart constructor.
compositeFilter :: CompositeFilter Source
Creates a value of CompositeFilter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfOperator :: Lens' CompositeFilter (Maybe CompositeFilterOperator) Source
The operator for combining multiple filters. Only "and" is currently supported.
cfFilters :: Lens' CompositeFilter [Filter] Source
The list of filters to combine. Must contain at least one filter.
CompositeFilterOperator
data CompositeFilterOperator Source
The operator for combining multiple filters. Only "and" is currently supported.
And | AND |
QueryResultBatchMoreResults
data QueryResultBatchMoreResults Source
The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults.
MoreResultsAfterLimit | MORE_RESULTS_AFTER_LIMIT |
NotFinished | NOT_FINISHED |
NoMoreResults | NO_MORE_RESULTS |
BeginTransactionResponse
beginTransactionResponse :: BeginTransactionResponse Source
Creates a value of BeginTransactionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
btrTransaction :: Lens' BeginTransactionResponse (Maybe Word8) Source
The transaction identifier (always present).
MutationResult
data MutationResult Source
mutationResult :: MutationResult Source
Creates a value of MutationResult
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mrInsertAutoIdKeys :: Lens' MutationResult [Key] Source
Keys for insertAutoId entities. One per entity from the request, in the same order.
mrIndexUpdates :: Lens' MutationResult (Maybe Int32) Source
Number of index writes.
AllocateIdsResponse
allocateIdsResponse :: AllocateIdsResponse Source
Creates a value of AllocateIdsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aKeys :: Lens' AllocateIdsResponse [Key] Source
The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.
GqlQuery
A GQL query.
See: gqlQuery
smart constructor.
Creates a value of GqlQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gqAllowLiteral :: Lens' GqlQuery (Maybe Bool) Source
When false, the query string must not contain a literal.
gqNumberArgs :: Lens' GqlQuery [GqlQueryArg] Source
Numbered binding site '1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For each binding site numbered i in query_string, there must be an ith numbered argument. The inverse must also be true.
gqNameArgs :: Lens' GqlQuery [GqlQueryArg] Source
A named argument must set field GqlQueryArg.name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse.
RunQueryResponse
data RunQueryResponse Source
runQueryResponse :: RunQueryResponse Source
Creates a value of RunQueryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rqrBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch) Source
A batch of query results (always present).
Value
A message that can hold any of the supported value types and associated metadata.
See: value
smart constructor.
Creates a value of Value
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vEntityValue :: Lens' Value (Maybe Entity) Source
An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
vStringValue :: Lens' Value (Maybe Text) Source
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters.
vListValue :: Lens' Value [Value] Source
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
vIndexed :: Lens' Value (Maybe Bool) Source
If the value should be indexed. The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
vBlobValue :: Lens' Value (Maybe Word8) Source
A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.
LookupRequest
data LookupRequest Source
lookupRequest :: LookupRequest Source
Creates a value of LookupRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrKeys :: Lens' LookupRequest [Key] Source
Keys of entities to look up from the datastore.
lrReadOptions :: Lens' LookupRequest (Maybe ReadOptions) Source
Options for this lookup request. Optional.
ReadOptionsReadConsistency
data ReadOptionsReadConsistency Source
The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default.
Mutation
A set of changes to apply.
See: mutation
smart constructor.
mInsert :: Lens' Mutation [Entity] Source
Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only.
mInsertAutoId :: Lens' Mutation [Entity] Source
Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only.
mUpsert :: Lens' Mutation [Entity] Source
Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only.
mDelete :: Lens' Mutation [Key] Source
Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only.
mUpdate :: Lens' Mutation [Entity] Source
Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only.
ResponseHeader
data ResponseHeader Source
responseHeader :: ResponseHeader Source
Creates a value of ResponseHeader
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rhKind :: Lens' ResponseHeader Text Source
Identifies what kind of resource this is. Value: the fixed string "datastore#responseHeader".
KeyPathElement
data KeyPathElement Source
A (kind, ID/name) pair used to construct a key path. At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
See: keyPathElement
smart constructor.
keyPathElement :: KeyPathElement Source
Creates a value of KeyPathElement
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
kpeKind :: Lens' KeyPathElement (Maybe Text) Source
The kind of the entity. A kind matching regex ".*" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
kpeName :: Lens' KeyPathElement (Maybe Text) Source
The name of the entity. A name matching regex ".*" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
kpeId :: Lens' KeyPathElement (Maybe Int64) Source
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.
PropertyReference
data PropertyReference Source
A reference to a property relative to the kind expressions.
See: propertyReference
smart constructor.
propertyReference :: PropertyReference Source
Creates a value of PropertyReference
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
GqlQueryArg
data GqlQueryArg Source
A binding argument for a GQL query.
See: gqlQueryArg
smart constructor.
gqlQueryArg :: GqlQueryArg Source
Creates a value of GqlQueryArg
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gqaName :: Lens' GqlQueryArg (Maybe Text) Source
Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex ".*". Must not be "".
Key
A unique identifier for an entity.
See: key
smart constructor.
Creates a value of Key
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
kPartitionId :: Lens' Key (Maybe PartitionId) Source
Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
kPath :: Lens' Key [KeyPathElement] Source
The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.
PropertyFilterOperator
data PropertyFilterOperator Source
The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor.
Equal | EQUAL |
GreaterThan | GREATER_THAN |
GreaterThanOrEqual | GREATER_THAN_OR_EQUAL |
HasAncestor | HAS_ANCESTOR |
LessThan | LESS_THAN |
LessThanOrEqual | LESS_THAN_OR_EQUAL |
PropertyFilter
data PropertyFilter Source
A filter on a specific property.
See: propertyFilter
smart constructor.
propertyFilter :: PropertyFilter Source
Creates a value of PropertyFilter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pfProperty :: Lens' PropertyFilter (Maybe PropertyReference) Source
The property to filter by.
pfOperator :: Lens' PropertyFilter (Maybe PropertyFilterOperator) Source
The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor.
Query
A query.
See: query
smart constructor.
Creates a value of Query
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
qGroupBy :: Lens' Query [PropertyReference] Source
The properties to group by (if empty, no grouping is applied to the result set).
qStartCursor :: Lens' Query (Maybe Word8) Source
A starting point for the query results. Optional. Query cursors are returned in query result batches.
qOffSet :: Lens' Query (Maybe Int32) Source
The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0).
qEndCursor :: Lens' Query (Maybe Word8) Source
An ending point for the query results. Optional. Query cursors are returned in query result batches.
qLimit :: Lens' Query (Maybe Int32) Source
The maximum number of results to return. Applies after all other constraints. Optional.
qProjection :: Lens' Query [PropertyExpression] Source
The projection to return. If not set the entire entity is returned.
qKinds :: Lens' Query [KindExpression] Source
The kinds to query (if empty, returns entities from all kinds).
qOrder :: Lens' Query [PropertyOrder] Source
The order to apply to the query results (if empty, order is unspecified).
EntityResult
data EntityResult Source
The result of fetching an entity from the datastore.
See: entityResult
smart constructor.
entityResult :: EntityResult Source
Creates a value of EntityResult
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
CommitResponse
data CommitResponse Source
commitResponse :: CommitResponse Source
Creates a value of CommitResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crMutationResult :: Lens' CommitResponse (Maybe MutationResult) Source
The result of performing the mutation (if any).
KindExpression
data KindExpression Source
A representation of a kind.
See: kindExpression
smart constructor.
kindExpression :: KindExpression Source
Creates a value of KindExpression
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ReadOptions
data ReadOptions Source
readOptions :: ReadOptions Source
Creates a value of ReadOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
roReadConsistency :: Lens' ReadOptions (Maybe ReadOptionsReadConsistency) Source
The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default.
roTransaction :: Lens' ReadOptions (Maybe Word8) Source
The transaction to use. Optional.
RollbackResponse
data RollbackResponse Source
rollbackResponse :: RollbackResponse Source
Creates a value of RollbackResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
PropertyExpression
data PropertyExpression Source
A representation of a property in a projection.
See: propertyExpression
smart constructor.
propertyExpression :: PropertyExpression Source
Creates a value of PropertyExpression
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
peProperty :: Lens' PropertyExpression (Maybe PropertyReference) Source
The property to project.
peAggregationFunction :: Lens' PropertyExpression (Maybe PropertyExpressionAggregationFunction) Source
The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order.
Filter
A holder for any type of filter. Exactly one field should be specified.
See: filter'
smart constructor.
Creates a value of Filter
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fCompositeFilter :: Lens' Filter (Maybe CompositeFilter) Source
A composite filter.
fPropertyFilter :: Lens' Filter (Maybe PropertyFilter) Source
A filter on a property.
BeginTransactionRequestIsolationLevel
data BeginTransactionRequestIsolationLevel Source
The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction.
Serializable | SERIALIZABLE |
Snapshot | SNAPSHOT |
CommitRequest
data CommitRequest Source
commitRequest :: CommitRequest Source
Creates a value of CommitRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crMode :: Lens' CommitRequest (Maybe CommitRequestMode) Source
The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL.
crMutation :: Lens' CommitRequest (Maybe Mutation) Source
The mutation to perform. Optional.
crTransaction :: Lens' CommitRequest (Maybe Word8) Source
The transaction identifier, returned by a call to beginTransaction. Must be set when mode is TRANSACTIONAL.
CommitRequestMode
data CommitRequestMode Source
The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL.
NonTransactional | NON_TRANSACTIONAL |
Transactional | TRANSACTIONAL |
PropertyExpressionAggregationFunction
data PropertyExpressionAggregationFunction Source
The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order.
First | FIRST |
Entity
An entity.
See: entity
smart constructor.
Creates a value of Entity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
eKey :: Lens' Entity (Maybe Key) Source
The entity's key. An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
eProperties :: Lens' Entity (Maybe EntityProperties) Source
The entity's properties.
LookupResponse
data LookupResponse Source
lookupResponse :: LookupResponse Source
Creates a value of LookupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrDeferred :: Lens' LookupResponse [Key] Source
A list of keys that were not looked up due to resource constraints.
lrFound :: Lens' LookupResponse [EntityResult] Source
Entities found.
lrMissing :: Lens' LookupResponse [EntityResult] Source
Entities not found, with only the key populated.
PropertyOrder
data PropertyOrder Source
The desired order for a specific property.
See: propertyOrder
smart constructor.
propertyOrder :: PropertyOrder Source
Creates a value of PropertyOrder
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
poProperty :: Lens' PropertyOrder (Maybe PropertyReference) Source
The property to order by.
poDirection :: Lens' PropertyOrder (Maybe PropertyOrderDirection) Source
The direction to order by. One of ascending or descending. Optional, defaults to ascending.