pspulumiyaml.azurenative.agfoodplatform.psm1

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

    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 New-AzureNativeAgfoodplatformFarmBeatsModel
{
    [Alias('azure_native_agfoodplatform_farmbeatsmodel')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [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,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:agfoodplatform:FarmBeatsModel")

        $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
    }
}
function New-AzureNativeAgfoodplatformExtension
{
    [Alias('azure_native_agfoodplatform_extension')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Id of extension resource.)')]
        [string]
        $extensionId,
        [parameter(mandatory=$False,HelpMessage='FarmBeats resource name.)')]
        [string]
        $farmBeatsResourceName,
        [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:agfoodplatform:Extension")

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

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

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