Udostępnij za pośrednictwem


ArmContainerInstanceModelFactory.ContainerGroupData Method

Definition

Initializes a new instance of ContainerGroupData.

public static Azure.ResourceManager.ContainerInstance.ContainerGroupData ContainerGroupData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, string provisioningState = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer> containers = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupImageRegistryCredential> imageRegistryCredentials = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupRestartPolicy? restartPolicy = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddress ipAddress = default, Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceOperatingSystemType osType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerVolume> volumes = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupInstanceView instanceView = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupLogAnalytics diagnosticsLogAnalytics = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupSubnetId> subnetIds = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupDnsConfiguration dnsConfig = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupSku? sku = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupEncryptionProperties encryptionProperties = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent> initContainers = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.DeploymentExtensionSpec> extensions = default, string confidentialComputeCcePolicy = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupPriority? priority = default);
static member ContainerGroupData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * seq<string> * Azure.ResourceManager.Models.ManagedServiceIdentity * string * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupImageRegistryCredential> * Nullable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupRestartPolicy> * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddress * Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceOperatingSystemType * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerVolume> * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupInstanceView * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupLogAnalytics * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupSubnetId> * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupDnsConfiguration * Nullable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupSku> * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupEncryptionProperties * seq<Azure.ResourceManager.ContainerInstance.Models.InitContainerDefinitionContent> * seq<Azure.ResourceManager.ContainerInstance.Models.DeploymentExtensionSpec> * string * Nullable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupPriority> -> Azure.ResourceManager.ContainerInstance.ContainerGroupData
Public Shared Function ContainerGroupData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional provisioningState As String = Nothing, Optional containers As IEnumerable(Of ContainerInstanceContainer) = Nothing, Optional imageRegistryCredentials As IEnumerable(Of ContainerGroupImageRegistryCredential) = Nothing, Optional restartPolicy As Nullable(Of ContainerGroupRestartPolicy) = Nothing, Optional ipAddress As ContainerGroupIPAddress = Nothing, Optional osType As ContainerInstanceOperatingSystemType = Nothing, Optional volumes As IEnumerable(Of ContainerVolume) = Nothing, Optional instanceView As ContainerGroupInstanceView = Nothing, Optional diagnosticsLogAnalytics As ContainerGroupLogAnalytics = Nothing, Optional subnetIds As IEnumerable(Of ContainerGroupSubnetId) = Nothing, Optional dnsConfig As ContainerGroupDnsConfiguration = Nothing, Optional sku As Nullable(Of ContainerGroupSku) = Nothing, Optional encryptionProperties As ContainerGroupEncryptionProperties = Nothing, Optional initContainers As IEnumerable(Of InitContainerDefinitionContent) = Nothing, Optional extensions As IEnumerable(Of DeploymentExtensionSpec) = Nothing, Optional confidentialComputeCcePolicy As String = Nothing, Optional priority As Nullable(Of ContainerGroupPriority) = Nothing) As ContainerGroupData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

zones
IEnumerable<String>

The zones for the container group.

identity
ManagedServiceIdentity

The identity of the container group, if configured.

provisioningState
String

The provisioning state of the container group. This only appears in the response.

containers
IEnumerable<ContainerInstanceContainer>

The containers within the container group.

imageRegistryCredentials
IEnumerable<ContainerGroupImageRegistryCredential>

The image registry credentials by which the container group is created from.

restartPolicy
Nullable<ContainerGroupRestartPolicy>

Restart policy for all containers within the container group.

  • Always Always restart
  • OnFailure Restart on failure
  • Never Never restart
ipAddress
ContainerGroupIPAddress

The IP address type of the container group.

osType
ContainerInstanceOperatingSystemType

The operating system type required by the containers in the container group.

volumes
IEnumerable<ContainerVolume>

The list of volumes that can be mounted by containers in this container group.

instanceView
ContainerGroupInstanceView

The instance view of the container group. Only valid in response.

diagnosticsLogAnalytics
ContainerGroupLogAnalytics

The diagnostic information for a container group.

subnetIds
IEnumerable<ContainerGroupSubnetId>

The subnet resource IDs for a container group.

dnsConfig
ContainerGroupDnsConfiguration

The DNS config information for a container group.

sku
Nullable<ContainerGroupSku>

The SKU for a container group.

encryptionProperties
ContainerGroupEncryptionProperties

The encryption properties for a container group.

initContainers
IEnumerable<InitContainerDefinitionContent>

The init containers for a container group.

extensions
IEnumerable<DeploymentExtensionSpec>

extensions used by virtual kubelet.

confidentialComputeCcePolicy
String

The properties for confidential container group.

priority
Nullable<ContainerGroupPriority>

The priority of the container group.

Returns

A new ContainerGroupData instance for mocking.

Applies to