Partager via


RunCommandDocument Class

Definition

Describes the properties of a Run Command.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.RunCommandDocumentTypeConverter))]
public class RunCommandDocument : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.IRunCommandDocument, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.RunCommandDocumentTypeConverter))>]
type RunCommandDocument = class
    interface IRunCommandDocument
    interface IJsonSerializable
    interface IRunCommandDocumentBase
    interface IValidates
Public Class RunCommandDocument
Implements IRunCommandDocument, IValidates
Inheritance
RunCommandDocument
Attributes
Implements

Constructors

RunCommandDocument()

Creates an new RunCommandDocument instance.

Properties

Description

The VM run command description.

Id

The VM run command id.

Label

The VM run command label.

OSType

The Operating System type.

Parameter

The parameters used by the script.

Schema

The VM run command schema.

Script

The script to be executed.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RunCommandDocument.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RunCommandDocument.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.IRunCommandDocument.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of RunCommandDocument into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to