diff --git a/examples/cs-postgres-configuration/.gitignore b/examples/cs-postgres-configuration/.gitignore new file mode 100644 index 000000000000..e645270662b4 --- /dev/null +++ b/examples/cs-postgres-configuration/.gitignore @@ -0,0 +1,353 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ diff --git a/examples/cs-postgres-configuration/Program.cs b/examples/cs-postgres-configuration/Program.cs new file mode 100644 index 000000000000..0c743ab3aea7 --- /dev/null +++ b/examples/cs-postgres-configuration/Program.cs @@ -0,0 +1,9 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +using System.Threading.Tasks; +using Pulumi; + +partial class Program +{ + static Task Main() => Deployment.RunAsync(); +} diff --git a/examples/cs-postgres-configuration/Pulumi.yaml b/examples/cs-postgres-configuration/Pulumi.yaml new file mode 100644 index 000000000000..874f931446c0 --- /dev/null +++ b/examples/cs-postgres-configuration/Pulumi.yaml @@ -0,0 +1,7 @@ +name: cs-postgres-configuration +description: A minimal Azure Native C# Pulumi program +runtime: dotnet +config: + pulumi:tags: + value: + pulumi:template: azure-csharp diff --git a/examples/cs-postgres-configuration/Stack.cs b/examples/cs-postgres-configuration/Stack.cs new file mode 100644 index 000000000000..6302bccc475a --- /dev/null +++ b/examples/cs-postgres-configuration/Stack.cs @@ -0,0 +1,41 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +using Pulumi; +using Pulumi.AzureNative.Resources; +using Pulumi.AzureNative.DBforPostgreSQL; +using Pulumi.AzureNative.DBforPostgreSQL.Inputs; + +class MyStack : Stack +{ + public MyStack() + { + var resourceGroup = new ResourceGroup("resourceGroup"); + + var server = new Server("server", new ServerArgs + { + ResourceGroupName = resourceGroup.Name, + Location = resourceGroup.Location, + Version = "14", + Sku = new SkuArgs + { + Name = "Standard_B1ms", + Tier = SkuTier.Burstable + }, + Storage = new StorageArgs + { + StorageSizeGB = 32 + }, + AdministratorLogin = "pulumiadminuser", + AdministratorLoginPassword = "pulumiadminpassword" + }); + + var conf = new Configuration("deleteme", new ConfigurationArgs + { + ResourceGroupName = resourceGroup.Name, + ServerName = server.Name, + ConfigurationName = "azure.extensions", + Value = "vector", + Source = "user-override", + }); + } +} \ No newline at end of file diff --git a/examples/cs-postgres-configuration/cs-postgres-configuration.csproj b/examples/cs-postgres-configuration/cs-postgres-configuration.csproj new file mode 100644 index 000000000000..d21a4b07cbd7 --- /dev/null +++ b/examples/cs-postgres-configuration/cs-postgres-configuration.csproj @@ -0,0 +1,18 @@ + + + + Exe + net8.0 + enable + + + + + + + + + + + + diff --git a/examples/cs-postgres-configuration/step2/Stack.cs b/examples/cs-postgres-configuration/step2/Stack.cs new file mode 100644 index 000000000000..0cb0fc7ac707 --- /dev/null +++ b/examples/cs-postgres-configuration/step2/Stack.cs @@ -0,0 +1,32 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +using Pulumi; +using Pulumi.AzureNative.Resources; +using Pulumi.AzureNative.DBforPostgreSQL; +using Pulumi.AzureNative.DBforPostgreSQL.Inputs; + +class MyStack : Stack +{ + public MyStack() + { + var resourceGroup = new ResourceGroup("resourceGroup"); + + var server = new Server("server", new ServerArgs + { + ResourceGroupName = resourceGroup.Name, + Location = resourceGroup.Location, + Version = "14", + Sku = new SkuArgs + { + Name = "Standard_B1ms", + Tier = SkuTier.Burstable + }, + Storage = new StorageArgs + { + StorageSizeGB = 32 + }, + AdministratorLogin = "pulumiadminuser", + AdministratorLoginPassword = "pulumiadminpassword" + }); + } +} \ No newline at end of file diff --git a/examples/examples_dotnet_test.go b/examples/examples_dotnet_test.go index d6802f83be6a..a526c01c6e56 100644 --- a/examples/examples_dotnet_test.go +++ b/examples/examples_dotnet_test.go @@ -60,6 +60,25 @@ func TestGetCustomDomainVerificationId(t *testing.T) { integration.ProgramTest(t, &test) } +func TestDeletePostgresConfiguration(t *testing.T) { + test := getCsharpBaseOptions(t). + With(integration.ProgramTestOptions{ + Dir: filepath.Join(getCwd(t), "cs-postgres-configuration"), + Config: map[string]string{ + // Postgres was region-restricted at the time of writing. + "azure-native:location": "North Europe", + }, + EditDirs: []integration.EditDir{ + { + Dir: filepath.Join("cs-postgres-configuration", "step2"), + Additive: true, + }, + }, + }) + + integration.ProgramTest(t, &test) +} + func TestPulumiExamples(t *testing.T) { for _, example := range pexamples.GetTestsByTags(pexamples.AzureNativeProvider, pexamples.CS) { t.Run(example.Dir, func(t *testing.T) { diff --git a/provider/cmd/pulumi-resource-azure-native/schema.json b/provider/cmd/pulumi-resource-azure-native/schema.json index c15c025175e3..017c5d745a97 100644 --- a/provider/cmd/pulumi-resource-azure-native/schema.json +++ b/provider/cmd/pulumi-resource-azure-native/schema.json @@ -635746,15 +635746,6 @@ "serverName" ], "aliases": [ - { - "type": "azure-native:dbforpostgresql/v20200214preview:Configuration" - }, - { - "type": "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" - }, - { - "type": "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" - }, { "type": "azure-native:dbforpostgresql/v20210601:Configuration" }, diff --git a/provider/pkg/gen/schema.go b/provider/pkg/gen/schema.go index 4c1ed8a3552f..7a402b20278f 100644 --- a/provider/pkg/gen/schema.go +++ b/provider/pkg/gen/schema.go @@ -949,7 +949,7 @@ func (g *packageGenerator) genResourceVariant(apiSpec *openapi.ResourceSpec, res PutParameters: resourceRequest.parameters, Response: resourceResponse.properties, DefaultBody: resource.DefaultBody, - Singleton: resource.PathItem.Delete == nil, + Singleton: isSingleton(resource), PutAsyncStyle: g.getAsyncStyle(updateOp), DeleteAsyncStyle: g.getAsyncStyle(resource.PathItem.Delete), ReadMethod: readMethod, @@ -970,6 +970,10 @@ func (g *packageGenerator) genResourceVariant(apiSpec *openapi.ResourceSpec, res return nil } +func isSingleton(resource *resourceVariant) bool { + return resource.PathItem.Delete == nil || customresources.IsSingleton(resource.Path) +} + func (g *packageGenerator) generateAliases(resource *resourceVariant, typeNameAliases ...string) []pschema.AliasSpec { var aliases []pschema.AliasSpec diff --git a/provider/pkg/gen/schema_test.go b/provider/pkg/gen/schema_test.go index c3de63610fbc..9f05f9d75058 100644 --- a/provider/pkg/gen/schema_test.go +++ b/provider/pkg/gen/schema_test.go @@ -253,3 +253,38 @@ func TestPropertyDescriptions(t *testing.T) { assert.Equal(t, "This is not allowed", desc) }) } + +func TestResourceIsSingleton(t *testing.T) { + t.Run("singleton", func(t *testing.T) { + res := &resourceVariant{ + ResourceSpec: &openapi.ResourceSpec{ + Path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}", + PathItem: &spec.PathItem{}, + }, + } + assert.True(t, isSingleton(res)) + }) + + t.Run("implicit singleton", func(t *testing.T) { + res := &resourceVariant{ + ResourceSpec: &openapi.ResourceSpec{ + Path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Foo/bar", + PathItem: &spec.PathItem{}, + }, + } + assert.True(t, isSingleton(res)) + }) + + t.Run("not a singleton", func(t *testing.T) { + res := &resourceVariant{ + ResourceSpec: &openapi.ResourceSpec{ + Path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Foo/bar", + PathItem: &spec.PathItem{ + PathItemProps: spec.PathItemProps{ + Delete: &spec.Operation{}, + }, + }}, + } + assert.False(t, isSingleton(res)) + }) +} diff --git a/provider/pkg/openapi/defaults/defaultResourcesState.go b/provider/pkg/openapi/defaults/defaultResourcesState.go index 628f49210df0..1a2647e5b067 100644 --- a/provider/pkg/openapi/defaults/defaultResourcesState.go +++ b/provider/pkg/openapi/defaults/defaultResourcesState.go @@ -57,9 +57,6 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySQL/servers/{serverName}/configurations/{configurationName}": { "source": "system-default", }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}": { - "source": "system-default", - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}": { "source": "system-default", }, diff --git a/provider/pkg/provider/provider.go b/provider/pkg/provider/provider.go index 96a7eae17d86..f5fd1802bd8c 100644 --- a/provider/pkg/provider/provider.go +++ b/provider/pkg/provider/provider.go @@ -1429,6 +1429,10 @@ func restoreDefaultInputsForRemovedProperties(inputs resource.PropertyMap, res r return nil } +func isSingleton(res *resources.AzureAPIResource) bool { + return res.Singleton +} + // Delete tears down an existing resource with the given ID. If it fails, the resource is assumed // to still exist. func (k *azureNativeProvider) Delete(ctx context.Context, req *rpc.DeleteRequest) (*pbempty.Empty, error) { @@ -1469,7 +1473,7 @@ func (k *azureNativeProvider) Delete(ctx context.Context, req *rpc.DeleteRequest if err != nil { return nil, azure.AzureError(err) } - case res.Singleton: + case isSingleton(res): // Singleton resources can't be deleted (or created), set them to the default state. for _, param := range res.PutParameters { if defaults.SkipDeleteOperation(res.Path, res.APIVersion) { diff --git a/provider/pkg/resources/customresources/custom_postgres_config.go b/provider/pkg/resources/customresources/custom_postgres_config.go new file mode 100644 index 000000000000..fe1699a35dd9 --- /dev/null +++ b/provider/pkg/resources/customresources/custom_postgres_config.go @@ -0,0 +1,84 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +package customresources + +import ( + "context" + "fmt" + + "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud" + "github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources" + "github.com/pulumi/pulumi/sdk/v3/go/common/resource" +) + +// Server configuration cannot be deleted, only reset to the default value, and to do that we need +// to retrieve the default value first. See +// [the implementation in `az`](https://github.com/Azure/azure-cli/blob/f92f7233659890b427f4f6f486db5610cdca1020/src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py#L473) +// which does the same thing. +// The Azure Postgres team confirmed that both source and value must be set: +// https://github.com/Azure/azure-rest-api-specs/issues/30143#issuecomment-2379605761. +func postgresFlexibleServerConfiguration(crudClientFactory crud.ResourceCrudClientFactory, lookupResource resources.ResourceLookupFunc) (*CustomResource, error) { + // The arguments can be nil when the custom resource is constructed only for feature lookups + var crudClient crud.ResourceCrudClient + if crudClientFactory != nil && lookupResource != nil { + var err error + crudClient, err = createCrudClient(crudClientFactory, lookupResource, "azure-native:dbforpostgresql:Configuration") + if err != nil { + return nil, err + } + } + + return &CustomResource{ + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}", + Delete: func(ctx context.Context, id string, properties resource.PropertyMap) error { + conf, err := crudClient.Read(ctx, id) + if err != nil { + return err + } + + defaultValue := getValueFromAzureResponse(conf, "defaultValue") + if defaultValue == nil { + return fmt.Errorf("unexpected Postgres Configuration does not have a default value: %v", conf) + } + + // Also read the configuration "source" and send it back. This is actually wrong, but + // quoting the az implementation: + // > "this should be 'system-default' but there is currently a bug in PG, so keeping as + // > what it is for now this will reset source to be 'system-default' anyway" + source := getValueFromAzureResponse(conf, "source") + if source == nil { + return fmt.Errorf("unexpected Postgres Configuration does not have a source: %v", conf) + } + + _, queryParams, err := crudClient.PrepareAzureRESTIdAndQuery(nil) + if err != nil { + return err + } + result, _, err := crudClient.CreateOrUpdate(ctx, id, map[string]any{ + "properties": map[string]any{ + "value": defaultValue, + "source": source, + }, + }, queryParams) + if err != nil { + return err + } + + newValue := getValueFromAzureResponse(result, "value") + if newValue != defaultValue { + return fmt.Errorf("failed to reset Postgres Configuration to default value '%v': %v", defaultValue, newValue) + } + return nil + }, + isSingleton: true, + }, nil +} + +func getValueFromAzureResponse(resp map[string]any, key string) any { + if props, ok := resp["properties"]; ok { + if propsMap, ok := props.(map[string]any); ok { + return propsMap[key] + } + } + return nil +} diff --git a/provider/pkg/resources/customresources/custom_postgres_config_test.go b/provider/pkg/resources/customresources/custom_postgres_config_test.go new file mode 100644 index 000000000000..8ea316272536 --- /dev/null +++ b/provider/pkg/resources/customresources/custom_postgres_config_test.go @@ -0,0 +1,37 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +package customresources + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestGetValueFromAzureResponse(t *testing.T) { + t.Run("happy path", func(t *testing.T) { + resp := map[string]any{ + "properties": map[string]any{ + "defaultValue": "foo", + }, + } + + defaultValue := getValueFromAzureResponse(resp, "defaultValue") + require.NotNil(t, defaultValue) + require.Equal(t, "foo", defaultValue) + }) + + t.Run("empty response", func(t *testing.T) { + require.Nil(t, getValueFromAzureResponse(map[string]any{}, "defaultValue")) + }) + + t.Run("nil response", func(t *testing.T) { + require.Nil(t, getValueFromAzureResponse(nil, "defaultValue")) + }) + + t.Run("missing property", func(t *testing.T) { + require.Nil(t, getValueFromAzureResponse(map[string]any{ + "properties": map[string]any{}, + }, "defaultValue")) + }) +} diff --git a/provider/pkg/resources/customresources/customresources.go b/provider/pkg/resources/customresources/customresources.go index 336faf48cad3..00cc02bbcc10 100644 --- a/provider/pkg/resources/customresources/customresources.go +++ b/provider/pkg/resources/customresources/customresources.go @@ -68,6 +68,11 @@ type CustomResource struct { Update func(ctx context.Context, id string, news, olds resource.PropertyMap) (map[string]interface{}, error) // Delete an existing resource. Constructs the resource ID based on input values. Delete func(ctx context.Context, id string, properties resource.PropertyMap) error + // IsSingleton is true if the resource is a singleton resource that cannot be created or deleted, only initialized + // and reset to a default state. Normally, we infer this from whether the `Delete` property is set. In some cases + // we need to set it explicitly if the resource is a singleton but does have a `Delete` property implementing a + // custom reset to the default state. + isSingleton bool } // ResourceDefinition is a combination of the external schema and runtime metadata @@ -176,6 +181,11 @@ func BuildCustomResources(env *azureEnv.Environment, return nil, err } + postgresConf, err := postgresFlexibleServerConfiguration(crudClientFactory, lookupResource) + if err != nil { + return nil, err + } + resources := []*CustomResource{ keyVaultAccessPolicy(armKVClient), @@ -184,6 +194,7 @@ func BuildCustomResources(env *azureEnv.Environment, portalDashboard(), customWebApp, customWebAppSlot, + postgresConf, } // For Key Vault, we need to use separate token sources for azidentity and for the legacy auth. The @@ -229,6 +240,13 @@ func HasCustomDelete(path string) bool { return false } +func IsSingleton(path string) bool { + if res, ok := featureLookup[path]; ok { + return res.isSingleton + } + return false +} + // SchemaMixins returns the map of custom resource schema definitions per resource token. func SchemaMixins() map[string]schema.ResourceSpec { specs := map[string]schema.ResourceSpec{} @@ -300,12 +318,12 @@ func MetaTypeOverrides() map[string]AzureAPIType { func createCrudClient( crudClientFactory crud.ResourceCrudClientFactory, lookupResource ResourceLookupFunc, resourceToken string, ) (crud.ResourceCrudClient, error) { - res, ok, err := lookupResource(webAppResourceType) + res, ok, err := lookupResource(resourceToken) if err != nil { return nil, err } if !ok { - return nil, fmt.Errorf("resource %s not found", webAppResourceType) + return nil, fmt.Errorf("resource %s not found", resourceToken) } return crudClientFactory(&res), nil diff --git a/provider/pkg/resources/customresources/customresources_test.go b/provider/pkg/resources/customresources/customresources_test.go new file mode 100644 index 000000000000..864292f7a88a --- /dev/null +++ b/provider/pkg/resources/customresources/customresources_test.go @@ -0,0 +1,20 @@ +// Copyright 2024, Pulumi Corporation. All rights reserved. + +package customresources + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestIsSingleton(t *testing.T) { + assert.False(t, IsSingleton("")) + assert.False(t, IsSingleton("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}")) + + postgresResource, err := postgresFlexibleServerConfiguration(nil, nil) + require.NoError(t, err) + assert.True(t, postgresResource.isSingleton) + assert.True(t, IsSingleton(postgresResource.path)) +} diff --git a/reports/allEndpoints.json b/reports/allEndpoints.json index a52c0a54fd7d..73c33599fd46 100644 --- a/reports/allEndpoints.json +++ b/reports/allEndpoints.json @@ -29050,8 +29050,7 @@ "HttpVerbs": [ "GET", "PATCH" - ], - "Added": true + ] }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations": { "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/serverGroupsv2/{serverGroupName}/configurations", @@ -29086,6 +29085,7 @@ "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}", "FilePath": "specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/postgresql.json", "HttpVerbs": [ + "DELETE", "GET", "PATCH", "PUT" diff --git a/reports/allResourceVersionsByResource.json b/reports/allResourceVersionsByResource.json index 5a18cbc5f6a6..e72ac7763610 100644 --- a/reports/allResourceVersionsByResource.json +++ b/reports/allResourceVersionsByResource.json @@ -7943,9 +7943,6 @@ "Configuration": [ "2017-12-01", "2017-12-01-preview", - "2020-02-14-preview", - "2020-02-14-privatepreview", - "2021-04-10-privatepreview", "2021-06-01", "2021-06-01-preview", "2021-06-15-privatepreview", diff --git a/reports/allResourcesByVersion.json b/reports/allResourcesByVersion.json index 2d93d4ce337b..3198a31fce1e 100644 --- a/reports/allResourcesByVersion.json +++ b/reports/allResourcesByVersion.json @@ -7683,12 +7683,10 @@ "ServerKey" ], "2020-02-14-preview": [ - "Configuration", "FirewallRule", "Server" ], "2020-02-14-privatepreview": [ - "Configuration", "FirewallRule", "Server", "ServerKey" @@ -7704,7 +7702,6 @@ "getGetPrivateDnsZoneSuffixExecute" ], "2021-04-10-privatepreview": [ - "Configuration", "FirewallRule", "Server" ], diff --git a/sdk/dotnet/DBforPostgreSQL/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/Configuration.cs index 982a31fb6e88..58f647173a61 100644 --- a/sdk/dotnet/DBforPostgreSQL/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/Configuration.cs @@ -127,9 +127,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Version = Utilities.Version, Aliases = { - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20221201/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20221201/Configuration.cs index c9d49fc2ca54..033081e0d5ab 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20221201/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20221201/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20230301Preview/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20230301Preview/Configuration.cs index bf1b58d9aa87..cdf5d0d0430a 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20230301Preview/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20230301Preview/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20230601Preview/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20230601Preview/Configuration.cs index 959a36898204..cca7f0d11904 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20230601Preview/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20230601Preview/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20231201Preview/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20231201Preview/Configuration.cs index b36af79f067e..45c66edd51e0 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20231201Preview/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20231201Preview/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20240301Preview/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20240301Preview/Configuration.cs index 2d04781f9a32..24d283e7a4de 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20240301Preview/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20240301Preview/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20240801/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20240801/Configuration.cs index 4ded45cfe701..51abf86f653c 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20240801/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20240801/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/dotnet/DBforPostgreSQL/V20241101Preview/Configuration.cs b/sdk/dotnet/DBforPostgreSQL/V20241101Preview/Configuration.cs index 421bd28e4ea0..a5db16e92cd5 100644 --- a/sdk/dotnet/DBforPostgreSQL/V20241101Preview/Configuration.cs +++ b/sdk/dotnet/DBforPostgreSQL/V20241101Preview/Configuration.cs @@ -125,9 +125,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? Aliases = { new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214preview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, - new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210601preview:Configuration" }, new global::Pulumi.Alias { Type = "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, diff --git a/sdk/nodejs/dbforpostgresql/configuration.ts b/sdk/nodejs/dbforpostgresql/configuration.ts index d1632f3fd392..fc9930ba2805 100644 --- a/sdk/nodejs/dbforpostgresql/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/configuration.ts @@ -148,7 +148,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20221201/configuration.ts b/sdk/nodejs/dbforpostgresql/v20221201/configuration.ts index df51b925983b..f56af5f0fd3e 100644 --- a/sdk/nodejs/dbforpostgresql/v20221201/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20221201/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20230301preview/configuration.ts b/sdk/nodejs/dbforpostgresql/v20230301preview/configuration.ts index f14a42a37937..fdf3b7bdcaa4 100644 --- a/sdk/nodejs/dbforpostgresql/v20230301preview/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20230301preview/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20230601preview/configuration.ts b/sdk/nodejs/dbforpostgresql/v20230601preview/configuration.ts index 24d35cc6be72..ca712b967f89 100644 --- a/sdk/nodejs/dbforpostgresql/v20230601preview/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20230601preview/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20231201preview/configuration.ts b/sdk/nodejs/dbforpostgresql/v20231201preview/configuration.ts index 100029cd8360..80d9923c7b61 100644 --- a/sdk/nodejs/dbforpostgresql/v20231201preview/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20231201preview/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20240301preview/configuration.ts b/sdk/nodejs/dbforpostgresql/v20240301preview/configuration.ts index 6c9e2672a51b..ae11118c62e3 100644 --- a/sdk/nodejs/dbforpostgresql/v20240301preview/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20240301preview/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20240801/configuration.ts b/sdk/nodejs/dbforpostgresql/v20240801/configuration.ts index 4a4045865587..dc7c499a2a90 100644 --- a/sdk/nodejs/dbforpostgresql/v20240801/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20240801/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20241101preview:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/dbforpostgresql/v20241101preview/configuration.ts b/sdk/nodejs/dbforpostgresql/v20241101preview/configuration.ts index 08e399e4053d..e7ad53e12c1c 100644 --- a/sdk/nodejs/dbforpostgresql/v20241101preview/configuration.ts +++ b/sdk/nodejs/dbforpostgresql/v20241101preview/configuration.ts @@ -145,7 +145,7 @@ export class Configuration extends pulumi.CustomResource { resourceInputs["value"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20200214privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210410privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:dbforpostgresql:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601:Configuration" }, { type: "azure-native:dbforpostgresql/v20210601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20210615privatepreview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220120preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20220308preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20221201:Configuration" }, { type: "azure-native:dbforpostgresql/v20230301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20230601preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20231201preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240301preview:Configuration" }, { type: "azure-native:dbforpostgresql/v20240801:Configuration" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(Configuration.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/configuration.py index 271a72a5c76c..4cacf260e295 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/configuration.py @@ -190,7 +190,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20221201/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20221201/configuration.py index 08fb020950d7..76371257a50a 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20221201/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20221201/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20221201:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20230301preview/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20230301preview/configuration.py index ee6bedb9b7fc..95d64f29ae95 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20230301preview/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20230301preview/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20230301preview:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20230601preview/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20230601preview/configuration.py index e7d1b34350d6..ba144c486c7c 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20230601preview/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20230601preview/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20230601preview:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20231201preview/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20231201preview/configuration.py index db37a6cdae45..68cc3c3f4d65 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20231201preview/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20231201preview/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20231201preview:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20240301preview/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20240301preview/configuration.py index 06248d1972f2..8eee376633f9 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20240301preview/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20240301preview/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20240301preview:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20240801/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20240801/configuration.py index 6fd522fb5cec..51640686b3c6 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20240801/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20240801/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20241101preview:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20240801:Configuration', diff --git a/sdk/python/pulumi_azure_native/dbforpostgresql/v20241101preview/configuration.py b/sdk/python/pulumi_azure_native/dbforpostgresql/v20241101preview/configuration.py index db82051dba63..86dc92b95dc5 100644 --- a/sdk/python/pulumi_azure_native/dbforpostgresql/v20241101preview/configuration.py +++ b/sdk/python/pulumi_azure_native/dbforpostgresql/v20241101preview/configuration.py @@ -184,7 +184,7 @@ def _internal_init(__self__, __props__.__dict__["system_data"] = None __props__.__dict__["type"] = None __props__.__dict__["unit"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20200214privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210410privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:dbforpostgresql:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20210615privatepreview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220120preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20220308preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20221201:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20230601preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20231201preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240301preview:Configuration"), pulumi.Alias(type_="azure-native:dbforpostgresql/v20240801:Configuration")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Configuration, __self__).__init__( 'azure-native:dbforpostgresql/v20241101preview:Configuration', diff --git a/versions/v2-spec.yaml b/versions/v2-spec.yaml index 1f72c57a710a..00f8f949b5a4 100644 --- a/versions/v2-spec.yaml +++ b/versions/v2-spec.yaml @@ -584,9 +584,6 @@ DBforPostgreSQL: Role: "2022-11-08" VirtualEndpoint: 2023-06-01-preview exclusionErrors: - - provider: DBforPostgreSQL - resourcename: Configuration - detail: version 2020-02-14-privatepreview is greater than 2017-12-01 - provider: DBforPostgreSQL resourcename: FirewallRule detail: version 2020-02-14-privatepreview is greater than 2017-12-01 @@ -596,9 +593,6 @@ DBforPostgreSQL: - provider: DBforPostgreSQL resourcename: ServerKey detail: version 2020-02-14-privatepreview is greater than 2020-01-01 - - provider: DBforPostgreSQL - resourcename: Configuration - detail: version 2020-02-14-preview is greater than 2017-12-01 - provider: DBforPostgreSQL resourcename: FirewallRule detail: version 2020-02-14-preview is greater than 2017-12-01 @@ -611,9 +605,6 @@ DBforPostgreSQL: - provider: DBforPostgreSQL resourcename: Database detail: version 2020-11-05-preview is greater than 2017-12-01 - - provider: DBforPostgreSQL - resourcename: Configuration - detail: version 2021-04-10-privatepreview is greater than 2017-12-01 - provider: DBforPostgreSQL resourcename: FirewallRule detail: version 2021-04-10-privatepreview is greater than 2017-12-01