CreateCommitRequest
Represents a request to create a new commit in the document management system's version control.
This class extends BaseRequest to handle commit creation operations. It manages security through encrypted/decrypted keys for both the object and its branch, while also maintaining commit-specific information such as the message and content length. The class supports audit tracking through optional creation metadata and implements secure version control patterns.
Properties
| Name | Description |
|---|---|
| CommitMessage | Gets the message describing the changes in this commit. |
| DecryptedObjectSecret | Gets the decrypted secret information for the object being committed. |
| Length | Gets the size of the content being committed. |
| SecretKey | Gets the encrypted secret key for the object being committed. |
| DecryptedBranchSecret | Gets the decrypted secret information for the branch receiving the commit. |
| CreatedAt | Gets the timestamp when the commit was created. |
| CreatedBy | Gets the ID of the user creating the commit. |
| BranchSecretKey | Gets the encrypted secret key for the branch receiving the commit. |
Constructors
| Name | Description |
|---|---|
| CreateCommitRequest(secretKey, branchSecretKey, commitMessage, length, createdBy, createdAt) | Initializes a new instance of the CreateCommitRequest class with complete commit information. |
| CreateCommitRequest() | Initializes a new instance of the CreateCommitRequest class. |
| CreateCommitRequest(secretKey, branchSecretKey, commitMessage, length) | Initializes a new instance of the CreateCommitRequest class with essential commit information. |