CreateBranchRequest Constructors
An object defining constructors for the CreateBranchRequest class.
CreateBranchRequest()
Initializes a new instance of the CreateBranchRequest
class.
CreateBranchRequest(secretKey, versionSecretKey)
Initializes a new instance of the CreateBranchRequest
class with security keys.
Parameters:
secretKey (required): string
The encrypted secret key for the object being branched.
versionSecretKey (required): string
The encrypted secret key for the source version.
This constructor creates a new CreateBranchRequest instance by calling the parameterized constructor with null values for createdBy and createdAt. It provides a simpler way to create branches when audit information is not needed, focusing only on the security keys for object and version access.
CreateBranchRequest(secretKey, versionSecretKey, createdBy, createdAt)
Initializes a new instance of the CreateBranchRequest
class with complete information.
Parameters:
secretKey (required): string
The encrypted secret key for the object being branched.
versionSecretKey (required): string
The encrypted secret key for the source version.
createdBy (optional): long?
The ID of the user creating the branch.
createdAt (optional): DateTimeOffset?
The timestamp when the branch was created.
This constructor, marked with the JsonConstructor attribute for JSON deserialization support, creates a new CreateBranchRequest instance with complete information. It initializes both the security keys and optional audit information, allowing for full tracking of the branch creation process.