CreateRepositoryRequest Constructors
An object defining constructors for the CreateRepositoryRequest class.
CreateRepositoryRequest()
Initializes a new instance of the CreateRepositoryRequest class.
Provides a default constructor for creating instances of the CreateRepositoryRequest class.
CreateRepositoryRequest()
Initializes a new instance of the CreateRepositoryRequest class.
CreateRepositoryRequest(name, description, createdBy, createdAt)
Initializes a new instance of the CreateRepositoryRequest class with multilingual content and audit information.
Parameters:
name (required): Dictionary<string, string>
A dictionary mapping language codes to localized names for the repository.
description (required): Dictionary<string, string>
A dictionary mapping language codes to localized descriptions for the repository.
createdBy (optional): long?
The ID of the user creating the repository.
createdAt (optional): DateTimeOffset?
The timestamp when the repository was created.
This constructor, marked with the JsonConstructor attribute for JSON deserialization support, creates a new CreateRepositoryRequest instance with complete information. It passes all parameters to the base class constructor to handle both multilingual content and audit information for the repository creation process.
CreateRepositoryRequest(name, description)
Initializes a new instance of the CreateRepositoryRequest class with multilingual name and description mappings.
Parameters:
name (required): Dictionary<string, string>
A dictionary mapping language codes to localized names for the repository.
description (required): Dictionary<string, string>
A dictionary mapping language codes to localized descriptions for the repository.
This constructor creates a new CreateRepositoryRequest instance by calling the parameterized constructor with null values for createdBy and createdAt. It provides a simpler way to create a repository when audit information is not needed, focusing only on the multilingual content.
CreateRepositoryRequest(name, description)
Initializes a new instance of the CreateRepositoryRequest class with the specified name and description.
Parameters:
name (required): Dictionary<string, string>
The name of the object in multiple languages.
description (required): Dictionary<string, string>
The description of the object in multiple languages.
Sets the properties Name and Description to the provided values, with default values for CreatedBy and CreatedAt.
CreateRepositoryRequest(name, description, createdBy, createdAt)
Initializes a new instance of the CreateRepositoryRequest class with the specified details.
Parameters:
name (required): Dictionary<string, string>
The name of the object in multiple languages.
description (required): Dictionary<string, string>
The description of the object in multiple languages.
createdBy (optional): long?
The identifier of the user who created the object.
createdAt (optional): DateTimeOffset?
The date and time when the object was created.
Sets the properties Name, Description, CreatedBy, and CreatedAt to the provided values.