pspulumiyaml.azurenative.enterpriseknowledgegraph.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionEnterpriseknowledgegraphGetEnterpriseKnowledgeGraph
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the EnterpriseKnowledgeGraph resource group in the user subscription.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the EnterpriseKnowledgeGraph resource.)')]
        [string]
        $resourceName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:enterpriseknowledgegraph:getEnterpriseKnowledgeGraph -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class EnterpriseKnowledgeGraphProperties
{
    [object] $metadata
    [string] $description
    [string] $provisioningState
}
function New-AzureNativeTypeEnterpriseknowledgegraphEnterpriseKnowledgeGraphProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='Specifies the metadata of the resource.)')]
        $metadata,
        [parameter(mandatory=$False,HelpMessage='The description of the EnterpriseKnowledgeGraph)')]
        [string]
        $description,
        [parameter(mandatory=$False,HelpMessage='The state of EnterpriseKnowledgeGraph provisioning)')]
        [string]
        $provisioningState
    )

    process
    {
        return $([EnterpriseKnowledgeGraphProperties]$PSBoundParameters)
    }
}
class Sku
{
    [ArgumentCompletions('F0', 'S1')]
    [string] $name
}
function New-AzureNativeTypeEnterpriseknowledgegraphSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='The sku name)')]
        [string]
        [ValidateSet('F0', 'S1')]
        $name
    )

    process
    {
        return $([Sku]$PSBoundParameters)
    }
}
function New-AzureNativeEnterpriseknowledgegraphEnterpriseKnowledgeGraph
{
    [Alias('azure_native_enterpriseknowledgegraph_enterpriseknowledgegraph')]
    param (
        [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The name of the EnterpriseKnowledgeGraph resource.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='The set of properties specific to EnterpriseKnowledgeGraph resource)')]
        [EnterpriseKnowledgeGraphProperties]
        $properties,
        [parameter(mandatory=$False,HelpMessage='The name of the EnterpriseKnowledgeGraph resource group in the user subscription.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU of the resource.)')]
        [Sku]
        $sku,
        [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')]
        [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:enterpriseknowledgegraph:EnterpriseKnowledgeGraph")

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

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

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

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

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

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

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