DevCenterModelFactory.DevBox 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 DevBox.
public static Azure.Developer.DevCenter.Models.DevBox DevBox (string name = default, string projectName = default, string poolName = default, Azure.Developer.DevCenter.Models.HibernateSupport? hibernateSupport = default, Azure.Developer.DevCenter.Models.DevBoxProvisioningState? provisioningState = default, string actionState = default, Azure.Developer.DevCenter.Models.PowerState? powerState = default, Guid? uniqueId = default, Azure.ResponseError error = default, Azure.Core.AzureLocation? location = default, Azure.Developer.DevCenter.Models.DevBoxOSType? osType = default, Guid? userId = default, Azure.Developer.DevCenter.Models.DevBoxHardwareProfile hardwareProfile = default, Azure.Developer.DevCenter.Models.DevBoxStorageProfile storageProfile = default, Azure.Developer.DevCenter.Models.DevBoxImageReference imageReference = default, DateTimeOffset? createdTime = default, Azure.Developer.DevCenter.Models.LocalAdministratorStatus? localAdministratorStatus = default);
static member DevBox : string * string * string * Nullable<Azure.Developer.DevCenter.Models.HibernateSupport> * Nullable<Azure.Developer.DevCenter.Models.DevBoxProvisioningState> * string * Nullable<Azure.Developer.DevCenter.Models.PowerState> * Nullable<Guid> * Azure.ResponseError * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.Developer.DevCenter.Models.DevBoxOSType> * Nullable<Guid> * Azure.Developer.DevCenter.Models.DevBoxHardwareProfile * Azure.Developer.DevCenter.Models.DevBoxStorageProfile * Azure.Developer.DevCenter.Models.DevBoxImageReference * Nullable<DateTimeOffset> * Nullable<Azure.Developer.DevCenter.Models.LocalAdministratorStatus> -> Azure.Developer.DevCenter.Models.DevBox
Public Shared Function DevBox (Optional name As String = Nothing, Optional projectName As String = Nothing, Optional poolName As String = Nothing, Optional hibernateSupport As Nullable(Of HibernateSupport) = Nothing, Optional provisioningState As Nullable(Of DevBoxProvisioningState) = Nothing, Optional actionState As String = Nothing, Optional powerState As Nullable(Of PowerState) = Nothing, Optional uniqueId As Nullable(Of Guid) = Nothing, Optional error As ResponseError = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional osType As Nullable(Of DevBoxOSType) = Nothing, Optional userId As Nullable(Of Guid) = Nothing, Optional hardwareProfile As DevBoxHardwareProfile = Nothing, Optional storageProfile As DevBoxStorageProfile = Nothing, Optional imageReference As DevBoxImageReference = Nothing, Optional createdTime As Nullable(Of DateTimeOffset) = Nothing, Optional localAdministratorStatus As Nullable(Of LocalAdministratorStatus) = Nothing) As DevBox
Parameters
- name
- String
Display name for the Dev Box.
- projectName
- String
Name of the project this Dev Box belongs to.
- poolName
- String
The name of the Dev Box pool this machine belongs to.
- hibernateSupport
- Nullable<HibernateSupport>
Indicates whether hibernate is enabled/disabled or unknown.
- provisioningState
- Nullable<DevBoxProvisioningState>
The current provisioning state of the Dev Box.
- actionState
- String
The current action state of the Dev Box. This is state is based on previous action performed by user.
- powerState
- Nullable<PowerState>
The current power state of the Dev Box.
A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
- error
- ResponseError
Provisioning or action error details. Populated only for error states.
- location
- Nullable<AzureLocation>
Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to.
- osType
- Nullable<DevBoxOSType>
The operating system type of this Dev Box.
- hardwareProfile
- DevBoxHardwareProfile
Information about the Dev Box's hardware resources.
- storageProfile
- DevBoxStorageProfile
Storage settings for this Dev Box.
- imageReference
- DevBoxImageReference
Information about the image used for this Dev Box.
- createdTime
- Nullable<DateTimeOffset>
Creation time of this Dev Box.
- localAdministratorStatus
- Nullable<LocalAdministratorStatus>
Indicates whether the owner of the Dev Box is a local administrator.
Returns
A new DevBox instance for mocking.
Applies to
Azure SDK for .NET