Share via


Script Class

Definition

Class representing a database script.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.ScriptTypeConverter))]
public class Script : Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.IScript, Microsoft.Azure.PowerShell.Cmdlets.Kusto.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.ScriptTypeConverter))>]
type Script = class
    interface IScript
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class Script
Implements IScript, IValidates
Inheritance
Script
Attributes
Implements

Constructors

Script()

Creates an new Script instance.

Properties

Content

The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.

ContinueOnError

Flag that indicates whether to continue if one of the command fails.

ForceUpdateTag

A unique string. If changed the script will be applied again.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Name

The name of the resource

ProvisioningState

The provisioned state of the resource.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Url

The url to the KQL script blob file. Must not be used together with scriptContent property

UrlSasToken

The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Script.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Script.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20230815.IScript.

FromJsonString(String)

Creates a new instance of Script, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Script into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to