pspulumiyaml.azurenative.openenergyplatform.psm1

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

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:openenergyplatform:getEnergyService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionOpenenergyplatformListEnergyServicePartitions
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The resource name.)')]
        [string]
        $resourceName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:openenergyplatform:listEnergyServicePartitions -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class DataPartitionNames
{
    [string] $name
}
function New-AzureNativeTypeOpenenergyplatformDataPartitionNames
{
    param (
        [parameter(mandatory=$False,HelpMessage=')')]
        [string]
        $name
    )

    process
    {
        return $([DataPartitionNames]$PSBoundParameters)
    }
}
class EnergyServiceProperties
{
    [string] $authAppId
    [DataPartitionNames[]] $dataPartitionNames
}
function New-AzureNativeTypeOpenenergyplatformEnergyServiceProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage=')')]
        [string]
        $authAppId,
        [parameter(mandatory=$False,HelpMessage=')')]
        $dataPartitionNames
    )

    process
    {
        return $([EnergyServiceProperties]$PSBoundParameters)
    }
}
function New-AzureNativeOpenenergyplatformEnergyService
{
    [Alias('azure_native_openenergyplatform_energyservice')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage=')')]
        [EnergyServiceProperties]
        $properties,
        [parameter(mandatory=$False,HelpMessage='The resource name.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='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
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:openenergyplatform:EnergyService")

        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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

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