Share via


GalleryScriptVersionSafetyProfile Class

public final class GalleryScriptVersionSafetyProfile
extends GalleryArtifactSafetyProfileBase

The safety profile of the Gallery Script Version.

Constructor Summary

Constructor Description
GalleryScriptVersionSafetyProfile()

Creates an instance of GalleryScriptVersionSafetyProfile class.

Method Summary

Modifier and Type Method and Description
static GalleryScriptVersionSafetyProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionSafetyProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryScriptVersionSafetyProfile 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

GalleryScriptVersionSafetyProfile

public GalleryScriptVersionSafetyProfile()

Creates an instance of GalleryScriptVersionSafetyProfile class.

Method Details

fromJson

public static GalleryScriptVersionSafetyProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionSafetyProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryScriptVersionSafetyProfile 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 GalleryScriptVersionSafetyProfile.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryScriptVersionSafetyProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GalleryScriptVersionSafetyProfile.validate()

withAllowDeletionOfReplicatedLocations

public GalleryScriptVersionSafetyProfile withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)

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

Overrides:

GalleryScriptVersionSafetyProfile.withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)

Parameters:

allowDeletionOfReplicatedLocations

Applies to