LoadTestingModelFactory.TestProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of TestProfile.
public static Azure.Developer.LoadTesting.TestProfile TestProfile(string testProfileId = default, string displayName = default, string description = default, string testId = default, Azure.Core.ResourceIdentifier targetResourceId = default, Azure.Developer.LoadTesting.TargetResourceConfigurations targetResourceConfigurations = default, DateTimeOffset? createdDateTime = default, string createdBy = default, DateTimeOffset? lastModifiedDateTime = default, string lastModifiedBy = default);
static member TestProfile : string * string * string * string * Azure.Core.ResourceIdentifier * Azure.Developer.LoadTesting.TargetResourceConfigurations * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * string -> Azure.Developer.LoadTesting.TestProfile
Public Shared Function TestProfile (Optional testProfileId As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional testId As String = Nothing, Optional targetResourceId As ResourceIdentifier = Nothing, Optional targetResourceConfigurations As TargetResourceConfigurations = Nothing, Optional createdDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional createdBy As String = Nothing, Optional lastModifiedDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedBy As String = Nothing) As TestProfile
Parameters
- testProfileId
- String
Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
- displayName
- String
Display name of the test profile.
- description
- String
Description for the test profile.
- testId
- String
Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.
- targetResourceId
- ResourceIdentifier
Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.
- targetResourceConfigurations
- TargetResourceConfigurations
Configurations of the target resource on which testing would be done. Please note TargetResourceConfigurations is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FunctionFlexConsumptionTargetResourceConfigurations.
- createdDateTime
- Nullable<DateTimeOffset>
The creation datetime(RFC 3339 literal format).
- createdBy
- String
The user that created.
- lastModifiedDateTime
- Nullable<DateTimeOffset>
The last Modified datetime(RFC 3339 literal format).
- lastModifiedBy
- String
The user that last modified.
Returns
A new TestProfile instance for mocking.