pspulumiyaml.azurenative.testbase.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionTestbaseGetCustomerEvent { param ( [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Customer event.)')] [string] $customerEventName ) process { $arguments = @{} $arguments["customerEventName"] = $customerEventName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getCustomerEvent -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetPackage { param ( [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getPackage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetTestBaseAccount { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getTestBaseAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetBillingHubServiceFreeHourBalance { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getBillingHubServiceFreeHourBalance -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetTestResultDownloadURL { param ( [parameter(mandatory=$False,HelpMessage='The Test Result Name. It equals to TestResult-{TestResultId} string.)')] [string] $testResultName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $arguments["testResultName"] = $testResultName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getTestResultDownloadURL -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetBillingHubServiceUsage { param ( [parameter(mandatory=$False,HelpMessage=')')] [string] $startTimeStamp, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage=')')] [string] $endTimeStamp, [parameter(mandatory=$False,HelpMessage=')')] [int] $pageSize, [parameter(mandatory=$False,HelpMessage=')')] [int] $pageIndex, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["endTimeStamp"] = $endTimeStamp $arguments["resourceGroupName"] = $resourceGroupName $arguments["startTimeStamp"] = $startTimeStamp $arguments["testBaseAccountName"] = $testBaseAccountName if($PSBoundParameters.Keys -icontains 'pageSize') { $arguments["pageSize"] = $pageSize } if($PSBoundParameters.Keys -icontains 'pageIndex') { $arguments["pageIndex"] = $pageIndex } $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getBillingHubServiceUsage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetTestResultConsoleLogDownloadURL { param ( [parameter(mandatory=$False,HelpMessage='The Test Result Name. It equals to TestResult-{TestResultId} string.)')] [string] $testResultName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The log file name corresponding to the download URL.)')] [string] $logFileName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["logFileName"] = $logFileName $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $arguments["testResultName"] = $testResultName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getTestResultConsoleLogDownloadURL -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetPackageDownloadURL { param ( [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getPackageDownloadURL -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetFavoriteProcess { param ( [parameter(mandatory=$False,HelpMessage='The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use ''actualProcessName'' in request body to submit the name.)')] [string] $favoriteProcessResourceName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["favoriteProcessResourceName"] = $favoriteProcessResourceName $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getFavoriteProcess -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetTestBaseAccountFileUploadUrl { param ( [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The custom file name of the uploaded blob.)')] [string] $blobName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName if($PSBoundParameters.Keys -icontains 'blobName') { $arguments["blobName"] = $blobName } $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getTestBaseAccountFileUploadUrl -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionTestbaseGetTestResultVideoDownloadURL { param ( [parameter(mandatory=$False,HelpMessage='The Test Result Name. It equals to TestResult-{TestResultId} string.)')] [string] $testResultName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName ) process { $arguments = @{} $arguments["packageName"] = $packageName $arguments["resourceGroupName"] = $resourceGroupName $arguments["testBaseAccountName"] = $testBaseAccountName $arguments["testResultName"] = $testResultName $functionObject = Invoke-PulumiFunction -Name azure-native:testbase:getTestResultVideoDownloadURL -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeTestbaseCustomerEvent { [Alias('azure_native_testbase_customerevent')] param ( [parameter(mandatory=$False,HelpMessage='The notification event receivers.)')] $receivers, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the event subscribed to.)')] [string] $eventName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Customer event.)')] [string] $customerEventName, [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:testbase:CustomerEvent") $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["eventName"] = $eventName $resource.properties["receivers"] = $receivers $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["testBaseAccountName"] = $testBaseAccountName if($PSBoundParameters.Keys -icontains 'customerEventName') { $resource.properties["customerEventName"] = $customerEventName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeTestbasePackage { [Alias('azure_native_testbase_package')] param ( [parameter(mandatory=$False,HelpMessage='The flighting ring for feature update.)')] [string] $flightingRing, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Application name)')] [string] $applicationName, [parameter(mandatory=$False,HelpMessage='Application version)')] [string] $version, [parameter(mandatory=$False,HelpMessage='The file path of the package.)')] [string] $blobPath, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [parameter(mandatory=$False,HelpMessage='The detailed test information.)')] $tests, [parameter(mandatory=$False,HelpMessage='Specifies the target OSs of specific OS Update types.)')] $targetOSList, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [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:testbase:Package") $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["applicationName"] = $applicationName $resource.properties["blobPath"] = $blobPath $resource.properties["flightingRing"] = $flightingRing $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["targetOSList"] = $targetOSList $resource.properties["testBaseAccountName"] = $testBaseAccountName $resource.properties["tests"] = $tests $resource.properties["version"] = $version if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'packageName') { $resource.properties["packageName"] = $packageName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class TestBaseAccountSKU { [string] $name [string[]] $locations [string] $resourceType [ArgumentCompletions('Standard')] [string] $tier } function New-AzureNativeTypeTestbaseTestBaseAccountSKU { param ( [parameter(mandatory=$False,HelpMessage='The name of the SKU. This is typically a letter + number code, such as B0 or S0.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The locations that the SKU is available.)')] [string[]] $locations, [parameter(mandatory=$False,HelpMessage='The type of resource the SKU applies to.)')] [string] $resourceType, [parameter(mandatory=$False,HelpMessage='The tier of this particular SKU.)')] [string] [ArgumentCompletions('Standard')] $tier ) process { return $([TestBaseAccountSKU]$PSBoundParameters) } } function New-AzureNativeTestbaseTestBaseAccount { [Alias('azure_native_testbase_testbaseaccount')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.)')] [bool] $restore, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [parameter(mandatory=$False,HelpMessage='The tags of the resource.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The SKU of the Test Base Account.)')] [TestBaseAccountSKU] $sku, [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:testbase:TestBaseAccount") $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["resourceGroupName"] = $resourceGroupName $resource.properties["sku"] = $sku if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'restore') { $resource.properties["restore"] = $restore } if($PSBoundParameters.Keys -icontains 'testBaseAccountName') { $resource.properties["testBaseAccountName"] = $testBaseAccountName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } function New-AzureNativeTestbaseFavoriteProcess { [Alias('azure_native_testbase_favoriteprocess')] param ( [parameter(mandatory=$False,HelpMessage='The resource name of a favorite process in a package. If the process name contains characters that are not allowed in Azure Resource Name, we use ''actualProcessName'' in request body to submit the name.)')] [string] $favoriteProcessResourceName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Package.)')] [string] $packageName, [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the resource.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The actual name of the favorite process. It will be equal to resource name except for the scenario that the process name contains characters that are not allowed in the resource name.)')] [string] $actualProcessName, [parameter(mandatory=$False,HelpMessage='The resource name of the Test Base Account.)')] [string] $testBaseAccountName, [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:testbase:FavoriteProcess") $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["actualProcessName"] = $actualProcessName $resource.properties["packageName"] = $packageName $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["testBaseAccountName"] = $testBaseAccountName if($PSBoundParameters.Keys -icontains 'favoriteProcessResourceName') { $resource.properties["favoriteProcessResourceName"] = $favoriteProcessResourceName } $global:pulumiresources += $resource return $resource } } |