ScriptSource Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ScriptSource
- com.
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 Script |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Script |
fromJson(JsonReader jsonReader)
Reads an instance of Script |
|
List<Gallery |
parameters()
Get the parameters property: Optional. |
| String |
scriptLink()
Get the script |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Script |
withParameters(List<GalleryScriptParameter> parameters)
Set the parameters property: Optional. |
|
Script |
withScriptLink(String scriptLink)
Set the script |
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:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns: