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
stringThe name of the stored procedure.
resource
SqlStoredProcedureResourceThe store procedure resource, no need to specify id.
options
CreateUpdateOptionsThe 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
stringThe name of the stored procedure.
body
stringThe store procedure body.
options
CreateUpdateOptionsThe 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
stringThe name of the trigger.
resource
SqlTriggerResourceThe trigger resource, no need to specify id.
options
CreateUpdateOptionsThe 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
stringThe name of the trigger.
body
stringThe trigger body.
triggerType
TriggerTypeThe trigger type.
triggerOperation
TriggerOperationThe trigger operation.
options
CreateUpdateOptionsThe 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
stringThe name of the user defined function.
resource
SqlUserDefinedFunctionResourceThe user defined function resource, no need to specify id.
options
CreateUpdateOptionsThe 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
stringThe name of the user defined function.
body
stringThe user defined function body.
options
CreateUpdateOptionsThe options for the user defined function.
Returns
- IWithAttach<ParentT>
The next stage of the definition.