Udostępnij za pośrednictwem


ArmHybridNetworkModelFactory.KubernetesPod Method

Definition

Initializes a new instance of KubernetesPod.

public static Azure.ResourceManager.HybridNetwork.Models.KubernetesPod KubernetesPod (string name = default, string namespace = default, int? desiredNumberOfContainers = default, int? readyNumberOfContainers = default, Azure.ResourceManager.HybridNetwork.Models.PodStatus? status = default, DateTimeOffset? createdOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridNetwork.Models.PodEvent> events = default);
static member KubernetesPod : string * string * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.HybridNetwork.Models.PodStatus> * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.HybridNetwork.Models.PodEvent> -> Azure.ResourceManager.HybridNetwork.Models.KubernetesPod
Public Shared Function KubernetesPod (Optional name As String = Nothing, Optional namespace As String = Nothing, Optional desiredNumberOfContainers As Nullable(Of Integer) = Nothing, Optional readyNumberOfContainers As Nullable(Of Integer) = Nothing, Optional status As Nullable(Of PodStatus) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional events As IEnumerable(Of PodEvent) = Nothing) As KubernetesPod

Parameters

name
String

The name of the Pod.

namespace
String

The namespace of the Pod.

desiredNumberOfContainers
Nullable<Int32>

Desired number of containers.

readyNumberOfContainers
Nullable<Int32>

Number of ready containers.

status
Nullable<PodStatus>

The status of a pod.

createdOn
Nullable<DateTimeOffset>

Creation Time of Pod.

events
IEnumerable<PodEvent>

Last 5 Pod events.

Returns

A new KubernetesPod instance for mocking.

Applies to