Language

ArmContainerServiceSafeguardsModelFactory.DeploymentSafeguardsProperties Method

Definition

DeploymentSafeguards Properties.

public static Azure.ResourceManager.ContainerServiceSafeguards.Models.DeploymentSafeguardsProperties DeploymentSafeguardsProperties(Azure.ResourceManager.ContainerServiceSafeguards.Models.ProvisioningState? provisioningState = default, Azure.ResourceManager.ContainerServiceSafeguards.Models.DeploymentSafeguardsLevel level = default, System.Collections.Generic.IEnumerable<string> excludedNamespaces = default, System.Collections.Generic.IEnumerable<string> systemExcludedNamespaces = default, Azure.ResourceManager.ContainerServiceSafeguards.Models.PodSecurityStandardsLevel? podSecurityStandardsLevel = default);
static member DeploymentSafeguardsProperties : Nullable<Azure.ResourceManager.ContainerServiceSafeguards.Models.ProvisioningState> * Azure.ResourceManager.ContainerServiceSafeguards.Models.DeploymentSafeguardsLevel * seq<string> * seq<string> * Nullable<Azure.ResourceManager.ContainerServiceSafeguards.Models.PodSecurityStandardsLevel> -> Azure.ResourceManager.ContainerServiceSafeguards.Models.DeploymentSafeguardsProperties
Public Shared Function DeploymentSafeguardsProperties (Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional level As DeploymentSafeguardsLevel = Nothing, Optional excludedNamespaces As IEnumerable(Of String) = Nothing, Optional systemExcludedNamespaces As IEnumerable(Of String) = Nothing, Optional podSecurityStandardsLevel As Nullable(Of PodSecurityStandardsLevel) = Nothing) As DeploymentSafeguardsProperties

Parameters

provisioningState
Nullable<ProvisioningState>

Provisioning State.

level
DeploymentSafeguardsLevel

The deployment safeguards level. Possible values are Warn and Enforce.

excludedNamespaces
IEnumerable<String>

User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards.

systemExcludedNamespaces
IEnumerable<String>

System defined list of namespaces excluded from Deployment Safeguards. These are determined by the underlying provider (such as AKS), and cannot be changed. Deployments in these namespaces will not be checked.

podSecurityStandardsLevel
Nullable<PodSecurityStandardsLevel>

The pod security standards level.

Returns

A new DeploymentSafeguardsProperties instance for mocking.

Applies to