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
static GalleryImageVersionSafetyProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageVersionSafetyProfile from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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

fromJson

public static GalleryImageVersionSafetyProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageVersionSafetyProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryImageVersionSafetyProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GalleryImageVersionSafetyProfile.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryImageVersionSafetyProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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