pspulumiyaml.azurenative.loadtestservice.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionLoadtestserviceGetLoadTest
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Load Test resource name.)')]
        [string]
        $loadTestName
    )

    process
    {
        $arguments = @{}
        $arguments["loadTestName"] = $loadTestName
        $arguments["resourceGroupName"] = $resourceGroupName

        $functionObject = Invoke-PulumiFunction -Name azure-native:loadtestservice:getLoadTest -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class SystemAssignedServiceIdentity
{
    [ArgumentCompletions('None', 'SystemAssigned')]
    [string] $type
}
function New-AzureNativeTypeLoadtestserviceSystemAssignedServiceIdentity
{
    param (
        [parameter(mandatory=$False,HelpMessage='Type of managed service identity (either system assigned, or none).)')]
        [string]
        [ValidateSet('None', 'SystemAssigned')]
        $type
    )

    process
    {
        return $([SystemAssignedServiceIdentity]$PSBoundParameters)
    }
}
function New-AzureNativeLoadtestserviceLoadTest
{
    [Alias('azure_native_loadtestservice_loadtest')]
    param (
        [parameter(mandatory=$False,HelpMessage='Description of the resource.)')]
        [string]
        $description,
        [parameter(mandatory=$False,HelpMessage='The type of identity used for the resource.)')]
        [SystemAssignedServiceIdentity]
        $identity,
        [parameter(mandatory=$False,HelpMessage='Load Test resource name.)')]
        [string]
        $loadTestName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')]
        [string]
        $location,
        [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:loadtestservice:LoadTest")

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.dependson += $Dependency.Reference()
            } else
            {
                $resource.dependson += $Dependency
            }
        }
        $resource.properties["resourceGroupName"] = $resourceGroupName

        if($PSBoundParameters.Keys -icontains 'description')
        {
            $resource.properties["description"] = $description
        }

        if($PSBoundParameters.Keys -icontains 'identity')
        {
            $resource.properties["identity"] = $identity
        }

        if($PSBoundParameters.Keys -icontains 'loadTestName')
        {
            $resource.properties["loadTestName"] = $loadTestName
        }

        if($PSBoundParameters.Keys -icontains 'tags')
        {
            $resource.properties["tags"] = $tags
        }

        if($PSBoundParameters.Keys -icontains 'location')
        {
            $resource.properties["location"] = $location
        }

        $global:pulumiresources += $resource
        return $resource
    }
}