Udostępnij za pośrednictwem


ArmContainerInstanceModelFactory.ContainerInstanceView Method

Definition

Initializes a new instance of ContainerInstanceView.

public static Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView ContainerInstanceView (int? restartCount = default, Azure.ResourceManager.ContainerInstance.Models.ContainerState currentState = default, Azure.ResourceManager.ContainerInstance.Models.ContainerState previousState = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEvent> events = default);
static member ContainerInstanceView : Nullable<int> * Azure.ResourceManager.ContainerInstance.Models.ContainerState * Azure.ResourceManager.ContainerInstance.Models.ContainerState * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEvent> -> Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView
Public Shared Function ContainerInstanceView (Optional restartCount As Nullable(Of Integer) = Nothing, Optional currentState As ContainerState = Nothing, Optional previousState As ContainerState = Nothing, Optional events As IEnumerable(Of ContainerEvent) = Nothing) As ContainerInstanceView

Parameters

restartCount
Nullable<Int32>

The number of times that the container instance has been restarted.

currentState
ContainerState

Current container instance state.

previousState
ContainerState

Previous container instance state.

events
IEnumerable<ContainerEvent>

The events of the container instance.

Returns

A new ContainerInstanceView instance for mocking.

Applies to