Partilhar via


ArmComputeModelFactory.GalleryImageVersionSafetyProfile Method

Definition

Initializes a new instance of GalleryImageVersionSafetyProfile.

public static Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile GalleryImageVersionSafetyProfile (bool? allowDeletionOfReplicatedLocations = default, bool? isReportedForPolicyViolation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation> policyViolations = default);
static member GalleryImageVersionSafetyProfile : Nullable<bool> * Nullable<bool> * seq<Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation> -> Azure.ResourceManager.Compute.Models.GalleryImageVersionSafetyProfile
Public Shared Function GalleryImageVersionSafetyProfile (Optional allowDeletionOfReplicatedLocations As Nullable(Of Boolean) = Nothing, Optional isReportedForPolicyViolation As Nullable(Of Boolean) = Nothing, Optional policyViolations As IEnumerable(Of GalleryImageVersionPolicyViolation) = Nothing) As GalleryImageVersionSafetyProfile

Parameters

allowDeletionOfReplicatedLocations
Nullable<Boolean>

Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.

isReportedForPolicyViolation
Nullable<Boolean>

Indicates whether this image has been reported as violating Microsoft's policies.

policyViolations
IEnumerable<GalleryImageVersionPolicyViolation>

A list of Policy Violations that have been reported for this Gallery Image Version.

Returns

A new GalleryImageVersionSafetyProfile instance for mocking.

Applies to