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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET