GalleryImageVersionSafetyProfile Class

public final class GalleryImageVersionSafetyProfile
extends GalleryArtifactSafetyProfileBase

This is the safety profile of the Gallery Image Version.

Constructor Summary

Constructor Description
GalleryImageVersionSafetyProfile()

Creates an instance of GalleryImageVersionSafetyProfile class.

Method Summary

Modifier and Type Method and Description
List<PolicyViolation> policyViolations()

Get the policyViolations property: A list of Policy Violations that have been reported for this Gallery Image Version.

Boolean reportedForPolicyViolation()

Get the reportedForPolicyViolation property: Indicates whether this image has been reported as violating Microsoft's policies.

void validate()

Validates the instance.

GalleryImageVersionSafetyProfile withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)

Set the allowDeletionOfReplicatedLocations property: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.

Methods inherited from GalleryArtifactSafetyProfileBase

Methods inherited from java.lang.Object

Constructor Details

GalleryImageVersionSafetyProfile

public GalleryImageVersionSafetyProfile()

Creates an instance of GalleryImageVersionSafetyProfile class.

Method Details

policyViolations

public List policyViolations()

Get the policyViolations property: A list of Policy Violations that have been reported for this Gallery Image Version.

Returns:

the policyViolations value.

reportedForPolicyViolation

public Boolean reportedForPolicyViolation()

Get the reportedForPolicyViolation property: Indicates whether this image has been reported as violating Microsoft's policies.

Returns:

the reportedForPolicyViolation value.

validate

public void validate()

Validates the instance.

Overrides:

GalleryImageVersionSafetyProfile.validate()

withAllowDeletionOfReplicatedLocations

public GalleryImageVersionSafetyProfile withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)

Set the allowDeletionOfReplicatedLocations property: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.

Overrides:

GalleryImageVersionSafetyProfile.withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)

Parameters:

allowDeletionOfReplicatedLocations

Applies to