pspulumiyaml.azurenative.cognitiveservices.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionCognitiveservicesGetDeployment { param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the deployment associated with the Cognitive Services Account)')] [string] $deploymentName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["deploymentName"] = $deploymentName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:cognitiveservices:getDeployment -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCognitiveservicesGetCommitmentPlan { param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the commitmentPlan associated with the Cognitive Services Account)')] [string] $commitmentPlanName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["commitmentPlanName"] = $commitmentPlanName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:cognitiveservices:getCommitmentPlan -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCognitiveservicesListAccountKeys { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:cognitiveservices:listAccountKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCognitiveservicesGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Cognitive Services Account)')] [string] $privateEndpointConnectionName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:cognitiveservices:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCognitiveservicesGetAccount { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:cognitiveservices:getAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class DeploymentScaleSettings { [int] $capacity [ArgumentCompletions('Standard', 'Manual')] [string] $scaleType } function New-AzureNativeTypeCognitiveservicesDeploymentScaleSettings { param ( [parameter(mandatory=$False,HelpMessage='Deployment capacity.)')] [int] $capacity, [parameter(mandatory=$False,HelpMessage='Deployment scale type.)')] [string] [ArgumentCompletions('Standard', 'Manual')] $scaleType ) process { return $([DeploymentScaleSettings]$PSBoundParameters) } } class DeploymentModel { [string] $version [string] $name [string] $format } function New-AzureNativeTypeCognitiveservicesDeploymentModel { param ( [parameter(mandatory=$False,HelpMessage='Deployment model version.)')] [string] $version, [parameter(mandatory=$False,HelpMessage='Deployment model name.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Deployment model format.)')] [string] $format ) process { return $([DeploymentModel]$PSBoundParameters) } } class DeploymentProperties { [DeploymentScaleSettings] $scaleSettings [DeploymentModel] $model } function New-AzureNativeTypeCognitiveservicesDeploymentProperties { param ( [parameter(mandatory=$False,HelpMessage='Properties of Cognitive Services account deployment model.)')] [DeploymentScaleSettings] $scaleSettings, [parameter(mandatory=$False,HelpMessage='Properties of Cognitive Services account deployment model.)')] [DeploymentModel] $model ) process { return $([DeploymentProperties]$PSBoundParameters) } } function New-AzureNativeCognitiveservicesDeployment { [Alias('azure_native_cognitiveservices_deployment')] param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Properties of Cognitive Services account deployment.)')] [DeploymentProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the deployment associated with the Cognitive Services Account)')] [string] $deploymentName, [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:cognitiveservices:Deployment") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'deploymentName') { $resource.properties["deploymentName"] = $deploymentName } $global:pulumiresources += $resource return $resource } } class CommitmentPeriod { [string] $tier [int] $count } function New-AzureNativeTypeCognitiveservicesCommitmentPeriod { param ( [parameter(mandatory=$False,HelpMessage='Commitment period commitment tier.)')] [string] $tier, [parameter(mandatory=$False,HelpMessage='Commitment period commitment count.)')] [int] $count ) process { return $([CommitmentPeriod]$PSBoundParameters) } } class CommitmentPlanProperties { [ArgumentCompletions('Web', 'ConnectedContainer', 'DisconnectedContainer')] [string] $hostingModel [bool] $autoRenew [CommitmentPeriod] $next [CommitmentPeriod] $current [string] $planType } function New-AzureNativeTypeCognitiveservicesCommitmentPlanProperties { param ( [parameter(mandatory=$False,HelpMessage='Account hosting model.)')] [string] [ArgumentCompletions('Web', 'ConnectedContainer', 'DisconnectedContainer')] $hostingModel, [parameter(mandatory=$False,HelpMessage='AutoRenew commitment plan.)')] [bool] $autoRenew, [parameter(mandatory=$False,HelpMessage='Cognitive Services account commitment period.)')] [CommitmentPeriod] $next, [parameter(mandatory=$False,HelpMessage='Cognitive Services account commitment period.)')] [CommitmentPeriod] $current, [parameter(mandatory=$False,HelpMessage='Commitment plan type.)')] [string] $planType ) process { return $([CommitmentPlanProperties]$PSBoundParameters) } } function New-AzureNativeCognitiveservicesCommitmentPlan { [Alias('azure_native_cognitiveservices_commitmentplan')] param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Properties of Cognitive Services account commitment plan.)')] [CommitmentPlanProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the commitmentPlan associated with the Cognitive Services Account)')] [string] $commitmentPlanName, [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(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:cognitiveservices:CommitmentPlan") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'commitmentPlanName') { $resource.properties["commitmentPlanName"] = $commitmentPlanName } $global:pulumiresources += $resource return $resource } } class KeyVaultProperties { [string] $keyVersion [string] $keyName [string] $keyVaultUri } function New-AzureNativeTypeCognitiveservicesKeyVaultProperties { param ( [parameter(mandatory=$False,HelpMessage='Version of the Key from KeyVault)')] [string] $keyVersion, [parameter(mandatory=$False,HelpMessage='Name of the Key from KeyVault)')] [string] $keyName, [parameter(mandatory=$False,HelpMessage='Uri of KeyVault)')] [string] $keyVaultUri ) process { return $([KeyVaultProperties]$PSBoundParameters) } } class Encryption { [ArgumentCompletions('Microsoft.CognitiveServices', 'Microsoft.KeyVault')] [string] $keySource [KeyVaultProperties] $keyVaultProperties } function New-AzureNativeTypeCognitiveservicesEncryption { param ( [parameter(mandatory=$False,HelpMessage='Enumerates the possible value of keySource for Encryption)')] [string] [ArgumentCompletions('Microsoft.CognitiveServices', 'Microsoft.KeyVault')] $keySource, [parameter(mandatory=$False,HelpMessage='Properties of KeyVault)')] [KeyVaultProperties] $keyVaultProperties ) process { return $([Encryption]$PSBoundParameters) } } class UserOwnedStorage { [string] $resourceId } function New-AzureNativeTypeCognitiveservicesUserOwnedStorage { param ( [parameter(mandatory=$False,HelpMessage='Full resource id of a Microsoft.Storage resource.)')] [string] $resourceId ) process { return $([UserOwnedStorage]$PSBoundParameters) } } class PrivateLinkServiceConnectionState { [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected', 'Disconnected')] [string] $status [string] $actionsRequired } function New-AzureNativeTypeCognitiveservicesPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The reason for approval/rejection of the connection.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.)')] [string] [ArgumentCompletions('Pending', 'Approved', 'Rejected', 'Disconnected')] $status, [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] $actionsRequired ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } class PrivateEndpointConnectionProperties { [string[]] $groupIds [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState } function New-AzureNativeTypeCognitiveservicesPrivateEndpointConnectionProperties { param ( [parameter(mandatory=$False,HelpMessage='The private link resource group ids.)')] [string[]] $groupIds, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState ) process { return $([PrivateEndpointConnectionProperties]$PSBoundParameters) } } class PrivateEndpointConnection { [string] $location [PrivateEndpointConnectionProperties] $properties } function New-AzureNativeTypeCognitiveservicesPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The location of the private endpoint connection)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Resource properties.)')] [PrivateEndpointConnectionProperties] $properties ) process { return $([PrivateEndpointConnection]$PSBoundParameters) } } class IpRule { [string] $value } function New-AzureNativeTypeCognitiveservicesIpRule { param ( [parameter(mandatory=$False,HelpMessage='An IPv4 address range in CIDR notation, such as ''124.56.78.91'' (simple IP address) or ''124.56.78.0/24'' (all addresses that start with 124.56.78).)')] [string] $value ) process { return $([IpRule]$PSBoundParameters) } } class VirtualNetworkRule { [bool] $ignoreMissingVnetServiceEndpoint [string] $state [string] $id } function New-AzureNativeTypeCognitiveservicesVirtualNetworkRule { param ( [parameter(mandatory=$False,HelpMessage='Ignore missing vnet service endpoint or not.)')] [bool] $ignoreMissingVnetServiceEndpoint, [parameter(mandatory=$False,HelpMessage='Gets the state of virtual network rule.)')] [string] $state, [parameter(mandatory=$False,HelpMessage='Full resource id of a vnet subnet, such as ''/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1''.)')] [string] $id ) process { return $([VirtualNetworkRule]$PSBoundParameters) } } class NetworkRuleSet { [IpRule[]] $ipRules [ArgumentCompletions('Allow', 'Deny')] [string] $defaultAction [VirtualNetworkRule[]] $virtualNetworkRules } function New-AzureNativeTypeCognitiveservicesNetworkRuleSet { param ( [parameter(mandatory=$False,HelpMessage='The list of IP address rules.)')] $ipRules, [parameter(mandatory=$False,HelpMessage='The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated.)')] [string] [ArgumentCompletions('Allow', 'Deny')] $defaultAction, [parameter(mandatory=$False,HelpMessage='The list of virtual network rules.)')] $virtualNetworkRules ) process { return $([NetworkRuleSet]$PSBoundParameters) } } class CognitiveServicesAccountApiProperties { [string] $eventHubConnectionString [string] $aadClientId [bool] $statisticsEnabled [string] $qnaAzureSearchEndpointId [string] $qnaRuntimeEndpoint [string] $websiteName [string] $storageAccountConnectionString [string] $qnaAzureSearchEndpointKey [string] $aadTenantId [string] $superUser } function New-AzureNativeTypeCognitiveservicesCognitiveServicesAccountApiProperties { param ( [parameter(mandatory=$False,HelpMessage='(Personalization Only) The flag to enable statistics of Bing Search.)')] [string] $eventHubConnectionString, [parameter(mandatory=$False,HelpMessage='(Metrics Advisor Only) The Azure AD Client Id (Application Id).)')] [string] $aadClientId, [parameter(mandatory=$False,HelpMessage='(Bing Search Only) The flag to enable statistics of Bing Search.)')] [bool] $statisticsEnabled, [parameter(mandatory=$False,HelpMessage='(QnAMaker Only) The Azure Search endpoint id of QnAMaker.)')] [string] $qnaAzureSearchEndpointId, [parameter(mandatory=$False,HelpMessage='(QnAMaker Only) The runtime endpoint of QnAMaker.)')] [string] $qnaRuntimeEndpoint, [parameter(mandatory=$False,HelpMessage='(Metrics Advisor Only) The website name of Metrics Advisor.)')] [string] $websiteName, [parameter(mandatory=$False,HelpMessage='(Personalization Only) The storage account connection string.)')] [string] $storageAccountConnectionString, [parameter(mandatory=$False,HelpMessage='(QnAMaker Only) The Azure Search endpoint key of QnAMaker.)')] [string] $qnaAzureSearchEndpointKey, [parameter(mandatory=$False,HelpMessage='(Metrics Advisor Only) The Azure AD Tenant Id.)')] [string] $aadTenantId, [parameter(mandatory=$False,HelpMessage='(Metrics Advisor Only) The super user of Metrics Advisor.)')] [string] $superUser ) process { return $([CognitiveServicesAccountApiProperties]$PSBoundParameters) } } class CognitiveServicesAccountProperties { [Encryption] $encryption [UserOwnedStorage[]] $userOwnedStorage [string] $customSubDomainName [PrivateEndpointConnection[]] $privateEndpointConnections [NetworkRuleSet] $networkAcls [CognitiveServicesAccountApiProperties] $apiProperties [ArgumentCompletions('Enabled', 'Disabled')] [string] $publicNetworkAccess } function New-AzureNativeTypeCognitiveservicesCognitiveServicesAccountProperties { param ( [parameter(mandatory=$False,HelpMessage='The encryption properties for this resource.)')] [Encryption] $encryption, [parameter(mandatory=$False,HelpMessage='The storage accounts for this resource.)')] $userOwnedStorage, [parameter(mandatory=$False,HelpMessage='Optional subdomain name used for token-based authentication.)')] [string] $customSubDomainName, [parameter(mandatory=$False,HelpMessage='The private endpoint connection associated with the Cognitive Services account.)')] $privateEndpointConnections, [parameter(mandatory=$False,HelpMessage='A collection of rules governing the accessibility from specific network locations.)')] [NetworkRuleSet] $networkAcls, [parameter(mandatory=$False,HelpMessage='The api properties for special APIs.)')] [CognitiveServicesAccountApiProperties] $apiProperties, [parameter(mandatory=$False,HelpMessage='Whether or not public endpoint access is allowed for this account. Value is optional but if passed in, must be ''Enabled'' or ''Disabled'')')] [string] [ArgumentCompletions('Enabled', 'Disabled')] $publicNetworkAccess ) process { return $([CognitiveServicesAccountProperties]$PSBoundParameters) } } class Sku { [string] $name } function New-AzureNativeTypeCognitiveservicesSku { param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the sku name. Required for account creation, optional for update.)')] [string] $name ) process { return $([Sku]$PSBoundParameters) } } class Identity { [ArgumentCompletions('None', 'SystemAssigned', 'UserAssigned')] [object] $type [object] $userAssignedIdentities } class UserAssignedIdentity { [string] $clientId [string] $principalId } function New-AzureNativeTypeCognitiveservicesUserAssignedIdentity { param ( [parameter(mandatory=$False,HelpMessage='Client App Id associated with this identity.)')] [string] $clientId, [parameter(mandatory=$False,HelpMessage='Azure Active Directory principal ID associated with this Identity.)')] [string] $principalId ) process { return $([UserAssignedIdentity]$PSBoundParameters) } } function New-AzureNativeTypeCognitiveservicesIdentity { param ( [parameter(mandatory=$False,HelpMessage='Type of managed service identity.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName})')] [UserAssignedIdentity] $userAssignedIdentities ) process { return $([Identity]$PSBoundParameters) } } function New-AzureNativeCognitiveservicesAccount { [Alias('azure_native_cognitiveservices_account')] param ( [parameter(mandatory=$False,HelpMessage='The location of the resource)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Properties of Cognitive Services account.)')] [CognitiveServicesAccountProperties] $properties, [parameter(mandatory=$False,HelpMessage='The SKU of Cognitive Services account.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The identity of Cognitive Services account.)')] [Identity] $identity, [parameter(mandatory=$False,HelpMessage='The Kind of the resource.)')] [string] $kind, [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:cognitiveservices:Account") $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 if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'accountName') { $resource.properties["accountName"] = $accountName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCognitiveservicesPrivateEndpointConnection { [Alias('azure_native_cognitiveservices_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The name of Cognitive Services account.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Resource properties.)')] [PrivateEndpointConnectionProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Cognitive Services Account)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The location of the private endpoint connection)')] [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:cognitiveservices:PrivateEndpointConnection") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |