共用方式為


ScriptSource Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ScriptSource

Implements

public final class ScriptSource
implements JsonSerializable<ScriptSource>

The source script from which the Script Version is going to be created.

Constructor Summary

Constructor Description
ScriptSource()

Creates an instance of ScriptSource class.

Method Summary

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

Reads an instance of ScriptSource from the JsonReader.

List<GalleryScriptParameter> parameters()

Get the parameters property: Optional.

String scriptLink()

Get the scriptLink property: Required.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScriptSource withParameters(List<GalleryScriptParameter> parameters)

Set the parameters property: Optional.

ScriptSource withScriptLink(String scriptLink)

Set the scriptLink property: Required.

Methods inherited from java.lang.Object

Constructor Details

ScriptSource

public ScriptSource()

Creates an instance of ScriptSource class.

Method Details

fromJson

public static ScriptSource fromJson(JsonReader jsonReader)

Reads an instance of ScriptSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

parameters

public List<GalleryScriptParameter> parameters()

Get the parameters property: Optional. Any input parameters that needs to passed to the script and are accessed within the script for its execution.

Returns:

the parameters value.

scriptLink

public String scriptLink()

Get the scriptLink property: Required. The link of the source script, it must be a readable storage blob with SAS URI or publicly accessible URI or managed identity enabled.

Returns:

the scriptLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withParameters

public ScriptSource withParameters(List<GalleryScriptParameter> parameters)

Set the parameters property: Optional. Any input parameters that needs to passed to the script and are accessed within the script for its execution.

Parameters:

parameters - the parameters value to set.

Returns:

the ScriptSource object itself.

withScriptLink

public ScriptSource withScriptLink(String scriptLink)

Set the scriptLink property: Required. The link of the source script, it must be a readable storage blob with SAS URI or publicly accessible URI or managed identity enabled.

Parameters:

scriptLink - the scriptLink value to set.

Returns:

the ScriptSource object itself.

Applies to