Class SqlTriggerResource
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
Cosmos DB SQL trigger resource object
public class SqlTriggerResource
- Inheritance
-
SqlTriggerResource
- Inherited Members
Constructors
SqlTriggerResource()
Initializes a new instance of the SqlTriggerResource class.
public SqlTriggerResource()
SqlTriggerResource(string, string, TriggerType, TriggerOperation)
Initializes a new instance of the SqlTriggerResource class.
public SqlTriggerResource(string id, string body = null, TriggerType triggerType = null, TriggerOperation triggerOperation = null)
Parameters
id
stringName of the Cosmos DB SQL trigger
body
stringBody of the Trigger
triggerType
TriggerTypeType of the Trigger. Possible values include: 'Pre', 'Post'
triggerOperation
TriggerOperationThe operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'
Properties
Body
Gets or sets body of the Trigger
public string Body { get; set; }
Property Value
Id
Gets or sets name of the Cosmos DB SQL trigger
public string Id { get; set; }
Property Value
TriggerOperation
Gets or sets the operation the trigger is associated with. Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace'
public TriggerOperation TriggerOperation { get; set; }
Property Value
TriggerType
Gets or sets type of the Trigger. Possible values include: 'Pre', 'Post'
public TriggerType TriggerType { get; set; }
Property Value
Methods
Validate()
Validate the object.
public virtual void Validate()
Exceptions
- Microsoft.Rest.ValidationException
Thrown if validation fails