FSharp.Azure.Cosmos 1.1.0

Edit this page

PatchConcurrentlyBuilder<'T, 'E> Type

Computation expression builder for PatchConcurrentlyOperation{T, E}.

Constructors

Constructor Description

PatchConcurrentlyBuilder(enableContentResponseOnWrite)

Full Usage: PatchConcurrentlyBuilder(enableContentResponseOnWrite)

Parameters:
    enableContentResponseOnWrite : bool

Returns: PatchConcurrentlyBuilder<'T, 'E>
enableContentResponseOnWrite : bool
Returns: PatchConcurrentlyBuilder<'T, 'E>

Instance members

Instance member Description

consistencyLevel consistencyLevel

Full Usage: consistencyLevel consistencyLevel

Parameters:
Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the operation ConsistencyLevel

consistencyLevel : Nullable<ConsistencyLevel>
Returns: PatchConcurrentlyOperation<'a, 'b>

enableContentResponseOnWrite enableContentResponseOnWrite

Full Usage: enableContentResponseOnWrite enableContentResponseOnWrite

Parameters:
    enableContentResponseOnWrite : bool

Returns: PatchConcurrentlyOperation<'a, 'b>

Sets if the response should include the content of the item after the operation

enableContentResponseOnWrite : bool
Returns: PatchConcurrentlyOperation<'a, 'b>

filterPredicate filterPredicate

Full Usage: filterPredicate filterPredicate

Parameters:
    filterPredicate : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the filter predicate

filterPredicate : string
Returns: PatchConcurrentlyOperation<'a, 'b>

id id

Full Usage: id id

Parameters:
    id : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the Id of an item being patched

id : string
Returns: PatchConcurrentlyOperation<'a, 'b>

indexingDirective indexingDirective

Full Usage: indexingDirective indexingDirective

Parameters:
Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the indexing directive

indexingDirective : Nullable<IndexingDirective>
Returns: PatchConcurrentlyOperation<'a, 'b>

partitionKey partitionKey

Full Usage: partitionKey partitionKey

Parameters:
    partitionKey : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the partition key

partitionKey : string
Returns: PatchConcurrentlyOperation<'a, 'b>

partitionKey partitionKey

Full Usage: partitionKey partitionKey

Parameters:
Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the partition key

partitionKey : PartitionKey
Returns: PatchConcurrentlyOperation<'a, 'b>

postTrigger trigger

Full Usage: postTrigger trigger

Parameters:
    trigger : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Adds a trigger to be invoked after the operation

trigger : string
Returns: PatchConcurrentlyOperation<'a, 'b>

postTriggers triggers

Full Usage: postTriggers triggers

Parameters:
    triggers : string seq

Returns: PatchConcurrentlyOperation<'a, 'b>

Adds triggers to be invoked after the operation

triggers : string seq
Returns: PatchConcurrentlyOperation<'a, 'b>

preTrigger trigger

Full Usage: preTrigger trigger

Parameters:
    trigger : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Adds a trigger to be invoked before the operation

trigger : string
Returns: PatchConcurrentlyOperation<'a, 'b>

preTriggers triggers

Full Usage: preTriggers triggers

Parameters:
    triggers : string seq

Returns: PatchConcurrentlyOperation<'a, 'b>

Adds triggers to be invoked before the operation

triggers : string seq
Returns: PatchConcurrentlyOperation<'a, 'b>

requestOptions options

Full Usage: requestOptions options

Parameters:
Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the request options

options : PatchItemRequestOptions
Returns: PatchConcurrentlyOperation<'a, 'b>

sessionToken sessionToken

Full Usage: sessionToken sessionToken

Parameters:
    sessionToken : string

Returns: PatchConcurrentlyOperation<'a, 'b>

Sets the session token

sessionToken : string
Returns: PatchConcurrentlyOperation<'a, 'b>

update update

Full Usage: update update

Parameters:
Returns: PatchConcurrentlyOperation<'T, 'E>

Sets the function that computes the patch operations to apply from the current item.

The function runs once per attempt: after every precondition failure (HTTP 412) the item is read again and the function is called again with the fresh item, so it must not have side effects that are unsafe to repeat. Returning an error stops the operation and reports that error through PatchConcurrentResult{T, E}.

update : 'T -> Task<Result<PatchOperation list, 'E>>
Returns: PatchConcurrentlyOperation<'T, 'E>

this.Yield

Full Usage: this.Yield

Parameters:
    arg0 : 'a

Returns: PatchConcurrentlyOperation<'T, 'E>
arg0 : 'a
Returns: PatchConcurrentlyOperation<'T, 'E>