pspulumiyaml.azurenative.search.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionSearchListAdminKey { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["searchServiceName"] = $searchServiceName $functionObject = Invoke-PulumiFunction -Name azure-native:search:listAdminKey -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionSearchGetSharedPrivateLinkResource { param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName, [parameter(mandatory=$False,HelpMessage='The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group.)')] [string] $sharedPrivateLinkResourceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["searchServiceName"] = $searchServiceName $arguments["sharedPrivateLinkResourceName"] = $sharedPrivateLinkResourceName $functionObject = Invoke-PulumiFunction -Name azure-native:search:getSharedPrivateLinkResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionSearchGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["searchServiceName"] = $searchServiceName $functionObject = Invoke-PulumiFunction -Name azure-native:search:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionSearchListQueryKeyBySearchService { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["searchServiceName"] = $searchServiceName $functionObject = Invoke-PulumiFunction -Name azure-native:search:listQueryKeyBySearchService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionSearchGetService { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["searchServiceName"] = $searchServiceName $functionObject = Invoke-PulumiFunction -Name azure-native:search:getService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class SharedPrivateLinkResourceProperties { [ArgumentCompletions('Updating', 'Deleting', 'Failed', 'Succeeded', 'Incomplete')] [object] $provisioningState [string] $resourceRegion [string] $requestMessage [string] $privateLinkResourceId [string] $groupId [ArgumentCompletions('Pending', 'Approved', 'Rejected', 'Disconnected')] [object] $status } function New-AzureNativeTypeSearchSharedPrivateLinkResourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The provisioning state of the shared private link resource. Can be Updating, Deleting, Failed, Succeeded or Incomplete.)')] $provisioningState, [parameter(mandatory=$False,HelpMessage='Optional. Can be used to specify the Azure Resource Manager location of the resource to which a shared private link is to be created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).)')] [string] $resourceRegion, [parameter(mandatory=$False,HelpMessage='The request message for requesting approval of the shared private link resource.)')] [string] $requestMessage, [parameter(mandatory=$False,HelpMessage='The resource id of the resource the shared private link resource is for.)')] [string] $privateLinkResourceId, [parameter(mandatory=$False,HelpMessage='The group id from the provider of resource the shared private link resource is for.)')] [string] $groupId, [parameter(mandatory=$False,HelpMessage='Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.)')] $status ) process { return $([SharedPrivateLinkResourceProperties]$PSBoundParameters) } } function New-AzureNativeSearchSharedPrivateLinkResource { [Alias('azure_native_search_sharedprivatelinkresource')] param ( [parameter(mandatory=$False,HelpMessage='Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive Search service.)')] [SharedPrivateLinkResourceProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group.)')] [string] $sharedPrivateLinkResourceName, [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:search:SharedPrivateLinkResource") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["searchServiceName"] = $searchServiceName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'sharedPrivateLinkResourceName') { $resource.properties["sharedPrivateLinkResourceName"] = $sharedPrivateLinkResourceName } $global:pulumiresources += $resource return $resource } } class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState { [string] $actionsRequired [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected', 'Disconnected')] [object] $status } function New-AzureNativeTypeSearchPrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='A description of any extra actions that may be required.)')] [string] $actionsRequired, [parameter(mandatory=$False,HelpMessage='The description for the private link service connection state.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Status of the the private link service connection. Can be Pending, Approved, Rejected, or Disconnected.)')] $status ) process { return $([PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState]$PSBoundParameters) } } class PrivateEndpointConnectionPropertiesPrivateEndpoint { [string] $id } function New-AzureNativeTypeSearchPrivateEndpointConnectionPropertiesPrivateEndpoint { param ( [parameter(mandatory=$False,HelpMessage='The resource id of the private endpoint resource from Microsoft.Network provider.)')] [string] $id ) process { return $([PrivateEndpointConnectionPropertiesPrivateEndpoint]$PSBoundParameters) } } class PrivateEndpointConnectionProperties { [PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState] $privateLinkServiceConnectionState [PrivateEndpointConnectionPropertiesPrivateEndpoint] $privateEndpoint } function New-AzureNativeTypeSearchPrivateEndpointConnectionProperties { param ( [parameter(mandatory=$False,HelpMessage='Describes the current state of an existing Private Link Service connection to the Azure Private Endpoint.)')] [PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='The private endpoint resource from Microsoft.Network provider.)')] [PrivateEndpointConnectionPropertiesPrivateEndpoint] $privateEndpoint ) process { return $([PrivateEndpointConnectionProperties]$PSBoundParameters) } } function New-AzureNativeSearchPrivateEndpointConnection { [Alias('azure_native_search_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.)')] [PrivateEndpointConnectionProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection to the Azure Cognitive Search service with the specified resource group.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service associated with the specified resource group.)')] [string] $searchServiceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:search:PrivateEndpointConnection") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["searchServiceName"] = $searchServiceName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } class Identity { [ArgumentCompletions('None', 'SystemAssigned')] [object] $type } function New-AzureNativeTypeSearchIdentity { param ( [parameter(mandatory=$False,HelpMessage='The identity type.)')] $type ) process { return $([Identity]$PSBoundParameters) } } class IpRule { [string] $value } function New-AzureNativeTypeSearchIpRule { param ( [parameter(mandatory=$False,HelpMessage='Value corresponding to a single IPv4 address (eg., 123.1.2.3) or an IP range in CIDR format (eg., 123.1.2.3/24) to be allowed.)')] [string] $value ) process { return $([IpRule]$PSBoundParameters) } } class NetworkRuleSet { [IpRule[]] $ipRules } function New-AzureNativeTypeSearchNetworkRuleSet { param ( [parameter(mandatory=$False,HelpMessage='A list of IP restriction rules that defines the inbound network(s) with allowing access to the search service endpoint. At the meantime, all other public IP networks are blocked by the firewall. These restriction rules are applied only when the ''publicNetworkAccess'' of the search service is ''enabled''; otherwise, traffic over public interface is not allowed even with any public IP rules, and private endpoint connections would be the exclusive access method.)')] $ipRules ) process { return $([NetworkRuleSet]$PSBoundParameters) } } class Sku { [ArgumentCompletions('free', 'basic', 'standard', 'standard2', 'standard3', 'storage_optimized_l1', 'storage_optimized_l2')] [object] $name } function New-AzureNativeTypeSearchSku { param ( [parameter(mandatory=$False,HelpMessage='The SKU of the search service. Valid values include: ''free'': Shared service. ''basic'': Dedicated service with up to 3 replicas. ''standard'': Dedicated service with up to 12 partitions and 12 replicas. ''standard2'': Similar to standard, but with more capacity per search unit. ''standard3'': The largest Standard offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to ''highDensity''). ''storage_optimized_l1'': Supports 1TB per partition, up to 12 partitions. ''storage_optimized_l2'': Supports 2TB per partition, up to 12 partitions.'')')] $name ) process { return $([Sku]$PSBoundParameters) } } function New-AzureNativeSearchService { [Alias('azure_native_search_service')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Azure Cognitive Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60 characters in length. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). You cannot change the service name after the service is created.)')] [string] $searchServiceName, [parameter(mandatory=$False,HelpMessage='This value can be set to ''enabled'' to avoid breaking changes on existing customer resources and templates. If set to ''disabled'', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method.)')] $publicNetworkAccess, [parameter(mandatory=$False,HelpMessage='The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For ''standard3'' services with hostingMode set to ''highDensity'', the allowed values are between 1 and 3.)')] [int] $partitionCount, [parameter(mandatory=$False,HelpMessage='The identity of the resource.)')] [Identity] $identity, [parameter(mandatory=$False,HelpMessage='Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either ''default'' or ''highDensity''. For all other SKUs, this value must be ''default''.)')] $hostingMode, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU.)')] [int] $replicaCount, [parameter(mandatory=$False,HelpMessage='Network specific rules that determine how the Azure Cognitive Search service may be reached.)')] [NetworkRuleSet] $networkRuleSet, [parameter(mandatory=$False,HelpMessage='The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:search:Service") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'searchServiceName') { $resource.properties["searchServiceName"] = $searchServiceName } if($PSBoundParameters.Keys -icontains 'publicNetworkAccess') { $resource.properties["publicNetworkAccess"] = $publicNetworkAccess } if($PSBoundParameters.Keys -icontains 'partitionCount') { $resource.properties["partitionCount"] = $partitionCount } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'hostingMode') { $resource.properties["hostingMode"] = $hostingMode } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'replicaCount') { $resource.properties["replicaCount"] = $replicaCount } if($PSBoundParameters.Keys -icontains 'networkRuleSet') { $resource.properties["networkRuleSet"] = $networkRuleSet } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } $global:pulumiresources += $resource return $resource } } |