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='Geo-location where the resource lives.)')] [string] $location, [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='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [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:openenergyplatform:EnergyService") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } 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 } $global:pulumiresources += $resource return $resource } } |