pspulumiyaml.azurenative.engagementfabric.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionEngagementfabricListAccountKeys
{
    param (
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:engagementfabric:listAccountKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionEngagementfabricGetChannel
{
    param (
        [parameter(mandatory=$False,HelpMessage='Channel Name)')]
        [string]
        $channelName,
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName
    )

    process
    {
        $arguments = @{}
        $arguments["accountName"] = $accountName
        $arguments["channelName"] = $channelName
        $arguments["resourceGroupName"] = $resourceGroupName

        $functionObject = Invoke-PulumiFunction -Name azure-native:engagementfabric:getChannel -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionEngagementfabricGetAccount
{
    param (
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:engagementfabric:getAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionEngagementfabricListAccountChannelTypes
{
    param (
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:engagementfabric:listAccountChannelTypes -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeEngagementfabricChannel
{
    [Alias('azure_native_engagementfabric_channel')]
    param (
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName,
        [parameter(mandatory=$False,HelpMessage='The channel credentials)')]
        [hashtable]
        $credentials,
        [parameter(mandatory=$False,HelpMessage='The channel type)')]
        [string]
        $channelType,
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Channel Name)')]
        [string]
        $channelName,
        [parameter(mandatory=$False,HelpMessage='The functions to be enabled for the channel)')]
        [string[]]
        $channelFunctions,
        [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:engagementfabric:Channel")

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
class SKU
{
    [string] $name
    [string] $tier
}
function New-AzureNativeTypeEngagementfabricSKU
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the SKU)')]
        [string]
        $name,
        [parameter(mandatory=$False,HelpMessage='The price tier of the SKU)')]
        [string]
        $tier
    )

    process
    {
        return $([SKU]$PSBoundParameters)
    }
}
function New-AzureNativeEngagementfabricAccount
{
    [Alias('azure_native_engagementfabric_account')]
    param (
        [parameter(mandatory=$False,HelpMessage='The location of the resource)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='The tags of the resource)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='Resource Group Name)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The SKU of the resource)')]
        [SKU]
        $sku,
        [parameter(mandatory=$False,HelpMessage='Account Name)')]
        [string]
        $accountName,
        [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:engagementfabric:Account")

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

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

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

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

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