pspulumiyaml.azurenative.machinelearningcompute.psm1

using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" }
function Invoke-AzureNativeFunctionMachinelearningcomputeGetOperationalizationCluster
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the cluster.)')]
        [string]
        $clusterName,
        [parameter(mandatory=$False,HelpMessage='Name of the resource group in which the cluster is located.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:machinelearningcompute:getOperationalizationCluster -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionMachinelearningcomputeListOperationalizationClusterKeys
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the cluster.)')]
        [string]
        $clusterName,
        [parameter(mandatory=$False,HelpMessage='Name of the resource group in which the cluster is located.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:machinelearningcompute:listOperationalizationClusterKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class AutoScaleConfiguration
{
    [int] $minReplicas
    [int] $maxReplicas
    [int] $refreshPeriodInSeconds
    [int] $targetUtilization
    [ArgumentCompletions('Enabled', 'Disabled')]
    [string] $status
}
function New-AzureNativeTypeMachinelearningcomputeAutoScaleConfiguration
{
    param (
        [parameter(mandatory=$False,HelpMessage='The minimum number of replicas for each service.)')]
        [int]
        $minReplicas,
        [parameter(mandatory=$False,HelpMessage='The maximum number of replicas for each service.)')]
        [int]
        $maxReplicas,
        [parameter(mandatory=$False,HelpMessage='Refresh period in seconds.)')]
        [int]
        $refreshPeriodInSeconds,
        [parameter(mandatory=$False,HelpMessage='The target utilization.)')]
        [int]
        $targetUtilization,
        [parameter(mandatory=$False,HelpMessage='If auto-scale is enabled for all services. Each service can turn it off individually.)')]
        [string]
        [ArgumentCompletions('Enabled', 'Disabled')]
        $status
    )

    process
    {
        return $([AutoScaleConfiguration]$PSBoundParameters)
    }
}
class SslConfiguration
{
    [string] $cert
    [ArgumentCompletions('Enabled', 'Disabled')]
    [string] $status
    [string] $key
    [string] $cname
}
function New-AzureNativeTypeMachinelearningcomputeSslConfiguration
{
    param (
        [parameter(mandatory=$False,HelpMessage='The SSL cert data in PEM format.)')]
        [string]
        $cert,
        [parameter(mandatory=$False,HelpMessage='SSL status. Allowed values are Enabled and Disabled.)')]
        [string]
        [ArgumentCompletions('Enabled', 'Disabled')]
        $status,
        [parameter(mandatory=$False,HelpMessage='The SSL key data in PEM format. This is not returned in response of GET/PUT on the resource. To see this please call listKeys API.)')]
        [string]
        $key,
        [parameter(mandatory=$False,HelpMessage='The CName of the certificate.)')]
        [string]
        $cname
    )

    process
    {
        return $([SslConfiguration]$PSBoundParameters)
    }
}
class ServiceAuthConfiguration
{
    [string] $secondaryAuthKeyHash
    [string] $primaryAuthKeyHash
}
function New-AzureNativeTypeMachinelearningcomputeServiceAuthConfiguration
{
    param (
        [parameter(mandatory=$False,HelpMessage='The secondary auth key hash. This is not returned in response of GET/PUT on the resource.. To see this please call listKeys API.)')]
        [string]
        $secondaryAuthKeyHash,
        [parameter(mandatory=$False,HelpMessage='The primary auth key hash. This is not returned in response of GET/PUT on the resource.. To see this please call listKeys API.)')]
        [string]
        $primaryAuthKeyHash
    )

    process
    {
        return $([ServiceAuthConfiguration]$PSBoundParameters)
    }
}
class GlobalServiceConfiguration
{
    [AutoScaleConfiguration] $autoScale
    [string] $etag
    [SslConfiguration] $ssl
    [ServiceAuthConfiguration] $serviceAuth
}
function New-AzureNativeTypeMachinelearningcomputeGlobalServiceConfiguration
{
    param (
        [parameter(mandatory=$False,HelpMessage='The auto-scale configuration)')]
        [AutoScaleConfiguration]
        $autoScale,
        [parameter(mandatory=$False,HelpMessage='The configuration ETag for updates.)')]
        [string]
        $etag,
        [parameter(mandatory=$False,HelpMessage='The SSL configuration properties)')]
        [SslConfiguration]
        $ssl,
        [parameter(mandatory=$False,HelpMessage='Optional global authorization keys for all user services deployed in cluster. These are used if the service does not have auth keys.)')]
        [ServiceAuthConfiguration]
        $serviceAuth
    )

    process
    {
        return $([GlobalServiceConfiguration]$PSBoundParameters)
    }
}
class AppInsightsProperties
{
    [string] $resourceId
}
function New-AzureNativeTypeMachinelearningcomputeAppInsightsProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='ARM resource ID of the App Insights.)')]
        [string]
        $resourceId
    )

    process
    {
        return $([AppInsightsProperties]$PSBoundParameters)
    }
}
class ServicePrincipalProperties
{
    [string] $clientId
    [string] $secret
}
function New-AzureNativeTypeMachinelearningcomputeServicePrincipalProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='The service principal client ID)')]
        [string]
        $clientId,
        [parameter(mandatory=$False,HelpMessage='The service principal secret. This is not returned in response of GET/PUT on the resource. To see this please call listKeys.)')]
        [string]
        $secret
    )

    process
    {
        return $([ServicePrincipalProperties]$PSBoundParameters)
    }
}
class KubernetesClusterProperties
{
    [ServicePrincipalProperties] $servicePrincipal
}
function New-AzureNativeTypeMachinelearningcomputeKubernetesClusterProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='The Azure Service Principal used by Kubernetes)')]
        [ServicePrincipalProperties]
        $servicePrincipal
    )

    process
    {
        return $([KubernetesClusterProperties]$PSBoundParameters)
    }
}
class SystemService
{
    [ArgumentCompletions('None', 'ScoringFrontEnd', 'BatchFrontEnd')]
    [string] $systemServiceType
}
function New-AzureNativeTypeMachinelearningcomputeSystemService
{
    param (
        [parameter(mandatory=$False,HelpMessage='The system service type)')]
        [string]
        [ArgumentCompletions('None', 'ScoringFrontEnd', 'BatchFrontEnd')]
        $systemServiceType
    )

    process
    {
        return $([SystemService]$PSBoundParameters)
    }
}
class AcsClusterProperties
{
    [int] $agentCount
    [int] $masterCount
    [ArgumentCompletions('Kubernetes', 'None')]
    [string] $orchestratorType
    [KubernetesClusterProperties] $orchestratorProperties
    [ArgumentCompletions('Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5')]
    [string] $agentVmSize
    [SystemService[]] $systemServices
}
function New-AzureNativeTypeMachinelearningcomputeAcsClusterProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='The number of agent nodes in the Container Service. This can be changed to scale the cluster.)')]
        [int]
        $agentCount,
        [parameter(mandatory=$False,HelpMessage='The number of master nodes in the container service.)')]
        [int]
        $masterCount,
        [parameter(mandatory=$False,HelpMessage='Type of orchestrator. It cannot be changed once the cluster is created.)')]
        [string]
        [ArgumentCompletions('Kubernetes', 'None')]
        $orchestratorType,
        [parameter(mandatory=$False,HelpMessage='Orchestrator specific properties)')]
        [KubernetesClusterProperties]
        $orchestratorProperties,
        [parameter(mandatory=$False,HelpMessage='The Azure VM size of the agent VM nodes. This cannot be changed once the cluster is created. This list is non exhaustive; refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for the possible VM sizes.)')]
        [string]
        [ArgumentCompletions('Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14', 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5')]
        $agentVmSize,
        [parameter(mandatory=$False,HelpMessage='The system services deployed to the cluster)')]
        $systemServices
    )

    process
    {
        return $([AcsClusterProperties]$PSBoundParameters)
    }
}
class StorageAccountProperties
{
    [string] $resourceId
}
function New-AzureNativeTypeMachinelearningcomputeStorageAccountProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='ARM resource ID of the Azure Storage Account to store CLI specific files. If not provided one will be created. This cannot be changed once the cluster is created.)')]
        [string]
        $resourceId
    )

    process
    {
        return $([StorageAccountProperties]$PSBoundParameters)
    }
}
class ContainerRegistryProperties
{
    [string] $resourceId
}
function New-AzureNativeTypeMachinelearningcomputeContainerRegistryProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='ARM resource ID of the Azure Container Registry used to store Docker images for web services in the cluster. If not provided one will be created. This cannot be changed once the cluster is created.)')]
        [string]
        $resourceId
    )

    process
    {
        return $([ContainerRegistryProperties]$PSBoundParameters)
    }
}
function New-AzureNativeMachinelearningcomputeOperationalizationCluster
{
    [Alias('azure_native_machinelearningcompute_operationalizationcluster')]
    param (
        [parameter(mandatory=$False,HelpMessage='Contains global configuration for the web services in the cluster.)')]
        [GlobalServiceConfiguration]
        $globalServiceConfiguration,
        [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The description of the cluster.)')]
        [string]
        $description,
        [parameter(mandatory=$False,HelpMessage='AppInsights configuration.)')]
        [AppInsightsProperties]
        $appInsights,
        [parameter(mandatory=$False,HelpMessage='The name of the cluster.)')]
        [string]
        $clusterName,
        [parameter(mandatory=$False,HelpMessage='Parameters for the Azure Container Service cluster.)')]
        [AcsClusterProperties]
        $containerService,
        [parameter(mandatory=$False,HelpMessage='Name of the resource group in which the cluster is located.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The cluster type.)')]
        [string]
        [ArgumentCompletions('ACS', 'Local')]
        $clusterType,
        [parameter(mandatory=$False,HelpMessage='Storage Account properties.)')]
        [StorageAccountProperties]
        $storageAccount,
        [parameter(mandatory=$False,HelpMessage='Container Registry properties.)')]
        [ContainerRegistryProperties]
        $containerRegistry,
        [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(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')]
        [string[]]
        $PulumiSecretOutputs,
        [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')]
        [string[]]
        $PulumiAliases,
        [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')]
        [pulumicustomtimeouts]
        $PulumiCustomTimeouts,
        [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')]
        [bool]
        $PulumiDeleteBeforeReplace,
        [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')]
        [object[]]
        $PulumiDependsOn,
        [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')]
        [string[]]
        $PulumiIgnoreChanges,
        [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')]
        [string]
        $PulumiImport = [NullString]::Value,
        [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')]
        [object]
        $PulumiParent = [NullString]::Value,
        [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')]
        [bool]
        $PulumiProtect,
        [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')]
        [object]
        $PulumiProvider = [NullString]::Value,
        [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')]
        [object[]]
        $PulumiProviders,
        [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')]
        [string[]]
        $PulumiReplaceOnChanges,
        [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')]
        [bool]
        $PulumiRetainOnDelete,
        [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')]
        [string]
        $PulumiProviderVersion = [NullString]::Value
    )

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

        $resource.options.additionalSecretOutputs = $PulumiSecretOutputs
        $resource.options.aliases = $PulumiAliases
        $resource.options.customTimeouts = $PulumiCustomTimeouts
        $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace
        $resource.options.ignoreChanges = $PulumiIgnoreChanges
        $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport }
        $resource.options.protect = $PulumiProtect
        $resource.options.replaceOnChanges = $PulumiReplaceOnChanges
        $resource.options.retainOnDelete = $PulumiRetainOnDelete
        $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion }

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.options.dependson += $Dependency.Reference()
            } else
            {
                $resource.options.dependson += $Dependency
            }
        }
        if($PulumiParent -is [pulumiresource])
        {
            $resource.options.parent = $PulumiParent.Reference()
        } else
        {
            $resource.options.parent = $PulumiParent
        }
        foreach($provider in $PulumiProviders)
        {
            if($provider -is [pulumiprovider])
            {
                $resource.options.providers += $provider.Reference()
            } else
            {
                $resource.options.providers += $provider
            }
        }
        if($PulumiProvider -is [pulumiprovider])
        {
            $resource.options.provider = $PulumiProvider.Reference()
        } else
        {
            $resource.options.provider = $PulumiProvider
        }
        $resource.properties["clusterType"] = $clusterType
        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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

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

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

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

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

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

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