ArmComputeModelFactory.RunCommandDocument Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of RunCommandDocument.
public static Azure.ResourceManager.Compute.Models.RunCommandDocument RunCommandDocument(string schema = default, string id = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = default, string description = default, System.Collections.Generic.IEnumerable<string> script = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition> parameters = default);
static member RunCommandDocument : string * string * Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType * string * string * seq<string> * seq<Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition> -> Azure.ResourceManager.Compute.Models.RunCommandDocument
Public Shared Function RunCommandDocument (Optional schema As String = Nothing, Optional id As String = Nothing, Optional osType As SupportedOperatingSystemType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, Optional label As String = Nothing, Optional description As String = Nothing, Optional script As IEnumerable(Of String) = Nothing, Optional parameters As IEnumerable(Of RunCommandParameterDefinition) = Nothing) As RunCommandDocument
Parameters
- schema
- String
The VM run command schema.
- id
- String
The VM run command id.
- osType
- SupportedOperatingSystemType
The Operating System type.
- label
- String
The VM run command label.
- description
- String
The VM run command description.
- script
- IEnumerable<String>
The script to be executed.
- parameters
- IEnumerable<RunCommandParameterDefinition>
The parameters used by the script.
Returns
A new RunCommandDocument instance for mocking.
Exceptions
schema
, id
, label
or description
is null.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET