pspulumiyaml.azurenative.serialconsole.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionSerialconsoleGetSerialPort { param ( [parameter(mandatory=$False,HelpMessage='The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.)')] [string] $parentResource, [parameter(mandatory=$False,HelpMessage='The name of the serial port to connect to.)')] [string] $serialPort, [parameter(mandatory=$False,HelpMessage='The namespace of the resource provider.)')] [string] $resourceProviderNamespace, [parameter(mandatory=$False,HelpMessage='The resource type of the parent resource. For example: ''virtualMachines'' or ''virtualMachineScaleSets'')')] [string] $parentResourceType, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["parentResource"] = $parentResource $arguments["parentResourceType"] = $parentResourceType $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceProviderNamespace"] = $resourceProviderNamespace $arguments["serialPort"] = $serialPort $functionObject = Invoke-PulumiFunction -Name azure-native:serialconsole:getSerialPort -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeSerialconsoleSerialPort { [Alias('azure_native_serialconsole_serialport')] param ( [parameter(mandatory=$False,HelpMessage='The namespace of the resource provider.)')] [string] $resourceProviderNamespace, [parameter(mandatory=$False,HelpMessage='The name of the serial port to create.)')] [string] $serialPort, [parameter(mandatory=$False,HelpMessage='Specifies whether the port is enabled for a serial console connection.)')] $state, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.)')] [string] $parentResource, [parameter(mandatory=$False,HelpMessage='The resource type of the parent resource. For example: ''virtualMachines'' or ''virtualMachineScaleSets'')')] [string] $parentResourceType, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:serialconsole:SerialPort") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["parentResource"] = $parentResource $resource.properties["parentResourceType"] = $parentResourceType $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceProviderNamespace"] = $resourceProviderNamespace if($PSBoundParameters.Keys -icontains 'serialPort') { $resource.properties["serialPort"] = $serialPort } if($PSBoundParameters.Keys -icontains 'state') { $resource.properties["state"] = $state } $global:pulumiresources += $resource return $resource } } |