GalleryImageVersionSafetyProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactSafetyProfileBase - com.
azure. resourcemanager. compute. models. GalleryImageVersionSafetyProfile
- com.
- com.
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 Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
blockDeletionBeforeEndOfLife()
Get the block |
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
List<Policy |
policyViolations()
Get the policy |
Boolean |
reportedForPolicyViolation()
Get the reported |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)
Set the allow |
Gallery |
withBlockDeletionBeforeEndOfLife(Boolean blockDeletionBeforeEndOfLife)
Set the block |
Methods inherited from GalleryArtifactSafetyProfileBase
Methods inherited from java.lang.Object
Constructor Details
GalleryImageVersionSafetyProfile
public GalleryImageVersionSafetyProfile()
Creates an instance of GalleryImageVersionSafetyProfile class.
Method Details
blockDeletionBeforeEndOfLife
public Boolean blockDeletionBeforeEndOfLife()
Get the blockDeletionBeforeEndOfLife property: Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
Returns:
fromJson
public static GalleryImageVersionSafetyProfile fromJson(JsonReader jsonReader)
Reads an instance of GalleryImageVersionSafetyProfile from the JsonReader.
Parameters:
Returns:
Throws:
policyViolations
public List
Get the policyViolations property: A list of Policy Violations that have been reported for this Gallery Image Version.
Returns:
reportedForPolicyViolation
public Boolean reportedForPolicyViolation()
Get the reportedForPolicyViolation property: Indicates whether this image has been reported as violating Microsoft's policies.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryImageVersionSafetyProfile.toJson(JsonWriter jsonWriter)Parameters:
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:
withBlockDeletionBeforeEndOfLife
public GalleryImageVersionSafetyProfile withBlockDeletionBeforeEndOfLife(Boolean blockDeletionBeforeEndOfLife)
Set the blockDeletionBeforeEndOfLife property: Indicates whether or not the deletion is blocked for this Gallery Image Version if its End Of Life has not expired.
Parameters:
Returns:
Applies to
Azure SDK for Java