Skip to main content

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

NameDescription
SecretKeyGets the encrypted secret key for the object being committed.
BranchSecretKeyGets the encrypted secret key for the branch receiving the commit.
LengthGets the size of the content being committed.
DecryptedBranchSecretGets the decrypted secret information for the branch receiving the commit.
DecryptedObjectSecretGets the decrypted secret information for the object being committed.
CreatedAtGets the timestamp when the commit was created.
CreatedByGets the ID of the user creating the commit.
CommitMessageGets the message describing the changes in this commit.

Constructors

NameDescription
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.