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 |
---|---|
SecretKey | Gets the encrypted secret key for the object being committed. |
BranchSecretKey | Gets the encrypted secret key for the branch receiving the commit. |
Length | Gets the size of the content being committed. |
DecryptedBranchSecret | Gets the decrypted secret information for the branch receiving the commit. |
DecryptedObjectSecret | Gets the decrypted secret information for the object being committed. |
CreatedAt | Gets the timestamp when the commit was created. |
CreatedBy | Gets the ID of the user creating the commit. |
CommitMessage | Gets the message describing the changes in this commit. |
Constructors
Name | Description |
---|---|
CreateCommitRequest() | Initializes a new instance of the CreateCommitRequest class. |
CreateCommitRequest(secretKey, branchSecretKey, commitMessage, length, createdBy, createdAt) | Initializes a new instance of the CreateCommitRequest class with complete commit information. |
CreateCommitRequest(secretKey, branchSecretKey, commitMessage, length) | Initializes a new instance of the CreateCommitRequest class with essential commit information. |