pspulumiyaml.azurenative.agfoodplatform.psm1

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

    process
    {
        $arguments = @{}
        $arguments["extensionId"] = $extensionId
        $arguments["farmBeatsResourceName"] = $farmBeatsResourceName
        $arguments["resourceGroupName"] = $resourceGroupName

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

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:agfoodplatform:getFarmBeatsModel -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeAgfoodplatformExtension
{
    [Alias('azure_native_agfoodplatform_extension')]
    param (
        [parameter(mandatory=$False,HelpMessage='Id of extension resource.)')]
        [string]
        $extensionId,
        [parameter(mandatory=$False,HelpMessage='FarmBeats resource name.)')]
        [string]
        $farmBeatsResourceName,
        [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:agfoodplatform:Extension")

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativeAgfoodplatformFarmBeatsModel
{
    [Alias('azure_native_agfoodplatform_farmbeatsmodel')]
    param (
        [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='FarmBeats resource name.)')]
        [string]
        $farmBeatsResourceName,
        [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:agfoodplatform:FarmBeatsModel")

        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 'tags')
        {
            $resource.properties["tags"] = $tags
        }

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

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