pspulumiyaml.azurenative.blockchain.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionBlockchainGetTransactionNode
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName,
        [parameter(mandatory=$False,HelpMessage='Transaction node name.)')]
        [string]
        $transactionNodeName
    )

    process
    {
        $arguments = @{}
        $arguments["blockchainMemberName"] = $blockchainMemberName
        $arguments["resourceGroupName"] = $resourceGroupName
        $arguments["transactionNodeName"] = $transactionNodeName

        $functionObject = Invoke-PulumiFunction -Name azure-native:blockchain:getTransactionNode -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionBlockchainListLocationConsortiums
{
    param (
        [parameter(mandatory=$False,HelpMessage='Location Name.)')]
        [string]
        $locationName
    )

    process
    {
        $arguments = @{}
        $arguments["locationName"] = $locationName

        $functionObject = Invoke-PulumiFunction -Name azure-native:blockchain:listLocationConsortiums -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionBlockchainListBlockchainMemberApiKeys
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:blockchain:listBlockchainMemberApiKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionBlockchainGetBlockchainMember
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:blockchain:getBlockchainMember -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionBlockchainListTransactionNodeApiKeys
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName,
        [parameter(mandatory=$False,HelpMessage='Transaction node name.)')]
        [string]
        $transactionNodeName
    )

    process
    {
        $arguments = @{}
        $arguments["blockchainMemberName"] = $blockchainMemberName
        $arguments["resourceGroupName"] = $resourceGroupName
        $arguments["transactionNodeName"] = $transactionNodeName

        $functionObject = Invoke-PulumiFunction -Name azure-native:blockchain:listTransactionNodeApiKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeBlockchainTransactionNode
{
    [Alias('azure_native_blockchain_transactionnode')]
    param (
        [parameter(mandatory=$False,HelpMessage='Transaction node name.)')]
        [string]
        $transactionNodeName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the firewall rules.)')]
        $firewallRules,
        [parameter(mandatory=$False,HelpMessage='Sets the transaction node dns endpoint basic auth password.)')]
        [string]
        $password,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the transaction node location.)')]
        [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:blockchain:TransactionNode")

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
class BlockchainMemberNodesSku
{
    [int] $capacity
}
function New-AzureNativeTypeBlockchainBlockchainMemberNodesSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='Gets or sets the nodes capacity.)')]
        [int]
        $capacity
    )

    process
    {
        return $([BlockchainMemberNodesSku]$PSBoundParameters)
    }
}
class Sku
{
    [string] $name
    [string] $tier
}
function New-AzureNativeTypeBlockchainSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='Gets or sets Sku name)')]
        [string]
        $name,
        [parameter(mandatory=$False,HelpMessage='Gets or sets Sku tier)')]
        [string]
        $tier
    )

    process
    {
        return $([Sku]$PSBoundParameters)
    }
}
function New-AzureNativeBlockchainBlockchainMember
{
    [Alias('azure_native_blockchain_blockchainmember')]
    param (
        [parameter(mandatory=$False,HelpMessage='Gets or sets firewall rules)')]
        $firewallRules,
        [parameter(mandatory=$False,HelpMessage='Tags of the service which is a list of key value pairs that describes the resource.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='Sets the managed consortium management account password.)')]
        [string]
        $consortiumManagementAccountPassword,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the blockchain validator nodes Sku.)')]
        [BlockchainMemberNodesSku]
        $validatorNodesSku,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the blockchain protocol.)')]
        [string]
        [ValidateSet('NotSpecified', 'Parity', 'Quorum', 'Corda')]
        $protocol,
        [parameter(mandatory=$False,HelpMessage='Gets the role of the member in the consortium.)')]
        [string]
        $consortiumRole,
        [parameter(mandatory=$False,HelpMessage='The GEO location of the blockchain service.)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the consortium for the blockchain member.)')]
        [string]
        $consortium,
        [parameter(mandatory=$False,HelpMessage='Blockchain member name.)')]
        [string]
        $blockchainMemberName,
        [parameter(mandatory=$False,HelpMessage='Gets the display name of the member in the consortium.)')]
        [string]
        $consortiumMemberDisplayName,
        [parameter(mandatory=$False,HelpMessage='Sets the basic auth password of the blockchain member.)')]
        [string]
        $password,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the blockchain member Sku.)')]
        [Sku]
        $sku,
        [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:blockchain:BlockchainMember")

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

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

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

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

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

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

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

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

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

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

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

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

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

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