Table of Contents

Interface IWithChildResource

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The stage of a SQL container update allowing to specify child resource.

public interface IWithChildResource

Methods

WithStoredProcedure(string, SqlStoredProcedureResource, CreateUpdateOptions)

Specifies a stored procedure.

IUpdate WithStoredProcedure(string name, SqlStoredProcedureResource resource, CreateUpdateOptions options = null)

Parameters

name string

The name of the stored procedure.

resource SqlStoredProcedureResource

The store procedure resource, no need to specify id.

options CreateUpdateOptions

The options for the store procedure.

Returns

IUpdate

The next stage of the update.

WithStoredProcedure(string, string, CreateUpdateOptions)

Specifies a stored procedure.

IUpdate WithStoredProcedure(string name, string body, CreateUpdateOptions options = null)

Parameters

name string

The name of the stored procedure.

body string

The store procedure body.

options CreateUpdateOptions

The options for the store procedure.

Returns

IUpdate

The next stage of the update.

WithTrigger(string, SqlTriggerResource, CreateUpdateOptions)

Specifies a trigger.

IUpdate WithTrigger(string name, SqlTriggerResource resource, CreateUpdateOptions options = null)

Parameters

name string

The name of the trigger.

resource SqlTriggerResource

The trigger resource, no need to specify id.

options CreateUpdateOptions

The options for the trigger.

Returns

IUpdate

The next stage of the update.

WithTrigger(string, string, TriggerType, TriggerOperation, CreateUpdateOptions)

Specifies a trigger.

IUpdate WithTrigger(string name, string body, TriggerType triggerType, TriggerOperation triggerOperation, CreateUpdateOptions options = null)

Parameters

name string

The name of the trigger.

body string

The trigger body.

triggerType TriggerType

The trigger type.

triggerOperation TriggerOperation

The trigger operation.

options CreateUpdateOptions

The options for the trigger.

Returns

IUpdate

The next stage of the update.

WithUserDefinedFunction(string, SqlUserDefinedFunctionResource, CreateUpdateOptions)

Specifies a user defined function.

IUpdate WithUserDefinedFunction(string name, SqlUserDefinedFunctionResource resource, CreateUpdateOptions options = null)

Parameters

name string

The name of the user defined function.

resource SqlUserDefinedFunctionResource

The user defined function resource, no need to specify id.

options CreateUpdateOptions

The options for the user defined function.

Returns

IUpdate

The next stage of the update.

WithUserDefinedFunction(string, string, CreateUpdateOptions)

Specifies a user defined function.

IUpdate WithUserDefinedFunction(string name, string body, CreateUpdateOptions options = null)

Parameters

name string

The name of the user defined function.

body string

The user defined function body.

options CreateUpdateOptions

The options for the user defined function.

Returns

IUpdate

The next stage of the update.

WithoutStoredProcedure(string)

Removes a stored procedure.

IUpdate WithoutStoredProcedure(string name)

Parameters

name string

The name of the stored procedure.

Returns

IUpdate

The next stage of the update.

WithoutTrigger(string)

Removes a trigger.

IUpdate WithoutTrigger(string name)

Parameters

name string

The name of the trigger.

Returns

IUpdate

The next stage of the update.

WithoutUserDefinedFunction(string)

Removes a user defined function.

IUpdate WithoutUserDefinedFunction(string name)

Parameters

name string

The name of the user defined function.

Returns

IUpdate

The next stage of the update.