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
stringThe name of the stored procedure.
resource
SqlStoredProcedureResourceThe store procedure resource, no need to specify id.
options
CreateUpdateOptionsThe 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
stringThe name of the stored procedure.
body
stringThe store procedure body.
options
CreateUpdateOptionsThe 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
stringThe name of the trigger.
resource
SqlTriggerResourceThe trigger resource, no need to specify id.
options
CreateUpdateOptionsThe 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
stringThe name of the trigger.
body
stringThe trigger body.
triggerType
TriggerTypeThe trigger type.
triggerOperation
TriggerOperationThe trigger operation.
options
CreateUpdateOptionsThe 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
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
- 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
stringThe name of the user defined function.
body
stringThe user defined function body.
options
CreateUpdateOptionsThe 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
stringThe name of the stored procedure.
Returns
- IUpdate
The next stage of the update.
WithoutTrigger(string)
Removes a trigger.
IUpdate WithoutTrigger(string name)
Parameters
name
stringThe 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
stringThe name of the user defined function.
Returns
- IUpdate
The next stage of the update.