Table of Contents

Interface IWithChildResource<ParentT>

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

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

public interface IWithChildResource<ParentT>

Type Parameters

ParentT

The stage of the parent definition to return to after attaching this definition.

Methods

WithStoredProcedure(string, SqlStoredProcedureResource, CreateUpdateOptions)

Specifies a stored procedure.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.

WithStoredProcedure(string, string, CreateUpdateOptions)

Specifies a stored procedure.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.

WithTrigger(string, SqlTriggerResource, CreateUpdateOptions)

Specifies a trigger.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.

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

Specifies a trigger.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.

WithUserDefinedFunction(string, SqlUserDefinedFunctionResource, CreateUpdateOptions)

Specifies a user defined function.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.

WithUserDefinedFunction(string, string, CreateUpdateOptions)

Specifies a user defined function.

IWithAttach<ParentT> 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

IWithAttach<ParentT>

The next stage of the definition.